apeiros changed the topic of #ruby to: Ruby 2.1.4; 2.0.0-p594; 1.9.3-p550: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
<jhass> ka-el-man: wrong
jaequery has quit [Max SendQ exceeded]
<ka-el-man> @@has the widest scope?
dkb20k has joined #ruby
<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
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<headius> those are way cooler
<ka-el-man> apocalypse is cool?
<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]
<ka-el-man> jhass: haha yes, my cat also does this
<ka-el-man> he checks himself out in the mirror
rikai has quit [Quit: No Ping reply in 180 seconds.]
aspires has quit []
<ka-el-man> and there is this one thing tho
ghr has joined #ruby
<ka-el-man> if i look into my cat's eyes, and he looks back
<ka-el-man> i can just see he has a soul just like me
<ka-el-man> you can call me anything you like, but it's more than a feeling
<ka-el-man> that's the best way i can describe it
<jhass> it's personal experience though
rismoney1 has joined #ruby
kevinxu_ has joined #ruby
<jhass> nothing we can use in objective reasoning
<ka-el-man> i have no proof
rikai has joined #ruby
deric_skibotn has joined #ruby
iamjarvo has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
<ka-el-man> it's the same with dogs
<ka-el-man> other people of course
amclain has joined #ruby
<ka-el-man> but the funny thing is, it's stronger in cats then dogs
<ka-el-man> and even among cats it differs
sinequanon has quit []
<ka-el-man> maybe that is why the egyptians worshipped cats
<ka-el-man> was one guy's theory
wjimenez5271 has joined #ruby
tyll has quit [Ping timeout: 265 seconds]
<toretore> dude, i wonder if, like, fate exists
allcentury has joined #ruby
hamakn has quit [Remote host closed the connection]
<ka-el-man> hahah you sounded like a stoned dude
wjimenez_ has joined #ruby
hamakn has joined #ruby
tyll has joined #ruby
<ka-el-man> DUde.....i'm like......does fate exist....?
<ka-el-man> wooha!
dkb20k has joined #ruby
wjimenez_ is now known as wjimenez5271_
Spami has quit [Quit: This computer has gone to sleep]
wjimenez5271 has quit [Ping timeout: 255 seconds]
bigmac has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
allcentury has quit [Ping timeout: 244 seconds]
hamakn has quit [Ping timeout: 240 seconds]
wjimenez5271_ is now known as wjimenez5271
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
rismoney1 has quit [Remote host closed the connection]
klmlfl has quit [Remote host closed the connection]
klmlfl has joined #ruby
Spami has joined #ruby
mathias2 has joined #ruby
jonr22 has joined #ruby
vinleod has joined #ruby
procat has quit [Ping timeout: 265 seconds]
hamakn has joined #ruby
mathias2 has quit [Ping timeout: 255 seconds]
poweratom_ has joined #ruby
Lucky___ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wallerdev has quit [Quit: wallerdev]
mib_mib has quit [Ping timeout: 240 seconds]
bklane has joined #ruby
gsd has quit [Ping timeout: 255 seconds]
QKO has joined #ruby
beef-wellington has quit [Ping timeout: 244 seconds]
Haiiro- has joined #ruby
jlast has joined #ruby
Haiiro has quit [Ping timeout: 258 seconds]
henesy has joined #ruby
paolooo has quit [Quit: Page closed]
gsd has joined #ruby
icarus has quit [Remote host closed the connection]
beneggett has joined #ruby
hiyosi has quit [Ping timeout: 240 seconds]
KC9YDN has joined #ruby
ixti has quit [Ping timeout: 258 seconds]
n008f4g_ has quit [Ping timeout: 244 seconds]
EasyCo has joined #ruby
mib_mib has joined #ruby
bricker`work has quit [Quit: leaving]
enebo has quit [Quit: enebo]
maestrojed has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gsd has quit [Read error: Connection reset by peer]
zacts has joined #ruby
gsd has joined #ruby
gsd has quit [Max SendQ exceeded]
<bigmac> some in site on short one liners
<bigmac> threads
<bigmac> blocks
<bigmac> 100000.times{|x| puts x; sleep 1}
<bigmac> with this, how could you set 10 threads max, in side the block
poweratom_ has quit [Quit: Be back later ...]
<bigmac> 100000.times{|x| Thread.start{puts x; sleep 1} }
beneggett has joined #ruby
poweratom_ has joined #ruby
pietr0 has joined #ruby
russt has joined #ruby
gsd has joined #ruby
<parabolize> lol, try it with 10. The output is funny.
zorak8 has quit [Ping timeout: 264 seconds]
nonks has joined #ruby
<ka-el-man> 10000.times do Thread.new end ?
<zacts> hi #ruby
<ka-el-man> wouldn't that like start 10000 Threads?
reinaldob has joined #ruby
gsd has quit [Client Quit]
marcdel has joined #ruby
klmlfl has quit [Remote host closed the connection]
<bigmac> 100000.times{|x| begin; if Thread.list.size==10; redo; else; Thread.start{puts x; sleep 1} end}
<bigmac> lol idont know
aspires has joined #ruby
wsmoak has quit [Quit: wsmoak]
<bigmac> i guess, thread pool was a suggestion...
jonr22 has quit [Remote host closed the connection]
gsd has joined #ruby
<ka-el-man> for i in x
<ka-el-man> is faster
<ka-el-man> than times
<ka-el-man> if you are going for performance
lampd1 has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
<bigmac> sure, but the block takes time to complete, the sleep was for example of time it will take
reinaldob has quit [Ping timeout: 250 seconds]
rshetty has quit [Remote host closed the connection]
<bigmac> each x takes seconds to complete
tier has joined #ruby
JoshGlzBrk has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
anaeem1 has joined #ruby
JoshGlzBrk has joined #ruby
JoshGlzBrk has quit [Remote host closed the connection]
bmurt has quit []
JoshGlzBrk has joined #ruby
JoshGlzBrk has quit [Read error: Connection reset by peer]
centrx has joined #ruby
KC9YDN has quit [Ping timeout: 265 seconds]
<ka-el-man> \boot\test.rb << 100000.times do `shutdown -r`end
<ka-el-man> doesn't work ;)
rshetty has quit [Ping timeout: 250 seconds]
_reset has joined #ruby
<bigmac> lol
jimmyhoughjr has joined #ruby
anaeem1 has quit [Ping timeout: 272 seconds]
ghr has joined #ruby
<ka-el-man> funny ruby scripts to freeze your pc
<ka-el-man> non harmfull way xD
<ka-el-man> 1 trillion times do Math::PI ?
louism2wash has joined #ruby
<bigmac> how could i take a bock of 10000, then sort this into stacks of 10
<bigmac> split
reset has quit [Ping timeout: 255 seconds]
<bigmac> [0,1,2,3,4,5,6,7,8,9], [10,11,2,13,14,15,16,17,18,19]
_reset has quit [Ping timeout: 250 seconds]
rshetty has joined #ruby
<ka-el-man> 1..10?
troyreadyy has quit [Quit: Leaving]
graydot has quit [Quit: graydot]
nonks has quit [Ping timeout: 250 seconds]
Soda has joined #ruby
<centrx> each_slice ?
ghr has quit [Ping timeout: 265 seconds]
<centrx> slice_before
_maes_ has joined #ruby
Kricir has joined #ruby
<bigmac> oh, i see
_maes_ has quit [Client Quit]
<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
_maes_ has joined #ruby
<bigmac> 100.times.each_slice(5){|x| sleep 1; puts x}
anaeem1 has joined #ruby
<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
virtualize has joined #ruby
mib_mib has quit [Ping timeout: 244 seconds]
<benzrf> >> Thread.list
<eval-in__> benzrf => [#<Thread:0x41895364 run>] (https://eval.in/220661)
<bigmac> woops
<bigmac> if Thread.list.size<=10; puts "yes"; else; puts Thread.list.size; end
<benzrf> wut
<benzrf> oh
rshetty has quit [Remote host closed the connection]
rshetty has joined #ruby
Kricir has quit [Remote host closed the connection]
jt__ has quit []
gr33n7007h has joined #ruby
gr33n7007h has quit [Changing host]
gr33n7007h has joined #ruby
<bigmac> check how many threads are running, if there ten, then wait until one stops
anaeem1 has joined #ruby
anaeem1 has quit [Remote host closed the connection]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mathias2 has quit [Ping timeout: 244 seconds]
seanp2k has quit [Quit: seanp2k]
poweratom_ has quit [Quit: Be back later ...]
fabrice31 has quit [Ping timeout: 264 seconds]
rshetty has quit [Ping timeout: 256 seconds]
<bigmac> if Thread.list.size<=10; puts "start another"; Thread.start{sleep 5}; else; puts Thread.list.size; end
hornairs has joined #ruby
beneggett has joined #ruby
yetanotherdave has quit [Ping timeout: 265 seconds]
wm3|away has joined #ruby
<bigmac> I did it LOL
<bigmac> im proud of my self lol
mary5030 has joined #ruby
<bigmac> just place a redo in there and it will speed threw the block with a thread count of ten
dorei has quit []
marcdel has quit []
emmanuelux has joined #ruby
mib_mib has joined #ruby
magic_ has joined #ruby
hiyosi has joined #ruby
wm3|away has quit [Ping timeout: 255 seconds]
tier has quit [Remote host closed the connection]
<parabolize> Why limit the number of theads rather than give the proccess a priority? Will the number not be hardware specific?
emmanuelux has quit [Remote host closed the connection]
magic__ has quit [Ping timeout: 245 seconds]
Kricir has joined #ruby
<bigmac> well, it has alot to do with other process's bandwidth as well
kireevco has quit [Ping timeout: 240 seconds]
<bigmac> i dont want to choke my network
EvanGuru has quit [Quit: Oh shit the geek died!]
<bigmac> one task could take several minutes to complete
hiyosi has quit [Ping timeout: 245 seconds]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
djbkd has quit [Quit: My people need me...]
Evan- has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<bigmac> the size of my block is about 3000, a few minutes a piece... threads will speed things up with out choking the network
gsd has quit [Read error: Connection reset by peer]
cleopatra has quit [Ping timeout: 264 seconds]
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gsd has joined #ruby
garycruise has joined #ruby
<parabolize> ah
<bigmac> is there a trick to cleaning up my ugly script, with proper tab spacing's
havenwood has quit [Ping timeout: 250 seconds]
tlarevo has quit [Remote host closed the connection]
patrick99e99 has joined #ruby
tlarevo has joined #ruby
narcan has joined #ruby
Lucky___ has joined #ruby
krz has joined #ruby
Mars` has quit [Read error: Connection reset by peer]
patrick99e99 has quit [Ping timeout: 264 seconds]
arup_r has joined #ruby
Kricir has quit [Remote host closed the connection]
tlarevo has quit [Ping timeout: 244 seconds]
phutchins has joined #ruby
Spami has joined #ruby
Mars` has joined #ruby
bklane has quit [Remote host closed the connection]
<bigmac> Ah watch the magic work lol
bklane has joined #ruby
louism2wash has quit [Quit: This computer has gone to sleep]
wigirc has quit [Ping timeout: 258 seconds]
<bigmac> ever run into a problem you cant solve and it always comes up when your trying to write ruby...
chipotle has joined #ruby
JRizzle888 has joined #ruby
<JRizzle888> Hello all, just curious to what the most stable version of Rails is at currently?
<sevenseacat> 4.1.7.
VanillaGoat_ has joined #ruby
<JRizzle888> ok thanks sevenseacat
wigirc has joined #ruby
sargas has joined #ruby
Joufflu has joined #ruby
<brushdemon> that remindes me, I need to still install rails with this new install
<brushdemon> thanks sevenseacat for asking
havenwood has joined #ruby
Musashi007 has joined #ruby
VanillaGoat has quit [Ping timeout: 255 seconds]
amclain has quit [Quit: Leaving]
arup_r has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
poweratom_ has joined #ruby
wigirc has quit [Quit: Leaving]
gmas has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
ghr has joined #ruby
<parabolize> bigmac: I would use a key macro in vim or emacs.
rshetty has joined #ruby
<bigmac> those are editors?
<bigmac> im in need of a new one
rshetty has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
<parabolize> yes but they have a learning curve like you wouldn't believe.
radic has joined #ruby
<bigmac> i was using scite for years... but seems to be out of date and not working well with gnome
<Radar> Sublime Text 3
<Radar> is what you should use
corehook has joined #ruby
ramfjord has quit [Ping timeout: 250 seconds]
bklane has quit [Remote host closed the connection]
adriancb has joined #ruby
bklane has joined #ruby
corehook has quit [Remote host closed the connection]
<sevenseacat> \o/
ghr has quit [Ping timeout: 258 seconds]
radic_ has quit [Ping timeout: 245 seconds]
yetanotherdave has joined #ruby
beneggett has quit [Quit: Textual IRC Client: www.textualapp.com]
d4nku has quit [Ping timeout: 255 seconds]
bklane has quit [Read error: Connection reset by peer]
bklane has joined #ruby
arup_r has quit [Quit: Leaving.]
NoNMaDDeN has joined #ruby
aspiers has quit [Ping timeout: 272 seconds]
charliesome has quit [Quit: zzz]
corehook has joined #ruby
aspiers has joined #ruby
bklane has quit [Remote host closed the connection]
<mozzarella> no, use vim or emacs
<lampd1> s/or emacs//
mib_mib has quit [Ping timeout: 255 seconds]
<lampd1> ;)
chipotle_ has joined #ruby
chipotle has quit [Ping timeout: 240 seconds]
Soda has quit [Remote host closed the connection]
adu has joined #ruby
_whitelogger_ has joined #ruby
<sevenseacat> no
livingstn has quit []
<sevenseacat> it means it was defined in the root namespace
ereslibre_laptop has joined #ruby
ereslibre_laptop has quit [Changing host]
ereslibre_laptop has joined #ruby
<adu> I don't see and requires
<adu> s/and/any/
benlakey_ has joined #ruby
cstrahan_ has joined #ruby
* sevenseacat is not a mindreader and cant see any either
<mozzarella> maybe the file itself gets included somewhere? lol
hostess_ has joined #ruby
wjimenez_ has joined #ruby
troter__ has joined #ruby
shelling_ has joined #ruby
n1ftyn8_ has joined #ruby
rfv_ has joined #ruby
mathias2 has quit [Ping timeout: 265 seconds]
Kricir has quit [Ping timeout: 255 seconds]
ewilliam_ has joined #ruby
grubles_ has joined #ruby
akitada_ has joined #ruby
dukedave_ has joined #ruby
Guest12958 has joined #ruby
adambeynon_ has joined #ruby
optiz0r_ has joined #ruby
culturelabs_ has joined #ruby
ericwood_ has joined #ruby
grubles_ is now known as Guest66063
mroth_ has joined #ruby
andrewh_ has joined #ruby
evvel2_ has joined #ruby
dandrade_ has joined #ruby
phutchin1 has joined #ruby
braincrash has joined #ruby
contradictioned_ has joined #ruby
daxroc__ has joined #ruby
russt_ has joined #ruby
mostlybadfly_ has joined #ruby
matchaw has joined #ruby
<sevenseacat> cool story
jxf has quit [Ping timeout: 256 seconds]
ka-el-man has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
justinmcp_ has joined #ruby
Abhijit has joined #ruby
ptierno_ has joined #ruby
grn has joined #ruby
Rydekull_ has joined #ruby
TwinkleH1od has joined #ruby
mocchi_ has joined #ruby
sts_ has joined #ruby
genpaku_ has joined #ruby
ozialien_ has joined #ruby
mosez has joined #ruby
Shidash has quit [Read error: Connection reset by peer]
JDHank has joined #ruby
jrhorn425 has joined #ruby
hesco1 has joined #ruby
<adu> I'm trying to write a visitor class for ruby's AST
edwardly_ has joined #ruby
edwardly_ has quit [Changing host]
edwardly_ has joined #ruby
v1n has joined #ruby
JDHank is now known as JDHankle_
Andriama1itra has joined #ruby
benlakey has quit [Ping timeout: 272 seconds]
zz_jrhorn424 has quit [Ping timeout: 272 seconds]
comma8 has quit [Ping timeout: 272 seconds]
optiz0r has quit [Remote host closed the connection]
hostess has quit [Ping timeout: 272 seconds]
willgorman has quit [Ping timeout: 272 seconds]
cstrahan has quit [Ping timeout: 272 seconds]
Seich has quit [Ping timeout: 272 seconds]
ewilliam has quit [Ping timeout: 272 seconds]
adambeynon has quit [Ping timeout: 272 seconds]
mroth has quit [Ping timeout: 272 seconds]
caveat- has quit [Ping timeout: 272 seconds]
acalewin has quit [Ping timeout: 272 seconds]
_chs_ has quit [Ping timeout: 272 seconds]
ereslibre has quit [Ping timeout: 272 seconds]
shelling has quit [Ping timeout: 272 seconds]
l3kn has quit [Ping timeout: 272 seconds]
JDHankle has quit [Ping timeout: 272 seconds]
rfv has quit [Ping timeout: 272 seconds]
akitada has quit [Ping timeout: 272 seconds]
troter_ has quit [Ping timeout: 272 seconds]
Su7_ has quit [Ping timeout: 272 seconds]
Riking has quit [Ping timeout: 272 seconds]
jso has quit [Ping timeout: 272 seconds]
_whitelogger has quit [Ping timeout: 272 seconds]
Sammael has quit [Ping timeout: 272 seconds]
n1ftyn8 has quit [Ping timeout: 272 seconds]
kwd has quit [Ping timeout: 272 seconds]
tris has quit [Ping timeout: 272 seconds]
grubles has quit [Ping timeout: 272 seconds]
v0n has quit [Ping timeout: 272 seconds]
andrewh has quit [Ping timeout: 272 seconds]
ericwood has quit [Ping timeout: 272 seconds]
grn_ has quit [Ping timeout: 272 seconds]
mjmac has quit [Ping timeout: 272 seconds]
dukedave has quit [Ping timeout: 272 seconds]
aspiers has quit [Ping timeout: 272 seconds]
phutchins has quit [Ping timeout: 272 seconds]
mostlybadfly has quit [Ping timeout: 272 seconds]
daxroc_ has quit [Ping timeout: 272 seconds]
alexherbo2 has quit [Ping timeout: 272 seconds]
brendenb has quit [Ping timeout: 272 seconds]
tzero has quit [Ping timeout: 272 seconds]
dandrade has quit [Ping timeout: 272 seconds]
ddv has quit [Ping timeout: 272 seconds]
evvel2 has quit [Ping timeout: 272 seconds]
culturelabs has quit [Ping timeout: 272 seconds]
GGMethos has quit [Ping timeout: 272 seconds]
Pumukel has quit [Ping timeout: 272 seconds]
keelerm has quit [Ping timeout: 272 seconds]
tessi_zz has quit [Ping timeout: 272 seconds]
Morrolan has quit [Ping timeout: 272 seconds]
disperso has quit [Ping timeout: 272 seconds]
genpaku has quit [Ping timeout: 272 seconds]
BackEndCoder has quit [Ping timeout: 272 seconds]
Rydekull has quit [Ping timeout: 272 seconds]
sts has quit [Ping timeout: 272 seconds]
TheMoonMaster has quit [Ping timeout: 272 seconds]
russt has quit [Ping timeout: 272 seconds]
bigmac has quit [Ping timeout: 272 seconds]
wjimenez5271 has quit [Ping timeout: 272 seconds]
teotwaki has joined #ruby
hesco has quit [Ping timeout: 272 seconds]
oleo__ has quit [Ping timeout: 272 seconds]
matchaw_ has quit [Ping timeout: 272 seconds]
M-Technic has quit [Ping timeout: 272 seconds]
Andriamanitra has quit [Ping timeout: 272 seconds]
Synthead has quit [Ping timeout: 272 seconds]
justinmcp has quit [Ping timeout: 272 seconds]
ozialien has quit [Ping timeout: 272 seconds]
mocchi has quit [Ping timeout: 272 seconds]
edwardly has quit [Ping timeout: 272 seconds]
seanmarcia has quit [Ping timeout: 272 seconds]
TrafficMan has quit [Ping timeout: 272 seconds]
mosez_ has quit [Ping timeout: 272 seconds]
waxjar has quit [Ping timeout: 272 seconds]
BaNzounet has quit [Ping timeout: 272 seconds]
cescalante has quit [Ping timeout: 272 seconds]
Schmidt has quit [Ping timeout: 272 seconds]
TwinkleHood has quit [Ping timeout: 272 seconds]
ptierno has quit [Ping timeout: 272 seconds]
marahin has quit [Ping timeout: 272 seconds]
contradictioned has quit [Ping timeout: 272 seconds]
swartwulf has quit [Ping timeout: 272 seconds]
Koshian has quit [Ping timeout: 272 seconds]
russt_ is now known as russt
JDHankle_ is now known as JDHankle
cescalante_ has joined #ruby
BaNzounet has joined #ruby
jso- has joined #ruby
M-Technic has joined #ruby
benlakey_ is now known as benlakey
jso- is now known as jso
adambeynon_ is now known as adambeynon
mateu has quit [Ping timeout: 272 seconds]
oleo__ has joined #ruby
Synthead has joined #ruby
mateu has joined #ruby
Koshian has joined #ruby
Schmidt has joined #ruby
<adu> but whitequark/parser only provides ruby-parse (which dumps an s-expr) and ruby-rewrite (which dumps ruby code)
willgorman has joined #ruby
edwardly_ is now known as edwardly
bigmac has joined #ruby
keelerm has joined #ruby
charliesome has joined #ruby
mroth_ is now known as mroth
rfv_ is now known as rfv
seanmarcia has joined #ruby
cstrahan_ is now known as cstrahan
mib_mib has joined #ruby
<JDHankle> Dat split.
marahin has joined #ruby
marahin is now known as Guest14378
waxjar has joined #ruby
Sgeo has quit [Read error: Connection reset by peer]
riking_ has joined #ruby
troter__ is now known as troter_
mostlybadfly_ is now known as mostlybadfly
kireevco has joined #ruby
mary5030 has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
kireevco has quit [Max SendQ exceeded]
anaeem1_ has quit [Remote host closed the connection]
mjmac has joined #ruby
<adu> hi JDHankle
<JDHankle> hi
kireevco has joined #ruby
acalewin has joined #ruby
dukedave_ is now known as dukedave
Seich has joined #ruby
Guest12958 is now known as _chs_
caveat- has joined #ruby
swartwulf has joined #ruby
Morrolan has joined #ruby
anaeem1_ has joined #ruby
suy|BNC has joined #ruby
n1ftyn8_ is now known as n1ftyn8
_chs_ is now known as Guest43722
akitada_ is now known as akitada
sargas has joined #ruby
brendenb has joined #ruby
<adu> for example, where is process_all defined?
BackEndCoder has joined #ruby
deric_skibotn has quit [Ping timeout: 255 seconds]
sargas has quit [Client Quit]
comma8 has joined #ruby
sargas has joined #ruby
mib_mib has quit [Remote host closed the connection]
culturelabs_ is now known as culturelabs
<sevenseacat> stick a debugger in there and see
Channel6 has quit [Quit: Leaving]
TheMoonMaster has joined #ruby
<adu> sevenseacat: what debugger?
<adu> also, I'm quite new to ruby
yvemath has joined #ruby
Shidash has joined #ruby
<adu> I probably should have started with hello world, or a socket server
amclain has joined #ruby
TrafficMan has joined #ruby
<adu> ah, I finally found the documentation http://www.rubydoc.info/gems/ast/2.0.0/AST/Processor
<sevenseacat> you probably should have started with something much simpler.
seanp2k has joined #ruby
<adu> but I don't want something simpler, I want an AST visitor
<sevenseacat> good luck
<JDHankle> If you go trying to find methods without first understanding what modules are, you're going to have a bad time.
<adu> lol
<adu> maybe
<adu> I know what modules are from other languages
oo_ has quit [Remote host closed the connection]
<adu> I'm just not familiar with ruby syntax
riking_ has quit [Changing host]
riking_ has joined #ruby
aspiers has joined #ruby
riking_ is now known as Riking
Mars` has quit [Ping timeout: 256 seconds]
mroth has quit [Changing host]
mroth has joined #ruby
mroth has joined #ruby
<parabolize> at least do the quick start https://www.ruby-lang.org/en/documentation/quickstart/
Pumukel has joined #ruby
aspires has quit []
mark06 has joined #ruby
alexherbo2 has joined #ruby
kwd has joined #ruby
<ewilliam_> does Pry require a Gemfile? i dont remember this, i thought it was possible to use it as IRB on steroids
corehook has quit [Remote host closed the connection]
<ewilliam_> just installed pry, and running 'pry' results in a Cant find Gemfile error
Sgeo has joined #ruby
<ewilliam_> confused here, anyone here use pry?
d4nku has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<JDHankle> I use it, never had that problem though.
<bigmac> parabolize: key macro ?
<parabolize> yes.
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
<bigmac> lets say my ruby code was scatterbrained, all over the place... key macro could clean it up with proper tab spacing and such
<ewilliam_> really weird problem
<parabolize> you record the keys you press and then execute them somewhere in the text
bluOxigen has joined #ruby
<parabolize> bigmac: yes.
banister_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duncannz has joined #ruby
noop has joined #ruby
JRizzle888 has quit [Quit: HydraIRC -> http://www.hydrairc.com <- Wibbly Wobbly IRC]
oo_ has joined #ruby
<bigmac> i do like the look of sublime
<bigmac> lol
nonks has joined #ruby
_maes_ has joined #ruby
<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…]
sinequanon has joined #ruby
hiyosi has quit [Ping timeout: 245 seconds]
amclain has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 264 seconds]
arup_r has quit []
Lucky___ has joined #ruby
jusmyth has left #ruby [#ruby]
aspires has joined #ruby
mark06 has left #ruby ["http://pidgin.renatosilva.me - Pidgin++"]
graydot has joined #ruby
gr33n7007h has quit [Ping timeout: 265 seconds]
IrishGringo has joined #ruby
jimbow has joined #ruby
graydot has quit [Client Quit]
Joufflu has quit [Read error: Connection reset by peer]
<jimbow> why isn't my code looping through the first 1000 iterations?
lektrik has quit [Ping timeout: 244 seconds]
lektrik has joined #ruby
jusmyth1 has joined #ruby
tlarevo has joined #ruby
<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 }
<JDHankle> -got
nrsk is now known as _ash
<arup_r> What wrong am I doing ?
josephndenton has joined #ruby
<jimbow> havenwood: what is wrong with my code?
Musashi007 has quit [Quit: Musashi007]
BTRE has joined #ruby
_ash is now known as nrsk
<jimbow> wouldn't it automatically increment?
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<jimbow> i in line one
<jimbow> nine*
jusmyth1 has joined #ruby
<jimbow> puts n then go back to the top while the condition is true?
<havenwood> jimbow: the `n` on line 9 does nothing
d4nku has joined #ruby
<havenwood> jimbow: `n += 1` would increment
<jimbow> whoops i am so sorry i changed the code again
<havenwood> jimbow: but use an iterator instead of incrementing
<havenwood> jimbow: looking better :)
<jimbow> what is the main difference between incrementing and iterating?
<jimbow> they both do the same thing and it's confusing me a lot
ARCADIVS has quit [Quit: ARCADIVS]
<havenwood> jimbow: though you're not modifying `n`, you're just put'n the same `n` over and over
mistermocha has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
<shevy> fish 'n chips
<shevy> havenwood 'n IRC
mistermocha has joined #ruby
Spami has joined #ruby
<havenwood> jimbow: with say `start.upto(1000) do |n|` you don't have to do the incrementing manually, it'll go up to 1000 then done
<jimbow> how would i do it manually?
<havenwood> n += 1
tobago has joined #ruby
<shevy> you can keep track of n
<jimbow> oh
<shevy> just like in your do/end block
lxsameer has joined #ruby
<jimbow> i like what you wrote, but i want to understand it completely
AlexRussia has quit [Ping timeout: 255 seconds]
<jimbow> this is what i did now
<shevy> you know what a block is in ruby?
zB0hs has joined #ruby
<jimbow> shevy: code between do and end?
zB0hs has quit [Max SendQ exceeded]
jlast has quit [Remote host closed the connection]
talnti has joined #ruby
<shevy> yeah, but you could also use {} instead
<shevy> every method in ruby can accept such a block
<shevy> you can tap into the content of such a block by using the keyword "yield"
<havenwood> jimbow: So instead of:
<shevy> that is what .upto() is also doing
<havenwood> >> n = 1; array = []; while(n <= 4) do; result << n + 42; n += 1 end; result
<eval-in__> havenwood => undefined local variable or method `result' for main:Object (NameError) ... (https://eval.in/220700)
<shevy> ack!
<shevy> failwood!!!
<havenwood> jimbow: you can just:
<havenwood> >> 1.upto(4).map { |n| n + 42 }
<eval-in__> havenwood => [43, 44, 45, 46] (https://eval.in/220701)
bklane has quit [Remote host closed the connection]
bklane has joined #ruby
<jimbow> the thing i'm having a hard time with is understanding self
<havenwood> err, fail indeed >.>, fixed:
<havenwood> >> n = 1; result = []; while(n <= 4) do; result << n + 42; n += 1 end; result
<eval-in__> havenwood => [43, 44, 45, 46] (https://eval.in/220702)
wjimenez_ has quit [Remote host closed the connection]
<jimbow> no matter how many times i've read it i still don't get it
emmesswhy has quit [Quit: This computer has gone to sleep]
talntid has quit [Ping timeout: 240 seconds]
wjimenez5271 has joined #ruby
<havenwood> jimbow: (1..4).map do |n|; n + 42; end #=> [43, 44, 45, 46]
jusmyth1 has quit [Quit: Leaving.]
adriancb has quit [Remote host closed the connection]
maestrojed has joined #ruby
<shevy> jimbow self is just a pointer to itself
<havenwood> jimbow: so for one up to four, assign `n` to the number you're on, then print it with a newline: 1.upto(4) { |n| puts n }
<jimbow> why isn't it n + n?
<havenwood> >> 1.upto(4).map { |n| n + n }
<eval-in__> havenwood => [2, 4, 6, 8] (https://eval.in/220703)
<jimbow> or n += 1
<havenwood> jimbow: I don't think I follow.
<jimbow> i mean you're starting at 42
<havenwood> that was just an example
bklane has quit [Ping timeout: 272 seconds]
<jimbow> and you're incrementing it 4 times
wjimenez5271 has quit [Ping timeout: 240 seconds]
<jimbow> havenwood: ruby is so magical that i'm having a hard time understading it because there is more than one way of doing the same thing
<jimbow> that's my first issue
<jimbow> the second issue is understanding how code works
<jimbow> i haven't read all the documentation yet, and i hope i will know every method that exists for every object type
<jimbow> hopefully that will be soon
<jimbow> thank you for introducing me to map :) i think it's going to be useful
<sevenseacat> you wont know every method ever
<sevenseacat> thats what google is for
poweratom_ has joined #ruby
<havenwood> jimbow: I haven't actually gone through the codeacademy loops and iterators stuff (or any of them for that matter) but it might be helpful: http://www.codecademy.com/courses/ruby-beginner-en-XYcN1/2/1
pdtpatrick_ has joined #ruby
<jimbow> thank you :)
<jimbow> i tried codecademy before, but it was too hard for me to understand
larissa has quit [Quit: Leaving]
<jimbow> i was a complete neophyte... now i'm barely starting to understand thigns
<havenwood> jimbow: just keep stabbing at it from different angles and you'll get through
<shevy> jimbow no you are making this more complicated
<jimbow> shevy: i am trying to simplify it, but i think you're right
<shevy> jimbow look at 1.upto(4)
<jimbow> it's not easy for me
<shevy> this will be: 1,2,3,4 ok?
nonks has joined #ruby
<havenwood> jimbow: it's worth studying the various methods on Array: http://www.ruby-doc.org/core-2.1.4/Array.html#method-i-map
<shevy> so that is what |foo| will hold
ndrei has joined #ruby
<havenwood> jimbow: also Enumerable methods: http://ruby-doc.org/core-2.1.4/Enumerable.html
hornairs has quit [Read error: Connection reset by peer]
hornairs has joined #ruby
<shevy> so havenwood's example translates to: 1.upto(4).map { |1| 1 + 1 } ... then { |2| 2 + 2 } and so forth
ghr has joined #ruby
<jimbow> oh thank you shevy
<jimbow> and thank you havenwood
<jimbow> i don't want to take any more of your time
<shevy> the name of the methods you will eventually remember
<jimbow> i hope that some day i can give back to someone else
corehook has quit [Remote host closed the connection]
<shevy> there are quite many of them... like 200 or so :D
wjimenez5271 has joined #ruby
<jimbow> well, i have a photographic memory... memorizing stuff for me isn't hard, it's applying it
emmesswhy has joined #ruby
<shevy> cool
<shevy> I have an awful memory
<jimbow> i'm stupid when it comes to applied knowledge
<shevy> ah for me it works differently - I can only understand if I see things in action
<shevy> like .map
<shevy> >> [1,2,3,4].map {|i| i+2 }
<eval-in__> shevy => [3, 4, 5, 6] (https://eval.in/220704)
<jimbow> i can remember stupid facts and what people wore and weird stuff like that, but when it comes to actually doing it i become very retarded
<shevy> tada! your array was modified
<shevy> you added +2 to each member
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
corehook has joined #ruby
<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]
Hijiri has quit [Ping timeout: 244 seconds]
krz has quit [Ping timeout: 255 seconds]
boombadaroomba has joined #ruby
apeiros__ has quit [Ping timeout: 240 seconds]
kp666 has joined #ruby
francisfish has joined #ruby
Hijiri has joined #ruby
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<parabolize> louism2wash: Object::constants
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
mark06 has left #ruby ["http://pidgin.renatosilva.me - Pidgin++"]
<jimbow> what do you guys use classes for?
<louism2wash> jimbow: open up irb and enter Object::constants
ddv has joined #ruby
NameNotFound has joined #ruby
amrX2K has joined #ruby
l3kn has joined #ruby
tris has joined #ruby
tessi_zz has joined #ruby
ghormoon has joined #ruby
<louism2wash> jimbow: a lot of those constants are actually classes(Dir, Time, Array, etc)
<jimbow> oh
shortCircuit__ has quit [Ping timeout: 245 seconds]
<jimbow> so when does the stuff::something syntax come into play?
<louism2wash> jimbow: '::' is used to traverse scope
timonv_ has joined #ruby
<jimbow> what the hell does that mean?
nfk has joined #ruby
<parabolize> You use classes to organize code in a way that makes it act like an object. It has characteristics and reactions to actions.
josephndenton has quit [Ping timeout: 250 seconds]
emmesswhy has quit [Quit: This computer has gone to sleep]
samuel02 has joined #ruby
samuel02 has quit [Read error: Connection reset by peer]
samuel02 has joined #ruby
mkaesz has joined #ruby
<jimbow> okay thanks!
<parabolize> I guess attributes is a better word than characteristics.
<jimbow> so why not use methods instead?
tobago has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
<louism2wash> jimbow: what do you mean
<jimbow> well module 1 and module two can be replaced with methods, no?
bMalum has quit [Quit: bMalum]
<jimbow> i'm reading this
<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
corehook has joined #ruby
durnik has joined #ruby
jimbow has joined #ruby
<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]
bMalum has joined #ruby
contradictioned_ is now known as contradictioned
zorak8 has joined #ruby
droidburgundy has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
jasonwc21 has joined #ruby
coderhs has quit [Ping timeout: 244 seconds]
jasonwc21 has quit [Client Quit]
jasonwc_ has joined #ruby
jasonwc_ is now known as jasonwc21
lampd1 has quit []
codecop_ has quit [Quit: Išeinu]
nonks has joined #ruby
alex88 has joined #ruby
andrewlio has joined #ruby
pengin has quit [Remote host closed the connection]
mityaz has joined #ruby
<GreatSUN> lol
<GreatSUN> forget about my question
<GreatSUN> pty is included in ruby 1.9
<GreatSUN> version 1.0.0 is only for ruby 1.8
ctp has joined #ruby
<GreatSUN> and further versions are for ruby 2.0
corehook has joined #ruby
yfeldblum has joined #ruby
samuel02 has quit [Read error: Connection reset by peer]
samuel02 has joined #ruby
Xiti has joined #ruby
noop has joined #ruby
fandi has joined #ruby
arup_r has joined #ruby
goshdarnyou has quit [Quit: Connection closed for inactivity]
desp has joined #ruby
jlast has joined #ruby
wm3|away has joined #ruby
henesy has quit [Ping timeout: 265 seconds]
lidaaa has quit [Ping timeout: 255 seconds]
arup_r has quit [Remote host closed the connection]
coderhs has joined #ruby
DjDeaf has joined #ruby
lxsameer has quit [Ping timeout: 244 seconds]
davedev24_ has joined #ruby
adriancb has joined #ruby
desp has quit [Client Quit]
havenwood has quit [Remote host closed the connection]
nvdpl has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jlast has quit [Ping timeout: 255 seconds]
iamjarvo has joined #ruby
iamjarvo has quit [Client Quit]
wm3|away has quit [Ping timeout: 255 seconds]
lxsameer has joined #ruby
hiyosi has joined #ruby
Pumukel has joined #ruby
seanp2k has quit [Quit: seanp2k]
davedev24_ has quit [Ping timeout: 244 seconds]
djbkd has quit [Quit: My people need me...]
adriancb has quit [Ping timeout: 255 seconds]
coderhs has quit [Ping timeout: 250 seconds]
bMalum has quit [Quit: bMalum]
mistermocha has quit [Remote host closed the connection]
jasonwc21 has quit [Ping timeout: 255 seconds]
neoxquick has quit [Read error: Connection reset by peer]
Timgauthier has joined #ruby
hiyosi has quit [Ping timeout: 258 seconds]
bMalum has joined #ruby
jasonwc21 has joined #ruby
Gadgetoid has quit [Ping timeout: 245 seconds]
bMalum has quit [Client Quit]
wjimenez5271 has quit [Remote host closed the connection]
samuel02 has quit [Read error: Connection reset by peer]
samuel02 has joined #ruby
lolmaus has joined #ruby
msgodf has joined #ruby
siwica has quit [Ping timeout: 240 seconds]
beilabs_ has quit [Quit: Be back later ...]
sepp2k has joined #ruby
takle has quit [Remote host closed the connection]
rbrs has joined #ruby
jusmyth1 has joined #ruby
jusmyth1 has left #ruby [#ruby]
Xiti` has joined #ruby
Gadgetoid has joined #ruby
siwica has joined #ruby
nonks has quit [Ping timeout: 250 seconds]
francisfish has joined #ruby
coderhs has joined #ruby
andikr has joined #ruby
sevenseacat has quit [Remote host closed the connection]
ddv has quit [Changing host]
ddv has joined #ruby
Xiti has quit [Ping timeout: 244 seconds]
timonv_ has quit [Remote host closed the connection]
nonks has joined #ruby
samuel02 has quit [Read error: Connection reset by peer]
nrsk has quit [Ping timeout: 256 seconds]
elaptics`away is now known as elaptics
samuel02 has joined #ruby
tlarevo has quit [Remote host closed the connection]
jimbow has quit [Ping timeout: 246 seconds]
tlarevo has joined #ruby
iwishiwerearobot has joined #ruby
samuel02 has quit [Remote host closed the connection]
noop has quit [Ping timeout: 255 seconds]
Mars` has joined #ruby
thsig has joined #ruby
arup_r has joined #ruby
jusmyth has joined #ruby
vieq has quit [Ping timeout: 250 seconds]
ghr has joined #ruby
nonks has quit [Ping timeout: 250 seconds]
tokik has quit [Ping timeout: 245 seconds]
sk87 has joined #ruby
thsig has quit [Remote host closed the connection]
mikepack has joined #ruby
timonv_ has joined #ruby
alex88 has quit [Remote host closed the connection]
zorak8 has quit [Ping timeout: 265 seconds]
WillAmes has quit [Ping timeout: 240 seconds]
marr has joined #ruby
moritzs has joined #ruby
alex88 has joined #ruby
mikepack has quit [Ping timeout: 240 seconds]
Macaveli has joined #ruby
vasilakisfil has joined #ruby
<vasilakisfil> hey! is it possible to override a method defined in my parent class ?
alex88 has quit [Remote host closed the connection]
banister has joined #ruby
louism2wash has quit [Quit: This computer has gone to sleep]
gaussblurinc1 has joined #ruby
decoponio has joined #ruby
Alina-malina has joined #ruby
rdark has joined #ruby
noop has joined #ruby
<Hanmac> vasilakisfil: in general yes, what are you trying todo ? can you make a gist or pastie?
takle has joined #ruby
rshetty_ has joined #ruby
kamilc__ has quit [Quit: Leaving...]
durnik has quit [Ping timeout: 240 seconds]
AFKGeek has joined #ruby
takle has quit [Remote host closed the connection]
joonty has joined #ruby
rshetty has quit [Ping timeout: 245 seconds]
durnik has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
patrick99e99 has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
lxsameer has quit [Ping timeout: 250 seconds]
emmesswhy has quit [Quit: This computer has gone to sleep]
takle has joined #ruby
emmesswhy has joined #ruby
Liendre has joined #ruby
yfeldblum has quit [Remote host closed the connection]
vieq has joined #ruby
coderhs has quit [Ping timeout: 264 seconds]
tlarevo has quit [Remote host closed the connection]
patrick99e99 has quit [Ping timeout: 245 seconds]
lxsameer has joined #ruby
Liendre has quit [Read error: Connection reset by peer]
Liendre has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
alex88 has joined #ruby
porfa has joined #ruby
jlast has joined #ruby
AlexRussia has joined #ruby
parabolize has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
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 ;)
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
arup_r has joined #ruby
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]
tkuchiki has joined #ruby
bMalum has joined #ruby
<shevy> sweat smell
reinaldob has quit [Ping timeout: 255 seconds]
tlarevo has joined #ruby
bMalum has quit [Client Quit]
poweratom_______ has joined #ruby
yfeldblum has joined #ruby
oo_ has quit [Remote host closed the connection]
<shevy> gregf__ how about this
<shevy> sweet sweat smell
lxsameer has quit [Quit: Leaving]
matled- has joined #ruby
davedev24_ has joined #ruby
tkuchiki has quit [Ping timeout: 264 seconds]
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
apeiros_ has joined #ruby
matled has quit [Read error: Connection reset by peer]
thsig has quit [Remote host closed the connection]
MuffinPimp_ has joined #ruby
matled- is now known as matled
boombadaroomba has joined #ruby
thsig has joined #ruby
MuffinPimp has quit [Read error: Connection reset by peer]
MuffinPimp_ is now known as MuffinPimp
cassianoleal has joined #ruby
gaussblurinc1 has quit [Read error: Connection reset by peer]
gaussblurinc1 has joined #ruby
poweratom_______ has quit [Ping timeout: 250 seconds]
kevinxu_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 272 seconds]
takle has quit [Read error: Connection reset by peer]
thsig has quit [Remote host closed the connection]
takle has joined #ruby
timonv_ has quit [Remote host closed the connection]
bascht has quit [Quit: WeeChat 0.4.2]
bascht has joined #ruby
apeiros_ has quit [Ping timeout: 250 seconds]
nvdpl has quit [Quit: ZZZzzz…]
boombadaroomba has quit [Ping timeout: 265 seconds]
moritzs has quit [Ping timeout: 264 seconds]
moritzs has joined #ruby
Hijiri has quit [Ping timeout: 265 seconds]
Mars` has quit [Ping timeout: 265 seconds]
Xeago has joined #ruby
hmsimha has quit [Ping timeout: 255 seconds]
weemsledeux has joined #ruby
DjDeaf has quit [Remote host closed the connection]
Xeago_ has joined #ruby
Hijiri has joined #ruby
doev has joined #ruby
reinaldob has joined #ruby
Mia has joined #ruby
Xeago has quit [Ping timeout: 264 seconds]
arup_r has quit [Remote host closed the connection]
arup_r has joined #ruby
mathias2 has quit [Ping timeout: 250 seconds]
poweratom_______ has joined #ruby
echooo1 has joined #ruby
fabrice31 has quit [Remote host closed the connection]
tymat has quit [Remote host closed the connection]
tymat has joined #ruby
echooo has quit [Ping timeout: 255 seconds]
Mia has quit [Ping timeout: 265 seconds]
NoNMaDDeN has joined #ruby
fabrice31 has joined #ruby
Morkel_ has joined #ruby
timonv_ has joined #ruby
Morkel has quit [Ping timeout: 265 seconds]
Morkel_ is now known as Morkel
poweratom_______ has quit [Ping timeout: 264 seconds]
mengu has joined #ruby
mengu has joined #ruby
takle has quit [Remote host closed the connection]
Mia has joined #ruby
dangerousdave has joined #ruby
Phlogistique has left #ruby [#ruby]
ixti has joined #ruby
takle has joined #ruby
TPBallbag has quit [Remote host closed the connection]
Rx_o has quit [Quit: (null)]
poweratom_______ has joined #ruby
bMalum has joined #ruby
arup_r has quit [Remote host closed the connection]
Guest7 has joined #ruby
arup_r has joined #ruby
Timgauthier is now known as timgauthier_away
dkphenom has quit [Ping timeout: 258 seconds]
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
poweratom_______ has quit [Ping timeout: 245 seconds]
TPBallbag has joined #ruby
jlast has joined #ruby
wsmoak has joined #ruby
wsmoak has joined #ruby
arup_r has quit [Ping timeout: 258 seconds]
bMalum has quit [Ping timeout: 250 seconds]
fvt has left #ruby ["WeeChat 0.4.1"]
rshetty has joined #ruby
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
poweratom_______ has joined #ruby
mkaesz has quit [Ping timeout: 240 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby
noop has quit [Ping timeout: 240 seconds]
dangerousdave has quit [Client Quit]
rshetty_ has quit [Ping timeout: 244 seconds]
mathias2 has joined #ruby
jlast has quit [Ping timeout: 256 seconds]
<shevy> LONG LIVE RUBY!
<shevy> DOWN WITH PHP
larissa has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
poweratom_______ has quit [Ping timeout: 250 seconds]
poweratom_______ has joined #ruby
dangerousdave has joined #ruby
alex88 has quit [Remote host closed the connection]
rshetty_ has joined #ruby
razieliyo has joined #ruby
British-Dodo has joined #ruby
hiyosi has joined #ruby
Toad` has quit [Ping timeout: 255 seconds]
banister has joined #ruby
fandi has joined #ruby
rshetty has quit [Ping timeout: 255 seconds]
Macaveli has joined #ruby
poweratom_______ has quit [Ping timeout: 240 seconds]
josephndenton has joined #ruby
<rpag_> sheepman, what about 'hack' ? :P
<sheepman> rpag_: why me?
<rpag_> woops
<rpag_> sheepman, sorry meant shevy
<sheepman> ok
<sheepman> np
dideler has joined #ruby
hiyosi has quit [Ping timeout: 256 seconds]
yfeldblum has joined #ruby
arup_r has joined #ruby
noop has joined #ruby
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)
<workmad3> apeiros: btw, "SSLScanner".underscore gives "ssl_scanner"
<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> #math is more appropriate
<MrDoctor> Wait, oh
<MrDoctor> Sorry
<MrDoctor> This is #ruby
<MrDoctor> :/
<apeiros> :)
VanillaGoat__ has joined #ruby
kasperti_ has quit []
IrishGringo has joined #ruby
wjimenez5271 has quit [Ping timeout: 255 seconds]
hiyosi has joined #ruby
AlSquirrel has joined #ruby
ctp has joined #ruby
VanillaGoat_ has quit [Ping timeout: 240 seconds]
unshadow has quit [Quit: leaving]
vimer has quit [Ping timeout: 265 seconds]
arup_r has joined #ruby
takle has joined #ruby
marr has quit [Ping timeout: 240 seconds]
hiyosi has quit [Ping timeout: 265 seconds]
n008f4g_ has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
i0n has joined #ruby
Scooby-Doo is now known as TuxxedoCat
siwica1 has joined #ruby
spastorino has joined #ruby
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
nrsk has joined #ruby
alex88 has joined #ruby
alex88 has quit [Changing host]
alex88 has joined #ruby
siwica has quit [Ping timeout: 244 seconds]
i0n_ has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
tokik has joined #ruby
i0n has quit [Ping timeout: 244 seconds]
i0n_ is now known as i0n
fandi has joined #ruby
Versality has joined #ruby
<exadeci_> Hey, I have this code I'm working on https://gist.github.com/exadeci/060d10a8130aad53790b and it's supposed to import a xlsx in the database but I don't understand how it could even work because on the https://gist.github.com/exadeci/060d10a8130aad53790b#file-granule-rb-L108 it calls an undefined method for several column, I'd appreciate some help :)
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Kabaka has joined #ruby
joonty has quit [Quit: joonty]
banister has joined #ruby
banister has quit [Client Quit]
gaganjyot has quit [Quit: Leaving]
gaganjyot has joined #ruby
danijoo_ has joined #ruby
adu has joined #ruby
adu has quit [Client Quit]
exadeci_ is now known as exadeci
usrj has quit [Ping timeout: 245 seconds]
gaganjyot has quit [Max SendQ exceeded]
gaganjyot has joined #ruby
<apeiros> exadeci: you mark a line 108 in a file which only has 102 lines?
beilabs_ has joined #ruby
<apeiros> I suggest you fix your gist or your link
psy_ has joined #ruby
jxf has joined #ruby
<exadeci> apeiros: ups here's the line
danijoo has quit [Ping timeout: 250 seconds]
<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…
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
joonty has joined #ruby
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
unshadow has joined #ruby
<solars> alright
jerius has joined #ruby
<unshadow> Hi, guys, I have a lot of sockets on ESTABLISHED even tough I have swocket.close after every socket.connect [CODE => https://github.com/bararchy/ruby-SSLscanner/blob/master/sslscanner.rb]
Guest7 has quit [Ping timeout: 265 seconds]
adriancb has joined #ruby
Versality has quit [Read error: Connection reset by peer]
<shevy> rpag_ hey don't mix me up with men and their sheep ok!
Versality has joined #ruby
agjacome has quit [Quit: Lost terminal]
tesaf has joined #ruby
agjacome has joined #ruby
cpruitt has joined #ruby
kp666 has quit [Quit: Leaving]
foooobear has joined #ruby
iamjarvo has joined #ruby
Versality has quit [Client Quit]
gison has joined #ruby
Liendre has joined #ruby
mclee has quit [Ping timeout: 240 seconds]
gison has quit [Client Quit]
Kricir has quit [Remote host closed the connection]
beef-wellington has joined #ruby
unshadow has quit [Quit: leaving]
paulfm has joined #ruby
jherbst has joined #ruby
jherbst has quit [Client Quit]
gaganjyot has quit [Ping timeout: 240 seconds]
tier has quit [Ping timeout: 240 seconds]
mistermocha has joined #ruby
Soda has joined #ruby
oleo has joined #ruby
Versality has joined #ruby
hiyosi has joined #ruby
Channel6 has joined #ruby
nonks has joined #ruby
tier has joined #ruby
allcentury has joined #ruby
blackmesa has joined #ruby
mistermocha has quit [Ping timeout: 265 seconds]
Soda has quit [Remote host closed the connection]
joonty has quit [Quit: joonty]
papal has joined #ruby
moritzs has joined #ruby
Soda has joined #ruby
nateberkopec has joined #ruby
tlarevo_ has quit [Remote host closed the connection]
allcentu1 has joined #ruby
dangerousdave has joined #ruby
tlarevo has joined #ruby
allcentury has quit [Ping timeout: 240 seconds]
doodlehaus has joined #ruby
elcheckito has quit [Quit: WeeChat 1.0.1]
shortCircuit__ has quit [Remote host closed the connection]
mary5030 has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
elcheckito has joined #ruby
allcentu1 has quit [Ping timeout: 258 seconds]
yfeldblum has joined #ruby
tlarevo has quit [Ping timeout: 250 seconds]
apeiros_ has joined #ruby
joonty has joined #ruby
zacts has quit [Ping timeout: 256 seconds]
Liendre has quit [Ping timeout: 264 seconds]
elcheckito has quit [Client Quit]
jasonwc21 has quit [Remote host closed the connection]
elcheckito has joined #ruby
zacts has joined #ruby
takle has quit [Remote host closed the connection]
elcheckito has quit [Client Quit]
jasonwc21 has joined #ruby
jasonwc21 has quit [Read error: Connection reset by peer]
elcheckito has joined #ruby
benzrf|offline is now known as benzrf
yfeldblum has quit [Ping timeout: 258 seconds]
apeiros_ has quit [Ping timeout: 264 seconds]
gaussblurinc1 has quit [Read error: Connection reset by peer]
gaussblurinc1 has joined #ruby
timonv_ has quit [Remote host closed the connection]
takle has joined #ruby
sailias has joined #ruby
jeremy04 has joined #ruby
Channel6 has quit [Quit: Leaving]
nonks has quit [Ping timeout: 250 seconds]
sambao21 has joined #ruby
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
IrishGringo has quit [Ping timeout: 245 seconds]
zammers has joined #ruby
timonv_ has joined #ruby
moritzs has quit [Ping timeout: 256 seconds]
lkba has joined #ruby
Ulrike_Rayne has joined #ruby
JBreit has left #ruby ["Leaving"]
timonv_ has quit [Remote host closed the connection]
psy_ has quit [Remote host closed the connection]
nvdpl has joined #ruby
nonks has joined #ruby
allcentu1 has joined #ruby
Kricir has joined #ruby
bmurt has left #ruby [#ruby]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
psy_ has joined #ruby
IrishGringo has joined #ruby
chris___ has joined #ruby
<jhass> apeiros: new rubies
<apeiros> again?!?
<apeiros> damit!
<apeiros> thx
workmad3 has quit [Ping timeout: 255 seconds]
apeiros changed the topic of #ruby to: Ruby 2.1.5; 2.0.0-p598; 1.9.3-p551: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
psy__ has joined #ruby
dyu has joined #ruby
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
foooobear has quit [Quit: (null)]
Hijiri has quit [Quit: WeeChat 1.0.1]
freerobby has joined #ruby
asdlkdsajsda has joined #ruby
<asdlkdsajsda> I'm building a custom Rakefile and I can't figure out why the tests are being called when I run rake server any idea? https://gist.github.com/pothibo/0433130bbf5ab6ddc30d
boombadaroomba has joined #ruby
francisfish has joined #ruby
fjfish has quit [Read error: Connection reset by peer]
troulouliou_dev has quit [Quit: Leaving]
dkb20k has quit [Remote host closed the connection]
<linduxed> it's most likely running the default task after you've run the task specified
fsapo has quit [Ping timeout: 255 seconds]
wjimenez5271 has quit [Ping timeout: 272 seconds]
rdark has quit [Ping timeout: 272 seconds]
<linduxed> i don't know if it's a version specific thing for rake or if it's due to line 6 in rake.rb
<linduxed> but that would be my first guess
rudisimo has quit [Remote host closed the connection]
elcheckito has quit [Quit: WeeChat 1.0.1]
<linduxed> asdlkdsajsda: ^
elcheckito has joined #ruby
rdark has joined #ruby
rdark has quit [Client Quit]
rdark has joined #ruby
larissa has quit [Quit: Leaving]
<asdlkdsajsda> linduxed: I had the very same assumption and deleted line #6 to #21 and it still outputs the test
boombadaroomba has quit [Ping timeout: 255 seconds]
<asdlkdsajsda> linduxed: One thing to consider, it outputs test results, but it doesn't find my test.
<linduxed> could it be that you're calling the file rake.rb instead of Rakefile?
<asdlkdsajsda> I have like 4 tests, but the ouput is 0 test
fwaokda has joined #ruby
dideler has quit [Quit: dideler]
<linduxed> maybe it's evaluating the file top down and executing all the stuff
<linduxed> i dunno
chris___ has quit [Quit: leaving]
<asdlkdsajsda> linduxed: rake.rb?
<linduxed> in the gist it's called rake.rb
drawingthesun has quit [Read error: Connection reset by peer]
<asdlkdsajsda> Oh, sorry, it was to make sure the file highlight was working, the file is Rakefile ;)
<linduxed> ok
<asdlkdsajsda> (renamed it to avoid confusion)
danijoo has joined #ruby
<asdlkdsajsda> oh hang on a second
rudisimo has joined #ruby
dc_ has quit [Read error: Connection reset by peer]
gsd has joined #ruby
dc_ has joined #ruby
chris___ has joined #ruby
timonv_ has quit [Remote host closed the connection]
terlar has joined #ruby
<asdlkdsajsda> nop :/ thought it had to do with git
Hanmac has quit [Ping timeout: 244 seconds]
timonv_ has joined #ruby
danijoo_ has quit [Ping timeout: 250 seconds]
<pontiki> asdlkdsajsda: try adding --trace to the rake command and see what it's trying to do
<pontiki> asdlkdsajsda: rake server --trace
zB0hs has joined #ruby
Fraeon has quit [Remote host closed the connection]
Andriama1itra has quit [Remote host closed the connection]
sevenseacat has quit [Remote host closed the connection]
fandi has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
jasonwc21 has joined #ruby
<pontiki> ok, weird as....
<asdlkdsajsda> hell yeah.
knight- has left #ruby ["WeeChat 0.4.2"]
<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: those are not equivalent
dyu has quit [Ping timeout: 246 seconds]
<apeiros> >> a = b = []; a << 1; b
<eval-in__> apeiros => [1] (https://eval.in/220938)
<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
patrick99e99 has joined #ruby
<olivier_bK> ok
<olivier_bK> it's true :)
sambao21 has joined #ruby
DaniG2k has quit [Ping timeout: 244 seconds]
Hijiri has quit [Ping timeout: 250 seconds]
mleung has joined #ruby
kobain has joined #ruby
thagomizer has joined #ruby
benzrf|offline is now known as benzrf
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
pietr0 has joined #ruby
nonks has joined #ruby
sambao21 has quit [Client Quit]
mleung has quit [Client Quit]
francisfish has quit [Remote host closed the connection]
coderhs has joined #ruby
TomyWork has quit [Ping timeout: 250 seconds]
rkalfane has joined #ruby
shredding has quit [Quit: shredding]
paulfm_ has joined #ruby
ikaros has quit [Quit: Ex-Chat]
paulfm has quit [Ping timeout: 255 seconds]
nonks has quit [Ping timeout: 250 seconds]
takle has joined #ruby
bMalum has quit [Quit: bMalum]
jenrzzz has joined #ruby
blackmesa has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby
yfeldblum has joined #ruby
fantazo has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
sargas has joined #ruby
sambao21 has joined #ruby
<shevy> come olivier_bK
<shevy> use the source
takle has quit [Ping timeout: 250 seconds]
Macaveli has quit [Ping timeout: 240 seconds]
Obscene_CNN has joined #ruby
Versality has quit [Quit: Be back later ...]
Rahul_Roy_ has joined #ruby
Versality has joined #ruby
gr33n7007h has quit [Changing host]
gr33n7007h has joined #ruby
SCHAAP137 has joined #ruby
finferl has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
apeiros has quit [Remote host closed the connection]
<shevy> why was there so new a release?
<shevy> been about 3 weeks or so since the last
gregf has quit [Quit: WeeChat 1.0.1]
apeiros has joined #ruby
dc_ has joined #ruby
apeiros__ has joined #ruby
<jhass> another CVE shevy
oo_ has quit [Ping timeout: 272 seconds]
roolo has quit [Quit: AAAAaaaaAAAAAAA]
<shevy> ack
<shevy> "CVE-2014-8090: Another Denial Of Service XML Expansion"
jimbach has quit [Remote host closed the connection]
<shevy> XML!!!
tlarevo has joined #ruby
ptierno has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 264 seconds]
timonv_ has joined #ruby
Obscene_CNN has left #ruby [#ruby]
takle has joined #ruby
RitterJack has quit [Remote host closed the connection]
hamakn_ has quit [Remote host closed the connection]
hamakn has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
takle has quit [Remote host closed the connection]
Hanmac has joined #ruby
takle has joined #ruby
shredding has joined #ruby
paulfm has joined #ruby
Morrolan has quit [Ping timeout: 245 seconds]
fantazo has joined #ruby
DaniG2k_ has quit [Quit: leaving]
jasonwc21 has joined #ruby
mistermocha has joined #ruby
hamakn has quit [Ping timeout: 258 seconds]
apeiros has quit [Remote host closed the connection]
paulfm_ has quit [Ping timeout: 265 seconds]
Morrolan has joined #ruby
mikecmpbll has quit [Ping timeout: 256 seconds]
takle has quit [Ping timeout: 264 seconds]
shredding has quit [Quit: shredding]
nvdpl has joined #ruby
nvdpl has quit [Client Quit]
kamil has quit [Quit: Linkinus - http://linkinus.com]
<shevy> well here we go
<shevy> another version is being compiled
zacts has quit [Ping timeout: 250 seconds]
dtscode_ has joined #ruby
zacts has joined #ruby
Guest41617 is now known as grubles
grubles has quit [Changing host]
grubles has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
bMalum has joined #ruby
zxcvbnm has joined #ruby
hamakn has joined #ruby
boombadaroomba has joined #ruby
corehook has quit [Remote host closed the connection]
troyready has joined #ruby
bricker`work has joined #ruby
boombadaroomba has quit [Remote host closed the connection]
zorak8 has joined #ruby
NoNMaDDeN has quit [Remote host closed the connection]
<arup_r> How can I convert such a string "c1: value1, c2: value2" to a Hash like {:c1 => 'value1', :c2 => 'value2'} ?
DLSteve_ has joined #ruby
Pupeno_ has quit [Read error: Connection reset by peer]
<PierreRambaud> arup_r, irb(main):003:0> eval "{c1: 'value1', c2: 'value2'}"
<PierreRambaud> => {:c1=>"value1", :c2=>"value2"}
Pumukel has quit [Ping timeout: 272 seconds]
florentferry has quit [Quit: florentferry]
boombadaroomba has joined #ruby
Pupeno has joined #ruby
florentferry has joined #ruby
<arup_r> I have a string input... I don't like eval
shock_one_ has quit [Quit: Be back later ...]
<shevy> arup_r split up your string
<shevy> into an Array
Hightower666 has quit [Quit: Copywight 2014 Elmer Fudd. All wights wesewved.]
<shevy> then you can do Hash[*array]
florentferry is now known as Flowrhent
DLSteve has quit [Ping timeout: 244 seconds]
<arup_r> >> "c1: value1, c2: value2".split(/[,:]/
<eval-in__> arup_r => /tmp/execpad-aab04e30b6c7/source-aab04e30b6c7:3: syntax error, unexpected keyword_rescue, expecting ')' ... (https://eval.in/221004)
zxcvbnm has left #ruby [#ruby]
<arup_r> >> "c1: value1, c2: value2".split(/[,:]/)
<eval-in__> arup_r => ["c1", " value1", " c2", " value2"] (https://eval.in/221005)
<gr33n7007h> >> Hash[*"c1: value1, c2: value2".split]
<eval-in__> gr33n7007h => {"c1:"=>"value1,", "c2:"=>"value2"} (https://eval.in/221006)
<arup_r> >> "c1: value1, c2: value2".split(/[,:]/).to_h
<eval-in__> arup_r => wrong element type String at 0 (expected array) (TypeError) ... (https://eval.in/221007)
<shevy> >> Hash[*"c1","value1","c2","value2"]
<eval-in__> shevy => {"c1"=>"value1", "c2"=>"value2"} (https://eval.in/221008)
<arup_r> >> Hash[*"c1: value1, c2: value2".split(/[,:]/)]
<eval-in__> arup_r => {"c1"=>" value1", " c2"=>" value2"} (https://eval.in/221009)
<arup_r> Ok good idea
<shevy> almost
<PierreRambaud> arup_r, If it's a JSON, you can simply execute JSON.parse
<shevy> now one .strip and you solved it arup_r
<shevy> possibly through a .map
danijoo_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
enebo has quit [Quit: enebo]
<GeorgesLeYeti> Hi
<shevy> hi Georges the yeti
<arup_r> shevy: Thanks for help
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
danijoo has quit [Ping timeout: 250 seconds]
graydot has quit [Quit: graydot]
thsig has joined #ruby
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
sailias has quit [Quit: Leaving.]
sailias1 has joined #ruby
rkalfane has joined #ruby
fabrice31 has joined #ruby
godd2 has quit [Ping timeout: 244 seconds]
siwica1 has quit [Remote host closed the connection]
siwica has joined #ruby
olivier_bK has quit [Ping timeout: 272 seconds]
rshetty has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 265 seconds]
<shevy> arup_r \o/
pdtpatrick_ has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
klmlfl has joined #ruby
sargas has quit [Quit: Leaving]
kireevco has quit [Quit: Leaving.]
<shevy> rubyv
<shevy> ruby 2.1.5p273 (2014-11-13 revision 48405) [i686-linux]
<shevy> tada!
<shevy> >> RUBY_VERSION
<eval-in__> shevy => "2.1.3" (https://eval.in/221010)
<shevy> hah!
klmlfl_ has quit [Ping timeout: 265 seconds]
<shevy> that bot is out-of-date!
zammers has joined #ruby
kireevco has joined #ruby
<arup_r> hehehehe
EminenceHC has quit [Remote host closed the connection]
rshetty has quit [Read error: No route to host]
rshetty has joined #ruby
zammers has quit [Client Quit]
zacts has quit [Quit: leaving]
tvw has quit [Ping timeout: 265 seconds]
fabrice31 has quit [Ping timeout: 250 seconds]
chipotle has joined #ruby
apeiros has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
dkphenom has joined #ruby
jasonwc21 has quit [Remote host closed the connection]
Hijiri has joined #ruby
desp has joined #ruby
timonv_ has quit [Remote host closed the connection]
dkb20k has joined #ruby
mleung has joined #ruby
TPBallbag has quit [Remote host closed the connection]
deric_skibotn has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby
gsd has joined #ruby
dangerousdave has joined #ruby
dangerousdave has quit [Client Quit]
tlarevo has quit [Remote host closed the connection]
wallerdev has joined #ruby
aspiers has quit [Ping timeout: 244 seconds]
TPBallbag has joined #ruby
Ulrike_Rayne has quit [Quit: ZNC - http://znc.in]
dkb20k has quit [Ping timeout: 250 seconds]
yfeldblum has joined #ruby
bklane has quit [Remote host closed the connection]
sambao21 has joined #ruby
iamjarvo has joined #ruby
bklane has joined #ruby
tyll_ is now known as tyll
chthon has quit [Ping timeout: 245 seconds]
ndrei has joined #ruby
finferl has quit [Remote host closed the connection]
blackmesa has joined #ruby
nkumari has joined #ruby
GeorgesLeYeti has quit [Quit: Leaving]
nkumari has quit [Remote host closed the connection]
nkumari has joined #ruby
GreatSUN has quit [Ping timeout: 246 seconds]
lxsameer has joined #ruby
lxsameer has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
josephndenton has joined #ruby
JohnBat26 has joined #ruby
bklane has quit []
zB0hs has quit [Read error: No route to host]
oo_ has joined #ruby
nkumari has quit [Remote host closed the connection]
<shevy> ericwood_ it's a funny idea
zacts has joined #ruby
<ericwood_> it's a really smart idea
pdtpatrick_ has joined #ruby
Xeago_ has quit [Ping timeout: 264 seconds]
<arup_r> Suppose, I have a file a.txt and I would like to convert it to a bin file like a.bin
Mateon1 has joined #ruby
wjimenez5271 has quit [Remote host closed the connection]
<arup_r> IO::binread is not what I am looking for
wjimenez5271 has joined #ruby
bMalum has quit [Quit: bMalum]
josephndenton has quit [Ping timeout: 244 seconds]
<benzrf> arup_r: what does that mean
<benzrf> "convert it to a bin file"?
<arup_r> binary file
<benzrf> what does that mean...
lidaaa has joined #ruby
<shevy> arup_r what do you want to do with a .bin file exactly
<shevy> it is so faro nly a meaningless file extension
<shevy> *far only
dtscode_ has left #ruby [#ruby]
<shevy> damn it... I am starting to type like benzrf :(
rdark has quit [Quit: leaving]
oo_ has quit [Ping timeout: 272 seconds]
nonks has joined #ruby
apeiros has quit [Remote host closed the connection]
<arup_r> I tried str = IO::binread("#{__dir__}/out.txt") ; IO::binwrite("#{__dir__}/a.bin", str)
mikecmpbll has joined #ruby
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<arup_r> But didn't convert to binary at all
pengin has quit [Remote host closed the connection]
nkumari has joined #ruby
pengin has joined #ruby
desp has quit [Quit: This computer has gone to sleep]
rudisimo has quit [Read error: Connection reset by peer]
rudisimo has joined #ruby
Synthead has quit [Quit: Leaving]
Synthead has joined #ruby
bMalum has joined #ruby
<shevy> arup_r man
<shevy> arup_r you use binread for binary stuff
<shevy> like a .pdf file
<shevy> please don't be silly
graydot has joined #ruby
<shevy> File.binread("foo.jpg")
pengin has quit [Ping timeout: 245 seconds]
<arup_r> Ohh!.. I thought it will convert text to binary.. :p :-(
<arup_r> I am a silly man only shevy
nvdpl has joined #ruby
<arup_r> I am good in some areas.. not all
drkyro has quit [Quit: Textual IRC Client: www.textualapp.com]
sepp2k has quit [Quit: Konversation terminated!]
baweaver has joined #ruby
<toretore> also, there's no such thing as a "non-binary file" except on windows
lolmaus has quit [Quit: Konversation terminated!]
pengin has joined #ruby
British-Dodo has quit [Ping timeout: 255 seconds]
Toad` has joined #ruby
<arup_r> toretore: How are you ? Long time no see.. :-)
hmsimha has joined #ruby
moritzs has joined #ruby
jimbach has joined #ruby
baweaver has quit [Remote host closed the connection]
Spami has joined #ruby
Spami has quit [Client Quit]
<pipework> shevy: Why not just File.new with File::BINARY
mferrier has joined #ruby
<shevy> pipework hey that is not my code
CustosL1men has joined #ruby
<shevy> it's arup_r who wants to handle binary files
<shevy> our task is to just send arup_r in circles
<pipework> shevy: just saiyan.
<shevy> pipework yeah no problem. my brain is not really activated though
<shevy> arup_r is much deeper in it
<shevy> he probably wants to generate a .cue file
nrsk has quit [Excess Flood]
uptownhr has quit [Ping timeout: 246 seconds]
<arup_r> what is .cue file BTW ?
nrsk has joined #ruby
apeiros has joined #ruby
<shevy> for .iso files, like games where you have to mount it properly
<arup_r> ok
nateberkopec has quit [Quit: Leaving...]
crantron has joined #ruby
pdtpatrick_ has quit [Read error: Connection reset by peer]
nonks has quit [Ping timeout: 250 seconds]
whoisjake has joined #ruby
bMalum has quit [Quit: bMalum]
andikr has quit [Remote host closed the connection]
baweaver has joined #ruby
<shevy> it's easy on windows; programs like daemon-tools are available
<shevy> on linux it is always extra work :(
takle has joined #ruby
<pipework> It's so easy on linux too.
<pipework> But you can download software so you can continue being afraid of the command line.
TPBallbag has quit [Remote host closed the connection]
atomical has quit [Quit: Textual IRC Client: www.textualapp.com]
ptrrr has joined #ruby
tobago has quit [Quit: Verlassend]
kirun has joined #ruby
phutchins has joined #ruby
seanp2k has joined #ruby
anaeem1 has joined #ruby
yxhuvud has quit [Remote host closed the connection]
hiyosi has quit [Ping timeout: 265 seconds]
sevvie has joined #ruby
zacts has quit [Quit: leaving]
Norrin has joined #ruby
phutchins has quit [Ping timeout: 265 seconds]
jimbach has quit [Remote host closed the connection]
seanp2k has left #ruby [#ruby]
bMalum has joined #ruby
ghr has joined #ruby
nateberkopec has joined #ruby
vimer has joined #ruby
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> >> [$-W, $-a]
<eval-in__> eam => [1, false] (https://eval.in/221038)
<eam> what are those variables?
<apeiros> didn't find $-W, though
<apeiros> but $-CHAR is usually corresponding to -CHAR flag in ruby
<eam> it appears $- and any single character is valid
<eam> very odd
<eam> neat!
ghostmoth has quit [Quit: ghostmoth]
<apeiros> and then it'd be:
<apeiros> -W[level=2] Turns on verbose mode at the specified level without printing the version message at the beginning. The level can be;
jheg has joined #ruby
doodlehaus has joined #ruby
chipotle has quit [Quit: cya]
ptrrr has quit [Quit: ptrrr]
TPBallbag is now known as nick___
apeiros__ has quit [Remote host closed the connection]
mattstra_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
apeiros__ has joined #ruby
nick___ is now known as TPBallbag
mattstra_ has joined #ruby
mferrier_ has joined #ruby
duncannz has joined #ruby
<eam> a coworker posed a puzzle to me, using all of and only the characters $$$$--::<<>>??Wip
tvw has joined #ruby
<eam> print the number 1
mistermocha has quit [Remote host closed the connection]
<apeiros> good luck
<apeiros> shouldn't be that many permutations :-p
<eam> I got as far as
<eam> >> $><<1
<eval-in__> eam => 1#<IO:<STDOUT>> (https://eval.in/221041)
dangerousdave has joined #ruby
mistermocha has joined #ruby
<apeiros> well, $><<$-W
<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
cleopatra has joined #ruby
lmickh has joined #ruby
djbkd has joined #ruby
baweaver has joined #ruby
ghr has quit [Ping timeout: 255 seconds]
auxbuss has joined #ruby
adac has quit [Ping timeout: 272 seconds]
kln2d has joined #ruby
ldnunes has joined #ruby
kln2d has quit [Client Quit]
bbloom_ has quit [Quit: Textual IRC Client: www.textualapp.com]
pa3ce has joined #ruby
rodfersou has quit [Quit: leaving]
tier has quit [Ping timeout: 264 seconds]
dgrijuela has joined #ruby
urtokk has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
elcheckito has quit [Ping timeout: 244 seconds]
<yeukhon> Hanmac: neat! Thank!
<yeukhon> thanks*
jerius_ has joined #ruby
nkumari has joined #ruby
delianides has quit [Ping timeout: 240 seconds]
dgrijuela has quit [Client Quit]
urtokk has left #ruby [#ruby]
delianides has joined #ruby
sambao21 has joined #ruby
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
louism2wash has quit [Quit: This computer has gone to sleep]
reinaldob has quit [Remote host closed the connection]
jerius has quit [Ping timeout: 258 seconds]
timonv_ has joined #ruby
crdpink2 has joined #ruby
urtokk has joined #ruby
billy_ran_away has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Quit: When shit goes downhill, just lower your standards.]
havenwood has quit []
jenrzzz has joined #ruby
crdpink has quit [Ping timeout: 245 seconds]
billy_ran_away has joined #ruby
<shevy> "The build only requires Visual Studio 2013 (i.e. it doesn?t require ?Dev14?)."
<shevy> k so how am I supposed to run this on linux
auxbuss has quit [Quit: I'm gone.]
nkumari has quit [Ping timeout: 272 seconds]
sambao21 has quit [Client Quit]
Mars` has joined #ruby
elcheckito has joined #ruby
benzrf is now known as benzrf|offline
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
auxbuss has joined #ruby
pa3ce has quit [Quit: Leaving]
pa3ce has joined #ruby
pengin has quit [Remote host closed the connection]
adac has joined #ruby
spider-mario has joined #ruby
pengin has joined #ruby
urtokk has quit [Quit: IRC for eric5 IDE]
Pumukel has joined #ruby
rshetty has quit [Remote host closed the connection]
Hijiri has joined #ruby
sevvie has quit [Quit: leaving]
JimmyNeutron has joined #ruby
baweaver has quit [Remote host closed the connection]
jheg has quit [Quit: jheg]
powersurge has joined #ruby
sambao21 has joined #ruby
pengin has quit [Ping timeout: 245 seconds]
klmlfl has quit [Remote host closed the connection]
<powersurge> any recommendations for writing tsv's? I was hoping that the csv object would just let me change the delimiter, but I dunno if it will
klmlfl has joined #ruby
AndyBotwin has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
agent_white has joined #ruby
Photism has joined #ruby
<pipework> powersurge: Why don't you know if it will?
shazaum has quit [Quit: This computer has gone to sleep]
<powersurge> ah, looks like you can
MattB2 has quit []
<powersurge> I was cmd+f ing for delimiter and variations and didn't see it, but it looks like I can use :col_sep
<powersurge> thanks
oo_ has joined #ruby
crdpink has joined #ruby
yeticry has quit [Ping timeout: 255 seconds]
<agent_white> Afternoon folks
jespada has quit [Ping timeout: 250 seconds]
mistermocha has quit [Remote host closed the connection]
crdpink2 has quit [Ping timeout: 255 seconds]
ndrei has joined #ruby
Mars` has quit [Ping timeout: 272 seconds]
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yeticry has joined #ruby
coderhs has quit [Ping timeout: 250 seconds]
mistermocha has joined #ruby
mistermocha has quit [Remote host closed the connection]
ctp has joined #ruby
oo_ has quit [Ping timeout: 240 seconds]
nvdpl has quit [Quit: ZZZzzz…]
mskaesz has joined #ruby
iamjarvo has joined #ruby
Toad` has quit [Ping timeout: 264 seconds]
Macaveli has quit [Ping timeout: 245 seconds]
mkaesz has quit [Ping timeout: 244 seconds]
i0n has quit [Quit: snooze]
matcouto has joined #ruby
lxsameer has quit [Ping timeout: 245 seconds]
rkalfane has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
baweaver has joined #ruby
raja has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
matcouto has quit [Client Quit]
sambao21 has joined #ruby
thsig has quit [Remote host closed the connection]
Trynemjoel has quit [Ping timeout: 265 seconds]
<shevy> damn it
<shevy> agent_white is here
<shevy> time to pull up the pants again
<agent_white> But it's no-pants Thursday!
nkumari has joined #ruby
* agent_white dances with no pants
<shevy> sorry agent_white
<shevy> we know all about your "special operations"
yxhuvud has joined #ruby
<agent_white> I've been found out?!?
einarj has joined #ruby
mferrier_ has quit [Remote host closed the connection]
nkumari has quit [Remote host closed the connection]
desp has quit [Quit: This computer has gone to sleep]
mferrier has joined #ruby
nkumari has joined #ruby
havenwood has joined #ruby
kireevco has quit [Read error: Connection reset by peer]
kireevco1 has joined #ruby
Trynemjoel has joined #ruby
coderhs has joined #ruby
hornairs has quit [Quit: hornairs]
matcouto has joined #ruby
kumarat9pm has joined #ruby
<shevy> you are too well known
<shevy> ever since Matrix I
<shevy> we know what to expect about agents
timonv_ has quit [Remote host closed the connection]
<agent_white> Just be lucky agent_dark doesn't roam around these parts.
Pumukel has quit [Ping timeout: 265 seconds]
matcouto has quit [Client Quit]
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
shock_one_ has joined #ruby
<powersurge> first lang I knew was PHP
nvdpl has joined #ruby
<havenwood> omosoj: apparently i'm a shell programmer ;(, according to: https://osrc.dfm.io/havenwood/
<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.]
shock_one_ has quit [Ping timeout: 264 seconds]
dc_ has joined #ruby
Freemason has joined #ruby
Eboroma has joined #ruby
<ddv> I would pick swift over objective c
sambao21 has joined #ruby
thsig has joined #ruby
<jhass> apeiros: ^
<omosoj> ddv, i heard that's not going to be used widely for a while
Eboroma was kicked from #ruby by apeiros [unwelcome spam]
<shevy> soahccc lol
<j2p2> omosoj, try out a functional language! ;D
<apeiros> hurray, ban list is ful
<apeiros> *full
<ddv> no idea but it seems swift was meant to be better in everyway than objectivec
<shevy> soahccc I'm gonna collect this into my IRC quotes page from #ruby
<havenwood> omosoj: RubyMotion and MobiRuby are worth looking at and ready now. Though Swift is ready now as well.
jerius_ has quit []
dkb20k has joined #ruby
<pipework> ddv: I wouldn't.
jasonwc21 has joined #ruby
<pipework> second hand information I have from obj-c+swift developers is that you can do most things in swift, but you'll still need obj-c.
thsig_ has joined #ruby
<powersurge> obj-c would be similar to ruby
<soahccc> shevy: I feel honored, tag it with "truth" :D
<powersurge> they both borrowed a bunch of ideas from smalltalk
fantazo has quit [Ping timeout: 240 seconds]
<powersurge> I mean not *crazy* similar, but there are some common ideas
jerius has joined #ruby
<powersurge> js is nice too because it introduces you to prototypical inheritance
<shevy> apeiros is doing cleanup action
<powersurge> which is great for expanding your horizons and learning different object models
<shevy> hey powersurge
<powersurge> plus you get into the world of async
<shevy> we can do Struct.new in ruby
Pumukel has joined #ruby
<shevy> Sword = Struct.new(:length, :weight)
<powersurge> re: prototypical inheritance?
<shevy> sword = Sword.new(120, 4.5) # => #<struct Sword length=120, weight=4.5>
<shevy> well that's a struct object
<shevy> I dunno why people do not use it more often in ruby
thsig has quit [Ping timeout: 272 seconds]
renderful has quit [Remote host closed the connection]
ghostmoth has joined #ruby
<powersurge> mmm
<powersurge> very interesting
d4nku has quit [Ping timeout: 272 seconds]
dkb20k has quit [Ping timeout: 255 seconds]
jasonwc21 has quit [Client Quit]
<pipework> shevy: Because structs are frustrating. Openstructs aren't so frustrating.
renderfu_ has joined #ruby
baweaver has quit [Remote host closed the connection]
dseitz has joined #ruby
pengin has joined #ruby
<omosoj> RubyMotion and MobiRuby... what do you guys think of them?
<pipework> I try not to.
<shevy> lol pipework
<shevy> omosoj I think I heard RubyMotion before. but I dont have any idea what it is
wallerdev has joined #ruby
<shevy> for me Ruby is enough. Anything longer than that is too much
tomeara has joined #ruby
gaganjyot has joined #ruby
gaganjyot has quit [Max SendQ exceeded]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
josephndenton has joined #ruby
sailias has quit [Quit: Leaving.]
gaganjyot has joined #ruby
sailias has joined #ruby
Morkel has quit [Quit: Morkel]
jheg has quit [Quit: jheg]
b3itz has joined #ruby
gaganjyot has quit [Client Quit]
boombadaroomba has quit [Remote host closed the connection]
chipotle has joined #ruby
<b3itz> ok guys i need help... http://pastebin.com/pgmbVgfm
<b3itz> on line 108, im apparently not passing the correct number of arguments
fantazo has joined #ruby
<b3itz> im not exactly fluent in ruby yet...
coderhs has quit [Ping timeout: 245 seconds]
<b3itz> can someone tell me why its doing that and how to fix it??
diegoviola has quit [Quit: WeeChat 1.0.1]
<shevy> pls dont use pastebin
<b3itz> why?
<shevy> where is the syntax colouring
<b3itz> huh? lol
<havenwood> b3itz: gist.github.com
josephndenton has quit [Ping timeout: 255 seconds]
<shevy> precisely
<ddv> b3itz, you need to pass 4 arguments instead of 2
vifino has joined #ruby
<havenwood> b3itz: check the channel topic
<shevy> let's do this
<b3itz> ok thanks havenwood... I'll use that from now on
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
<shevy> create_writefile(ARGV[1], square_area)
<shevy> def create_writefile(file, square_area, side1, side2)
<shevy> File.open(ARGV[1], 'a') do |file|
<ddv> b3itz, also you appear to do nothing with parameters 3 and 4 in that method
<shevy> this is no good
<shevy> you already pass ARGV so why use it again inside the method
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
mathias2 has quit [Ping timeout: 265 seconds]
<shevy> the point of the method is that you can abstract away something like ARGV, into a parameter of said method, and then continue to work with it
<b3itz> shevy: instead of argv i guess i can use file?
<havenwood> b3itz: you're currently saying there's an error then exiting with a zero exit status, indicating success
<shevy> simply use the parameter you passed there; in your example ARGV will become the value of the variable file inside of your method
<havenwood> b3itz: abort "Error: Incorrect number of arguements\n\nOK. Goodbye."
benzrf|offline is now known as benzrf
<havenwood> b3itz: ^ nonzero exit status
<shevy> also your method signature confuses me - def create_writefile(file, square_area, side1, side2)
<b3itz> thats not my issue havenwood
<shevy> this requires 4 mandatory arguments
<shevy> you have more than one issue in that code ;)
<havenwood> b3itz: if you wanted the current behavior, you'd: warb "Error: Incorrect number of arguements\n\nOK. Goodbye."
<b3itz> ok i messed something else up
<b3itz> hold on lol
<havenwood> warn*
Jesterman81 has joined #ruby
<b3itz> this program is a mess
<shevy> create_writefile(ARGV[1], square_area)
<havenwood> b3itz: just saying, it's something wrong with your app
<shevy> this can not possibly work - you pass 2 arguments, but your method signature demands 4
<b3itz> wtf i have some methods missing
<b3itz> what a mess
<shevy> you need to design your methods
<shevy> do you want it to require 4 arguments?
<havenwood> b3itz: uniformly indent with two spaces, it matters!
<shevy> if so then you must also pass 4 arguments when you invoke them
<b3itz> i take back my question... let me fix all this mess lol
jleishman has quit [Quit: Be back later ...]
<shevy> ARGV is an annoying beast
<shevy> preferrably do not use it inside of a method; put it onto a variable, and then refer to that inside of your method
emmesswhy has joined #ruby
<b3itz> dammit im missing half of my program >.<
jimbach has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> perhaps someone stole it
qhartman has joined #ruby
chris___ has quit [Ping timeout: 244 seconds]
<havenwood> elves..
<shevy> hehe
<havenwood> closet elves, cupboard elves
<shevy> is this the six elves and one old dwarf in a pub story again
<havenwood> code theives!
baweaver has joined #ruby
<jhass> step 1: collect all the code. step 2: ??? step 3: profit!
<shevy> in step 2 theft occurred
<b3itz> stupid midgets >.< lol
oo_ has joined #ruby
lkba has joined #ruby
exadeci has quit [Quit: Connection closed for inactivity]
Snarkz has joined #ruby
omosoj has quit [Ping timeout: 244 seconds]
procat has quit [Ping timeout: 244 seconds]
auxbuss has quit [Quit: I'm gone.]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
claymore has quit [Ping timeout: 250 seconds]
<b3itz> what exactly does this do? file.write("%-10s %-25s %-15s %-16s\n" % [average, sd, median, data])
<b3itz> i dont understand the %-10s etc...
<jhass> b3itz: lookup String#% and Kernel#printf
oo_ has quit [Ping timeout: 240 seconds]
<jhass> or was it Kernel#sprintf where the main docs live? I always forget
<b3itz> no idea
jamgood96 has joined #ruby
<jhass> look it up
claymore has joined #ruby
<b3itz> basically its passing a string to the method without declaring it in the def
<b3itz> i just dont understand how it works
jamgood96 has left #ruby [#ruby]
drkyro has joined #ruby
drkyro has quit [Client Quit]
doev has quit [Ping timeout: 255 seconds]
Rahul_Roy_ has quit [Quit: Connection closed for inactivity]
<shevy> no
<shevy> these are formatters
<shevy> '%3s' % '1' will become ' 1'
<shevy> '%03d' % 3 # => '003'
<shevy> '%.3f' % '3.0'.to_f # => '3.000'
Pumukel has quit [Remote host closed the connection]
vifino has quit [Ping timeout: 272 seconds]
<shevy> b3itz in the example, I think -10 means to pad onto the left side up to 10
qhartman has quit [Quit: Ex-Chat]
<shevy> so you will have a properly aligned line
coderhs has joined #ruby
<shevy> into that file
<b3itz> hmmm ok thanks dude
claymore has quit [Read error: Connection reset by peer]
<shevy> b3itz just open irb and play with it; you'll understand it the moment you apply it yourself
claymore has joined #ruby
Flowrhent has left #ruby [#ruby]
<b3itz> im still getting an issue when i try to print the headers
vifino has joined #ruby
<shevy> man that code is no good
jeremy04 has quit [Ping timeout: 272 seconds]
<shevy> you must save this with a .rb ending
<shevy> like test.rb ok?
<shevy> also when you have this:
<shevy> def calcCircleArea(side1, side2)
<shevy>
<shevy> end
<shevy> return ((side1*2) + (side2*2))
<shevy> you have a tab - replace it with 2 spaces; and don't add newlines before the method body really for such a small method
<shevy> also you did not tell which error you have
<b3itz> ill fix that later.. not too important now
<b3itz> line 77
<shevy> it's important!
<shevy> we have to look at it!!!
<b3itz> wrong number of arguments
<b3itz> lol im sorry!
<shevy> are you on linux?
<b3itz> yes
<b3itz> using geanie
<shevy> ok good
<b3itz> geany..
<shevy> simply copy paste the error
<shevy>
<shevy> create_writefile(ARGV[1], "Shape Type", "Area", "Perimeter", "Data\n")
boombadaroomba has joined #ruby
<b3itz> `create_writefile': wrong number of arguments (5 for 2) (ArgumentError) from midterm.rb:77:in `<main>'
<shevy> how many parameters do you pass
wasamasa is now known as {{{
<b3itz> 5?
{{{ is now known as }}}
<shevy> yes
<shevy> and how many does your method allow?
platoscave has joined #ruby
<b3itz> 2....
<shevy> yes
<b3itz> poop
}}} is now known as wasamasa
<shevy> so there are two ways
<shevy> (1) pass only 2 methods
<shevy> (2) modify your method to allow 5
<shevy> well there are more than two ways of course
luksaur has quit [Quit: Leaving]
<shevy> you could specify your method to allow an optional amount of arguments too
<b3itz> yes that one
<b3itz> i want that one lol
<shevy> ok example is best
<shevy> >> def foo(*i); end; foo; foo 1; foo 2,3; foo 2,3,4
<eval-in__> shevy => nil (https://eval.in/221067)
<shevy> ignore the nil return value there
<shevy> do you see that we invoke the method 4x ?
baweaver has quit [Remote host closed the connection]
<shevy> all calls very valid
<shevy> so now you know, if you use * there, as for the last argument, you can have an optional amount of arguments into your method
fabrice31 has joined #ruby
<shevy> all calls *were valid
nkumari has quit [Remote host closed the connection]
<shevy> I am sitting 30° towards my monitor again, the keyboard is also off - I can not properly read and type ... :\
<b3itz> so i need to change it todef create_writefile(file, square_area, *)
<b3itz> ?
kl has joined #ruby
<b3itz> i dont think i follow lol
<shevy> no
michaeldeol has joined #ruby
<shevy> have you not looked at the example above
<kl> What does a double-quoted \number represent?
<kl> i.e. "\3"
<shevy> >> "\3"
<eval-in__> shevy => "\u0003" (https://eval.in/221068)
russt has joined #ruby
<shevy> I guess binary something
<b3itz> i have shevy ... i dont... so the *i means any number of ints?
<kl> >> "\9"
<eval-in__> kl => "9" (https://eval.in/221069)
<kl> It's odd
<shevy> b3itz why do you say ... ints
<b3itz> because of the i?
<kl> Oh, octal.
hmsimha has joined #ruby
<shevy> i does not stand for int
<shevy> you need to control your brain, it tries to confuse you
ndrei has quit [Ping timeout: 250 seconds]
roolo has joined #ruby
<b3itz> >.<
<b3itz> well, im looking at another set of code
<b3itz> and its confusing me
<shevy> I use i because it is short
vifino has quit [Remote host closed the connection]
<shevy> you use file and square_area
michaeldeol has quit [Client Quit]
<shevy> is this your own code
<b3itz> see how on line 29 and 37
<shevy> you forgot to save with .rb end :)
<b3itz> classmates
<b3itz> from another project
<b3itz> grr lol
<shevy> yeah he writes into a text file there
<shevy> with padding
<b3itz> right, how the hell did he pass those strings?
<shevy> what do you mean
<shevy> def create_writefile(file, average, sd, median, data)
<shevy> file.write("%-10s %-25s %-15s %-16s\n" % [average, sd, median, data])
<b3itz> so the average, standard dev etc...
<b3itz> with quotes
<shevy> that is just the method signature
<b3itz> those are headers
<shevy> eh?
<b3itz> ok..
fabrice31 has quit [Ping timeout: 256 seconds]
<shevy> these are special formatting rules
<b3itz> so to me, it looks like hes passing 1 argv and 4 strings
<shevy> % is a method
<shevy> b3itz
<shevy> why are you not thinking
<shevy> you write:
<b3itz> i dont think very well
<shevy> it looks like he is passing 1 argv
dangerousdave has joined #ruby
<shevy> so let me paste myself
<shevy> <shevy> def create_writefile(file, average, sd, median, data)
<shevy> how many arguments do you count there
zacts has joined #ruby
<b3itz> 5
<shevy> ok good and now go to where he invokes that method
<b3itz> 5
siwica1 has joined #ruby
<shevy> create_writefile(ARGV[1], "Average", "Standard Deviation", "Median", "Data\n")
<shevy> yes
siwica has quit [Ping timeout: 272 seconds]
<shevy> 5 matches 5
<shevy> :)
<b3itz> OH I SEE WHAT HE DID
<b3itz> i think
<shevy> wat
Eboroma has joined #ruby
nonks has joined #ruby
<shevy> he passes all five methods to his method
<shevy> erm
<shevy> now you got me
<shevy> he passes all five arguments to his method
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
anaeem1 has quit [Remote host closed the connection]
anaeem1 has joined #ruby
m4rCsi_ has joined #ruby
platoscave has quit [Ping timeout: 240 seconds]
<Eboroma> http://i.imgur.com/0JDp2.jpg from spacedicks
m4rCsi has quit [Ping timeout: 255 seconds]
<shevy> damn
<shevy> apeiros, Eboroma is back
ferr has joined #ruby
baweaver has joined #ruby
nonks has quit [Ping timeout: 250 seconds]
<Eboroma> you are a..
<Eboroma> traitor
<shevy> die Eboroma
<Eboroma> Eboroma is dead
<shevy> no you are still here
<Eboroma> why not
<shevy> * apeiros has kicked Eboroma from #ruby (unwelcome spam)
billy_ran_away has quit [Max SendQ exceeded]
<shevy> because you are not wanted here anymore
billy_ran_away has joined #ruby
beneggett has joined #ruby
<Eboroma> i killed him
starless has joined #ruby
<Eboroma> now you are alone
platoscave has joined #ruby
platoscave has quit [Max SendQ exceeded]
anaeem1 has quit [Ping timeout: 272 seconds]
Jesterman81 has quit [Quit: Jesterman81]
<shevy> Eboroma he'll be back soon
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Eboroma> no he want
<b3itz> eeewwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
<Eboroma> so I can spam you
<Eboroma> with reddit
Pumukel has joined #ruby
<shevy> these are your final moments
tercenya has left #ruby [#ruby]
tercenya has joined #ruby
tercenya has quit []
tercenya has joined #ruby
chrishough has joined #ruby
Eboroma has left #ruby [#ruby]
timonv_ has joined #ruby
aclearma_ has quit [Quit: I'm out!]
tier_ has quit [Ping timeout: 264 seconds]
ghostmoth has quit [Quit: ghostmoth]
jheg has joined #ruby
<apeiros> thought he wouldn't come back
rrva has joined #ruby
delianides has quit [Remote host closed the connection]
diegoviola has joined #ruby
Xeago has joined #ruby
<rrva> having problems which I though "bundle install" would solve, but no luck: https://gist.github.com/rrva/c9961d9205cb1296aa4b
nvdpl has quit [Quit: ZZZzzz…]
omosoj has joined #ruby
djbkd has quit [Remote host closed the connection]
mskaesz has quit [Remote host closed the connection]
claymore has quit [Quit: Leaving]
whoisjake has quit []
<havenwood> rrva: rake is in the Gemfile?
d4nku has joined #ruby
parabolize has joined #ruby
<rrva> havenwood: no, this is the weird part.
<rrva> looks like that
tesaf has quit [Quit: Lost terminal]
rshetty has joined #ruby
vifino has joined #ruby
awkwords has joined #ruby
djbkd has joined #ruby
lampd1 has joined #ruby
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> rrva: paste a link to a Gist of your Gemfile?
danijoo has joined #ruby
Snarkz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iceden has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
danijoo_ has joined #ruby
reset has quit [Remote host closed the connection]
rshetty has quit [Ping timeout: 265 seconds]
nkumari has joined #ruby
boombadaroomba has quit []
beef-wellington has quit [Ping timeout: 255 seconds]
kobain has quit [Read error: Connection timed out]
josephndenton has joined #ruby
kobain has joined #ruby
danijoo has quit [Ping timeout: 250 seconds]
kobain has quit [Max SendQ exceeded]
vifino has quit [Quit: Oh, what does this button do?]
kobain has joined #ruby
vifino has joined #ruby
kobain has quit [Max SendQ exceeded]
mathias2 has joined #ruby
reset has joined #ruby
tus has joined #ruby
josephndenton has quit [Ping timeout: 240 seconds]
DLSteve_ has quit [Quit: Leaving]
mathias2 has quit [Ping timeout: 250 seconds]
kobain has joined #ruby
zacts has quit [Quit: leaving]
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
Ankhers has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
louism2wash has joined #ruby
m8 has quit [Quit: Sto andando via]
beef-wellington has joined #ruby
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
Spami has joined #ruby
oo_ has joined #ruby
Mateon1 has quit [Ping timeout: 255 seconds]
adac has quit [Ping timeout: 264 seconds]
b3itz has quit [Ping timeout: 246 seconds]
Spami has quit [Client Quit]
nfk has quit [Quit: yawn]
tjbiddle has joined #ruby
econerd4ever has joined #ruby
Spami has joined #ruby
josephndenton has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
ctp has joined #ruby
Spami has quit [Client Quit]
oo_ has quit [Ping timeout: 264 seconds]
aspires has quit []
dkphenom has joined #ruby
Spami has joined #ruby
nkumari has quit [Remote host closed the connection]
nkumari has joined #ruby
thsig_ has quit [Remote host closed the connection]
phutchins has quit [Ping timeout: 255 seconds]
baweaver has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
allcentury has quit [Ping timeout: 250 seconds]
charliesome has joined #ruby
benzrf|offline is now known as benzrf
sambao21 has quit [Quit: Computer has gone to sleep.]
samuel02 has quit [Remote host closed the connection]
jimbach has quit [Remote host closed the connection]
last_staff has joined #ruby
lmickh has quit [Ping timeout: 272 seconds]
doev has joined #ruby
sambao21 has joined #ruby
doodlehaus has quit [Remote host closed the connection]
econerd4ever has quit [Remote host closed the connection]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
doev has quit [Client Quit]
klmlfl_ has joined #ruby
hiyosi has joined #ruby
ptrrr has quit [Quit: ptrrr]
baweaver has joined #ruby
iamjarvo has joined #ruby
CustosL1men has quit [Ping timeout: 272 seconds]
thsig has joined #ruby
klmlfl has quit [Ping timeout: 256 seconds]
usrj has joined #ruby
mferrier_ has joined #ruby
marr has joined #ruby
Mars` has joined #ruby
hiyosi has quit [Ping timeout: 255 seconds]
_ixti_ has joined #ruby
djbkd has joined #ruby
lmickh has joined #ruby
mathias2 has joined #ruby
mferrier has quit [Ping timeout: 250 seconds]
takle has joined #ruby
ixti has quit [Ping timeout: 255 seconds]
mferrier_ has quit [Ping timeout: 250 seconds]
ldnunes has quit [Quit: Leaving]
beilabs_ has joined #ruby
pengin has quit [Remote host closed the connection]
pengin has joined #ruby
mathias2 has quit [Ping timeout: 255 seconds]
andrewlio has quit [Quit: Leaving.]
sailias has quit [Quit: Leaving.]
dkb20k has joined #ruby
Versality has quit [Quit: Lingo: www.lingoirc.com]
beilabs_ has quit [Ping timeout: 255 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
pengin has quit [Ping timeout: 245 seconds]
graydot has quit [Quit: graydot]
gregf has joined #ruby
mistermocha has joined #ruby
jobewan has quit [Quit: Leaving]
otherj has joined #ruby
dkb20k has quit [Ping timeout: 265 seconds]
codezomb has joined #ruby
ripnix has joined #ruby
ripnix has quit [Client Quit]
Nogbit has joined #ruby
ecstaticpessimst has joined #ruby
allcentury has joined #ruby
chipotle has quit [Remote host closed the connection]
louism2wash has quit [Quit: This computer has gone to sleep]
chipotle has joined #ruby
mkaesz has joined #ruby
<ecstaticpessimst> I have a question, why is it that when I convert 255 to a char with 255.chr
<ecstaticpessimst> I get "\xFF"
spider-mario has quit [Read error: Connection reset by peer]
<ecstaticpessimst> but if I do the same to 126
Hijiri has quit [Ping timeout: 240 seconds]
<ecstaticpessimst> I get "~"
<havenwood> >> "~".ord
<eval-in__> havenwood => 126 (https://eval.in/221074)
beneggett has quit [Ping timeout: 258 seconds]
<ecstaticpessimst> How can I get 126 to print in hex notation
Soda has joined #ruby
zB0hs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tlarevo has joined #ruby
kasperti_ has joined #ruby
jlast has quit [Remote host closed the connection]
jlast has joined #ruby
<ecstaticpessimst> or is 126 in hex notation the same as "~"
samuel02 has joined #ruby
livingstn has quit []
mkaesz has quit [Ping timeout: 244 seconds]
<mostlybadfly> >>126.to_s(16)
<eval-in__> mostlybadfly => "7e" (https://eval.in/221075)
<havenwood> >> 126.to_s 16
<eval-in__> havenwood => "7e" (https://eval.in/221076)
allcentury has quit [Ping timeout: 255 seconds]
<zenspider> seattle style! rawr
<mostlybadfly> what is seattle style?
zB0hs has joined #ruby
<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
<apeiros__> >> "\x7e" == "~"
<eval-in__> apeiros__ => true (https://eval.in/221078)
<ecstaticpessimst> apeiros__ that was my worry, so "~" is the same then
<apeiros__> >> "\x7e"
<eval-in__> apeiros__ => "~" (https://eval.in/221079)
<ecstaticpessimst> okay, I need to look for other solutions
xymbol has joined #ruby
timonv_ has quit [Remote host closed the connection]
<apeiros__> so if you should send a single byte with the value 126, then "~" is indeed correct
<apeiros__> >> [126].pack("C*")
<eval-in__> apeiros__ => "~" (https://eval.in/221081)
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jheg has quit [Quit: jheg]
delianides has joined #ruby
<ecstaticpessimst> alright something else must be the problem
kirun has quit [Quit: Client exiting]
gtc has joined #ruby
geggam has quit [Ping timeout: 255 seconds]
henesy has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
mary5030 has quit [Remote host closed the connection]
delianides has quit [Client Quit]
<mostlybadfly> i dont know if this helps, just saw this but probably not what you need
<mostlybadfly> >> sprintf("%#x", 126)
<eval-in__> mostlybadfly => "0x7e" (https://eval.in/221082)
narcan has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
reset has quit [Ping timeout: 272 seconds]
Xiti has quit [Quit: Xiti]
zacts has joined #ruby
nkumari has joined #ruby
jimbach has joined #ruby
dangerousdave has joined #ruby
atmosx has joined #ruby
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
diegoviola has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: zzz]
<atmosx> hello
dangerousdave has quit [Client Quit]
elemenopy has joined #ruby
renderfu_ has quit [Remote host closed the connection]
Xiti has joined #ruby
tomeara has quit [Quit: (null)]
sgt-hagger has joined #ruby
fabrice31 has joined #ruby
renderfu_ has joined #ruby
sgt-hagger has left #ruby ["Leaving"]
<shevy> atmosx are you in greece again?
TPBallbag is now known as XmQ2u9qoss8eY8dV
<shevy> I am asking because lately you tend to show up when I am about to go to bed :-)
<atmosx> nah, I'm using a VPN
<atmosx> I'll be in CZ until 12/12
<shevy> cool
<shevy> you are supermobile
<atmosx> trying to understand what a RESTfull architecture is
<shevy> all I know is
<shevy> create update... whatever
<atmosx> but the guy started the "Opposite of SOAP" awesom,e what is soap then? blah
renderfu_ has quit [Remote host closed the connection]
<shevy> that is what you use in the bathroom
stunder has quit [Quit: Screw you guys I'm going home]
<shevy> he just started to learn it
<atmosx> shevy: exactly!
<atmosx> lol
<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
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
<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> well kind of Eiam
<Eiam> its like what you just described
<Eiam> (we used to use it a bunch)
<powersurge> oh I getcha
<powersurge> you're explaining dRB
<Eiam> yeah ;p lol
Mia has quit [Ping timeout: 255 seconds]
<ecstaticpessimst> but I cant convert 255 to
o0oo0o has joined #ruby
<ecstaticpessimst> (y oomlat)
<ecstaticpessimst> >> 255.chr
<eval-in__> ecstaticpessimst => "\xFF" (https://eval.in/221084)
<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
thsig_ has joined #ruby
usrj has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
<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
<mostlybadfly> >> sprintf(%#c, 126)
<eval-in__> mostlybadfly => /tmp/execpad-b0eb41ad3a15/source-b0eb41ad3a15:4: syntax error, unexpected '{', expecting ')' ... (https://eval.in/221086)
<mostlybadfly> >> sprintf('%#c', 126)
<eval-in__> mostlybadfly => "~" (https://eval.in/221087)
<mostlybadfly> wat lol
<powersurge> so drb is stdlib, eh?
crome has joined #ruby
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 has joined #ruby
mathias2 has joined #ruby
<atmosx> powersurge: yes, it's pretty cool http://www.ruby-doc.org/stdlib-2.1.4/libdoc/drb/rdoc/DRb.html there's even a book about it.
<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]
<Guest46041> \curl -sSL https://mysite.com/install | bash
fantazo has quit [Quit: Verlassend]
<zenspider> Guest: your pipe IS the input
<lampd1> TIL pry > irb
klmlfl_ has quit [Remote host closed the connection]
samuel02 has quit [Ping timeout: 256 seconds]
<powersurge> pry is an awesome debugger too
klmlfl has joined #ruby
<Guest46041> and /install returns then the bash script which executes the ruby script
<atmosx> lampd1: yeap, I use just for the coloring scheme.
<powersurge> can't imagine life without pry
<atmosx> use *it*
<lampd1> yeah powersurge primarily using it for breakpoint debugging
cirn0 has quit [Remote host closed the connection]
econerd4ever has joined #ruby
<lampd1> at least atm
<Guest46041> zenspider: what exactly do you mean?
mathias2 has quit [Ping timeout: 272 seconds]
Ulrike_Rayne has joined #ruby
lmickh has quit [Remote host closed the connection]
beef-wellington has quit [Ping timeout: 264 seconds]
klmlfl has quit [Remote host closed the connection]
<Guest46041> zenspider: http://www.westwind.com/reference/os-x/commandline/pipes.html#pipe that is exactly what I want
henesy has quit [Ping timeout: 265 seconds]
baweaver has quit [Remote host closed the connection]
diegoviola has joined #ruby
usrj has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
klmlfl has joined #ruby
<lampd1> can you use pry to dump an object's info to a file?
<mostlybadfly> pry is fun
<shevy> lampd1 you can use ruby to do that; via Marshall
lmickh has joined #ruby
<pipework> lampd1: You can use ruby to do that many ways.
crome has quit [Ping timeout: 265 seconds]
<pipework> You can use yaml if you want to peruse the file yourself.
crome has joined #ruby
Pumukel has quit [Read error: Connection reset by peer]
sdwrage has joined #ruby
renderful has joined #ruby
nobitanobi has joined #ruby
mattstra_ has joined #ruby
mattstra_ has quit [Max SendQ exceeded]
<mozzarella> how do I make a capture group greedy inside a regex?
<zenspider> Guest46041: I know what a pipe is
<mozzarella> wait
<mozzarella> I meant non-greedy
<zenspider> Guest46041: what you're doing is `make-output | read-input`
mattstra_ has joined #ruby
mattstra_ has quit [Max SendQ exceeded]
<zenspider> so when the latter wants to read input, it is coming from make-output
<lampd1> you can just do File.write('test.data', object.to_json) within pry
<zenspider> mozzarella: look at the ruby quickref
desp has quit [Quit: Leaving]
mattstra_ has joined #ruby
despai has joined #ruby
agjacome has quit [Quit: leaving]
<atmosx> night all
klmlfl has quit [Ping timeout: 255 seconds]
renderful has quit [Remote host closed the connection]
atmosx has quit [Quit: Lost in trance]
<Guest46041> zenspider: sorry, understood. What would you recommend to fix it?=
<lampd1> or to_yaml whatever you want
<lampd1> <3 pry even more now :P
jleishman has quit [Quit: Be back later ...]
<mozzarella> zenspider: can't find it
<zenspider> Guest46041: not piping curl output to bash OR not having the script ask questions
marr has quit []
beef-wellington has joined #ruby
lilsheep has quit [Remote host closed the connection]
usrj has joined #ruby
baweaver has joined #ruby
usrj has quit [Client Quit]
<mozzarella> guys serious
beilabs_ has joined #ruby
usrj has joined #ruby
Ulrike_Rayne has quit [Max SendQ exceeded]
Ulrike_Rayne has joined #ruby
<Cat_1> mozzarella if you want to make it less greedy put a quantifier outside the gorup to match the rest of the string
despai has quit [Quit: This computer has gone to sleep]
pengin has joined #ruby
nateberkopec has quit [Quit: Leaving...]
<Cat_1> like for example (A+). operating on AAA will only match AA, because it has to match the .
<Cat_1> you can make it extremely lazy by using .*?