apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p392: http://ruby-lang.org (ruby-2.0.0-rc2) || Paste >3 lines of text on http://gist.github.com
MartinCleaver has quit [Quit: MartinCleaver]
nOStahl has joined #ruby
Wildhoney has joined #ruby
<nOStahl> hi guys http://pastebin.com/eifcYYeP I'm getting an error trying to install this gem
`p has joined #ruby
Al___ has quit [Quit: Al___]
artOfWar has quit [Ping timeout: 256 seconds]
zoonfafer has joined #ruby
anonymuse has quit [Quit: Leaving...]
PragCypher has quit [Quit: Leaving]
johnsbbd has joined #ruby
emmanuelux has joined #ruby
<johnsbbd> What is ARGV? It's not a global variable, is it? Those have the $ sigil
<otters> no but I think it has a $ counterpart
<otters> it's a magic constant, like RUBY_VERSION etc.
<apeiros_> ARGV is a constant
<apeiros_> it's not magic either
brianpWins has quit [Quit: brianpWins]
techhelp has quit [Quit: This computer has gone to sleep]
<apeiros_> just prefilled with all args passed to the script
<otters> it's accessible from a program despite not being defined anywhere
<otters> or rather, it has contents
<apeiros_> other than that - ordinary array of ordinary strings assigned to an ordinary constant
banisterfiend has quit [Read error: Connection reset by peer]
<apeiros_> otters: so are all things from core. that doesn't make them magic.
terceiro has joined #ruby
soulcake has quit [Quit: ZNC - http://znc.in]
<johnsbbd> apeiros: so what are the semantics? how do i know how i can use it if it's just some variable out of nowhere
<otters> you can always use it
banisterfiend has joined #ruby
<apeiros_> johnsbbd: constants start with a capital letter
<Wildhoney> it's always available via cmd, at least. but not in web, right?
ckrailo has quit [Quit: Computer has gone to sleep.]
<otters> sure it is
<Wildhoney> it is not a constant though, it's a variable that's pretending to be a constant
<otters> it might not have anything in it
<otters> it's a constant
<apeiros_> Wildhoney: it's always available. may not contain anything useful, though.
<Wildhoney> gotcha
<Wildhoney> while since i've used php :)
<nOStahl> hrmm No source for ruby-1.9.3-p392 provided with debugger-ruby_core_source gem. how do I fix this
<johnsbbd> I get Math:PI - i can see where that is defined, but ARGV, it's not a global variable, it's not a local variable, so what the hell is it?
yfeldblum has joined #ruby
dustint_ has quit [Quit: Leaving]
<Wildhoney> oh, we are talking about ruby? ah that's cool
<otters> technically speaking, it's not *always* available
<otters> if somebody's done Object.remove_const :ARGV
baroquebobcat has quit [Quit: baroquebobcat]
techhelp has joined #ruby
<johnsbbd> But I don't get what namespace it lives it - there's a namespace for globals, locals, instance variables, but what namespace is ARGV in?
<apeiros_> johnsbbd: again, it's a constant
<apeiros_> johnsbbd: I said that already
techhelp has quit [Remote host closed the connection]
<johnsbbd> apeiros_: but all other constants live in some namespace
<apeiros_> johnsbbd: ARGV lives in a namespace too
<apeiros_> the toplevel, which is Object
<apeiros_> as do Array, String, Hash etc.
pdamer has joined #ruby
<apeiros_> (yes, those are constants too - happening to reference classes)
<johnsbbd> apeiros_: but that's the thing! it doesn't! according to the docs Object has no member ARGV
<apeiros_> *eyeroll*
<swarley> johnsbbd, why does it matter?
<apeiros_> >> Object.constants.include? :ARGV
<eval-in> apeiros_: Output: "" (http://eval.in/10995)
<apeiros_> >> p Object.constants.include? :ARGV
<eval-in> apeiros_: Output: "true\n" (http://eval.in/10996)
<apeiros_> there
SqREL has quit [Remote host closed the connection]
<apeiros_> try it in your own ruby if you don't trust some arbitrary bot
<johnsbbd> swarley: why does it matter? how can you use a language if I have no model of the semantics in my head?
<nOStahl> ah fixed my issue with gem install debugger-linecache -v '1.1.2' -- --with-ruby-include=$rvm_path/src/ruby-1.9.3-p392
<swarley> You can easily use a language without having to know the intricate details of the interpreter
<swarley> knowing the binding of ARGV will help you in no way
<johnsbbd> apeiros_: ok thanks, i see where it's defined now
soulcake has joined #ruby
<johnsbbd> apeiros_: my problem was http://www.ruby-doc.org/core-1.9.3/ lets you search objects and methods, but there's no way to know where a constant is defined, so i had no way to look it up
tcstar has quit [Ping timeout: 255 seconds]
<apeiros_> johnsbbd: as said, toplevel namespace is Object
<apeiros_> almost all constants reachable via plain `Foo` are defined there
<johnsbbd> apeiros_: so if I was in an instance of BasicObject, i woudln't be able to use ARGV?
<apeiros_> *some* are defined in Kernel and are accessible everywhere because Object includes Kernel
<apeiros_> via ::ARGV, you should be able
<apeiros_> but plain ARGV probably won't work
<apeiros_> haven't used BasicObject's that much yet
<swarley> See the top section "Constants"
maxmanders has quit [Quit: Computer has gone to sleep.]
<swarley> if it exists and isn't listed under a class or module, it's in the Object namespace
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
joshfng has quit [Remote host closed the connection]
endzyme has quit [Remote host closed the connection]
pdamer has quit [Quit: pdamer]
zzing has joined #ruby
drago757 has quit [Quit: drago757]
HecAtic has joined #ruby
ephemerian has quit [Quit: Leaving.]
mockra has joined #ruby
havenwood has quit [Remote host closed the connection]
pkrnj has joined #ruby
horofox has quit [Quit: horofox]
garbagecollectio has joined #ruby
horofox_ has joined #ruby
banisterfiend is now known as banister`sleep
Guest94795 has quit [Quit: Leaving]
feedbackloop has quit [Read error: Connection reset by peer]
meoblast001 is now known as meoHerbal
feedbackloop has joined #ruby
thams has quit [Quit: thams]
ahokaomaeha has joined #ruby
tish has joined #ruby
Takehiro has joined #ruby
allaire has joined #ruby
zyrex has joined #ruby
emmanuelux has quit [Remote host closed the connection]
bubblehead has joined #ruby
predator217 has joined #ruby
Takehiro has quit [Ping timeout: 264 seconds]
predator117 has quit [Ping timeout: 245 seconds]
tish has quit [Quit: Leaving.]
codezombie has joined #ruby
codezombie has quit [Remote host closed the connection]
philcrissman has quit [Remote host closed the connection]
eavgerinos has quit [Ping timeout: 256 seconds]
cantonic has joined #ruby
seta has joined #ruby
thams has joined #ruby
CraHan is now known as CraHan|out
heftig has quit [Ping timeout: 245 seconds]
Retistic has joined #ruby
horofox__ has joined #ruby
fschuindt has joined #ruby
horofox_ has quit [Ping timeout: 255 seconds]
mrsolo has quit [Quit: Leaving]
Kuifje has quit [Ping timeout: 252 seconds]
pskosinski has quit [Ping timeout: 246 seconds]
c0rn has quit [Quit: Computer has gone to sleep.]
justsee has joined #ruby
johnsbbd has quit [Quit: Page closed]
nOStahl has left #ruby [#ruby]
c0rn has joined #ruby
tenmilestereo has quit [Quit: Leaving]
hbpoison has quit [Read error: Connection reset by peer]
hbpoison has joined #ruby
angusiguess has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
mattbl has joined #ruby
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
thams has quit [Quit: thams]
sailias has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
Asher has quit [Quit: Leaving.]
Asher has joined #ruby
thams has joined #ruby
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
pdamer has joined #ruby
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
fschuindt has quit [Read error: Connection reset by peer]
kristofers has quit []
Konstruktionist has joined #ruby
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
SolidResolve has joined #ruby
moos3 has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
hbpoison has quit [Ping timeout: 246 seconds]
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
marr has quit [Ping timeout: 248 seconds]
wmoxam has joined #ruby
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
pdamer has quit [Client Quit]
daniel_- has quit [Quit: WeeChat 0.3.9.2]
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
zyrex has quit [Ping timeout: 244 seconds]
Xeago has quit [Remote host closed the connection]
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
Xeago has joined #ruby
pdamer has joined #ruby
razibog has joined #ruby
moos3 has quit [Client Quit]
Konstruktionist has left #ruby [#ruby]
samphippen has quit [Quit: Computer has gone to sleep.]
mlr has quit [Ping timeout: 255 seconds]
cantonic has quit [Remote host closed the connection]
bubblehead has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 276 seconds]
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
chussenot has joined #ruby
chussenot has quit [Client Quit]
Slivka has quit [Ping timeout: 248 seconds]
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
chussenot has joined #ruby
chussenot has left #ruby [#ruby]
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
jocellyn has joined #ruby
techhelp has joined #ruby
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
cousine has quit [Ping timeout: 245 seconds]
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
otters has quit [Ping timeout: 256 seconds]
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
techhelp has quit [Client Quit]
bubblehead has joined #ruby
razibog has quit [Quit: Leaving.]
razibog1 has joined #ruby
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
mercwithamouth has quit [Ping timeout: 252 seconds]
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
SolidResolve has joined #ruby
sailias has quit [Ping timeout: 248 seconds]
pdamer has quit [Quit: pdamer]
pdamer has joined #ruby
pepps has quit [Ping timeout: 248 seconds]
pasties has quit [Ping timeout: 244 seconds]
havenwood has joined #ruby
otters has joined #ruby
etcetera has quit []
eka has quit [Quit: Computer has gone to sleep.]
heftig has joined #ruby
chussenot has joined #ruby
etcetera has joined #ruby
stopbit has joined #ruby
thams has quit [Quit: thams]
meoHerbal is now known as meoblast001
philcrissman has joined #ruby
pasties has joined #ruby
chussenot has left #ruby [#ruby]
yacks has joined #ruby
sn0wb1rd has quit [Quit: sn0wb1rd]
hbpoison has joined #ruby
Mekkis has quit [Ping timeout: 245 seconds]
Mekkis has joined #ruby
NiteRain has joined #ruby
tethra has quit [Ping timeout: 248 seconds]
thone_ has joined #ruby
thone has quit [Read error: Operation timed out]
mlr has joined #ruby
sailias has joined #ruby
HecAtic has quit [Quit: HecAtic]
xardas has quit [Ping timeout: 260 seconds]
rupee has quit [Ping timeout: 252 seconds]
alesguzik has joined #ruby
thams has joined #ruby
pdamer has quit [Quit: pdamer]
pdamer has joined #ruby
Takehiro has joined #ruby
mercwithamouth has joined #ruby
lewis has joined #ruby
<lewis> Hanmac: it's not a method
<lewis> Hanmac: I meant require_relative sorry
pkrnj has quit [Quit: Computer has gone to sleep.]
Takehiro has quit [Ping timeout: 264 seconds]
<lewis> Hanmac: and it is a method
hbpoison has quit [Ping timeout: 252 seconds]
mikepack has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
thams has quit [Quit: thams]
NiteRain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
ninp0 has joined #ruby
angusiguess has quit [Ping timeout: 252 seconds]
freeayu has joined #ruby
thams has joined #ruby
PanPan has joined #ruby
markalanevans has quit [Ping timeout: 264 seconds]
maletor has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
baroquebobcat has joined #ruby
<lewis> that is strange , even though im using the most up to date ruby version i can't use require_relative
chrishough has quit [Quit: chrishough]
Takehiro has joined #ruby
Takehiro has quit [Remote host closed the connection]
pandawarrior1 has joined #ruby
alesguzik has quit [Quit: leaving]
twoism has quit [Remote host closed the connection]
Dwarf has quit [Max SendQ exceeded]
apeiros_ has quit [Remote host closed the connection]
johnsbbd has joined #ruby
voodoofish430 has quit [Quit: Leaving.]
<johnsbbd> Hi - question about mutability and arrays. I thought that ! marked a method with side effects, but Array#insert doesn't have a !, but it does have side effects, is that right?
Dwarf has joined #ruby
bradhe has quit [Remote host closed the connection]
jonahR has joined #ruby
jetblack has joined #ruby
bradhe has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
philcrissman has quit [Remote host closed the connection]
<lewis> johnsbbd: I believe that ! marks a method that return the same object changed with the corresponding method instead of a new object
ferdev is now known as ferdev|away
<johnsbbd> lewis: so insert doesn't have a ! because there is no variant without a !
sn0wb1rd has joined #ruby
pandawarrior1 has quit [Quit: Leaving.]
<sam113101> clear also doesn't have a !
postmodern has joined #ruby
<lewis> johnsbbd: what do you mean by no vaiant
<johnsbbd> lewis: no variant i mean
<lewis> sam113101: a lot of methods dont
bradhe has quit [Ping timeout: 256 seconds]
<lewis> johnsbbd: what does that mean
<sam113101> the bang doesn't really mean "dangerous", it just means it has side effets its variant doesn't have
fir_ed has quit [Quit: Leaving]
<sam113101> when methods come in pairs (ie sort and sort!)
<johnsbbd> lewis: "version", a different version of the same method
<banister`sleep> sam113101: it does mean dangerous
<banister`sleep> well, 'beware'
<johnsbbd> well why isn't insert considered dangerous if it has side effects? or am i thinking too hard about this and it's not a firm rule
iamjarvo has quit [Ping timeout: 264 seconds]
<banister`sleep> consider ActiveRecord's save vs save!
<lewis> I'm not sure but I stick to what i said - I believe that the exclamation point is an indicator that it does not return a new array like the equivalent method without !
<banister`sleep> johnsbbd: because it doesn't have a 'safe' variant
<banister`sleep> johnsbbd: you only need to have ! if there's a non-! version
<johnsbbd> ok, i can work with thtat
<sam113101> are you reading a book?
iamjarvo has joined #ruby
markalanevans has joined #ruby
<johnsbbd> sam113101: i've read several of the books, this problem came up because i was calling insert, getting a new array, and was surprised it was modfing the original as well, because i had dutifully followed the ! system, and now i was getting burned
slainer68 has joined #ruby
charliesome has joined #ruby
<banister`sleep> johnsbbd: ! is only needed to distinguish two versions of the same method, where one version is somewhat more dangerous than the other
<sam113101> ok, well the guy that wrote The Well-Grounded Rubyist kind of explain it, in an understandable way
<banister`sleep> if you only have one version of the method (as in #insert) then you dont need a !
<lewis> basically if it returns the same array you dont need !
<johnsbbd> it would be nice if all methods that had side effects were marked, otherwise when i call a function how do i know it's not modifying everything out from under my feet?
<lewis> ri
<banister`sleep> johnsbbd: by reading the docs for that method :)
alesguzik has joined #ruby
<banister`sleep> johnsbbd: but you can also call #dup first to ensure
<banister`sleep> johnsbbd: i.e my_array.dup.insert(3, "hi")
pandawarrior1 has joined #ruby
<johnsbbd> ok thanks
etcetera has quit []
dallasm has joined #ruby
etcetera has joined #ruby
adkron has quit [Ping timeout: 245 seconds]
joeycarmello has quit [Remote host closed the connection]
<johnsbbd> I'm learning Ruby for work and I like most of it, but I find it very hard to reason about what it is doing, because the semantics seem so ad hoc
jocellyn has quit [Quit: Leaving.]
<lewis> what's ad hoc
<lewis> everytime i google i forget
<lewis> lol
mattbl has quit [Quit: This computer has gone to sleep]
<johnsbbd> lewis: as it is
<johnsbbd> lewis: ruby has no semantics beyond what it happens to execute as
<lewis> johnsbbd: what language did you know before
<johnsbbd> lewis: if you wrote a semantics for ruby, i think it would be one almighty state transition
Ethan has joined #ruby
thams has quit [Quit: thams]
<johnsbbd> lewis: C, Haskell, Python
<lewis> im not sure i understand what you're saying
skogis has quit [Ping timeout: 252 seconds]
miso1337 has joined #ruby
pandawarrior1 has quit [Quit: Leaving.]
pandawarrior1 has joined #ruby
skogis has joined #ruby
thufir_ has joined #ruby
razibog1 has quit [Ping timeout: 245 seconds]
adeponte has quit [Remote host closed the connection]
pepps has joined #ruby
Wildhoney has quit [Ping timeout: 256 seconds]
apeiros_ has joined #ruby
freeayu has quit [Read error: Connection reset by peer]
hbpoison has joined #ruby
freeayu has joined #ruby
johnsbbd has quit [Quit: Page closed]
MartinCleaver has joined #ruby
MartinCleaver has quit [Changing host]
MartinCleaver has joined #ruby
nfk has quit [Quit: yawn]
crackfu has joined #ruby
subbyyy has joined #ruby
Virunga has quit [Remote host closed the connection]
joeycarmello has joined #ruby
apeiros_ has quit [Ping timeout: 246 seconds]
jbw has quit [Ping timeout: 246 seconds]
peteyg has quit [Ping timeout: 248 seconds]
joeycarm_ has joined #ruby
nate00 has joined #ruby
dankest has joined #ruby
skattyadz has quit [Quit: skattyadz]
joeycarmello has quit [Ping timeout: 245 seconds]
apok has quit [Quit: apok]
alesguzik has quit [Quit: leaving]
alesguzik has joined #ruby
thibauts has quit [Ping timeout: 252 seconds]
mattbl has joined #ruby
lewis has quit [Remote host closed the connection]
poikon_ has joined #ruby
nate00 has quit [Remote host closed the connection]
poikon has quit [Killed (calvino.freenode.net (Nickname regained by services))]
poikon_ is now known as poikon
poikon_work has joined #ruby
emergion has joined #ruby
justsee has quit [Quit: Leaving...]
philcrissman has joined #ruby
ffranz has quit [Quit: Leaving]
Nisstyre-laptop has joined #ruby
<Yakko> aedorn: you still around here?
thibauts has joined #ruby
jbw has joined #ruby
<aedorn> Yup. Still in prison (aka work)
Hanmac has quit [Ping timeout: 256 seconds]
<aedorn> Which reminds me.. need to update my Chakra system!
Myconix has quit [Ping timeout: 248 seconds]
jclarke has joined #ruby
alesguzik has quit [Quit: leaving]
Myconix has joined #ruby
mockra has quit [Remote host closed the connection]
thinkclay has joined #ruby
dorei has joined #ruby
<dorei> hello
<dorei> i'm doing myArray.include?(x)
<dorei> is there some magic myArray that include?(x) will always return true no matter what x is ?
quazimodo has joined #ruby
`p has quit [Ping timeout: 252 seconds]
Takehiro has joined #ruby
<quazimodo> so i have some class Foo and i want my instance my_foo.some_variable to return the value of some_variable that belongs to the class, not the instance
<quazimodo> so could i do something like self.var = "whatever" in the class, then in the method def some_variable; return self.class.var; end ?
<aedorn> dorei: mmm nope.
<quazimodo> i mean, is that wise, is there a better way?
h8R has quit [Remote host closed the connection]
ikst has joined #ruby
<dorei> aedorn: some magic array that's initialized with a block
<dorei> no?
<dorei> :(
sabooky has joined #ruby
<sabooky> Quick q, When I run my_object.methods I seem to be getting a list that doesn't include methods that were mixed in, how do I get a complete list of all methods my object responds to?
Hanmac has joined #ruby
twoism has joined #ruby
<aedorn> dorei: Are you trying to track something down, or are you really wanting a default value for an Array that will always resolve to true when include? is called? If the latter, no ...
sn0wb1rd has quit [Ping timeout: 255 seconds]
Takehiro has quit [Remote host closed the connection]
c0rn has quit [Quit: Computer has gone to sleep.]
joeycarm_ has quit [Remote host closed the connection]
joeycarmello has joined #ruby
<quazimodo> is there a smarter way to do this?
twoism has quit [Ping timeout: 252 seconds]
<ikst> Hello. I'm new to Ruby. I want to contribute to Ruby somehow. What to start?
ThePicard has quit [Ping timeout: 252 seconds]
bradhe has joined #ruby
linguini has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
ThePicard has joined #ruby
Mon_Ouie has quit [Ping timeout: 244 seconds]
joeycarmello has quit [Ping timeout: 264 seconds]
`p has joined #ruby
Starrfish has joined #ruby
<Spooner> quazimodo, Other ways yes. Smarter ways: Not particularly.
arya has joined #ruby
Starrfish has quit [Read error: Connection reset by peer]
bradhe has quit [Ping timeout: 248 seconds]
Starrfish has joined #ruby
luckyruby has quit [Remote host closed the connection]
<quazimodo> Spooner: so this is acceptable and if my ruby genius boss saw it, it'd be fine?
Myconix has quit [Ping timeout: 248 seconds]
MartinCleaver has quit [Quit: MartinCleaver]
<Spooner> I think so, yes ;) At least it isn't a @@var
<quazimodo> @@var's seem to be a little ... bit like global variables that suck nuts
superawesomedan has joined #ruby
<Spooner> No sane dev uses them any more, no ;)
locriani_ has joined #ruby
aytch_ is now known as aytch
S1kx has joined #ruby
S1kx has quit [Changing host]
S1kx has joined #ruby
S2kx has quit [Ping timeout: 245 seconds]
locriani has quit [Read error: Connection reset by peer]
mahmoudimus has joined #ruby
Myconix has joined #ruby
<Spooner> ikst, You want to know what to do to contribute to the Ruby community? Find a gem you use that has a bug or an additional feature people would find useful and send a pull request.
Starrfish has quit [Ping timeout: 248 seconds]
<ikst> Spooner: thanks for nice advice!
hiroyuki has quit [Read error: Connection reset by peer]
<Spooner> Or just report some bugs or make some suggestions of additional features if you don't feel confident of implementing yet. And choose a small gem; don't start with editing Rails ;)
hiroyuki has joined #ruby
<ikst> I see.
arya has quit [Ping timeout: 246 seconds]
Myconix has quit [Ping timeout: 248 seconds]
arya has joined #ruby
<quazimodo> Spooner I don't even know what the << operator does :/
<Spooner> It depends. Generally it means append/push (e.g. on String/Array).
<quazimodo> class << butts
<quazimodo> eigenclass huh
<Spooner> class << self is magical and yeah, it gives you the metaclass/eigenclass.
Myconix has joined #ruby
<quazimodo> i wonder why I'd need it though
<Yakko> aedorn: how's prison?
<Yakko> aedorn: awesome problem, the initscript works fine, as long as I don't invoke it from capistrano =/
<Spooner> What do you mean, why you'd need it? It just moves the context to the metaclass, so you can add methods to it (the methods places on the metaclass are called from the class, since the class is an instance of the metaclass).
ninegrid has quit [Ping timeout: 256 seconds]
arya has quit [Ping timeout: 276 seconds]
kofno has joined #ruby
<Spooner> Well, strictly the class isn't an instance of metaclass, but it acts as though it is in this case :P
pandawarrior1 has quit [Quit: Leaving.]
sepp2k1 has quit [Remote host closed the connection]
<quazimodo> Spooner: hrm ... i guess its like the object that javascripts .prototype creates
<quazimodo> sortof
superawesomedan has quit [Quit: superawesomedan]
<quazimodo> i guess i'm saying, i wonder why this architecural desigon was made
harumph has joined #ruby
adeponte has joined #ruby
<Spooner> Well, you couldn't put the method on the class of your class, since that would be Class and _every_ class would have that method applied!
<quazimodo> lol true
<Spooner> It also allows you to add methods onto an instance (by putting the method on the instance's metaclass, so it only applies to the single instance).
<quazimodo> so the eigen class is like a more specific version of the base class
<quazimodo> the base class that applies to that class
<quazimodo> XD
arya has joined #ruby
* quazimodo dies
<Spooner> Yeah, it sort of plugs itself between the instance and the class when it is created (they don't exist until you try to alter them).
<Spooner> And, as I said, on a class they are between the class and its class (which is Class :D).
<quazimodo> Spooner: i wish this stuff was explained graphically
<quazimodo> but yeah, i get it
<quazimodo> i suppose it's needed somehow
nazty has joined #ruby
<quazimodo> though I don't like it
twshelton has joined #ruby
dhruvasagar has joined #ruby
<aedorn> Yakko: Have you tried with a psuedo-tty enabled?
<Spooner> The diagram even has Snoopy in it!
nopolitica has joined #ruby
harumph has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
etcetera has quit []
harumph has joined #ruby
whitedawg has joined #ruby
adeponte has quit [Ping timeout: 276 seconds]
<Spooner> Oh, I was wrong, eigenclasses are created when the class/object is created (in MRI). However, the effect is the same as if they were created lazily.
philcrissman has quit [Remote host closed the connection]
adeponte has joined #ruby
<Yakko> aedorn: default_run_options[:pty] = true ???
<aedorn> Yakko: Yeah, or I think you can enable it just for the run command.. run "cmd", pty: true
angusiguess has joined #ruby
nopolitica has quit [Quit: leaving]
<Yakko> aedorn: its enabled I'm sure
<aedorn> it's disabled by default
<Yakko> aedorn: I can start my unicorn process, nginx, run migrations and download logs/db backups
<Yakko> aedorn: I don't understand why this is the only one that doesn't work, I was concerned the exit 0/1 status would interfeer, and that's when I learned it runs it I ssh into it =/
tish has joined #ruby
<Yakko> aedorn: and BTW... I noticed it adds this line of code after I run it on ssh, Detaching to start /usr/local/bin/bundle...done.
<aedorn> Yakko: Does it work if you run it as an ssh command? As in ssh host "service ..."
tish has quit [Client Quit]
R_Macy has quit [Ping timeout: 252 seconds]
<Yakko> aedorn: yes, I tried making custom ruby scripts and rake tasks too
slainer68 has quit [Remote host closed the connection]
<Yakko> aedorn: it always works when I run from the ssh, but never when from capistrano
Beoran_ has joined #ruby
mlr has quit [Ping timeout: 252 seconds]
pavilionXP has quit [Read error: Connection reset by peer]
lewis has joined #ruby
<Yakko> aedorn: tried from cap shell, it also doesn't work, but it clearly stops the daemon from the pid
<quazimodo> Spooner: what about this https://gist.github.com/quazimodo/e534082cab4dfb440d19
<quazimodo> accomplishes a similar thing doesn't it?
<aedorn> well...
<Yakko> I added --verbose to try and see more information
cantonic has joined #ruby
ninegrid has joined #ruby
_veer has joined #ruby
_veer has quit [Changing host]
_veer has joined #ruby
Beoran__ has quit [Ping timeout: 252 seconds]
<quazimodo> Spooner: in fact, it's very much the same except without the accessors on Floo class
<aedorn> Yakko: run "nohup service ...", pty: true
R_Macy has joined #ruby
horofox__ has quit [Quit: horofox__]
angusiguess has quit [Ping timeout: 256 seconds]
arya has quit [Ping timeout: 252 seconds]
<Yakko> aedorn: it worked
<Yakko> aedorn: dude, thank you so much for staying with me, I spent my whole afternoon learning how to solve this shit =D
<aedorn> Really? That worked? That's... retarded.
Takehiro has joined #ruby
<Yakko> aedorn: agreed
<aedorn> Oh well, glad it's all working!
verysoftoiletppr has joined #ruby
meoblast001 is now known as meoRotab
whitedawg1 has joined #ruby
<Yakko> aedorn: let me try with stalker now
garbagecollectio has quit [Quit: garbagecollectio]
whitedawg1 has quit [Client Quit]
arya has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
whitedawg has quit [Ping timeout: 255 seconds]
baroquebobcat has joined #ruby
twshelton has quit [Quit: Computer has gone to sleep.]
Takehiro has quit [Remote host closed the connection]
jonahR has quit [Quit: jonahR]
jonahR has joined #ruby
pdamer has quit [Quit: pdamer]
dorei has quit []
dankest has quit [Ping timeout: 252 seconds]
stkowski has joined #ruby
pepps has quit [Ping timeout: 256 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
mattbl has quit [Quit: This computer has gone to sleep]
bradhe has joined #ruby
arya has quit [Ping timeout: 248 seconds]
aces1up has quit []
joeycarmello has joined #ruby
wmoxam has quit [Ping timeout: 260 seconds]
wmoxam has joined #ruby
<vabenjamin> Hello everyone
pkrnj has joined #ruby
* harumph 'waves'
joeycarmello has quit [Ping timeout: 260 seconds]
xemu has quit [Ping timeout: 264 seconds]
allaire has quit []
radic has quit [Disconnected by services]
radic_ has joined #ruby
kofno has quit [Remote host closed the connection]
dallasm has quit [Remote host closed the connection]
Adys has quit [Read error: Connection reset by peer]
brianpWins has joined #ruby
macq has quit [Ping timeout: 255 seconds]
brianpWins has quit [Client Quit]
Adys has joined #ruby
macq has joined #ruby
dallasm has joined #ruby
aedorn has quit [Read error: Connection reset by peer]
harumph has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
aedorn has joined #ruby
[[johnonymous]] has joined #ruby
[[johnonymous]] has quit [Client Quit]
[[johnonymous]] has joined #ruby
twshelton has joined #ruby
[[johnonymous]] has quit [Client Quit]
baroquebobcat has quit [Quit: baroquebobcat]
meoRotab is now known as meoblast001
Spooner has quit [Quit: Leaving]
pepps has joined #ruby
dankest has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
ananthakumaran has joined #ruby
chrishough has joined #ruby
thams has joined #ruby
Adys_ has joined #ruby
Adys has quit [Ping timeout: 248 seconds]
jpfuentes2 has joined #ruby
<aedorn> Rekonq has come a long way. Pretty nice!
verysoftoiletppr has quit [Ping timeout: 252 seconds]
wmoxam has quit [Ping timeout: 245 seconds]
bradhe has quit [Remote host closed the connection]
jonahR has quit [Quit: jonahR]
bradhe has joined #ruby
uris has quit [Quit: Leaving]
verysoftoiletppr has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
jekotia has quit [Remote host closed the connection]
kofno has joined #ruby
twshelton has quit [Quit: Computer has gone to sleep.]
twshelton has joined #ruby
ahokaomaeha has quit [Ping timeout: 264 seconds]
ryanf has quit [Quit: leaving]
ryanf has joined #ruby
jonahR has joined #ruby
dmiller has joined #ruby
tommyvyo has quit [Quit:]
twshelton has quit [Quit: Computer has gone to sleep.]
otters has quit [Ping timeout: 255 seconds]
Mattix has quit [Ping timeout: 256 seconds]
aedornm has quit [Remote host closed the connection]
dankest has quit [Ping timeout: 276 seconds]
emergion has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
emergion has joined #ruby
robert_ has quit [Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC.]
bradhe has joined #ruby
poikon has quit [Remote host closed the connection]
jrajav has quit [Quit: I tend to be neutral about apples]
otters has joined #ruby
subbyyy has quit [Ping timeout: 276 seconds]
Mattix has joined #ruby
bradhe has quit [Ping timeout: 260 seconds]
ikst has quit [Remote host closed the connection]
`p has quit [Remote host closed the connection]
asuka has quit [Ping timeout: 256 seconds]
SCommette has joined #ruby
asuka has joined #ruby
mattbl has joined #ruby
thinkclay has quit [Quit: Leaving.]
`p has joined #ruby
asuka has quit [Ping timeout: 255 seconds]
bradhe has joined #ruby
thams has quit [Quit: thams]
meoblast001 has quit [Remote host closed the connection]
thams has joined #ruby
asuka has joined #ruby
allaire has joined #ruby
garbagecollectio has joined #ruby
bubblehead has quit [Remote host closed the connection]
angusiguess has joined #ruby
Myconix has quit [Quit: clearing cache]
Myconix has joined #ruby
hbpoison_ has joined #ruby
toekutr has quit [Remote host closed the connection]
hbpoison has quit [Ping timeout: 252 seconds]
angusiguess has quit [Ping timeout: 245 seconds]
asuka has quit [Ping timeout: 255 seconds]
asuka has joined #ruby
bradleyprice has joined #ruby
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
roadt has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
mikekelly has quit [Ping timeout: 252 seconds]
havenwood has quit [Remote host closed the connection]
bradhe has joined #ruby
mikekelly has joined #ruby
ryanf has quit [Ping timeout: 264 seconds]
dmiller has quit [Read error: Operation timed out]
tomo` has joined #ruby
tomo` has left #ruby [#ruby]
SCommette has quit [Quit: SCommette]
mduvall has joined #ruby
mduvall has quit [Client Quit]
mduvall has joined #ruby
_justin has joined #ruby
Umren has joined #ruby
<_justin> i was reading through the book, the ruby programming language. And in the part about variables and assignments, this is something which i interpreted. In ruby variables exist only in local context, ie within a function. rest everything are methods
<_justin> to be more clear,
<_justin> def foo; x= 10; end
<_justin> here x is a variable
<_justin> def another_foo; x; end
<_justin> here x is s method call to self
<_justin> and everything like
<_justin> foo.x are really method calls
<_justin> correct me if i am wrong
mattbl has quit [Quit: This computer has gone to sleep]
hiall has joined #ruby
browndawg has joined #ruby
horrror has joined #ruby
horrror has quit [Client Quit]
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
mockra has joined #ruby
tintin has joined #ruby
tintin has quit [Client Quit]
allaire has quit []
anotherv1 has joined #ruby
techhelp has joined #ruby
thams has quit [Quit: thams]
ryanf has joined #ruby
anothervenue has quit [Ping timeout: 244 seconds]
aqabiz has joined #ruby
angusiguess has joined #ruby
<_justin> Boohbah: so the evaluvation of x goes like this in a function without prefixed self, or foo.x. check if its a local variable (an object though), not found invoke a method on self, not found call method_missing
<TTilus> yes
garbagecollectio has quit [Quit: garbagecollectio]
<TTilus> pretty much
<TTilus> except that its not limited within a function
<TTilus> you can bind a var to val everywhere you like and it exists in that scope
<_justin> ie, climbs up the hierarchy, till Object/ BaseObject ??
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
<TTilus> yes
<_justin> TTilus: "you can bind a var to val everywhere you like and it exists in that scope" can you please explain this
<TTilus> class Foo; name = :foo; attr_accessor name; end
<hiall> How would i go about refactoring http://paste2.org/p/2951943 ?
asuka has quit [Ping timeout: 255 seconds]
<TTilus> f = Foo.new; f.foo = 123
<_justin> attr_accessor name; defines up an accessor method for var name .
<_justin> which is infact foo,
<Hanmac> _justin: def xyz: x #method call, x= 123 # creating an local var, x # it now access the local var and not the method end
<_justin> wow!!!
<TTilus> exactly
<_justin> f.name and f.foo goes to same var foo
garbagecollectio has joined #ruby
<_justin> but in this context both are methods of nature name()=
<TTilus> no, f.name does not exist
<TTilus> f.foo does
<TTilus> and its like foo=(123)
<Boohbah> because :foo is a symbol?
<TTilus> f.foo = 1 means calling method foo= with arg 123
<_justin> TTilus: pretty new to me name = :foo
garbagecollectio has quit [Client Quit]
crackfu has quit [Remote host closed the connection]
browndawg has quit [Ping timeout: 248 seconds]
<Boohbah> _justin: :foo is a symbol, check pg. 70
garbagecollectio has joined #ruby
<_justin> TTilus: irb gives me an error on Foo.foo and not on Foo.name
xor_mind- has joined #ruby
asuka has joined #ruby
<Hanmac> :"toast and tee" is a symbol too
<_justin> Boohbah: yea, feels like i am doped :foo is a value and not a variable
<_justin> then how Foo.foo is correct, not Foo.name
<xor_mind-> what's the irc command ot find out the user count in a channel?
dallasm has quit [Remote host closed the connection]
<Hanmac> _justin: show us your code
<Hanmac> xor_mind- 726
aqabiz has quit [Quit: aqabiz]
aedornm has joined #ruby
<_justin> TTilus: sorry, umm am pretty confused and skipped your message f= Foo.new
<_justin> Hanmac: am reading a book, and its all the trouble ...
<_justin> no code
<_justin> Hanmac, TTilus, Boohbah: n00bish, but please help me understand this
<_justin> as i understand, name = :foo -> bind a symbol to name
<_justin> attr_accessor :name
<_justin> define accessor to name
<_justin> then how f.name is error and f.foo is a var accessor method
freeayu__ has joined #ruby
pkrnj has quit [Quit: Computer has gone to sleep.]
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
casheew has quit [Read error: Connection reset by peer]
mockra has quit [Remote host closed the connection]
casheew has joined #ruby
<_justin> isn't :foo just a symbol, a value, how did it evolve to a method?
browndawg has joined #ruby
freeayu has quit [Ping timeout: 246 seconds]
<ryanf> _justin: attr_accessor is a method which defines getter and setter methods for a particular name
Tarellel has joined #ruby
<ryanf> in this case, that name is foo
<_justin> so in the line attr_accessor name, name evaluvates to foo ?
<_justin> TTilus: now i understand, your statement
casheew has quit [Read error: Connection reset by peer]
<_justin> and that was a whole lot of learning
bradhe has quit [Ping timeout: 244 seconds]
<xor_mind-> do you think I'll be fine with a web dev career if I completely avoid php and just stick with ruby and HTML5?
<xor_mind-> i'm an expert c++ programmer and want to learn an OOP web language
casheew has joined #ruby
<_justin> xor_mind: you will be
<hiall> xor_mind-: you're better of not knowing pph.
<hiall> php**
<_justin> and ruby != OOP web language
<_justin> ruby == awesome hi level lang, that can be anything
<xor_mind-> _justin, hiall ty! php seems like a broken patched together language that has served it's purpose and isn't keeping up with the times
dhruvasagar has quit [Ping timeout: 245 seconds]
<_justin> xor_mind: to some extent it is, but it wont go extinct, they are doing something to make it run with time http://www.phptherightway.com/
dotnull has joined #ruby
ahokaomaeha has joined #ruby
<_justin> any language can do anything any other language can do as long as it is Turing Complete, just the complexity, performance and stuffs like that differs.
pepps has quit [Ping timeout: 256 seconds]
<xor_mind-> _justin: right, but syntatic sugar is important for me
<xor_mind-> I can do OOP in C but I'd rather use c++ :D
anotherv1 has quit [Ping timeout: 276 seconds]
<xor_mind-> I can emulate functional programming in C++ but I'd rather use haskell/lisp
decoponio has joined #ruby
<_justin> xor_mind: yup, that is the complexity factor i mentioned on.
garbagecollectio has quit [Quit: garbagecollectio]
t-mart has quit [Read error: Connection reset by peer]
<Boohbah> is there something like vagrant for qemu?
<xor_mind-> _justin: ok I get what you mean by complexity, are you saying php can do somethings ruby does but easier?
<_justin> xor_mind: i used to, still programs in php(not coz i love to, but has to) and i dont want my php code to look like the way it did. The folks are improving, so am trying to keep up with them as well.
<_justin> _justin: ruby can do everything php does, but easier
uxp has quit [Read error: Connection reset by peer]
Tarellel has quit [Quit: Tarellel]
uxp has joined #ruby
<_justin> xor_mind: : ruby can do everything php does, but easier (lol..i self mentioned early)
dhruvasagar has joined #ruby
<xor_mind-> heh, it's like a mantra, "ruby can do everything php can but it does it easier"
<aedornm> Boohbah: There is not. For awhile there was work to make it (Vagrant) be able to use Qemu and Xen, but no idea what happened to that idea.
pkrnj has joined #ruby
<_justin> xor_mind: but for people like me (Still in college) can't afford servers that support ruby/ cloud services
<_justin> we go for old php, coz hosting is cheap
<xor_mind-> _justin: I hear you, I wouldn't even consider ruby if I didn't have a host (i'm a poor college boy too), but luckily name.com has great support for ruby
m_3 has quit [Ping timeout: 252 seconds]
m_3 has joined #ruby
<_justin> 30 $ a month is still expensive in India ;)
<_justin> i guess, you pointed on VPS when you said good support on ruby..
main has joined #ruby
Morkel has joined #ruby
<xor_mind-> _justin: I don't remember, but the server is confiugred for RoR, gems and php
bradleyprice has quit [Remote host closed the connection]
techhelp has quit [Quit: This computer has gone to sleep]
<_justin> xor_mind: heroku offers you free hosting, but it is all slow and crashy!!
<xor_mind-> _justin: well I can't have slow and crashy! I dunt like that :(
<_justin> i had a webapp on it, 2+ people, i had to start the service again
<xor_mind-> _justin: wow that sux!
<_justin> xor_mind: if you are a college guy, doing this for hobby, lives in a place with fast internet, host the service on your own!! get a static ip
<_justin> you will get to learn a lot of stuff
<_justin> maybe get a rasp pi as your server ;)
<xor_mind-> _justin: easy does it! good advice though, ty :) my goal tonight is simple: get a hello world based on RoR out there
tomzx_mac has joined #ruby
<_justin> xor_mind: i call gor heroku then
<_justin> *for
<xor_mind-> I was going to first try http://railsinstaller.org/
<_justin> xor_mind: engine yard is a good option.. good luck.. :)
<xor_mind-> _justin: thanks! you to
<xor_mind-> o
io_syl has quit [Ping timeout: 256 seconds]
spaceships has quit [Ping timeout: 276 seconds]
arietis has joined #ruby
elkclone has joined #ruby
sandGorgon has joined #ruby
dhruvasagar has quit [Ping timeout: 255 seconds]
adeponte has quit [Remote host closed the connection]
bradhe has joined #ruby
ahokaomaeha has quit [Ping timeout: 264 seconds]
<Hanmac> oh ... when you goto rails we dont like you anymore :(
bradhe has quit [Ping timeout: 276 seconds]
<vabenjamin> I want to program for fun but Im too tired...
<vabenjamin> :(
<vabenjamin> this is the first day I havent updated my project
<vabenjamin> since I started it.
browndawg has quit [Ping timeout: 244 seconds]
jarred has joined #ruby
<jarred> Has anyone here managed to deploy Discourse?
dotnull has quit [Remote host closed the connection]
niklasb has joined #ruby
hbpoison_ has quit [Ping timeout: 252 seconds]
pandawarrior1 has joined #ruby
zzing has quit [Quit: Computer has gone to sleep.]
alx- has joined #ruby
hbpoison has joined #ruby
toekutr has joined #ruby
mduvall has quit []
neurotech has joined #ruby
senayar has joined #ruby
Myconix has quit [Ping timeout: 248 seconds]
pepps has joined #ruby
bradhe has joined #ruby
pkrnj has quit [Quit: Computer has gone to sleep.]
fixl has joined #ruby
pkrnj has joined #ruby
pandawarrior1 has quit [Quit: Leaving.]
hogeo has joined #ruby
browndawg has joined #ruby
Niamkik has quit [Quit: Disconnecting from stoned server.]
_justin has quit [Read error: Connection reset by peer]
Niamkik has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
eldariof has joined #ruby
chrishough has quit [Quit: chrishough]
blacktulip has joined #ruby
chrishough has joined #ruby
apeiros_ has joined #ruby
himsin has quit [Ping timeout: 264 seconds]
d3vic3 has joined #ruby
freeayu__ has quit [Remote host closed the connection]
Morkel has quit [Quit: Morkel]
lkba has quit [Ping timeout: 264 seconds]
fixl has quit [Remote host closed the connection]
toekutr has quit [Read error: Connection reset by peer]
cha1tanya has quit [Ping timeout: 248 seconds]
testingb0t has joined #ruby
fixl has joined #ruby
francisfish has joined #ruby
lewis has quit [Remote host closed the connection]
JohnBat26 has joined #ruby
monkegjinni has joined #ruby
Nisstyre-laptop has quit [Quit: Leaving]
stkowski has quit [Quit: stkowski]
hogeo has quit [Remote host closed the connection]
francisfish has quit [Remote host closed the connection]
Loaft has joined #ruby
niklasb has quit [Ping timeout: 252 seconds]
jwang has quit [Ping timeout: 252 seconds]
beaky has joined #ruby
<beaky> hello
<beaky> hello
<beaky> what is duck-typing?
robbyoconnor has joined #ruby
hbpoison has quit [Ping timeout: 264 seconds]
tomzx_mac has quit [Ping timeout: 255 seconds]
gosshedd has joined #ruby
m3pow has quit [Read error: Connection reset by peer]
Morkel has joined #ruby
Kevin has joined #ruby
kevinfagan has quit [Read error: Connection reset by peer]
Kevin is now known as Guest35606
hbpoison has joined #ruby
lkba has joined #ruby
chrishough has quit [Quit: chrishough]
Slivka has joined #ruby
ddd has joined #ruby
<vabenjamin> beaky
JonnieCache_ has joined #ruby
ddd is now known as Guest69401
<vabenjamin> thats when you describe your coding problems to a rubber duck or another object in order to find out how to fix ur bug
Guest35606 has quit [Ping timeout: 248 seconds]
ddd_ has quit [Ping timeout: 245 seconds]
justme1 has joined #ruby
<beaky> hah
<beaky> isn't that rubber-duck debugging?
<beaky> while duck-typing is basically parametric polymorphism
<apeiros_> beaky: it means that you don't care about the class of a thing, but about its behavior
<beaky> ah
<apeiros_> "if it walks like a duck, quacks like a duck etc., you may as well treat it like a duck"
<justme1> when inside class method class << self means the reciver's eigenclass, and when I use it inside a class but not in a method it's the class's eigenclass?
<JonnieCache_> see also "duck punching"
zzing has joined #ruby
<beaky> I am a Hash, but you can use me as an Array! quak quack quacK!
<beaky> ... or is it the other way around (arrays are hashes that map ints to things)
<xor_mind-> The object is whatever it's data is? Like if it contians a string, you can treat it like a string?
<beaky> ah
<JonnieCache_> its more "im not even going to tell you what i am but rest assured I can do [] and []= so dont worry"
cableray has quit [Ping timeout: 260 seconds]
rburton- has joined #ruby
CraHan|out is now known as CraHan
zzing has quit [Ping timeout: 256 seconds]
xor_mind- has quit [Quit: Leaving]
marr has joined #ruby
jonahR has quit [Quit: jonahR]
pepps has quit [Ping timeout: 252 seconds]
echosystm has joined #ruby
yshh has quit [Remote host closed the connection]
<echosystm> now that ruby has fibers, should people still be using eventmachine? how do fibers and EM fit together in an app?
pyrac has joined #ruby
<heftig> if you want to take fibers to the next level, look at celluloid, i guess
HecAtic has joined #ruby
neurotech has quit [Remote host closed the connection]
<echosystm> say one library uses EM and another uses fibers
<echosystm> how do you use them in one app?
<heftig> they're not fundamentally incompatible
tvw has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
<echosystm> is eventmachine the only event loop in ruby?
<echosystm> or is there a fragmentation issue, as in perl
<JonnieCache_> not really
<echosystm> ok cool
<JonnieCache_> there are various other concurrency frameworks but theyre all pretty significantly different
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
<echosystm> is ruby 1.9.3 ever truly concurrent?
<echosystm> i thought even with Thread that only one will ever run at a time
<JonnieCache_> the default interpreter has a GIL, yes
<JonnieCache_> but other implementations like rubinius and jruby dont
<echosystm> ok
crackfu has joined #ruby
<JonnieCache_> jruby as you might guess runs on the jvm
<JonnieCache_> rubinius is like pypy
<echosystm> so with 1.9.3, if you need some CPU intensive code to run in parallel then your only choice is multiprocessing?
<echosystm> i mean with the default interpreter
<JonnieCache_> well the class of problems that never ever block on I/O and are therefore unsuitable for things like eventing or fibers is actually realatively small
<JonnieCache_> but yeah pretty much
pandawarrior1 has joined #ruby
Morkel has quit [Quit: Morkel]
<JonnieCache_> but if you want to write eye-wateringly fast code you probably shouldnt be writing ruby at all
bradhe has quit [Ping timeout: 260 seconds]
hiall has quit [Quit: hiall]
justme1 has left #ruby [#ruby]
pkrnj has quit [Quit: Computer has gone to sleep.]
Neomex has joined #ruby
Neomex has quit [Client Quit]
Jackneill has joined #ruby
<echosystm> does anyone know of an easy way to package up ruby applications for windows?
generalissimo has quit [Remote host closed the connection]
pkrnj has joined #ruby
justme1 has joined #ruby
anderse has joined #ruby
crackfu has quit [Remote host closed the connection]
eka has joined #ruby
pepps has joined #ruby
werdnativ has quit [Quit: werdnativ]
adambeynon has joined #ruby
Nightmeister has joined #ruby
jocellyn has joined #ruby
justme1 has quit [Quit: Leaving.]
werdnativ has joined #ruby
Bry8Star has quit [Ping timeout: 276 seconds]
francisfish has joined #ruby
Elhu has joined #ruby
francisfish has quit [Remote host closed the connection]
francisfish has joined #ruby
niklasb has joined #ruby
kiligarikond has joined #ruby
nightwalk63 has quit [Ping timeout: 255 seconds]
meta-eng has joined #ruby
carlzulauf has joined #ruby
wallerdev has quit [Quit: wallerdev]
cha1tanya has joined #ruby
crackfu has joined #ruby
crackfu has quit [Remote host closed the connection]
crackfu has joined #ruby
mattb has quit [Ping timeout: 272 seconds]
answer_42 has joined #ruby
Bry8Star has joined #ruby
crackfu has quit [Remote host closed the connection]
francisfish has quit [Remote host closed the connection]
vabenjamin has left #ruby [#ruby]
arietis has quit [Ping timeout: 252 seconds]
Slivka has quit [Ping timeout: 248 seconds]
<beaky> hello
spider-mario has joined #ruby
mattb has joined #ruby
pandawarrior1 has quit [Quit: Leaving.]
spider-mario has quit [Remote host closed the connection]
spider-mario has joined #ruby
JonnieCache_ has quit [Ping timeout: 252 seconds]
pepps has quit [Ping timeout: 264 seconds]
jadeship84 has joined #ruby
mercwithamouth has quit [Ping timeout: 260 seconds]
arietis has joined #ruby
monkegji_ has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
hbpoison has quit [Ping timeout: 256 seconds]
banister_ has joined #ruby
banister`sleep has quit [Read error: Connection reset by peer]
JonnieCache_ has joined #ruby
ikst has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
lkba has quit [Ping timeout: 252 seconds]
banister_ has quit [Read error: Connection reset by peer]
banister`sleep has joined #ruby
Al__ has joined #ruby
yshh has joined #ruby
hamed_r has joined #ruby
<beaky> hello
beaky has quit [Quit: leaving]
Elhu has joined #ruby
Al__ has quit [Quit: Al__]
Mon_Ouie has quit [Ping timeout: 264 seconds]
bradhe has joined #ruby
decoponi_ has joined #ruby
Al__ has joined #ruby
zzing has joined #ruby
decoponi_ is now known as decoponio_
Al__ has quit [Client Quit]
decoponio has quit [Disconnected by services]
elkclone has quit [Quit: It's never too late to unplug and run.]
decoponio_ is now known as decoponio
banister`sleep has quit [Remote host closed the connection]
guiguidoc has quit [Ping timeout: 248 seconds]
bradhe has quit [Ping timeout: 252 seconds]
joshman_ has joined #ruby
Qwak has joined #ruby
guiguidoc has joined #ruby
maxmanders has joined #ruby
ferdev|away is now known as ferdev
zzing has quit [Ping timeout: 256 seconds]
m3pow has joined #ruby
jarred1 has joined #ruby
jarred1 has quit [Client Quit]
jarred has quit [Ping timeout: 252 seconds]
d3vic3 has quit [Quit: leaving]
pandawarrior1 has joined #ruby
xor_mind- has joined #ruby
workmad3 has joined #ruby
Mon_Ouie has joined #ruby
xardas has joined #ruby
agarie has quit [Remote host closed the connection]
pyrac has quit [Quit: pyrac]
Elhu has quit [Quit: Computer has gone to sleep.]
Al__ has joined #ruby
pepps has joined #ruby
pyrac has joined #ruby
<echosystm> does anyone know of a ruby library that helps with multi-processing?
Jackneill has quit [Remote host closed the connection]
<echosystm> some type of RPC abstraction or similar
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
roadt has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby
roadt has joined #ruby
dgaffney has joined #ruby
echosystm has quit [Quit: leaving]
hbpoison has joined #ruby
mityaz has quit [Quit: See ya!]
m8 has joined #ruby
dEPy has joined #ruby
dgaffney has quit [Client Quit]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
pen has joined #ruby
mityaz has joined #ruby
gosshedd has quit [Read error: Operation timed out]
gosshedd has joined #ruby
banister`sleep has joined #ruby
lkba has joined #ruby
br4ndon has joined #ruby
hbpoison has quit [Ping timeout: 255 seconds]
elaptics`away is now known as elaptics
Jackneill has joined #ruby
PanPan has quit [Quit: ChatZilla 0.9.90 [Firefox 18.0.2/20130201065344]]
HecAtic has quit [Quit: Àá¼ö]
jimeh has joined #ruby
seich- has quit [Ping timeout: 264 seconds]
dmonjo has joined #ruby
pen has quit [Read error: Connection reset by peer]
pen has joined #ruby
pyrac has quit [Quit: pyrac]
velCzupa has joined #ruby
yshh has quit [Remote host closed the connection]
ferdev is now known as ferdev|away
alx- has quit [Ping timeout: 264 seconds]
codecop has joined #ruby
Elhu has joined #ruby
beiter has joined #ruby
samphippen has joined #ruby
bradhe has joined #ruby
ikst has quit [Remote host closed the connection]
wobblini has joined #ruby
octoberry has joined #ruby
<wobblini> ping
seich- has joined #ruby
hamed_r has quit [Ping timeout: 248 seconds]
bradhe has quit [Ping timeout: 252 seconds]
kristofers has joined #ruby
punkrawkR has joined #ruby
ferdev|away is now known as ferdev
hbpoison has joined #ruby
tvw has quit []
octoberry has quit [Ping timeout: 252 seconds]
werdnativ has quit [Quit: werdnativ]
Kuifje has joined #ruby
timonv has joined #ruby
Wildhoney has joined #ruby
xor_mind- has quit [Quit: Leaving]
pandawarrior1 has quit [Quit: Leaving.]
hbpoison has quit [Ping timeout: 248 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
dblack_ has joined #ruby
atno has quit [Ping timeout: 246 seconds]
Banistergalaxy has quit [Ping timeout: 245 seconds]
Banistergalaxy has joined #ruby
Elhu has joined #ruby
Elhu has quit [Client Quit]
Wildhoney has quit [Ping timeout: 256 seconds]
pyrac has joined #ruby
atno has joined #ruby
atno__ has joined #ruby
m8 has quit [Ping timeout: 252 seconds]
atno__ has quit [Client Quit]
atno has quit [Remote host closed the connection]
atno has joined #ruby
hiall has joined #ruby
Xeago has joined #ruby
cousine has joined #ruby
thams has joined #ruby
cousine has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 264 seconds]
browndawg has quit [Ping timeout: 252 seconds]
pepijn___ has joined #ruby
pavilionXP has joined #ruby
CraHan is now known as CraHan|out
pandawarrior1 has joined #ruby
dmwit_ has joined #ruby
pavilionXP has quit [Read error: Connection reset by peer]
pandawarrior1 has quit [Client Quit]
pskosinski has joined #ruby
dmwit has quit [Ping timeout: 260 seconds]
hbpoison has joined #ruby
JonnieCache_ has quit [Ping timeout: 255 seconds]
pandawarrior1 has joined #ruby
zz_Inoperable has quit [Quit: ZNC - http://znc.in]
ferdev is now known as ferdev|away
CraHan|out is now known as CraHan
cha1tanya has quit [Quit: Leaving]
jlwestsr has quit [Quit: Ex-Chat]
Jackneill has quit [Remote host closed the connection]
jclarke is now known as justsee
justsee has quit [Changing host]
justsee has joined #ruby
horofox_ has joined #ruby
ikst has joined #ruby
Elhu has joined #ruby
dblack_ has quit [Quit: dblack_]
JonnieCache_ has joined #ruby
ikst has quit [Remote host closed the connection]
hbpoison has quit [Ping timeout: 246 seconds]
yacks has quit [Quit: Leaving]
yshh has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
Al__ has quit [Quit: Al__]
wobblini has quit [Ping timeout: 248 seconds]
pepijn___ has quit [Ping timeout: 244 seconds]
yshh has quit [Ping timeout: 252 seconds]
Elhu has joined #ruby
thams has quit [Quit: thams]
ikst has joined #ruby
meta-eng has quit [Quit: Sto andando via]
thams has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
pen has quit [Ping timeout: 252 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
cek has joined #ruby
<cek> how do I pass cflags to extconf when installing a gem?
<cek> .rvm/rubies/ruby-1.9.3-p327/bin/ruby extconf.rb cflags=-I/usr/include/libxml2/
<cek> In file included from _augeas.c:23:0:
<cek> /usr/include/augeas.h:24:25: фатальная ошибка: libxml/tree.h: Нет такого файла или каталога
<cek> somehow, that cflag isn't passed and makefile receives no -I
Virunga has joined #ruby
pen has joined #ruby
pyrac has quit [Quit: pyrac]
BrianJ has quit [Quit: Computer has gone to sleep.]
hashmal has quit [Quit: Computer has gone to sleep.]
<apeiros_> fun, simplecov seems to report utterly wrong numbers…
<apeiros_> lines which have clearly been run turn up as not run
jaygen has joined #ruby
jocellyn has quit [Ping timeout: 248 seconds]
jimeh has quit [Quit: Computer has gone to sleep.]
pyrac has joined #ruby
nfk has joined #ruby
hbpoison has joined #ruby
ananthakumaran has quit [Ping timeout: 255 seconds]
m8 has joined #ruby
justsee has quit [Quit: Leaving...]
girija has joined #ruby
Choclo has joined #ruby
ananthakumaran has joined #ruby
adkron has joined #ruby
cantonic_ has joined #ruby
Mon_Ouie has quit [Ping timeout: 255 seconds]
motto has joined #ruby
m8 has quit [Ping timeout: 256 seconds]
cantonic has quit [Ping timeout: 255 seconds]
cantonic_ is now known as cantonic
<shevy> cek is it not picked up inside ENV['CFLAGS'] ?
ananthakumaran has quit [Ping timeout: 252 seconds]
<shevy> not sure that cflags usually have a -I btw, my CFLAGS is: -fomit-frame-pointer -pipe -fPIC -pthread -fno-strict-overflow -O1
hamed_r has joined #ruby
thams has quit [Quit: thams]
m8 has joined #ruby
Retistic has quit [Quit: Retistic]
motto has quit [Ping timeout: 255 seconds]
oneawayman has joined #ruby
xemu has joined #ruby
Qwak has quit [Ping timeout: 255 seconds]
Retistic has joined #ruby
<apeiros_> wow, only NameError::message (odd classname btw.) implements to_str in core anymore…
pen has quit [Ping timeout: 248 seconds]
pencilcheck has joined #ruby
twshelton has joined #ruby
m8 has quit [Ping timeout: 252 seconds]
thufir_ has quit [Quit: Leaving.]
hbpoison has quit [Ping timeout: 264 seconds]
cantonic_ has joined #ruby
robustus has quit [Ping timeout: 255 seconds]
<shevy> why is php such a joke?
<shevy> lol the comment: "Obama should pass law to make PHP illegal to use in servers"
<cek> lol
cantonic has quit [Ping timeout: 252 seconds]
cantonic_ is now known as cantonic
robustus has joined #ruby
melkor has joined #ruby
<melkor> in ruby 1.9.3 what is the proper for(i=0;i<myArray.length;i++) ?
wargasm has quit [Ping timeout: 244 seconds]
Al__ has joined #ruby
pencilcheck has quit [Read error: Connection reset by peer]
<apeiros_> melkor: array.each do |element|
<apeiros_> if you need the index too: array.each_with_index do |element, index|
pen has joined #ruby
carloslopes has joined #ruby
sandGorgon has quit [Ping timeout: 276 seconds]
<melkor> apeiros_: thanks I just found the eachwithindex
adkron has quit [Ping timeout: 244 seconds]
cek has quit [Ping timeout: 276 seconds]
<apeiros_> shevy: ah, haha, completely forgot about /e in preg_replace - that's so silly
cantonic_ has joined #ruby
pen has quit [Remote host closed the connection]
garbagecollectio has joined #ruby
hbpoison has joined #ruby
timonv has quit [Read error: Connection reset by peer]
cantonic has quit [Ping timeout: 244 seconds]
cantonic_ is now known as cantonic
timonv has joined #ruby
tenmilestereo has joined #ruby
fixl has quit [Remote host closed the connection]
Al__ has quit [Quit: Al__]
cantonic_ has joined #ruby
razibog has joined #ruby
razibog1 has joined #ruby
razibog1 has quit [Client Quit]
BrindleFly_ has joined #ruby
hbpoison has quit [Ping timeout: 256 seconds]
cantonic has quit [Ping timeout: 256 seconds]
cantonic_ is now known as cantonic
Al__ has joined #ruby
BrindleFly has quit [Read error: Operation timed out]
BrindleFly_ is now known as BrindleFly
slainer68 has joined #ruby
kirun has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
Choclo has quit [Quit: Leaving.]
statarb3 has joined #ruby
<dmonjo> what is usually best Proc.new or yield
<shevy> dmonjo they are not the same
cantonic_ has joined #ruby
<apeiros_> dmonjo: depends
<shevy> dmonjo from where do you have the info
<apeiros_> yield is lightweight
<dmonjo> well i can either use yield to call a block or Proc.new and .call to call that block too
iamjarvo has quit [Quit: Leaving.]
<dmonjo> what is better practice
<apeiros_> shevy: Proc.new.call does the same as yield
<shevy> hmm
<apeiros_> that is explicitly Proc.new without a block.
<shevy> ewwwww
<shevy> I could replace all yield with Proc.new.call ?
<shevy> that sounds disgusting :)
gregor3005 has joined #ruby
* shevy hugs his yield
cantonic has quit [Ping timeout: 252 seconds]
cantonic_ is now known as cantonic
<gregor3005> hi, is there an platform independend way to check if the ruby application is still running?
<apeiros_> shevy: it is. it's also most likely slower.
skattyadz has joined #ruby
<apeiros_> gregor3005: if the ruby application is no longer running, you can't run code to check whether it is still running, can you?
<shevy> cool, need to note that down
<dmonjo> apeiros_: i think weith proc you can pass the block from methds to methods, mean you can call that block from any methof
<apeiros_> or do you mean from outside the app? and if so, do you mean with code or system tools?
<dmonjo> with yield you can only call the corresponding block where yield is called
<apeiros_> dmonjo: yes, for passing on, the object is faster. but you shouldn't use Proc.new for that. you should use the &block param.
<apeiros_> e.g. def each(&block); @data.each(&block); end
wmoxam has joined #ruby
<shevy> the error one gets is different though
<shevy> Proc.new.call # ArgumentError: tried to create Proc object without a block
<shevy> yield # LocalJumpError: no block given
<gregor3005> apeiros_: lol thats also an way to interpret my question. i meant i will only start my ruby application once also when i start it twice. the second startup should recognize if it is still running and then quit
<apeiros_> shevy: of course
<dmonjo> apeiros_: any special advanteages of &blocck over proc.enw ?
<dmonjo> new*
<apeiros_> shevy: you have to use it somewhere where there is actually a block available
yshh has joined #ruby
francisfish has joined #ruby
<apeiros_> dmonjo: def each; @data.each(&Proc.new); end is equivalent, but more expensive
<dmonjo> i see
<dmonjo> more object attributes maybe
<apeiros_> dmonjo: clarity and performance
GeRMaN0000 has joined #ruby
<dmonjo> i think the main difference is as you said in the iteration
<dmonjo> everytime a proc.new is called a new object is created
<dmonjo> &block will hold the same oject id
<dmonjo> throught out iterations
<GeRMaN0000> open this link and register now to win money freeeeeeeeeeeee http://visitors2cash.com/ref.php?refId=13702
GeRMaN0000 has quit [Killed (idoru (Spam is off topic on freenode.))]
GeRMaN0000 has joined #ruby
<GeRMaN0000> open this link and register now to win money freeeeeeeeeeeee http://visitors2cash.com/ref.php?refId=13702
GeRMaN0000 has quit [K-Lined]
GeRMaN0000 has joined #ruby
whitedawg has joined #ruby
yacks has joined #ruby
<GeRMaN0000> open this link and register now to win money freeeeeeeeeeeee http://visitors2cash.com/ref.php?refId=13702
GeRMaN0000 has quit [Killed (idoru (Spam is off topic on freenode.))]
GeRMaN0000 has joined #ruby
GeRMaN0000 has quit [K-Lined]
<dmonjo> thats a bot or somethin
hbpoison has joined #ruby
GeRMaN0000 has joined #ruby
mpfundstein has joined #ruby
mpfundstein has quit [Client Quit]
pen has joined #ruby
mpfundstein has joined #ruby
<Xeago> apeiros_: what mode is +q?
<Xeago> quiet?
garbagecollectio has quit [Quit: garbagecollectio]
mpfundstein has quit [Client Quit]
maxmanders has joined #ruby
mpfundstein has joined #ruby
mpfundstein has quit [Client Quit]
mpfundstein has joined #ruby
wmoxam has quit [Ping timeout: 264 seconds]
Retistic has quit [Quit: Retistic]
velCzupa has quit [Quit: Leaving]
kofno has quit [Ping timeout: 248 seconds]
velCzupa has joined #ruby
BrindleFly has quit [Quit: BrindleFly]
GeRMaN0000 has quit [Quit: • IRcap • 8.6 •]
banister_ has joined #ruby
jocellyn has joined #ruby
banister`sleep has quit [Read error: Connection reset by peer]
whitedawg has quit [Quit: Leaving.]
ahokaomaeha has joined #ruby
kirun has quit [Ping timeout: 246 seconds]
<gregor3005> found a way. i created a lock file
<shevy> sometimes I wonder if my brain is too small for ruby
DrShoggoth has quit [Quit: Leaving]
yshh has quit [Remote host closed the connection]
kofno has joined #ruby
MartinCleaver has joined #ruby
MartinCleaver has quit [Changing host]
MartinCleaver has joined #ruby
pavilionXP has joined #ruby
wmoxam has joined #ruby
dmonjo has quit [Remote host closed the connection]
cantonic has quit [Ping timeout: 245 seconds]
CraHan is now known as CraHan|out
schaerli has joined #ruby
himsin has joined #ruby
m8 has joined #ruby
ananthakumaran has joined #ruby
iamjarvo has joined #ruby
motto has joined #ruby
harumph has joined #ruby
m8 has quit [Ping timeout: 255 seconds]
harumph has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
horofox_ has quit [Quit: horofox_]
jcsims has quit [Remote host closed the connection]
testingb0t has quit [Quit: Leaving.]
nobuoka has joined #ruby
jcsims has joined #ruby
jcsims has quit [Client Quit]
jcsims has joined #ruby
sandGorgon has joined #ruby
MartinCleaver has quit [Quit: MartinCleaver]
subbyyy has joined #ruby
sonda has joined #ruby
hanno has joined #ruby
motto has quit [Ping timeout: 264 seconds]
<hanno> hi, i want a check if net/https is loaded
<hanno> it seems for some reason defined? Net::HTTPS doesn't work
harumph has joined #ruby
wmoxam has quit [Ping timeout: 264 seconds]
JonnieCache_ has quit [Ping timeout: 260 seconds]
ahokaomaeha has quit [Ping timeout: 252 seconds]
ananthakumaran has quit [Ping timeout: 246 seconds]
cantonic_ has joined #ruby
ananthakumaran has joined #ruby
harumph has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
ananthakumaran has quit [Client Quit]
ananthakumaran has joined #ruby
yshh has joined #ruby
zzing has joined #ruby
garbagecollectio has joined #ruby
beaky has joined #ruby
<beaky> hello
<beaky> what is the purpose of object-oriented programming?
<kalleth> next
pdamer has joined #ruby
neurone-1337 has joined #ruby
<beaky> ah thanks
<kalleth> beaky: some might say 'to shoehorn every aspect of a system into an object relating tenuously to some kind of collective function but really resulting in a spaghetti-like mess'
bluOxigen has joined #ruby
<kalleth> of course, the same might be said for functional programming
Al__ has quit [Quit: Al__]
zzing has quit [Ping timeout: 260 seconds]
cantonic has joined #ruby
monkegji_ has quit [Remote host closed the connection]
Al__ has joined #ruby
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
cantonic_ has quit [Ping timeout: 252 seconds]
kirun has joined #ruby
browndawg has joined #ruby
forced_request has joined #ruby
Al__ has quit [Client Quit]
kofno has quit [Remote host closed the connection]
alessia has joined #ruby
<alessia> !list
fschuindt has joined #ruby
banister`sleep has joined #ruby
ananthakumaran has quit [Ping timeout: 252 seconds]
cantonic has quit [Ping timeout: 252 seconds]
alessia has quit []
banister_ has quit [Ping timeout: 252 seconds]
alessia has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Remote host closed the connection]
Spooner has joined #ruby
twshelton has quit [Quit: Computer has gone to sleep.]
alessia has left #ruby [#ruby]
melkor has left #ruby [#ruby]
ananthakumaran has joined #ruby
fschuindt has quit [Ping timeout: 252 seconds]
rippa has quit [Ping timeout: 240 seconds]
beaky has quit [Ping timeout: 264 seconds]
beaky has joined #ruby
<beaky> hello
ahokaomaeha has joined #ruby
banister`sleep has quit [Remote host closed the connection]
ananthakumaran1 has joined #ruby
ananthakumaran1 has quit [Client Quit]
ananthakumaran1 has joined #ruby
ananthakumaran has quit [Ping timeout: 252 seconds]
ananthakumaran1 has quit [Client Quit]
ananthakumaran has joined #ruby
bubblehead has joined #ruby
horofox_ has joined #ruby
mengu has joined #ruby
garbagecollectio has quit [Quit: garbagecollectio]
hamed_r has quit [Quit: Leaving]
whitedawg has joined #ruby
dblack_ has joined #ruby
dblack_ has quit [Client Quit]
akashj87 has joined #ruby
velCzupa has quit [Read error: Connection reset by peer]
kofno has joined #ruby
pdamer has quit [Quit: pdamer]
Yakko has quit [Ping timeout: 264 seconds]
twshelton has joined #ruby
whitedawg has quit [Quit: Leaving.]
emmanuelux has joined #ruby
kofno has quit [Remote host closed the connection]
<beaky> what is dependency injection?
pencilcheck has joined #ruby
pen has quit [Read error: No route to host]
pakchoi2 has joined #ruby
<`p> does anyone know what that site is where it gives you a problem and you must solve it in code and on the front page it has all these different languages you can choose from
pakchoi2 has quit [Max SendQ exceeded]
pakchoi2 has joined #ruby
fschuindt has joined #ruby
akashj87 has quit [Ping timeout: 252 seconds]
angusiguess has quit [Ping timeout: 248 seconds]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
sailias has quit [Ping timeout: 264 seconds]
subbyyy has quit [Ping timeout: 276 seconds]
Vert has joined #ruby
mercwithamouth has joined #ruby
workmad3 has joined #ruby
jstew has joined #ruby
garbagecollectio has joined #ruby
DrShoggoth has joined #ruby
<Spooner> `p, codecademy.com?
MartinCleaver has joined #ruby
MartinCleaver has quit [Changing host]
MartinCleaver has joined #ruby
jstew has quit [Quit: jstew]
pakchoi2 has left #ruby ["离开"]
adkron has joined #ruby
pakchoi2 has joined #ruby
pakchoi2 has quit [Max SendQ exceeded]
bradhe has joined #ruby
pakchoi2 has joined #ruby
main has quit [Remote host closed the connection]
zmike has joined #ruby
banister`sleep has joined #ruby
postmodern has quit [Quit: Leaving]
main has joined #ruby
subbyyy has joined #ruby
pakchoi2 has quit [Client Quit]
dhruvasagar has joined #ruby
zzing has joined #ruby
bradhe has quit [Ping timeout: 260 seconds]
hanno has quit [Ping timeout: 248 seconds]
pakchoi2 has joined #ruby
pakchoi2 has quit [Remote host closed the connection]
<gregor3005> hi, i try to test rubysu that i found here: https://github.com/gderosa/rubysu
<gregor3005> i downloaded the folder and added it with the following line: require_relative '../lib/rubysu/lib/sudo'
twshelton has quit [Quit: Computer has gone to sleep.]
reactormonk has quit [Ping timeout: 248 seconds]
<gregor3005> but now i get the following error: http://paste2.org/p/2956796
carloslopes has quit [Remote host closed the connection]
zzing has quit [Ping timeout: 256 seconds]
pencilcheck has quit [Remote host closed the connection]
<`p> no not codeacademy
<gregor3005> hm, the source look ok, it cannot find the following line: require 'sudo/wrapper'
<adkron> gregor3005: is startClient your code?
<gregor3005> `p: what?
<gregor3005> yes
<adkron> It looks like your require_relative is wrong according to the error.
mengu has quit [Ping timeout: 248 seconds]
<apeiros_> gregor3005: you have to install libraries
mengu_ has joined #ruby
<apeiros_> if you don't want to install them, you have to add their 'lib' directory to $LOAD_PATH
<apeiros_> otherwise files in that lib won't find other files in that lib
<gregor3005> apeiros_: for that lib i found no gem, normally i used gem's
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
<apeiros_> gregor3005: it has a gemspec
<gregor3005> ah load_path
[[johnonymous]] has joined #ruby
nari has joined #ruby
garbagecollectio has quit [Quit: garbagecollectio]
<apeiros_> not load_path, $LOAD_PATH
<apeiros_> case and sigil matter
workmad3 has quit [Ping timeout: 264 seconds]
<apeiros_> just `gem build *.gemspec && gem install -l *.gem`
angusiguess has joined #ruby
<gregor3005> apeiros_: thx gem installation worked
adkron has quit [Ping timeout: 252 seconds]
hanno has joined #ruby
banister`sleep is now known as banisterfiend
pdamer has joined #ruby
adkron has joined #ruby
justme1 has joined #ruby
pdamer has quit [Client Quit]
jrajav has joined #ruby
znode has joined #ruby
adkron has quit [Client Quit]
adkron has joined #ruby
<shevy> I need to write a ruby script that codes for me
emmanuelux has quit [Ping timeout: 248 seconds]
znode has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 245 seconds]
[[johnonymous]] has quit [Quit: Computer has gone to sleep.]
akashj87 has joined #ruby
razibog has quit [Ping timeout: 248 seconds]
subbyyy_ has joined #ruby
subbyyy has quit [Read error: Connection reset by peer]
SCommette has joined #ruby
baroquebobcat has joined #ruby
elaptics is now known as elaptics`away
nari has quit [Ping timeout: 245 seconds]
jadeship84 has quit [Remote host closed the connection]
counter-riposte2 has joined #ruby
baroquebobcat has quit [Client Quit]
adkron has quit [Ping timeout: 276 seconds]
zoonfafer has quit [Ping timeout: 248 seconds]
iamjarvo has quit [Quit: Leaving.]
bluOxigen has joined #ruby
pavilionXP has quit [Read error: Connection reset by peer]
adkron has joined #ruby
fschuindt has quit [Ping timeout: 248 seconds]
emmanuelux has joined #ruby
horofox_ has quit [Quit: horofox_]
oneawayman has quit [Read error: Connection reset by peer]
oneawayman has joined #ruby
horofox has joined #ruby
banisterfiend has quit [Remote host closed the connection]
philcrissman has joined #ruby
kevinfagan has joined #ruby
kevinfagan has quit [Remote host closed the connection]
garbagecollectio has joined #ruby
kevinfagan has joined #ruby
Banistergalaxy has quit [Ping timeout: 248 seconds]
Banistergalaxy has joined #ruby
octoberry has joined #ruby
banisterfiend has joined #ruby
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
horofox has quit [Quit: horofox]
x0F_ is now known as x0F
hanno has quit [Quit: Verlassend]
trevortwining has joined #ruby
MartinCleaver has quit [Quit: MartinCleaver]
<gregor3005> does anybody know a way to manipute files in ruby with the sudo command? i found rubysu, but it is broken, the testfile didn run: https://github.com/gderosa/rubysu
znode has joined #ruby
nobuoka has quit [Quit: Leaving...]
Guest35890 has joined #ruby
MartinCleaver has joined #ruby
MartinCleaver has quit [Changing host]
MartinCleaver has joined #ruby
Guest35890 has quit [Read error: Connection reset by peer]
meoblast has joined #ruby
MartinCleaver has quit [Client Quit]
jkarayusuf has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
jkarayusuf has left #ruby [#ruby]
skattyadz has quit [Quit: skattyadz]
workmad3 has joined #ruby
subbyyy_ has quit [Ping timeout: 252 seconds]
skattyadz has joined #ruby
joofsh has joined #ruby
znode has quit [Ping timeout: 260 seconds]
Elhu has joined #ruby
zwevans has joined #ruby
zzing has joined #ruby
subbyyy_ has joined #ruby
AtoxIO has joined #ruby
adkron has quit [Ping timeout: 246 seconds]
crackfu has joined #ruby
wallerdev has joined #ruby
sandGorgon has quit [Ping timeout: 248 seconds]
iamjarvo has joined #ruby
skattyadz has quit [Quit: skattyadz]
smoth has joined #ruby
justme1 has left #ruby [#ruby]
<smoth> aa
zzing has quit [Ping timeout: 276 seconds]
<smoth> how can I map an array taking values 2 by 2? ie: [1,2,3].map_2_by_2{|x,y| [x,y]} => [[1,2],[2,3]]
sepp2k has joined #ruby
<smoth> shall I write my own function or there is a cool way?
<apeiros_> smoth: .each_slice(2)
mengu__ has joined #ruby
mengu_ has quit [Ping timeout: 246 seconds]
wmoxam has joined #ruby
anderse has quit [Quit: anderse]
ananthakumaran1 has joined #ruby
codezombie has joined #ruby
<smoth> apeiros_, ty, the function I'll use is .each_cons(2) :D
<apeiros_> d'oh, sorry. that's the one I meant.
mengu has joined #ruby
carloslopes has joined #ruby
ananthakumaran has quit [Ping timeout: 255 seconds]
mengu__ has quit [Ping timeout: 260 seconds]
tomzx_mac has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
WhereIsMySpoon has quit [Ping timeout: 252 seconds]
joeycarmello has joined #ruby
carloslopes has quit [Ping timeout: 260 seconds]
emmanuelux has quit [Ping timeout: 256 seconds]
hbpoison has quit [Ping timeout: 255 seconds]
stopbit has quit [Remote host closed the connection]
BrindleFly has joined #ruby
testingb0t has joined #ruby
gosshedd has quit [Ping timeout: 248 seconds]
eldariof has quit [Ping timeout: 264 seconds]
r0f0 has joined #ruby
<r0f0> join #php
<banisterfiend> lol php
ahokaomaeha has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
<r0f0> ah sorry
<r0f0> was in a bit of hurry
<r0f0> forgot to put / :P
<Hanmac> now we all point the finger and laugh about you
* r0f0 hides in the corner
skattyadz has joined #ruby
schaerli has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
techhelp has joined #ruby
<Hanmac> its not because you forgot the / ... its because you are using php :P
<r0f0> I don't hate any language.I am not a fanboy aswell.I like to play with every language.
<r0f0> like some lads like to play with drugs/sex.
Elhu has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby
MartinCleaver has joined #ruby
MartinCleaver has joined #ruby
MartinCleaver has quit [Changing host]
melkor has joined #ruby
bnagy has quit [Ping timeout: 276 seconds]
girija has quit [Ping timeout: 252 seconds]
Kevin has joined #ruby
<melkor> I'm looking at the openstruct api, and the method send isn't documented. Where do I find other undocumented methods?
Kevin is now known as Guest56426
hbpoison has joined #ruby
joeycarmello has quit [Remote host closed the connection]
arya has joined #ruby
pskosinski has quit [Read error: Connection reset by peer]
kevinfagan has quit [Ping timeout: 252 seconds]
WhereIsMySpoon has joined #ruby
<apeiros_> melkor: check superclasses
emmanuelux has joined #ruby
<apeiros_> melkor: send is Object#send
rippa has joined #ruby
pskosinski has joined #ruby
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
vlad_starkov has quit [Remote host closed the connection]
main has quit [Remote host closed the connection]
main has joined #ruby
Elhu has joined #ruby
mengu_ has joined #ruby
subbyyy_ has quit [Ping timeout: 245 seconds]
<melkor> Is there a good way to see if an open struct has a field where the name of the field is in a string?
mengu has quit [Ping timeout: 260 seconds]
razibog has joined #ruby
Elhu has quit [Client Quit]
joofsh has quit [Remote host closed the connection]
<apeiros_> struct.respond_to? field
garbagecollectio has quit [Quit: garbagecollectio]
kodeart has joined #ruby
subbyyy_ has joined #ruby
jocellyn has quit [Quit: Leaving.]
<melkor> apeiros_: so then how would i get the value out of that field?
<apeiros_> by the very method you asked for before
AtoxIO has quit [Remote host closed the connection]
<apeiros_> struct.send field
<apeiros_> but maybe you're better off with a Hash
<apeiros_> hash[field] = value; hash[field] # => value
schaerli has joined #ruby
F1skr has joined #ruby
bnagy has joined #ruby
<melkor> apeiros_: you're probaly correct. I'm serializing the struct into a table though.
dhruvasagar has quit [Ping timeout: 246 seconds]
wmoxam has quit [Ping timeout: 260 seconds]
MartinCleaver has quit [Quit: MartinCleaver]
hbpoison has quit [Ping timeout: 264 seconds]
moeSizlak has joined #ruby
eldariof has joined #ruby
philcrissman has quit [Remote host closed the connection]
skcin7 has joined #ruby
jrajav has joined #ruby
BrindleFly has quit [Read error: Connection reset by peer]
skattyadz has quit [Quit: skattyadz]
BrindleFly has joined #ruby
txdv has joined #ruby
codezombie has quit [Quit: Linkinus - http://linkinus.com]
blueOxigen has joined #ruby
scruple has joined #ruby
maxmanders has quit [Ping timeout: 246 seconds]
tcstar has joined #ruby
bluOxigen has quit [Ping timeout: 252 seconds]
znode has joined #ruby
quazimodo has quit [Ping timeout: 252 seconds]
Emplitz has joined #ruby
maxmanders has joined #ruby
dhruvasagar has joined #ruby
tcurdt has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
jimeh has joined #ruby
Mattix has quit [Read error: Connection reset by peer]
Mattix has joined #ruby
tcurdt has quit [Client Quit]
maxmanders has quit [Ping timeout: 255 seconds]
MartinCleaver has joined #ruby
MartinCleaver has quit [Changing host]
MartinCleaver has joined #ruby
Elhu has joined #ruby
Elhu has quit [Client Quit]
maxmanders has joined #ruby
hiall has quit [Ping timeout: 276 seconds]
znode has quit [Ping timeout: 252 seconds]
skcin7 has quit [Quit: Computer has gone to sleep.]
huttan has quit [Read error: Connection reset by peer]
testingb0t has quit [Quit: Leaving.]
iamjarvo has quit [Quit: Leaving.]
Ethan has quit [Quit: "The destruction of balance constitutes leaping forward and such destruction is better than balance. Imbalance and headache are good things." - Mao]
elux has joined #ruby
melkor has quit [Quit: thanks]
browndawg has quit [Ping timeout: 248 seconds]
Ethan has joined #ruby
garbagecollectio has joined #ruby
twshelton has joined #ruby
quazimodo has joined #ruby
skcin7 has joined #ruby
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
pavilionXP has joined #ruby
browndawg has joined #ruby
techhelp has quit [Quit: This computer has gone to sleep]
breakingthings has joined #ruby
hbpoison has joined #ruby
emmanuelux has quit [Remote host closed the connection]
zmike has quit [Quit: Выходжу]
garbagecollectio has quit [Quit: garbagecollectio]
zmike has joined #ruby
zmike has quit [Read error: Connection reset by peer]
schaerli has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
Mon_Ouie has quit [Ping timeout: 260 seconds]
emmanuelux has joined #ruby
arya has quit []
elux has quit [Read error: No route to host]
elux has joined #ruby
mengu_ has quit [Ping timeout: 260 seconds]
dangerousdave has joined #ruby
Elhu has joined #ruby
octoberry has quit [Ping timeout: 252 seconds]
jocellyn has joined #ruby
io_syl has joined #ruby
Mon_Ouie has joined #ruby
pats_Toms has joined #ruby
<pats_Toms> hi, command "ruby -v" outputs "ruby 1.9.2p0" but when I try to install gem ruby-skype it shows me that "ruby-skype requires Ruby version ~> 1.9.0."
<pats_Toms> any ideas?
AndChat| has joined #ruby
lkba has quit [Read error: Connection reset by peer]
<breakingthings> pats_Toms: `~>` is a pessimistic version constraint
<breakingthings> ruby-skype expects a 1.9.0 build. Not 1.8.9, not 1.9.1.
<pats_Toms> hi, breakingthings
<pats_Toms> so I need 1.9.0?
<breakingthings> According to ruby-skype, yes.
arya has joined #ruby
roadt has quit [Ping timeout: 276 seconds]
twshelton has quit [Quit: Computer has gone to sleep.]
workmad3 has joined #ruby
s1n4 has joined #ruby
drago757 has joined #ruby
jimeh has quit [Quit: Computer has gone to sleep.]
spaceships has joined #ruby
io_syl_ has joined #ruby
ferdev|away is now known as ferdev
s1n4 has quit [Client Quit]
Elhu has quit [Quit: Computer has gone to sleep.]
d3vic3 has joined #ruby
emmanuelux has quit [Ping timeout: 260 seconds]
BrindleFly has quit [Quit: BrindleFly]
io_syl has quit [Ping timeout: 245 seconds]
io_syl_ is now known as io_syl
SCommette has quit [Quit: SCommette]
workmad3 has quit [Ping timeout: 245 seconds]
zzing has joined #ruby
Elhu has joined #ruby
ahokaomaeha has joined #ruby
wallerdev has joined #ruby
wallerdev has quit [Client Quit]
zzing has quit [Ping timeout: 256 seconds]
Ethan has quit [Ping timeout: 248 seconds]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
skcin7 has quit [Quit: Computer has gone to sleep.]
crackfu has quit [Remote host closed the connection]
BrindleFly has joined #ruby
hoornet has joined #ruby
CraHan|out is now known as CraHan
rismoney has quit []
emmanuelux has joined #ruby
joeycarmello has joined #ruby
Guest56426 has quit [Quit: Leaving...]
anderse has joined #ruby
hbpoison has quit [Ping timeout: 256 seconds]
BrindleFly has quit [Client Quit]
vabenjamin has joined #ruby
d3vic3 has quit [Quit: leaving]
gift has joined #ruby
whitedawg has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
havenwood has joined #ruby
<gift> trying to convert [ ["abcd",4], ["efgh",18], ["jklm",2] ] => [ { "abcd" => 4 }, { "efgh" => 18 }, { "jklm" => 2 } ]
kirun_ has joined #ruby
<otters> Hash#[]
frewsxcv has joined #ruby
joeycarmello has quit [Ping timeout: 260 seconds]
chrishough has joined #ruby
Elhu has joined #ruby
skcin7 has joined #ruby
<gift> i see, got it
<Xeago> otherwise: ["abcd",4], ["efgh",18], ["jklm",2] ].map {|(a,b)| {a => b} } => [{"abcd"=>4}, {"efgh"=>18}, {"jklm"=>2}]
kirun has quit [Ping timeout: 248 seconds]
<apeiros_> gift: you sure you mean [ { "abcd" => 4 }, { "efgh" => 18 }, { "jklm" => 2 } ] ?
<apeiros_> because that makes little to no sense
<otters> oh, I misread
<apeiros_> { "abcd" => 4, "efgh" => 18, "jklm" => 2 } # that makes more sense
* apeiros_ also suspects otters meant Hash::[], not Hash#[]
skcin7 has quit [Client Quit]
<otters> Hash.[]
<apeiros_> that is: ary = [["abcd",4], ["efgh",18], ["jklm",2]]; Hash[ary] # => {"abcd"=>4,"efgh"=>18,"jklm"=>2}
browndawg has quit [Ping timeout: 256 seconds]
<gift> yeah good call, not sure why i thought that made sense
<gift> success, thanks ya.
bradhe has joined #ruby
kanja has joined #ruby
arya has quit [Ping timeout: 248 seconds]
BrindleFly has joined #ruby
krz has joined #ruby
<kanja> I'm a decent python programmer, but I haven't done any ruby - can someone point me to a good quick and dirty ruby tutorial?
<kanja> Also - I specifically need to create an api client - does anyone know a good one on GH I can read though?
garbagecollectio has joined #ruby
<apeiros_> kanja: on ruby-lang.org, there's a very short "ruby for python programmers"
pyrac has quit [Quit: pyrac]
IrishGringo has joined #ruby
chrishough has quit [Quit: chrishough]
<kanja> apeiros_: I read through that and it was nice for some of the internal differences, but I was hoping for a little more syntax advice
Ethan has joined #ruby
sonda has quit [Remote host closed the connection]
Elhu has quit [Quit: Computer has gone to sleep.]
iamjarvo has joined #ruby
arya has joined #ruby
Ethan has quit [Remote host closed the connection]
whitedawg has quit [Quit: Leaving.]
pyrac has joined #ruby
ctp has joined #ruby
bradhe has quit [Ping timeout: 256 seconds]
v0n has joined #ruby
dmwit_ is now known as dmwit
Ethan has joined #ruby
workmad3 has joined #ruby
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
pats_Toms has quit [Ping timeout: 248 seconds]
horofox_ has joined #ruby
browndawg has joined #ruby
Elhu has joined #ruby
whowantstolivef1 has joined #ruby
brianpWins has joined #ruby
yacks has quit [Remote host closed the connection]
pandawarrior1 has quit [Quit: Leaving.]
BrindleFly has quit [Quit: BrindleFly]
AtoxIO has joined #ruby
chrishough has joined #ruby
chrishough has quit [Remote host closed the connection]
sandGorgon has joined #ruby
chrishough has joined #ruby
s__dana has joined #ruby
niklasb has quit [Read error: No route to host]
Elhu has quit [Client Quit]
browndawg has quit [Ping timeout: 255 seconds]
jonathanwallace has quit [Read error: Connection reset by peer]
nate00 has joined #ruby
ctp has quit [Quit: Linkinus - http://linkinus.com]
smallcapsdude has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
ctp has joined #ruby
IrishGringo has quit [Ping timeout: 252 seconds]
banisterfiend has joined #ruby
hoornet has quit [Remote host closed the connection]
ctp has quit [Client Quit]
Emplitz has quit [Remote host closed the connection]
dblack_ has joined #ruby
finnomenon has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
dmwit has quit [Remote host closed the connection]
hashmal has joined #ruby
wmoxam has joined #ruby
IceDragon has joined #ruby
arya has quit [Ping timeout: 248 seconds]
maycon has quit [Ping timeout: 264 seconds]
hbpoison has joined #ruby
arya has joined #ruby
d3vic3 has joined #ruby
arturaz has joined #ruby
wallerdev has joined #ruby
garbagecollectio has quit [Quit: garbagecollectio]
kevinfagan has joined #ruby
pats_Toms has joined #ruby
MartinCleaver has quit [Quit: MartinCleaver]
elkclone has joined #ruby
pandawarrior1 has joined #ruby
pandawarrior1 has quit [Client Quit]
nate00 has quit [Ping timeout: 245 seconds]
<shevy> hmm anyone happens to know offhand... if there is a way to convert, month given as integer, to long name?
pen has joined #ruby
<shevy> like number 3, would become "Mar" or "March"
frewsxcv has left #ruby ["Leaving"]
<Xeago> in ruby or in general?
<shevy> in ruby
<shevy> I suppose I could make a small hash but there is probably some inbuilt way hmm
gift has left #ruby ["WeeChat 0.3.8"]
<shevy> ah found one way, I think
brianpWins has quit [Quit: brianpWins]
Qwak has joined #ruby
<shevy> Date.today.month gives a number, then one can access Date::MONTHNAMES
verysoftoiletppr has quit []
brianpWins has joined #ruby
<dblack_> shevy: you beat me to it :-)
<shevy> well as long as this is the best solution :)
<shevy> Time.now.strftime() alone would have been perfect
zzing has joined #ruby
<shevy> Time.now.strftime "%d.%m.%Y" # => "23.02.2013" hmm
<dblack_> shevy: as long as Time.now is in the right month
<shevy> hehe
verysoftoiletppr has joined #ruby
<shevy> yeah...
<shevy> can't calculate the month in 335 years with .strftime() I guess
<havenwood> I wish we could just forget about months and use yday.
Elhu has joined #ruby
<havenwood> Happy day 54!
newUser1234 has joined #ruby
DrShoggoth has quit [Read error: Connection reset by peer]
maycon has joined #ruby
maycon has quit [Changing host]
maycon has joined #ruby
brianpWins has quit [Client Quit]
mduvall has joined #ruby
Qwak has quit [Ping timeout: 260 seconds]
<shevy> one day mankind will use universe time
<shevy> starspace 789237556126677
sparuvu has joined #ruby
trevortwining has quit [Quit: trevortwining]
alx- has joined #ruby
zzing has quit [Ping timeout: 256 seconds]
pandawarrior1 has joined #ruby
Al__ has joined #ruby
pandawarrior1 has quit [Client Quit]
zastern has joined #ruby
<zastern> Learning ruby from scratch with no prior programming experience is making my head hurt :(
verysoftoiletppr has quit []
<dblack_> zastern: what resources are you using to learn it?
slainer68 has quit [Remote host closed the connection]
<zastern> dblack_: LRTHW
<zastern> I've gotten farther with it than anything else I've tried over the years, fwiw.
* dblack_ is acronymically challenged
<dblack_> zastern: what's LRTHW?
<zastern> dblack_: Ah I apologize, it wasn't my intent to discriminate against your disability.
<dblack_> :-)
<zastern> :D
vabenjamin has quit [Read error: Connection reset by peer]
Al__ has quit [Client Quit]
<dblack_> ah, zed shaw
<dblack_> i thought it rang a bell
Stilo has joined #ruby
<IceDragon> zastern... well "Learn Code The Hard Way"
<zastern> IceDragon: hah, indeed.
garbagecollectio has joined #ruby
<IceDragon> well good luck, I more syntax erros than lines of code when I first started out
<IceDragon> *had
<zastern> IceDragon: yeah, same. Right now I'm trying to figure out how to use being, rescue, end properly.
<dblack_> zastern: great typo there :-)
<zastern> hahaha
<IceDragon> begin ; insert_youe_code_here ; rescue ; something_went_wrong_try_something_else ; end
<zastern> IceDragon: right but don't I need to like
<zastern> specify what exceptions to handle
<zastern> in rescue
<IceDragon> :O It will rescue StandardErrors by default
<havenwood> def startdate; "#{Time.now.year}.#{Time.now.yday}".to_f; end
<IceDragon> ruby is quite forgiving
<dblack_> zastern: in general, as few as possible
<dblack_> zastern: let the ones that aren't relevant to what you're doing bubble up
BrindleFly has joined #ruby
kevinfagan has quit [Quit: Leaving...]
<zastern> alright, i'll try it out.
<zastern> One thing I do love about ruby is that people are so willing to help.
pyrac has quit [Quit: pyrac]
<zastern> The niceness quotient in #ruby is a lot higher than uh, #anythingelse.
BrindleFly has quit [Client Quit]
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
<IceDragon> :P its easier to help with something that is well... easy?
Es0teric has joined #ruby
<zastern> haha. Is it possible to have rescue do something and then retry the code between begin and rescue? I know I could probably do that with a def, but is it built in somehow?
tealmage has joined #ruby
<IceDragon> :O Its possible I think...
<IceDragon> I've never really used 'retry' much
trevortwining has joined #ruby
Nisstyre-laptop has joined #ruby
<zastern> I don't know if my use here is valid, but we're about to find out.
pyrac has joined #ruby
<zastern> Woo it works!
<zastern> <3 you all.
skattyadz has joined #ruby
bradhe has quit [Ping timeout: 260 seconds]
<IceDragon> :O
<zastern> lol
himsin has quit [Ping timeout: 248 seconds]
<dblack_> zastern: i would rescue Errno::ENOENT in that situation. if something else went wrong, you don't want to give a misleading error message
<zastern> dblack_: it's already handling anything that isn't a real file perfectly.
<zastern> dblack_: why do that specificially?
<zastern> (imagine that question with better spelling)
znode has joined #ruby
<dblack_> zastern: something else might go wrong, like a permissions problem
<zastern> dblack_: ah and then my message would be invalid.
<dblack_> zastern: right
<zastern> sure ok
<dblack_> zastern: if i'm very nice to you, will you stop putting unnecessary () at the end of method calls? :-)
<IceDragon> or STDIN might be closed
<zastern> dblack_: haha I thought you alaways had to. Why stop?
budmang has joined #ruby
<dblack_> zastern: you don't have to, and i would stop because it's unidiomatic and unnecessary
<zastern> dblack_: hmm ok, the lrthw examples always do it
decoponio has quit [Quit: Sleeping... (at 4:27 am JST)]
<zastern> i feel like at some point i didnt put () and it didnt work.
<dblack_> zastern: i wonder whether that's a python thing
<zastern> but maybe i'm misremembering
reactormonk has joined #ruby
<dblack_> zastern: if you have a local variable x and a method x, then x will refer to the local variable and you have to do x() to call the method
techhelp has joined #ruby
<zastern> dblack_: right so then isn't it safer to just always ()
budmang_ has quit [Ping timeout: 264 seconds]
<zastern> just like when I write puppet I always ::foo::bar::blah for class names, I don't refer to them out of scope, even though it works
<dblack_> zastern: no, because in the case of object.x you're sending the message x to object
<zastern> dblack_: right but then i wouldnt put () . . .
<dblack_> zastern: but you do, like txt.read()
elkclone has quit [Read error: Connection reset by peer]
<zastern> dblack_: oh I see what you mean.
<dblack_> zastern: it's up to you, but as you see more and more ruby code you'll find that it's very unusual in ruby to put () where it isn't needed
<zastern> dblack_: but doesn't .read() have params that potentially go in ()
himsin has joined #ruby
etcetera has joined #ruby
<IceDragon> you could use txt.read your_params
<dblack_> zastern: if you have params then parens make sense
<IceDragon> without parenthesis
<zastern> IceDragon: Oh I didn't know that.
elkclone has joined #ruby
<dblack_> yeah, that too, though in most cases i tend to use parens
kanja has left #ruby [#ruby]
<zastern> Hmm ok. Well you have been very nice to me, so I'll probably consider what you're saying.
<dblack_> :-)
kevinfagan has joined #ruby
<zastern> I think I also prefer using the perens for params just because it's more readable that way (to me)
<zastern> anyway back to the lesson.
<dblack_> have fun
<IceDragon> puts("Your Text")
<zastern> IceDragon: Oh I didn't even know you could do that.
<dblack_> IceDragon: that's why i said "most cases" :-)
<zastern> hah.
<zastern> I thought it was always/only puts 'foo'
<dblack_> similarly, attr_accessor :x is typically written without parens
<zastern> But I don't know things.
<dblack_> whoops
<dblack_> you know, attr_accessor :whatever
<dblack_> colon x appears to be a face
ahokaomaeha has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
<IceDragon> Symbol :something
SCommette has joined #ruby
<zastern> oh that raises another question I have. I noticed that `puts :foo` works. also.
<zastern> What's the significance of the :
<dblack_> zastern: :whatever is a symbol
<IceDragon> puts invokes #to_s on the object
<zastern> But it's just printing out foo. There's nothing special about foo
bluOxigen has joined #ruby
<zastern> IceDragon: that I realize.
<dblack_> zastern: :foo.to_s is "foo", so that's what gets printed
<canton7> symbols are like strings, but comparison is cheaper
<zastern> ok. So why would i want to :foo isntead of 'foo'
<zastern> besides comparing them?
<canton7> symbols are handy for things like hash keys, for that reason
<IceDragon> speed :D
<dblack_> symbols are basically a programmer view onto ruby's internal symbol table
znode has quit [Ping timeout: 252 seconds]
<dblack_> there's a symbol in the table for every identifier
<IceDragon> But the more symbols you have, the more mem it uses, since even Unused symbols would just sit there
<canton7> but 1) they're never disposed (so don't create too many - basically don't create them automatically in large numbers), and creation is slightly more expensive that strings
<dblack_> try Symbol.all_symbols in irb some time
<IceDragon> around 1000+ on average
<apeiros_> canton7: the rules are simpler: 1) don't create symbols from user input, 2) don't greate symbols from a possibly infinite sequence
toekutr has joined #ruby
blueOxigen has quit [Ping timeout: 256 seconds]
<zastern> dblack_: that was a lot of stuff. Is Symbol a function of some kind on its own? Or like a built in var, or something?
<apeiros_> 1) can be difficult, since a couple of methods in ruby accept strings but will convert them into symbols. examples: Object#send, Module#const_get, Object#instance_variable_get
<dblack_> zastern: it's a class
<IceDragon> my rules: Only use a symbol when you plan to utilize it more than once, and its time crucial
<canton7> apeiros_, that doesn't include things like parsed config files :P
<zastern> dblack_: mm ok
codecop has quit [Remote host closed the connection]
<apeiros_> canton7: depends, if the config files are part of the app, then no, it doesn't. and that's ok.
<dblack_> apeiros_: i feel that there should be an Unnecessary Use of .to_sym Award :-)
<apeiros_> if the config files are user input, then that's covered
<dblack_> e.g., send(string.to_sym)
d3vic3_ has joined #ruby
<apeiros_> dblack_: rails with HWIA wins that one easily
<dblack_> heh
<zastern> I'm actually a sysadmin, but not being able to program is seriously hampering my ability to do my job effectively.
codecop has joined #ruby
<apeiros_> I wouldn't blame people who do send(string.to_sym) too much - the docs conveniently omit the part about it accepting a string
<zastern> and since we're already running puppet, Ruby is installed on every node. So it'd be real nice to be able to use it.
carraroj has joined #ruby
<dblack_> zastern: there are other resources for learning ruby
<apeiros_> hm, we actually have somebody who actively patches docs
* apeiros_ goes molest him
<zastern> dblack_: I'm doing pretty well with this so far actually.
shevy has quit [Ping timeout: 248 seconds]
angusiguess has quit [Ping timeout: 244 seconds]
Nightmeister has quit [Ping timeout: 252 seconds]
<dblack_> zastern: ok -- when you said it hurt your head i wasn't sure :-)
<zastern> it's just this - http://ruby.learncodethehardway.org/book/ex37.html - it's just like "GO DO THESE THINGS", and so I'm spending a lot of time googling.
d3vic3 has quit [Ping timeout: 276 seconds]
<zastern> To be fair it's ex37. But stil.
Elhu has quit [Quit: Computer has gone to sleep.]
danneu has joined #ruby
joofsh has joined #ruby
trevortwining has quit [Quit: trevortwining]
<dblack_> zastern: http://www.ruby-doc.org/docs/keywords/1.9/ might help
<apeiros_> zastern: I like zenspider's quickref
<zastern> dblack_: it might indeed!
* dblack_ bows
<dblack_> zastern: keywords sort of fell between the cracks of the docs, so i doc'd them :-)
<zastern> Ahh you wrote that. Nice! I will probably use this 20,000 times today.
<apeiros_> dblack_: heh, interesting idea
crackfu has joined #ruby
<dblack_> almost four years ago… wow
<zastern> dblack_: are you an "important" ruby person of some sort?
<zastern> I don't know the community that well
<dblack_> zastern: i'm an old-timer
<zastern> I know that Zed is mean and Matz is nice.
<zastern> That's about all I know.
<dblack_> zastern: started using ruby in 2000
<zastern> dblack_: ah nice.
<dblack_> so, old-timer outside of japan, anyway
<dblack_> actually zed is nice in person. he cultivates the mean persona online :-)
Myconix has joined #ruby
<zastern> dblack_: I know, he's actually been really helpful.
hiall has joined #ruby
<zastern> I've spoken to him a few times.
<zastern> And he was also mean to me once when I made a joke about him, but I guess that was kinda my fault.
vabenjamin has joined #ruby
<dblack_> zastern: i also co-founded Ruby Central, which is the organization that produces rubyconf and railsconf
<pats_Toms> this chat have some public history log?
<dblack_> zastern: and i wrote a ruby book, but if i told you about that, it would seem like shameless self-promotion :-)
BRMatt has joined #ruby
<zastern> ruby for rails?
<zastern> mm
<zastern> I don't plan to ever learn rails really.
<zastern> I need to extend puppet
<dblack_> zastern: ruby for rails and also its successor, the well-grounded rubyist
<zastern> I briefly considered python, since that's used by more sysadmins, but since I'm already using puppet, ruby seemed wiser.
* dblack_ is sitting in a bar in atlantic city
<dblack_> anyone else in AC? :-)
bradhe has joined #ruby
garbagecollectio has quit [Quit: garbagecollectio]
<dblack_> apeiros_: i would join in on the conversation in #ruby-lang except i'm not here with a registered nick so i can't talk in there
* dblack_ is having an identity crisis
smallcapsdude is now known as Emily89
cableray has joined #ruby
<zastern> Ah I thought ruby-lang was dead.
<apeiros_> dblack_: register dblack_ ?
klaut has joined #ruby
<dblack_> apeiros_: i guess i could
<apeiros_> you can always group more nicks to it, should you settle for another
* apeiros_ has like 8 nicks
<zastern> same, I have a whole bunch. it's easy to alias.
<dblack_> apeiros_: i have registered 'wobbling', which is the nick i resort to when *d*black* is taken
<dblack_> whoops
mduvall has quit []
jocellyn has quit [Read error: Connection reset by peer]
<dblack_> s/wobbling/wobblini/
bradhe has quit [Ping timeout: 246 seconds]
shevy has joined #ruby
<apeiros_> david[black]
trevortwining has joined #ruby
<apeiros_> david`a`black
BRMatt has quit [Remote host closed the connection]
sparuvu has quit [Ping timeout: 252 seconds]
newUser1234 has quit [Remote host closed the connection]
pats_Toms has quit [Remote host closed the connection]
newUser1234 has joined #ruby
iamjarvo has quit [Quit: Leaving.]
werdnativ has joined #ruby
Firstmate has joined #ruby
BRMatt has joined #ruby
Catbuntu has joined #ruby
statarb3 has quit [Ping timeout: 276 seconds]
workmad3 has joined #ruby
<dblack_> apeiros_: i'm considering realDAB :-)
zzing has joined #ruby
<apeiros_> I'd think you're a digital radio fan with that nick :D
<apeiros_> (DAB = digital audio broadcast)
<dblack_> heh
<dblack_> i suspect my parents did not have that in mind when they named me back in 19** :-)
* dblack_ is ancient
kevinfagan has quit [Quit: Leaving...]
<apeiros_> but whatever the nick - as long as you're registered and can talk on #ruby-lang
heliumsocket has joined #ruby
<apeiros_> dblack_: yeah, you're premillenial ;-)
<dblack_> apeiros_: yeah, i registered wobblini but i'm logged in as that on another computer
m3pow has quit [Read error: Connection reset by peer]
mduvall has joined #ruby
* apeiros_ too
r0f0 has quit [Quit: Leaving]
<apeiros_> does 'premillenial' work in the english language?
<dblack_> apeiros_: i think so -- at least, i understood it immediately
horofox_ has quit [Quit: horofox_]
velCzupa has joined #ruby
<dblack_> apeiros_: unless it's supposed to be antemillenial or something
Elhu has joined #ruby
krz has quit [Quit: krz]
dhruvasagar has quit [Read error: Operation timed out]
<apeiros_> "from the last millenium" is the supposed meaning
zzing has quit [Ping timeout: 260 seconds]
<heliumsocket> apeiros_: you could use the "pre" affix on most words and it will be understand in english
Elhu has quit [Client Quit]
<heliumsocket> apeiros_: *understood, hehe
krz has joined #ruby
odra has joined #ruby
Elhu has joined #ruby
bradhe has joined #ruby
pskosinski has quit [Quit: Red Eclipse, game of racist admins/devs: http://pawelk.pl/racist-red-eclipse-quin-zeroknight-gingerbear/]
bluOxigen has quit [Ping timeout: 245 seconds]
Wildhoney has joined #ruby
smoth has quit [Read error: Connection reset by peer]
himsin has quit [Ping timeout: 260 seconds]
newUser1_ has joined #ruby
Al__ has joined #ruby
artOfWar has joined #ruby
d3vic3_ has quit [Quit: leaving]
newUser1234 has quit [Ping timeout: 245 seconds]
cousine has joined #ruby
himsin has joined #ruby
cousine has quit [Remote host closed the connection]
artOfWar has quit [Remote host closed the connection]
artOfWar has joined #ruby
moos3 has joined #ruby
m3pow has joined #ruby
ananthakumaran1 has quit [Quit: Leaving.]
pyrac has quit [Quit: pyrac]
jblack has joined #ruby
mlr has joined #ruby
krz has quit [Quit: krz]
<jblack> Hey, is there a way to get Pry to show all instantiated objects, while within sinatra?
twshelton has joined #ruby
<apeiros_> jblack: zomg, are you dblack_'s twin? :D
<apeiros_> you wouldn't want to see *all* instantiated objects
<apeiros_> that's several thousands
<jblack> It so happens I'm looking for a file handle leak.
<apeiros_> maybe you want to see the local variables? local_variables gives you that
<apeiros_> ObjectSpace then maybe
zzing has joined #ruby
<apeiros_> ObjectSpace.each_object(IO)
<jblack> a socket leak. so I'm looking for thousands of something, to figure out what's not getting garbage collectged.
<apeiros_> but you better use some memory profiling tool
<jblack> mm, that's not a bad idea
<dblack_> hey jblack, are you a long-lost cousin? :-)
Catbuntu has quit [Quit: DIE]
<jblack> dblack_ : Hey cuzzzz!
nachtwandler has joined #ruby
<jblack> =)
<dblack_> jblack: wait, you're a phony, it says your name is blackwell :-)
<apeiros_> busted!
<jblack> And I have David as an inferior middle name, too.
<jblack> I know. My parents grew up in the 60s. They fucked my shit all up
* dblack_ grew up in the 60s
<dblack_> i'm so offing old
<dblack_> offing that is
<dblack_> EFFING
<banisterfiend> dblack_: u on a phone? :)
<jblack> That would put you past the half way point. You could win this footrace to the grave!
<dblack_> banisterfiend: no
<jblack> inferior placement, I meant, not inferior name
<dblack_> banisterfiend: i guess this version of colloquy is into autocorrect
<banisterfiend> ah ok
<jblack> anyways, yeah, I was going from the debugger paradigm, but a profiler may be a better way to go
* dblack_ is either past the halfway point or destined to be one of the oldest people in the world
<banisterfiend> i tried colloquy for a while but it was horrible
<jblack> is there one you guys favor for sinatra?
<Firstmate> Hi, I'm not sure whether this problem stems from my ruby code or shell portion, so I'll just throw it out there :3
<Firstmate> I've got this ssh command: http://sprunge.us/EKIL
<Firstmate> It's pretty long, I know...but that's how it's wanted
<banisterfiend> jblack: all instantiated objects?
* dblack_ removes checkmark from "check spelling as you type"
<jblack> I'm trying to chase down something thats indirectly opening about a thousand sockets....
<dblack_> bite me, colloquy
workmad3 has quit [Ping timeout: 264 seconds]
<Firstmate> In any case, it gets sent like "bash_command = %x(ssh #{hostname} #{ssh_command})"
<banisterfiend> jblack: all objects are instances of another one, though may not be explicitly instantiated
<jblack> perhaps I'm making a thousand Mechanize objects, or a thousand nokogiris, and not destroying them
<Firstmate> I get "lscpu: command nto found"
<yxhuvud> firstmate: did you try the full path to the command as well?
octoberry has joined #ruby
<Firstmate> yxhuvud: yes
<Firstmate> I verified it being in /usr/bin/
<Firstmate> It seems it only causes the error when chained with other commands.
<_br_> jblack: Sinatra, Espresso, what wrong with them? They're awesome for the amount of LOC.
<Firstmate> Alone, through ruby it works fine.
objectivemo has quit [Quit: objectivemo]
<Firstmate> So I feel like it's in my misunderstanding of ruby/chaining commands together
<apeiros_> yxhuvud: since when are you here and not in #ruby-lang? I thought you were a -lang die-hard :)
<yxhuvud> firstmate: I don't think we have enough information to help you. If possible, paste a gist with code demonstrating the problem
robert_ has joined #ruby
<yxhuvud> Uh, I've been in both for years
<_br_> Firstmate: For the task you are trying to do there are gems out there.
Rheoli has joined #ruby
<Firstmate> I'm new to ruby, so I'm open to any help.
SCommette has quit [Quit: SCommette]
<Firstmate> yxhuvud: I can paste the whole thing, one moment please.
<Firstmate> tl;dr though: gathers data from a set of hosts.
<_br_> Firstmate: see e.g. sysutils stuff
<jblack> _br_: I din't know why you're asking me what's wrong with them?
rmcafee has joined #ruby
<_br_> jblack: 20:28 < jblack> is there one you guys favor for sinatra?
havenwood has quit [Remote host closed the connection]
<jblack> A profiler that runs well with sinatra. =)
<Firstmate> _br_: I think our teacher told us to stray from gems though, due to the grader.
<Firstmate> yxhuvud: (Warning it's prob ugly) http://sprunge.us/VcjS
<banisterfiend> jblack: how big is the codebase?
<_br_> Firstmate: Is this for a shell scripting class? Well, if you should do shell scripting then go ahead..
garbagecollectio has joined #ruby
<Firstmate> It's for..an OS class, haha.
<apeiros_> oh, =begin/=end comments - long time no see…
justme1 has joined #ruby
<Firstmate> But this is just an interrim project on gathering system statistics.
<jblack> banisterfiend: flog score of 3903, spread acrosts 86 files
<banisterfiend> jblack: legacy app?
Choclo has joined #ruby
Choclo has quit [Read error: Connection reset by peer]
<jblack> Nope. Just the nature of the app. it scans secretary of state websites to download entity data.
twshelton has quit [Quit: Computer has gone to sleep.]
<jblack> each state is comprised of two classees, a search and an entity.
<banisterfiend> jblack: isn't a high flog score very bad?
mahmoudimus has joined #ruby
<jblack> my flog/method average is 10.1
<jblack> flog total is cumulative. I think it's a simple addition of all methods.
<jblack> it's 5274 lines of code, if that answers your question more simply
<banisterfiend> jblack: what is the GPA on codeclimate.com ?
<jblack> I don't know
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
<Firstmate> yxhuvud: Someone over in #bash figured it out...it was my own ridiculous silliness...
<Firstmate> 13\37\03 <Riviera> Firstmate: well, see. the ; ends the first command, which is ssh
<Firstmate> 13\37\13 <Riviera> Firstmate: everything after the ; is executed locally.
<jblack> I'd rather not make an account on that site just to get advice on which profilers you guys favor
xor_mind- has joined #ruby
skattyadz has quit [Quit: skattyadz]
mduvall has quit []
octoberry has quit [Ping timeout: 260 seconds]
AntiTyping has joined #ruby
<yxhuvud> firstmate: makes sense. just remember that there are better options if you ever have to solve this problem for real. Like using a gem that can extract all that information for you, like ohai (which admittedly would require some sort of control of the target machines. There are probably options that doesn't need that even if I don't know them)
glennt has joined #ruby
mduvall has joined #ruby
<banisterfiend> jblack: you dont have to make an account :) it's free for OSS, but if your software isn't OSS it'll cost (though u get a trial for about 2 weeks i think)
<banisterfiend> free/accountless for OSS
<banisterfiend> u just feed it the name of the project
<jblack> No, it's not free software, unforuntately
ahokaomaeha has joined #ruby
sandGorgon has quit [Ping timeout: 246 seconds]
<jblack> can we take this back a step, banisterfiend? Something I"m using is leaking sockets. My hunch is I'm instantiating and not deleting Mechanize or Nokogiri objects. but maybe it's Logger, or something else. so I'm looking for a way to identify what all those sockets are when I lsof against my app
solancer has joined #ruby
markalanevans has quit [Ping timeout: 248 seconds]
<solancer> hey guys
<jblack> I know I"m leaking sockets because eventually I get exceptions about too many file handles in use, and when I use lsof, they're sockets.
ferdev is now known as ferdev|away
<solancer> I'm facing trouble compiling this app
<bean> solancer, how so?
Firstmate has quit []
Firstmate has joined #ruby
<bean> jblack, could just up your number of allowed open files, heh
Firstmate has left #ruby [#ruby]
<banisterfiend> jblack: anyway to look at all objects, use ObjectSpace.each_object
<jblack> bean: I wish! But I'm runing out of 1024 file handles after about an hours worth of requests. I won't make it much futher just by screwing with ulimits. =)
<banisterfiend> jblack: you could also try forcing GC runs, which might free the sockets
<solancer> can anyone of you guys compile it for me on your systems ?
jborica has joined #ruby
bubblehead has quit [Remote host closed the connection]
<solancer> I've been trying this for hours
<bean> solancer, sudo gem install
iamjarvo has joined #ruby
<solancer> no the problem is with rawr
<banisterfiend> jblack: are you creating a bunch of procs somewhere? maybe they're closing over locals that point to sockets and preventing them being GC'd
<solancer> error before that
<jblack> I was wondering if it was just stale garbage, but I'd rather assume the flaw is me
meoblast has quit [Read error: Connection reset by peer]
<jblack> I am creating lots of procs.
<jblack> I have callbacks and the whole nine.
<jblack> Uh oh. =)
<jblack> RuntimeError: can't add a new key into hash during iteration
<jblack> I'm also using threads. =)
tealmage has quit [Remote host closed the connection]
<jblack> [2] pry(#<Sinatra::Application>)> ObjectSpace.each_object { |x| x.pretty_inspect }
<jblack> Right?
<banisterfiend> dont do that :)
<bean> solancer, i still think you need to get the gems installed right if you havent
<banisterfiend> hehe
<banisterfiend> jblack: you can specify the class type you're interested in with: ObjectSpace.each_object(Klass)
<apeiros_> jblack: I'd at least …
<apeiros_> that
solancer has quit [Quit: Leaving]
* apeiros_ thinks he said that already
Qwak has joined #ruby
<shevy> apeiros_ it is ALZHEIMER!!!
V8Energy has joined #ruby
<bean> solancer do you have rawr installed?
FondoDeBikini has joined #ruby
ferdev|away is now known as ferdev
<bean> oh, he quit, lol
nachtwandler has quit [Ping timeout: 255 seconds]
nachtwandler has joined #ruby
onward has joined #ruby
<onward> Hello!
joofsh has quit [Remote host closed the connection]
<dblack_> hi onward
<V8Energy> I have an array of User objects, each one of them have a nickname variable. [#<User nick="TechnIckS">, #<User nick="V8Energy">, #<User nick="NG|MuchHigher">, #<User nick="Kombin3">, #<User nick="ChanServ">]. is there a quick way to display all nicknames in one line? "V8Energy, NG|MuchHigher, etc..?
<onward> How's it going?
<apeiros_> V8Energy: assuming there's a method .nick -> puts users.map(&:nick)
<dblack_> V8Energy: users.map(&:nick).join('|')
hiall has quit [Quit: hiall]
<dblack_> whoops
<dblack_> i misread the |
justme1 has quit [Read error: Connection reset by peer]
<apeiros_> :)
<dblack_> anyway, something like that :-)
<dblack_> … join(', ')
<V8Energy> that gave me this: ["TechnIckS", "V8Energy", "NG|MuchHigher", "Kombin3", "ChanServ"]
<bean> what ruby version are you on V8Energy
<bean> 1.8?
<apeiros_> then you did only the .map part
justme1 has joined #ruby
<apeiros_> you did neither puts nor join it
BrianJ has joined #ruby
<V8Energy> oh yeah i didn't add the .join
<bean> ... lol
havenwood has joined #ruby
v0n has quit [Ping timeout: 252 seconds]
<apeiros_> hm, lol
joofsh has joined #ruby
* apeiros_ wanted to test existence of a Symbol by "Symbol.all_symbols.include?(:foo)"
workmad3 has joined #ruby
<apeiros_> of course, that'd be a tautology
<bean> lol, yes it would
<banisterfiend> apeiros_: Symbol.all_symbols.map(&:to_s).include?("foo") ;)
<apeiros_> banisterfiend: that's what I did ;-)
<banisterfiend> ah hehe
F1skr has quit [Quit: WeeChat 0.4.0]
testingb0t has joined #ruby
<banisterfiend> apeiros_: out of interest, why do u want to do that
<apeiros_> banisterfiend: updating the ruby core docs. verified a claim.
<apeiros_> it was silly, though. the claim would have held true either way.
newUser1_ has quit [Remote host closed the connection]
ninjers has joined #ruby
m3pow has quit [Read error: Connection reset by peer]
<zastern> dblack_: that page is quite helpful, thank you.
<dblack_> zastern: cool
<zastern> dblack_: in fact, your example of how to use break is much more concise than the others i've found
<zastern> the others are a ll like, if somecondition then break end.
<zastern> i like break if somecondition, much more
eljojo has joined #ruby
swex_ has joined #ruby
akashj87 has quit [Ping timeout: 246 seconds]
<onward> /j #d
kofno has joined #ruby
<banisterfiend> apeiros_: seems like u wanna get all up in it
<apeiros_> what do you mean?
<banisterfiend> apeiros_: get involved in ruby core stuff
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
<eljojo> Hi, does anyone know if ruby 2.0 going to be finally released tomorrow?
<apeiros_> banisterfiend: na, I just found somebody willing to get my stuff into core. And that's lovely. Means I get my itches scratched :)
swex has quit [Ping timeout: 264 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
<shevy> Hanmac he is trolling
etcetera has quit []
pen has quit [Remote host closed the connection]
NobbZ|away has quit [Remote host closed the connection]
techhelp has quit [Quit: This computer has gone to sleep]
<banisterfiend> apeiros_: what stuff
allaire has joined #ruby
allaire has quit [Excess Flood]
<apeiros_> tiny things. like bad documentation which when I tell somebody to RTFM force me to backpedal ;-p
pyrac has joined #ruby
anderse has quit [Quit: anderse]
ferdev is now known as ferdev|away
allaire has joined #ruby
allaire has quit [Excess Flood]
NobbZ has joined #ruby
<banisterfiend> apeiros_: do you use .rjs templates? does anyone?
<banisterfiend> they seem kind of lame
allaire has joined #ruby
allaire has quit [Excess Flood]
<Hanmac> shevy and he tells ME to be "please don't be off-topic" oO :P
<apeiros_> hell no
<banisterfiend> apeiros_: didnt think so, it takes all of 10 mins to learn actual javascript
<apeiros_> Hanmac: yeah, stop trolling. pfff. ;-)
allaire has joined #ruby
<apeiros_> banisterfiend: I see no value in rjs
<apeiros_> only additional baggage
Elhu has joined #ruby
<banisterfiend> apeiros_: is that the general view?
eldariof has quit []
chrishough_ has joined #ruby
iamjarvo has quit [Quit: Leaving.]
chrishough has quit [Ping timeout: 252 seconds]
chrishough_ is now known as chrishough
staafl has joined #ruby
<apeiros_> banisterfiend: no idea
<apeiros_> I often deviate from common "the rails way"
joshfng has joined #ruby
* apeiros_ hopes it's because he knows better…
maxmanders has quit [Ping timeout: 252 seconds]
jocellyn has joined #ruby
maxmanders has joined #ruby
<yxhuvud> well, isn't the lameness of rjs the reason they ended up being deprecated?
onward has quit [Changing host]
onward has joined #ruby
thufir_ has joined #ruby
kofno has quit [Remote host closed the connection]
joshfng has quit [Client Quit]
joshfng has joined #ruby
digital-ghost has joined #ruby
velCzupa has quit [Remote host closed the connection]
idl0r has quit [Quit: idl0r]
onward has quit [Quit: Leaving]
TheFuzzball has joined #ruby
TheFuzzball has quit [Max SendQ exceeded]
cs02rm0 has joined #ruby
TheFuzzball has joined #ruby
testingb0t has quit [Quit: Leaving.]
HecAtic has joined #ruby
subbyyy_ has quit [Ping timeout: 252 seconds]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
TomJ has joined #ruby
TomJ has quit [Changing host]
TomJ has joined #ruby
nwertman has quit [Ping timeout: 255 seconds]
gregor3005 has left #ruby [#ruby]
shtirlic has joined #ruby
ferdev|away is now known as ferdev
MartinCleaver has joined #ruby
MartinCleaver has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
pyrac has quit [Quit: pyrac]
dblack_ has quit [Quit: dblack_]
m3pow has joined #ruby
dblack_ has joined #ruby
dblack_ has quit [Client Quit]
nari has joined #ruby
MACscr has joined #ruby
IrishGringo has joined #ruby
shtirlic has quit []
<MACscr> if i do sudo -u graylog2-web -i;script/rails server -e production; to start an app with webtrick, how do i do it with thin? LOL, i dont know anything about ruby. Sorry.
shtirlic_ has joined #ruby
<arturaz> rails server thin -e production
joshfng has quit [Quit: Leaving...]
<arturaz> IIRC
<MACscr> ah, thanks!
<apeiros_> afaik if you add thin to your gemfile, rails will default to thin
angusiguess has joined #ruby
<MACscr> i dont even know what gemfile is. Im just trying to use an app that was made with ruby
<canton7> Any reason why my at_exit-registered block isn't called when my script's terminated by SIGINT?
justme1 has quit [Quit: Leaving.]
twshelton has joined #ruby
arya has quit [Ping timeout: 248 seconds]
colonolGron has joined #ruby
<canton7> hmm, trap("INT) doesn't appear to do anything either
<apeiros_> that's odd
<apeiros_> maybe something invokes exit!
<apeiros_> but… that'd have to be something that replaces your trap("INT")
spanner has quit [Remote host closed the connection]
<canton7> hmm, only seems to be a problem when invoking the script from msysgit ("git bash"). windows cmd works as expected
spanner has joined #ruby
thinkclay has joined #ruby
Progster has quit [Ping timeout: 276 seconds]
remi has quit [Ping timeout: 248 seconds]
shtirlic_ is now known as shtirlic
end_guy has quit [Ping timeout: 276 seconds]
mlr has quit [Ping timeout: 252 seconds]
remi has joined #ruby
arya has joined #ruby
Bry8Star has quit [Ping timeout: 276 seconds]
<canton7> seems to be a mingw problem
trevortwining has quit [Quit: trevortwining]
<zastern> Given examples like this - http://www.skorks.com/2009/08/how-a-ruby-case-statement-works-and-what-you-can-do-with-it/ - I'm having trouble understanding how case is different from just using if, elsif, etc.
<zastern> or is it just a matter of making into a sort of "object"
<apeiros_> zastern: it allows you to omit a good part of the expression
kseifried has joined #ruby
s0ber_ has joined #ruby
<zastern> apeiros_: how so?
<apeiros_> zastern: but yes, of course, you could rewrite every case/when with if/else
<apeiros_> zastern: give me a minute, pasting
<zastern> cool, thanks
spider-mario has quit [Remote host closed the connection]
mduvall has quit []
<apeiros_> zastern: http://pastie.org/6324148
gregor3005 has joined #ruby
carloslopes has joined #ruby
<apeiros_> on the first if, they're about the same amount
arya has quit [Ping timeout: 248 seconds]
<kseifried> Hi I'm looking for ruby code auditing tools like roodi (rubygem) and Brakeman and anything not listed at https://www.ruby-toolbox.com/categories/security_tools =)
<apeiros_> but from there on, case/when lets you omit `somestring === ` for every additional when statement
<kseifried> so if you know of any such tools please let me know, thanks!
jekotia has joined #ruby
<zastern> apeiros_: ah I see. is that all the difference? I guess it doesn't seem huge to me. I guess it's easier if you're only dealing with one thing that changes.
s0ber has quit [Ping timeout: 252 seconds]
s0ber_ is now known as s0ber
wmoxam has quit [Ping timeout: 264 seconds]
<apeiros_> zastern: that's mostly it
eka has quit [Quit: Computer has gone to sleep.]
<zastern> apeiros_: ok, that makes sense to me then. thanks.
<zastern> i'm used to the php type of case
<apeiros_> also nice: `case x; when a,b,c` # --> `if a === x || b === x || c === x`
<canton7> zastern, like a lot of things in ruby, it's about expressing intent. if you see a case statement in someone else's code, you know that the whole thing hinges on only one variable without having to go mentally parsing each line
<zastern> actually php case might be the same and i didnt realize it
Umren has quit [Read error: Connection reset by peer]
<apeiros_> zastern: also note that many classes implement a useful === method, to enable case/when
<zastern> apeiros_: that doesn't mean anything to me :(
<apeiros_> no, php switch is closer to C switch iirc
<canton7> zastern, php case is a bit less powerful
arya has joined #ruby
<canton7> in php you can't do "when 1,2,3" or "when 1..5" or "when Array"
bluOxigen has joined #ruby
<apeiros_> zastern: what doesn't mean anything? the remark about classes implementing === ?
hiall has joined #ruby
carloslopes has quit [Remote host closed the connection]
IrishGringo has quit [Ping timeout: 252 seconds]
arturaz has quit [Ping timeout: 256 seconds]
<apeiros_> zastern: that article is pretty good actually. should read it closely. if you don't fully understand it, reread in a month.
<yxhuvud> canton7: well. Do note that you don't have to supply a value to case. ie: case; when foo == bar.. ; when baz == gazonk .. ; end works
<zastern> apeiros_: yes the bit about classes
jocellyn has left #ruby [#ruby]
<canton7> yxhuvud, true
<zastern> actually rereading it it makes a bit more sense
eka has joined #ruby
<zastern> but im not 100% on what you mean
<apeiros_> zastern: with `case obj; when expression` - ruby does `expression === obj` to evaluate whether that "when-branch" is entered
<apeiros_> and in ruby, === is a normal method
Al__ has quit [Quit: Al__]
<apeiros_> class X; def ===(other); end; end
arturaz has joined #ruby
<zastern> I'm more confused now :P
<apeiros_> this means you can define the behavior of your class in a case/when statement.
<zastern> mm i think i get that bit
<apeiros_> e.g. Range#=== is implemented as 'between?'
<apeiros_> e.g. 1..5 === 3 # => true, 1..5 === 9 # => false
<apeiros_> that's why you can do: case 3; when 1..5 then puts "yes, 3 is between 1 and 5"; end
eljojo has quit [Remote host closed the connection]
jimeh has joined #ruby
bugo has joined #ruby
<MACscr> hmm, no luck with thin so far. i get the following error: http://pastie.org/6324195
<bugo> is there a way to send a kill signal to ruby process so it will throw exception in ruby and it will be registred in exception handler?
<MACscr> i installed thin by just doing: 'gem install thin' as root. Is that ok?
<canton7> MACscr, try firing up irb and typing require 'thin'
<apeiros_> bugo: SIGINT raises Interrupt
<bugo> apeiros_: what exception will it throw in ruby?
<bugo> kill -l
<bugo> ups
<apeiros_> bugo: reread what I wrote :-p
<bugo> OK
<bugo> Thanks! will try!
Nisstyre-laptop has quit [Quit: Leaving]
<apeiros_> bugo: else you can use Kernel#trap and raise whatever you want. not sure what the callstack will be for that exception, though.
Nisstyre-laptop has joined #ruby
<bugo> apeiros_: TNX!!! it worked!
carraroj has quit [Quit: Konversation terminated!]
<bugo> i have a process that somewhy locks on server and keeps running and leaking memory
eka has quit [Quit: Computer has gone to sleep.]
answer_42 has quit [Ping timeout: 276 seconds]
<MACscr> canton7: irb?
<canton7> MACscr, type 'irb'
<canton7> and be amazed
<bugo> pry > irb :P
Cthaet has joined #ruby
<canton7> agreed
FondoDeBikini has quit [Ping timeout: 255 seconds]
<zastern> hmm ok
spider-mario has joined #ruby
<bugo> apeiros_: i love you now
bradhe has quit [Remote host closed the connection]
<zastern> bugo: I've loved you from afar for a long time.
bradhe has joined #ruby
<bugo> \o / spread the love!
<apeiros_> :)
Elhu has quit [Quit: Computer has gone to sleep.]
rburton- has quit [Quit: Leaving...]
<MACscr> hopefully i did that right
<MACscr> er, nvm. i didnt
<canton7> require 'thin'
<zastern> apeiros_: you're right this article is really good actually.
<MACscr> forgot the single quotes. So it came back true
subbyyy_ has joined #ruby
<canton7> ok, cool
wmoxam has joined #ruby
<canton7> so it's installing fine. rails issue
<zastern> apeiros_: as a sysadmin, I'm so used to just skimming docs to get the one parameter I need. I need to get over that.
<canton7> does rails use a Gemfile nowadays?
<canton7> MACscr, if there's a Gemfile in your rails project, add "gem 'thin'" to that
<apeiros_> canton7: for quite a while now
<canton7> and run 'bundle install'
<apeiros_> canton7: rails was the huge push behind bundler after all
<canton7> aha cool. I'm not in touch with rails at all
bradhe has quit [Ping timeout: 255 seconds]
mpfundstein has quit [Remote host closed the connection]
<MACscr> canton7: this entire app was created by a third party, so im not really sure what a gemfile is. How would i find it?
<apeiros_> its name is Gemfile
<canton7> MACscr, is there a file called 'Gemfile' in the project root?
swex_ has quit [Read error: Operation timed out]
thufir_ has quit [Ping timeout: 255 seconds]
kofno has joined #ruby
chrishough has quit [Quit: chrishough]
nate00 has joined #ruby
<MACscr> apeiros_: lol, whoops =P
<apeiros_> ^^
codecop has quit [Remote host closed the connection]
artOfWar has quit [Ping timeout: 260 seconds]
twshelton has quit [Quit: Computer has gone to sleep.]
Elhu has joined #ruby
bluOxigen has quit [Ping timeout: 246 seconds]
Elhu has quit [Client Quit]
thinkclay has quit [Quit: Leaving.]
Rheoli has quit [Quit: Textual IRC Client: www.textualapp.com]
trevortwining has joined #ruby
bradleyprice has joined #ruby
thufir_ has joined #ruby
IrishGringo has joined #ruby
awarner has joined #ruby
Morrolan has quit [Ping timeout: 248 seconds]
arturaz has quit [Remote host closed the connection]
garbagecollect-1 has joined #ruby
max_ has joined #ruby
blacktulip has quit [Remote host closed the connection]
Morrolan has joined #ruby
garbagecollectio has quit [Ping timeout: 260 seconds]
garbagecollectio has joined #ruby
thinkclay has joined #ruby
wmoxam has quit [Ping timeout: 264 seconds]
max_ has quit [Remote host closed the connection]
kofno has quit [Remote host closed the connection]
sepp2k1 has joined #ruby
fixl has joined #ruby
garbagecollect-1 has quit [Ping timeout: 244 seconds]
awarner has quit [Remote host closed the connection]
sepp2k has quit [Ping timeout: 252 seconds]
ckrailo has joined #ruby
<MACscr> thanks guys, that seemed to work. Now to actually get my upstart file to work with it
ferdev is now known as ferdev|away
<gregor3005> anybody familiar with the "daemons" gem?
<apeiros_> gregor3005: don't ask meta-questions
<gregor3005> im searching for a way to start a server process that should running only once
<gregor3005> also when i start it twice
<apeiros_> (you'll rarely get a reply, and that way lessen your chance to get help with your actual question)
<gregor3005> apeiros_: sry i twas typing
mockra has joined #ruby
awarner has joined #ruby
<apeiros_> gregor3005: iirc daemons gem supports using a pid file
<gregor3005> ah, that would help
mahmoudimus has quit [Quit: Computer has gone to sleep.]
daniel_- has joined #ruby
toekutr has quit [Remote host closed the connection]
daniel_- has joined #ruby
daniel_- has quit [Changing host]
mahmoudimus has joined #ruby
bradhe has joined #ruby
ferdev|away is now known as ferdev
mockra has quit [Remote host closed the connection]
Emily89 has quit [Quit: Emily89]
godzirra has joined #ruby
BrianJ has quit [Quit: Computer has gone to sleep.]
angusiguess has quit [Ping timeout: 256 seconds]
<godzirra> Hey guys. Can anyone look at my pastebin? http://pastebin.com/dHCQxkNH I'm trying to figure out how to make a self referencing class, but I'm getting errors that have been pasted there.
<godzirra> As well as my schema.
<godzirra> Anyone that can help I'd appreciate it.
<apeiros_> godzirra: please, why do you use an ad-riddled paste service when there's good ones without?
<apeiros_> you should paste the full backtrace
<godzirra> apeiros_: What's a better one?
MartinCleaver has quit [Quit: MartinCleaver]
<apeiros_> f.ex. gist.github.com, which is listed in the topic
<apeiros_> that one also provides revisions
<apeiros_> and is git backed, meaning you can even fork a gist
<godzirra> Cool. I'll try that. one moment and I'll paste the whole stack trace… if I can get sinatra to do it.
glennt has quit [Quit: glennt]
bradhe has quit [Ping timeout: 252 seconds]
<godzirra> https://gist.github.com/godzirra/5021714 … its not showing me a whole stack trace. I'm trying to figure out how to get that on sinatra.
<godzirra> Yeah, that's all its showing me on the command line too.
<apeiros_> hm, I don't think my generic ruby knowledge helps with your problem. I'd try in the datamapper channel. I think #datamapper
zenergi has joined #ruby
<godzirra> Thanks. I'll try there.
<godzirra> Assuming I don't get a response here, its okay to repeat myself every so often here, right? (Every so often being more than 10 minutes)
Onii-san has quit [Ping timeout: 276 seconds]
<apeiros_> I'll tell you when it is too much
<apeiros_> other channels to get help: stackoverflow and the datamapper mailing list
<apeiros_> if you ask in multiple channels, don't forget to inform all when you've got a solution (and share the solution, or a link to it)
<beaky> why does ruby take so long to start up
<godzirra> Will do!
zenergi_ has joined #ruby
Onii-san has joined #ruby
AndChat- has joined #ruby
alanp_ has joined #ruby
alanp_ has quit [Read error: Connection reset by peer]
<apeiros_> beaky: um, 0.017s is long?
zenergi has quit [Ping timeout: 276 seconds]
zenergi_ is now known as zenergi
<apeiros_> that's how long *ruby* takes here. maybe you mean something *built* with ruby, not ruby itself?
alanp_ has joined #ruby
<beaky> hmm yeah
<beaky> 'gem install anything', and anything else to do with rails takes 30 seconds before I see anything :(
<godzirra> Rails != Ruby
<beaky> ah
<godzirra> And part of that is probably based on how quickly the site the gem is on responds.
Banistergalaxy has quit [Ping timeout: 260 seconds]
alanp has quit [Ping timeout: 260 seconds]
zenergi has quit [Quit: zenergi]
eklarskov has joined #ruby
nachtwandler has quit [Remote host closed the connection]
techhelp has joined #ruby
xor_mind- has quit [Ping timeout: 260 seconds]
Qwak has quit [Ping timeout: 252 seconds]
carloslopes has joined #ruby
ahokaomaeha is now known as lolcathost|afk
arya has quit [Ping timeout: 248 seconds]
Cthaet has quit [Read error: Connection reset by peer]
Retistic has joined #ruby
jocellyn has joined #ruby
carloslopes has quit [Ping timeout: 260 seconds]
max_ has joined #ruby
joeycarmello has joined #ruby
awarner has quit [Remote host closed the connection]
beaky has left #ruby [#ruby]
joeycarmello has quit [Remote host closed the connection]
joeycarmello has joined #ruby
techhelp has quit [Quit: This computer has gone to sleep]
eklarskov has quit [Ping timeout: 260 seconds]
awarner has joined #ruby
bradhe has joined #ruby
spider-mario has quit [Remote host closed the connection]
trevortwining has quit [Quit: trevortwining]
vlad_starkov has joined #ruby
skattyadz has joined #ruby
atmosx has joined #ruby
bradleyprice has quit [Remote host closed the connection]
<godzirra> https://gist.github.com/godzirra/5021812 is my better gist that can be ran from the command line.
<godzirra> If anyone can help me figure out why I'm getting stacklevel too deep errors.
IrishGringo has quit [Quit: ChatZilla 0.9.90 [Firefox 19.0/20130215130331]]
dblack_ has joined #ruby
subbyyy_ has quit [Quit: none 0.3.9.2]
daniel_- has quit [Ping timeout: 252 seconds]
bradhe has quit [Ping timeout: 260 seconds]
wmoxam has joined #ruby
dblack_ has quit [Client Quit]
dangerousdave has quit [Quit: Leaving...]
coolj1 has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
coolj1 has left #ruby [#ruby]
coolj1 has joined #ruby
whowantstolivef1 has quit [Quit: quit]
newUser1234 has joined #ruby
colonolGron has quit [Quit: leaving]
<shevy> godzirra you probably call something recursively
<godzirra> That's the whole script there… Ican't see where I'm calling anything recursively. :/
eklarskov has joined #ruby
havenwood has quit [Remote host closed the connection]
maxmanders has quit [Ping timeout: 252 seconds]
<shevy> godzirra something that is calling all those methods you use there
<shevy> apparently it is not in your script but must be somewhere else
<godzirra> The last thing I pasted is just the script
<godzirra> and I get the same error.
<godzirra> and you just call it via command line
nate00 has quit [Ping timeout: 245 seconds]
drago757 has quit [Quit: drago757]
coolj1 has left #ruby [#ruby]
coolj1 has joined #ruby
drago757 has joined #ruby
lolcathost|afk is now known as ahokaomaeha
<shevy> yup, you have a recursion somewhere in those methods you use
maxmanders has joined #ruby
tbilik has joined #ruby
atmosx has quit [Quit: WeeChat 0.4.0-rc1]
justsee has quit [Quit: Leaving...]
<shevy> def foo; foo(); end # => nil; foo() # SystemStackError: stack level too deep
dunric has joined #ruby
coolj1 has left #ruby [#ruby]
dunric has left #ruby ["WeeChat 0.4.0"]
garbagecollectio has quit [Quit: garbagecollectio]
dunric has joined #ruby
<godzirra> huh.
kofno has joined #ruby
alx- has quit [Ping timeout: 246 seconds]
HecAtic has quit [Quit: HecAtic]
awarner has quit [Remote host closed the connection]
gregor3005 has left #ruby [#ruby]
AlSquire has quit [Read error: Connection reset by peer]
AlSquirrel has joined #ruby
coolj1 has joined #ruby
zastern has quit [Remote host closed the connection]
TheFuzzball has quit [Quit: Computer has gone to sleep.]
baroquebobcat has joined #ruby
skcin7 has joined #ruby
<dunric> is there some list of compatibility changes between ruby 1.9 & upcoming 2.0 ?
nate00 has joined #ruby
Retistic has quit [Quit: Retistic]
coolj1 has left #ruby [#ruby]
nate00 has quit [Client Quit]
<apeiros_> dunric: should be almost 100% backwards compatible as far as I heard
monkegjinni has joined #ruby
angusiguess has joined #ruby
<apeiros_> one thing was: no mutex in Kernel#trap callback anymore
Virunga_ has joined #ruby
coolj1 has joined #ruby
MACscr has left #ruby [#ruby]
justsee has joined #ruby
Virunga has quit [Ping timeout: 264 seconds]
<dunric> @apeiros_ less incompatibilities would be welcomed
coolj1 has left #ruby [#ruby]
newUser1234 has quit [Remote host closed the connection]
<apeiros_> dunric: nickname is sufficient, no @ needed ;-)
<apeiros_> (you had me worried for a second that I forgot to deop)
<dunric> i did read somewhere lazy structures will be introduced
coolj1 has joined #ruby
<dunric> sorry not often on irc, still learning :)
newUser1234 has joined #ruby
<dunric> just curios if anybody tested rails 3.2 with some ruby's 2.0 rc version
awarner has joined #ruby
AtoxIO has quit [Remote host closed the connection]
<apeiros_> from what I heard, rails runs on ruby2, but #rubyonrails has probably more people knowing
angusiguess has quit [Ping timeout: 255 seconds]
robonerd has joined #ruby
<robonerd> what's the difference between a stream and a sequence?
<robonerd> generally speaking
max_ has quit [Quit: p33 ba115]
wmoxam has quit [Ping timeout: 264 seconds]
skattyadz has quit [Quit: skattyadz]
tbilik has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
hoens has joined #ruby
iamjarvo has joined #ruby
<shevy> dunno... a sequence has specific datasets at every position, which you may care about, and a stream has datasets you don't care as much individually for, or they can not be described as a sequence?
<shevy> DNA is a sequence... ATCGTCTAATTACG
eklarskov has quit [Ping timeout: 252 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
awarner has quit [Remote host closed the connection]
skattyadz has joined #ruby
pakchoi2 has joined #ruby
twshelton has joined #ruby
aspiers has quit [Ping timeout: 248 seconds]
pdamer has joined #ruby
awarner has joined #ruby
awarner has quit [Remote host closed the connection]
coolj1 has left #ruby [#ruby]