imperator changed the topic of #ruby-lang to: Ruby 1.9.3-p362: http://ruby-lang.org (ruby-2.0.0-preview2) || Paste >3 lines of text on http://gist.github.com
ryanf has joined #ruby-lang
megharsh has joined #ruby-lang
benanne has quit [Quit: kbai]
outoftime has quit [Quit: Leaving]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
Averna has joined #ruby-lang
matti has quit [Quit: Oh dear...]
enebo has joined #ruby-lang
JoelMcCracken has joined #ruby-lang
_whitelogger has joined #ruby-lang
enebo has quit [Quit: enebo]
amateurhuman has joined #ruby-lang
amateurhuman has quit [Client Quit]
amateurhuman has joined #ruby-lang
amateurhuman has quit [Client Quit]
mercwithamouth has joined #ruby-lang
Banistergalaxy has quit [Ping timeout: 245 seconds]
dankest|away is now known as dankest
havenn has joined #ruby-lang
richardburton has quit [Quit: Leaving.]
m3nd3s has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
m3nd3s has joined #ruby-lang
havenn has joined #ruby-lang
JMcAfreak has joined #ruby-lang
Banistergalaxy has joined #ruby-lang
emocakes has quit [Quit: emocakes]
qz has quit []
JMcAfreak has left #ruby-lang [#ruby-lang]
toertore has quit [Quit: Leaving]
cirwin has joined #ruby-lang
dankest is now known as dankest|away
marr has quit [Ping timeout: 255 seconds]
wyhaines has quit [Remote host closed the connection]
jbsan_ has joined #ruby-lang
jbsan has quit [Ping timeout: 245 seconds]
jbsan_ is now known as jbsan
qz has joined #ruby-lang
qz has quit [Changing host]
qz has joined #ruby-lang
mjio has quit []
cirwin has quit [Quit: Leaving.]
mjio has joined #ruby-lang
kogent has quit [Read error: Connection reset by peer]
kogent has joined #ruby-lang
scottschecter has quit [Quit: WeeChat 0.3.9.2]
havenn has quit [Remote host closed the connection]
scottschecter has joined #ruby-lang
<postmodern> is there a better way to alias class methods, other than using class << self ?
<apeiros_> as usual, define better ;-)
<apeiros_> you could write a method Object to alias singleton_class methods
<apeiros_> maybe there already is one
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
dankest|away is now known as dankest
mistym has joined #ruby-lang
mistym has joined #ruby-lang
<postmodern> apeiros_, less lines i have to type :P
<postmodern> apeiros_, and or less characters
Jake232 has quit [Quit: Computer has gone to sleep.]
<apeiros_> class Object; def alias_singleton_method(nn,on); singleton_class.send :alias_method, nn, on; end; end
jtoy has quit [Quit: jtoy]
jtoy has joined #ruby-lang
karasawa has joined #ruby-lang
jtoy has quit [Client Quit]
goshakkk has quit [Quit: Computer has gone to sleep.]
lsegal has joined #ruby-lang
nevill has joined #ruby-lang
dankest is now known as dankest|away
dankest|away is now known as dankest
blazes816 has quit [Quit: blazes816]
breakingthings has joined #ruby-lang
karasawa has quit [Ping timeout: 248 seconds]
srbaker has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
dankest is now known as dankest|away
dankest|away is now known as dankest
davidbalbert is now known as davidbalber|away
gregmoreno has quit [Ping timeout: 240 seconds]
tdy has joined #ruby-lang
aedorn has quit [Quit: Leaving]
tdy has quit [Ping timeout: 272 seconds]
rsl has quit [Quit: Computer has gone to sleep.]
rcvalle has joined #ruby-lang
xalei has quit [Remote host closed the connection]
dankest is now known as dankest|away
havenn has joined #ruby-lang
unlikely_monkey has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
havenn has quit [Remote host closed the connection]
krz has joined #ruby-lang
sepp2k1 has quit [Read error: Connection reset by peer]
Jake232 has joined #ruby-lang
mercwithamouth has quit [Ping timeout: 276 seconds]
ryanf has quit [Read error: Connection reset by peer]
ryanf has joined #ruby-lang
aedorn has joined #ruby-lang
mercwithamouth has joined #ruby-lang
havenn has joined #ruby-lang
mpan has joined #ruby-lang
Jake232 has quit [Quit: Computer has gone to sleep.]
gregmore_ has joined #ruby-lang
ryanf has quit [Read error: Connection reset by peer]
megharsh has quit [Ping timeout: 264 seconds]
ryanf has joined #ruby-lang
gregmore_ has quit [Ping timeout: 264 seconds]
wmoxam has quit [Ping timeout: 265 seconds]
wmoxam has joined #ruby-lang
madish has quit [Remote host closed the connection]
rcvalle has quit [Read error: Connection reset by peer]
sn0wb1rd has quit [Quit: sn0wb1rd]
io_syl is now known as steph021
meatballhat has joined #ruby-lang
meatballhat has quit [Changing host]
meatballhat has joined #ruby-lang
megharsh has joined #ruby-lang
havenn has quit [Remote host closed the connection]
Banistergalaxy has quit [Ping timeout: 272 seconds]
Banistergalaxy has joined #ruby-lang
sailias has quit [Ping timeout: 272 seconds]
dankest|away is now known as dankest
gix has quit [Ping timeout: 240 seconds]
gix has joined #ruby-lang
unlikely_monkey has quit [Remote host closed the connection]
meatballhat has quit [Ping timeout: 248 seconds]
amaya_the has joined #ruby-lang
mercwithamouth has quit [Ping timeout: 244 seconds]
meatballhat has joined #ruby-lang
karasawa has joined #ruby-lang
mistym has quit [Remote host closed the connection]
larrylv has joined #ruby-lang
tdy has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
larrylv has quit [Ping timeout: 265 seconds]
dankest is now known as dankest|away
Sinestro has joined #ruby-lang
bombgigazord has joined #ruby-lang
meatballhat has quit [Ping timeout: 265 seconds]
richardjortega has quit [Quit: richardjortega]
meatballhat has joined #ruby-lang
srbaker has joined #ruby-lang
srbaker has quit [Client Quit]
xalei has joined #ruby-lang
Bosox20051 has joined #ruby-lang
dankest|away is now known as dankest
breakingthings has quit []
<whitequark> can you compose two enumerators in ruby?
<apeiros_> zip
<apeiros_> or do you mean like `union all` in sql?
achiu has quit [Ping timeout: 244 seconds]
<whitequark> apeiros_: no, compose in the functional sense
<whitequark> lemme show
<whitequark> apeiros_: http://pastie.org/5614207
<whitequark> currently, if I use .each_instruction.to_a, shit breaks
<Rarrikins_c> Is roo the best gem for Excel reading?
kogent has quit [Read error: Connection reset by peer]
kogent has joined #ruby-lang
<apeiros_> whitequark: oy, up too long for that (0530 here)
srbaker has joined #ruby-lang
<whitequark> apeiros_: 0833 here :D
<whitequark> and it's not like i slept this night
<apeiros_> you're early or late?
<apeiros_> lol
<apeiros_> no wonder shit breaks :-p
<apeiros_> GET SLEEP!
<whitequark> ah, well, return to_enum(:each_instruction) if proc.nil? works
<whitequark> enumerators are über cool. I don't get why almost no one uses or provides them
<whitequark> apeiros_: hey I only got up at 2200 previous day
blahwoop has joined #ruby-lang
meatballhat has quit [Ping timeout: 240 seconds]
meatballhat has joined #ruby-lang
meatballhat has quit [Changing host]
meatballhat has joined #ruby-lang
<charliesome> whitequark: enumerators are the best
<charliesome> i like combining things like each_with_index
<whitequark> charliesome: yeaah
<whitequark> I'm going to explicitly optimize for chained enumerators in Foundry
<charliesome> or n.times.map { |x| … }
andrewhl has joined #ruby-lang
<charliesome> argv = argc.times.map { stack.pop }
<charliesome> hehe
<whitequark> this is a very powerful abstraction. requiring it to allocate an entire stack for a fiber is... kinda stupid
<bnagy> external iterators would be nicer if they still had #next?
<whitequark> bnagy: elaborate on external iterators
<bnagy> one of the few things I miss from 1.8
<bnagy> like you get from to_enum or whatever, where you explicitly call next to get each iteration. Generators
<bnagy> now you need to rescue StopIteration which is fugly
<whitequark> hm, yes
<bnagy> yeah but not next?
<whitequark> but no #next?. I wonder why. Given that #peek exists, it won't be hard to implement next?
<whitequark> maybe you should file a bug?
<bnagy> I think peek raises StopIteration as well :)
<bnagy> from memory
<whitequark> yes it does
<whitequark> ah, nevermind, I thought bullshit
<bnagy> anyway I built a hack using Fibers
<whitequark> peek isn't related.
<bnagy> but I really like s.send( gen.next ) while gen.next? patterns
<bnagy> or until gen.finished? whichever
<whitequark> hm
<whitequark> why not gen.each { |e| s.process e } ?
<whitequark> it's even shorter
<whitequark> bnagy: wait. you're trying to say you built a hack using fibers to avoid doing "def next?; next && true rescue StopIteration; end" ?
<bnagy> because I compound the generators
<bnagy> yeah, I did, but it was ages ago :)
<whitequark> but my each thingy is entirely equivalent to your loop
<bnagy> so that wasn't the problem I was trying to solve
<bnagy> well it depends on the internal composition of the generator
krohrbaugh has joined #ruby-lang
<bnagy> basically they're explicitly lazy cause of the fibers
<bnagy> one gen could have many internal generators
<bnagy> so you're right, but it's not quite like that once you start stacking them
<whitequark> well maybe
<bnagy> basically it's the same reason they provide an external iterator ( Enumerator ) already
<bnagy> because sometimes that's more useful that the implicit form
<bnagy> just semantics
<bnagy> anyway it's not something that keeps me up nights, just a small observation :P
<whitequark> heh
dankest has quit [Quit: Leaving...]
<whitequark> hm, could someone help me with a concurrency pattern?
<whitequark> I am processing elements which depend on another elements being processed. Dependency graph is a lazily created DAG.
<whitequark> Once an element is processed, it's never changed again.
<whitequark> what would be correct here?
larrylv has joined #ruby-lang
unlikely_monkey has joined #ruby-lang
larrylv has quit [Ping timeout: 252 seconds]
Rarrikins has joined #ruby-lang
meatballhat has quit [Ping timeout: 252 seconds]
apeiros_ has quit [Remote host closed the connection]
Rarrikins_c has quit [Ping timeout: 276 seconds]
anannie has quit [Ping timeout: 240 seconds]
meatballhat has joined #ruby-lang
amaya_the has quit [Read error: Connection reset by peer]
blahwoop has quit [Ping timeout: 276 seconds]
ghanima has quit [Quit: Leaving.]
agile has quit [Remote host closed the connection]
amaya_the has joined #ruby-lang
ryanf has quit [Read error: Connection reset by peer]
ryanf has joined #ruby-lang
ryanf has quit [Read error: Connection reset by peer]
aedorn has quit [Quit: Konversation terminated!]
eric_wood has joined #ruby-lang
eric_wood has left #ruby-lang [#ruby-lang]
ryanf has joined #ruby-lang
aedorn has joined #ruby-lang
ericwood has joined #ruby-lang
nevill has quit [Quit: nevill]
aedorn has quit [Client Quit]
ryanf has quit [Ping timeout: 248 seconds]
<whitequark> yfeldblum: that is significant overkill
<whitequark> but thanks anyway
<yfeldblum> whitequark, :D
<whitequark> I'm not gonna need FusionIO and SSD RAID0 to process like 800 elements :D
<yfeldblum> whitequark, locking readers and writers in a breadth-first traversal?
<whitequark> yfeldblum: well, that's the obvious way
<whitequark> I thought that maybe there is a clever one like spawning dependent actors or something like that.
<whitequark> I really don't like all that explicit locking and contention at one place
<charliesome> dude just output a makefile
<charliesome> make -j 9001
<charliesome> done
<whitequark> charliesome: lol. make indeed does exactly whatever I want
<whitequark> but it's not worth making my data format serializable, at least yet. plus jruby and windows don't play nice with that.
<yfeldblum> whitequark, do the work in another thread, join the other thread in a main thread, and call it parallel?
<whitequark> yfeldblum: the whole point is utilizing all existing cores
<yfeldblum> whitequark, wasn't serious
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
larrylv has joined #ruby-lang
JoelMcCracken has quit [Ping timeout: 272 seconds]
LKiS has joined #ruby-lang
mpan has quit [Ping timeout: 240 seconds]
Rarrikins has quit [Ping timeout: 272 seconds]
bombgigazord has left #ruby-lang [#ruby-lang]
dwu1 has joined #ruby-lang
nevill has joined #ruby-lang
sn0wb1rd has joined #ruby-lang
meatballhat has quit [Ping timeout: 248 seconds]
drollwit has joined #ruby-lang
guns has joined #ruby-lang
ryanf has joined #ruby-lang
guns has quit [Client Quit]
guns has joined #ruby-lang
nevill has quit [Quit: nevill]
mjio has quit []
drollwit has quit [Remote host closed the connection]
drollwit has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
nevill has joined #ruby-lang
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
drbrain has quit [Remote host closed the connection]
drbrain has joined #ruby-lang
kogent has quit [Read error: Connection reset by peer]
kogent has joined #ruby-lang
amateurhuman has joined #ruby-lang
postmodern_ has joined #ruby-lang
drbrain has quit [Ping timeout: 255 seconds]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
postmodern has quit [Ping timeout: 255 seconds]
Bosox20051 has quit [Quit: Leaving]
postmodern_ has quit [Client Quit]
postmodern has joined #ruby-lang
lightcap has joined #ruby-lang
lightcap has quit [Excess Flood]
lightcap has joined #ruby-lang
lightcap has quit [Excess Flood]
lightcap has joined #ruby-lang
lightcap has quit [Excess Flood]
lightcap has joined #ruby-lang
lightcap has quit [Excess Flood]
lightcap has joined #ruby-lang
imajes has quit [Excess Flood]
nevill has quit [Quit: nevill]
imajes has joined #ruby-lang
dhruvasagar has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
guns has quit [Quit: guns]
tonni_ has quit [Remote host closed the connection]
Averna has quit [Quit: Leaving.]
drbrain has joined #ruby-lang
LKiS has quit [Excess Flood]
LKiS has joined #ruby-lang
unlikely_monkey has quit [Remote host closed the connection]
gnufied has joined #ruby-lang
stiang has joined #ruby-lang
karasawa has quit [Ping timeout: 255 seconds]
stiang has quit [Client Quit]
nevill has joined #ruby-lang
m3nd3s has quit [Ping timeout: 248 seconds]
imajes has quit [Excess Flood]
charliesome has joined #ruby-lang
imajes has joined #ruby-lang
francisfish has quit [Remote host closed the connection]
francisfish has joined #ruby-lang
<yorickpeterse> Morning
<Sinestro> ha
<injekt> helo
francisfish has quit [Ping timeout: 265 seconds]
vlad_starkov has joined #ruby-lang
blacktulip has joined #ruby-lang
<yorickpeterse> whitequark: I see your confusing Bacon errors and I raise you my Bacon error hack: https://github.com/YorickPeterse/ruby-lint/blob/refactor-ast/spec/helper.rb#L47-L58
lightcap has quit [Quit: Computer has gone to sleep.]
<whitequark> yorickpeterse: oh thanks
<whitequark> the problem there is rather that #inspect prints stuff recursively
<whitequark> and I've got a lot of loops in the object graph
<whitequark> I really need an #inspect for my SSA which is not #pretty_print (cause the latter does not outline object identity)
<whitequark> but no idea how to format it properly
<whitequark> in related news, bacon seems to be a thing lately
<whitequark> which is somewhat surprising given it's 4 year old and hardly changed across them
dwu1 has quit [Quit: Leaving.]
<ryanf> whitequark: is it? what are the other data points?
<whitequark> ryanf: what do you want me to produce, an annotated internet crawl?
<ryanf> nah I was just curious what else you had in mind
<ryanf> pry uses bacon but I don't feel like I see it around very often at all
<whitequark> ryanf: quite some people on my twitter feed do
<ryanf> interesting
judofyr has joined #ruby-lang
<whitequark> (data points) mostly the opposite of yours. I do see it around unusually often
<whitequark> esp given how prevalent rspec is
<ryanf> I guess it's been in the conversation a bit because of https://gist.github.com/4221051
<ryanf> and because a new version just came out
<judofyr> what are we talking about?
* judofyr checks the log
<judofyr> bacon
<judofyr> yummy
setmeaway has joined #ruby-lang
<whitequark> I'd really like bacon to have be_* matchers in mainline
<whitequark> not having .should.be_a? Foo sucks
<whitequark> awesome
<whitequark> I just love bacon.
emocakes has joined #ruby-lang
<yorickpeterse> "If we deprecated TAP output and a few other things no one uses, then it's under 300 lines."
<yorickpeterse> Yes, lets remove the *one* universal format
<whitequark> the one universal format is $?
gnufied has quit [Quit: Leaving.]
marr has joined #ruby-lang
<yorickpeterse> As in, TAP was designed to be parsable and such, it's a shame it's not being used anywhere
<yorickpeterse> Well that and I have to admit it's a bit of a shame there's no nesting in the output (which makes things easier to read)
<whitequark> yorickpeterse: I don't give a fuck about parsability, I'm reading the errors with my eyes
<whitequark> and if there's no errors it could as well output nothing actually
<whitequark> now if only someone could tell me how do I fork before performing each test in bacon...
<yorickpeterse> There's not really a way to do that out of the bof
<yorickpeterse> * box
<whitequark> if you're wondering why: I'm mutating global state which cannot easily be reloaded
<yorickpeterse> Though you could hack it like I did
leopard_me has joined #ruby-lang
<whitequark> yorickpeterse: well yeah I know there's no out-of-the-box way. I read the entire bacon source several times :)
<yorickpeterse> def should_with_fork(*args, &block); fork { should(*args, &block) }; end
<yorickpeterse> something like that
<whitequark> mhm
<yorickpeterse> Make sure you use the right should though, it can be used as a replacement for "it" and for stuff like `foo.should == bar`
<whitequark> and how do I deliver the result back?
<yorickpeterse> should 'do foobar' results in "should do foobar", otherwise it's just the same as "it"
<yorickpeterse> Hm, that's a good call
<yorickpeterse> Hold on, I did something similar with threads
<yorickpeterse> Not sure if I still have that around somewhere thoughj
<yorickpeterse> * though
emocakes_ has joined #ruby-lang
dc5ala has joined #ruby-lang
gnufied1 has joined #ruby-lang
zmack has joined #ruby-lang
<whitequark> hm it only seems that I need to pass back ErrorLog or its absence
<yorickpeterse> That was for catching STDOUT and such, and it doesn't hack "should/it"
<whitequark> yorickpeterse: but bacon stores the backtraces in a var and outputs them before exiting
<yorickpeterse> it was the closest I could get to without messing everything up
emocakes has quit [Ping timeout: 272 seconds]
<whitequark> and I'm actually fine with stdout/stderr output being printed verbatim
<whitequark> I'm not starting these tests in parallel
<yorickpeterse> Well, if you fork things you'll have to call exit! at the end
<yorickpeterse> Otherwise you'll get the summary multiple times
<whitequark> obviously
<judofyr> yorickpeterse: you don't need to rewind StringIO's. just use #string
<judofyr> yorickpeterse: just FYI :)
nevill has quit [Quit: nevill]
<injekt> fuck I hate rvm
<judofyr> injekt: chruby dude
<judofyr> it's the new rbenv
<injekt> heh
<injekt> I'm pretty happy with rbenv
<injekt> only one of my devs is using rvm and it's being a pita
<yorickpeterse> judofyr: Well, I eventually just removed the code alltogether
<yorickpeterse> It was only used to test a very small portion anyway
<yorickpeterse> injekt: the rehashing pissed me off. chruby is very barebones but it gets the job done
<judofyr> oh yes. rehashing is a PITA :/
<yorickpeterse> plus postmodern is a cool guy
<yorickpeterse> ssteph? Well, lets just say that he fits the 37signals attitude
<yorickpeterse> (don't know him well otherwise)
<injekt> meh, sam writes very good software
<injekt> maybe I'll play with chruby
<whitequark> iirc he was the original author of "you are not your code" essay
richardburton has joined #ruby-lang
<injekt> well sure, that was pretty much written because of rbenv
<yorickpeterse> Oh I don't dislike the guy or anything, it's just that I get a bit uncomfortable whenever somebody from 37signals voices his opinion on Twitter as they can be quite controversial
<whitequark> injekt: in fact because of prototype
<whitequark> it was before the rbenv drama™
<injekt> right
<whitequark> and before the thing was abused by Brian...
<judofyr> thing? abused?
<whitequark> judofyr: that essay.
<whitequark> and by "abused" I mean that what he says and how he acts is quite different. If something, I prefer the former.
imajes has quit [Excess Flood]
anannie has joined #ruby-lang
leopard_me has quit [Quit: Computer has gone to sleep.]
<judofyr> anannie: heya
<anannie> hey judofyr!
<judofyr> how's it going?
imajes has joined #ruby-lang
<anannie> It's going reasonably well. I'm learning a lot of new things and I'm trying to do interesting things with it
<judofyr> nice
leopard_me has joined #ruby-lang
<injekt> ~% chruby 1.9.3-p362
<injekt> <internal:gem_prelude>:1:in `require': cannot load such file -- rubygems.rb (LoadError)
<injekt> great start
<yorickpeterse> lawl
rue has quit [Remote host closed the connection]
<yorickpeterse> Oh wait, are you migrating from rbenv?
<injekt> yus
<anannie> I'm still not at the level of grasping your code review (which is why I haven't replied, I couldn't formulate a decent non-time wasting reply), but I have done a few projects since then and I am teaching myself things from the pragmatic programmers guide one chapter at a time
<yorickpeterse> Because I couldn't get that to work, I just re-installed it
<yorickpeterse> I recall it was having some issues due to the shebangs or w/e
rue has joined #ruby-lang
<judofyr> yorickpeterse: worked fine here
<yorickpeterse> hm, odd
<whitequark> anannie, judofyr: what's the code in question, if not a secret?
<injekt> I nuked rbenv so it shouldn't be hitting it anyway
<yorickpeterse> I figured I'd just clean things up, no point in keeping it in ~/.rbenv/versions
gnufied1 has quit [Quit: Leaving.]
gnufied has joined #ruby-lang
<anannie> Sure whitequark, a while ago I wrote a blackjack program to learn ruby...
<injekt> postmodern: ping
<whitequark> (rbenv) $ rbenv rehash
<whitequark> rbenv: cannot rehash: /home/whitequark/.rbenv/shims/.rbenv-shim exists
<whitequark> wtf.
<judofyr> anannie: giving feedback is surprisingly hard. I hope that you'll get something out of it :)
<injekt> I'm not really sure why I still use version managers, i rarely switch the version anyway
<yorickpeterse> I stopped using them a long time ago on $PROD
<injekt> yeah me too
<yorickpeterse> It all runs MRI 1.9.3 anyway, no point in keeping things in <insert version manager here>
<injekt> although all my prod happens on heroku now anyway
<whitequark> injekt: you sure have a lot of money
<judofyr> injekt: or small projects
<whitequark> yeah
<anannie> judofyr: I did! I realised how much I didn't know and I learned a few specific lessons from it. It helped me a lot in my next challenge, writing a game of life; https://www.dropbox.com/s/iurhq1g8iot3f0d/gameoflife.rb
<injekt> my company website is hosted on heroku, it's not *that* expensive and means I dont have to employ (or do it myself) someone for sysadmin
<yorickpeterse> anannie: hey, that actually doesn't look that bad
nevill has joined #ruby-lang
<whitequark> anannie: yeah, the code is pretty good for a novice programmer
<anannie> yorickpeterse: Thanks, I had help :)
richardburton has quit [Quit: Leaving.]
<whitequark> I think you could find attr_accessor (and its siblings) useful
<yorickpeterse> The double hashes however are not needed for comments
<yorickpeterse> So just "# Comment goes here" is fine
<anannie> Ah about attr_accessor, I realise that this strays deep into OO concept land, but I don't grok it properly
<injekt> yorickpeterse: they obviously know that judging by.. most of the document
<yorickpeterse> injekt: they?
<yorickpeterse> anannie: it's just a shortcut for creating a getter and setter method
<whitequark> anannie: it is very simple actually. `attr_reader :foo' is completely equivalent to `def foo; @foo; end' for any `foo'
<anannie> yorickpeterse, yes but why roll it in
<whitequark> same for attr_writer. it's just a shortcut to avoid writing that code by yourself
<yorickpeterse> anannie: http://pastie.org/5615114
<anannie> whitequark: Isn't there more to it than that? I got that impression whilst reading the pragmatic programmers guide...
<whitequark> anannie: ruby has lots of useful shortcuts which together make your life a little happier
<injekt> yorickpeterse: 'he' is a little assumptious :)
<yorickpeterse> injekt: I'm sorry, is this related to that piece of code or did I miss something?
<injekt> :/
dankest has joined #ruby-lang
<yorickpeterse> (not angry or anything, just confused)
<whitequark> anannie: well, you can specify several attributes like `attr_reader :foo, :bar', but that's it
<injekt> yorickpeterse: I was replying to your comment about comments not needing "##" saying that anannie obviously knows that because most of the document uses single # and that it was probably just for style reasons
<whitequark> anannie: ruby is often very, very simple from inside. not always, but often.
<yorickpeterse> injekt: aah
steph021 has quit [Quit: Computer has gone to sleep.]
<anannie> whitequark: So there isn't any deeper meaning over here? I was banging my head against the wall trying to grok what I perceived to be a deep truth of the language. I got that impression because you can actually have virtual attributes themselves which don't directly expose instance variables and this aspect of thelanguage, the mutation between instance variables and functions led to interesting behaviour as an interface to that class
<anannie> . Nope I have no idea what I'm saying.
<anannie> yorickpeterse: Yeah they were essentially stylistic. I like to make things prettier basically.
<whitequark> anannie: no, it's just a shortcut for defining a method
<whitequark> anannie: what you're referring to is probably that there is no way to directly refer to an instance variable of another object
<whitequark> the only way you could interact with objects is by calling methods
<whitequark> on them
karasawa has joined #ruby-lang
<anannie> whitequark: Hrm let me quote the specific paragraph, can you please excuse me?
<whitequark> sure
<whitequark> 87% of test coverage in furnace!
<anannie> whitequark: http://pastebin.com/rzdWpDJQ
LKiS has quit [Read error: Connection reset by peer]
babinho_ has left #ruby-lang [#ruby-lang]
<yorickpeterse> ohgod, camelCamse in Ruby
<yorickpeterse> * Case
nevill has quit [Quit: nevill]
<yorickpeterse> Fuck my English is exceptionally shit today
<whitequark> anannie: past some OOP buzzwords there is a simple idea: if the outside world can never see what happens inside an object, we can freely change how it works without fearing to break anything, *if the interface is kept the same*
<whitequark> anannie: it has nothing to do with attr_* methods btw
<anannie> whitequark: Oh I see, so there isn't any special logic going on over here?
<whitequark> anannie: no
<postmodern> injekt, yo
<anannie> Ah.
<anannie> Thank you for teaching me that whitequark
<whitequark> you're welcome
<anannie> I would have wasted a lot of time and a ridiculous amount of thought to get over it...
nevill has joined #ruby-lang
stonerfish has quit [Quit: Leaving.]
<injekt> postmodern: was having some issues with chruby but looks like it's all working now cheers
<postmodern> injekt, word
<postmodern> injekt, anything due to my misconceptions?
<injekt> postmodern: nope, it was my fault :-)
<postmodern> injekt, word
richardburton has joined #ruby-lang
<postmodern> injekt, just ran into issues with OSX and ~/.bash_profile
richardburton1 has joined #ruby-lang
richardburton has quit [Ping timeout: 240 seconds]
Future[Chimp] has joined #ruby-lang
workmad3 has joined #ruby-lang
sns has joined #ruby-lang
sns has left #ruby-lang [#ruby-lang]
Cope has joined #ruby-lang
toretore has joined #ruby-lang
emocakes_ has left #ruby-lang [#ruby-lang]
emocakes has joined #ruby-lang
<emocakes> you still use bash postmodern?
<postmodern> emocakes, lol yes
<emocakes> y?
<emocakes> :/
<postmodern> emocakes, Fedora 17, bash is alright
agarcia has joined #ruby-lang
<emocakes> plz
<postmodern> emocakes, also scripting in bash is _way_ better than zsh
<emocakes> you can still drop to bash to run scripts
<postmodern> emocakes, bash 4 is much better
<emocakes> never tried 4.0
<emocakes> guess i should try it...
<emocakes> 3.2 sucks
<whitequark> postmodern: but when the fuck will they fix the "output^Cprompt$" ?!
<postmodern> emocakes, that defeats the purpose of switching to zsh, if your scripts require bash
<whitequark> hm I just realized it could be fixed with a single escape code in the PS1
<emocakes> i use a shell for more than scripts postmodern :p
<postmodern> whitequark, raise some noise on their bug tracker
<emocakes> i use it because its purty
apeiros_ has joined #ruby-lang
<postmodern> emocakes, i write scripts that run in your shell :P
<emocakes> nonsense
<emocakes> :p
<emocakes> you cant run no scripts in my shell
nevill has quit [Quit: nevill]
<postmodern> i just did
<rue> $ ps ax
<postmodern> divide by zero
<rue> | ag -i hax0rz
<postmodern> head splode
solars has joined #ruby-lang
karasawa has quit [Ping timeout: 255 seconds]
matled has quit [Remote host closed the connection]
matled has joined #ruby-lang
peterhellberg has joined #ruby-lang
<emocakes> what is ag rue?
zmack has quit [Remote host closed the connection]
jarib has quit [Ping timeout: 252 seconds]
zmack has joined #ruby-lang
<rue> It’s the silver searcher
<ggreer> hello
<judofyr> it's pretty sweet
jarib has joined #ruby-lang
<judofyr> hey ggreer
<ggreer> I've been neglecting it lately, but yeah I guess it's not a bad tool
<emocakes> rue, so like grep? :p
<ggreer> like ack
<ggreer> but faster
<rue> ggreer: I hear it crying at night
<judofyr> betterthanack.com
<whitequark> people
<whitequark> why do you want to replace grep?
<judofyr> PCRE
<ggreer> we don't. we just want more specialized tools for searching code
<emocakes> who here codes in vim?
<judofyr> emocakes: me
<emocakes> :(
<emocakes> i've never joined the vim part
<emocakes> *party
<judofyr> it's rather fun I'll tel you
<judofyr> tell*
<emocakes> im still using dreamweaver
<ggreer> I still use textmate 1.5
<emocakes> vim seems too complex
<emocakes> i.e: too much to leanr
<emocakes> *learn
<judofyr> emocakes: yeah. I agree :)
<peterhellberg> emocakes: I do, right now :)
<emocakes> but at the same time very fun and powerful
<rue> I AM IRCING FROM VIM
<emocakes> :o
<emocakes> i made vim make me a coffee
<peterhellberg> rue: I’m IRCing from my Raspberry Pi
<emocakes> ?
<peterhellberg> Hah, 418
<whitequark> sigh raspberry pi fanboys
<judofyr> whitequark: too high-level for you?
<peterhellberg> whitequark: Is there such a thing?
<injekt> im ircing from my normal desktop :O
<emocakes> id buy a rasp pi, but no hdmi :(
<emocakes> injekt, how? :!
<whitequark> judofyr: too much hype and too little actual benefits in it
<peterhellberg> whitequark: Yes, it’s pretty bad at everything… but still fun to play with for a while
imajes has quit [Excess Flood]
<whitequark> peterhellberg: it's just a marketing stunt by broadcom
imajes has joined #ruby-lang
<whitequark> a pretty clever one I admit, but still
<anannie> Hey can someone please point me to a library that I can use for IO for my game of life? https://www.dropbox.com/s/iurhq1g8iot3f0d/gameoflife.rb
<peterhellberg> whitequark: Also, it is a pretty bad idea to run general purpose operating systems from a sd card, horrible performance, file system corruption, and so on
jacktrick has joined #ruby-lang
<ggreer> emocakes: maybe look at beagleboard or pandaboard?
<whitequark> peterhellberg: unless broadcom fucked up MMC too hard you can get better performance with a more expensive SD card (something along 64x or so, IIRC)
<whitequark> and FS corruption shouldn't manifest itself at all
jacktrick is now known as Guest25746
<injekt> anannie: what type of IO? File? then Ruby has a built in File class
<emocakes> ggreer, was liking pandaboard
<peterhellberg> whitequark: Well, it does… even with a CLASS 10 card
<anannie> I've been looking into termios and ncurses, but they are a bit beyond me. I was thinking about outputting to the terminal, but then I can find a library that seems to allow me to do what I want. Not without some hassle.
<whitequark> peterhellberg: I'm not surprised. It's a device whose USB controller loses keypresses even with 0% auxiliary CPU load.
blacktulip has quit [Ping timeout: 272 seconds]
blacktulip has joined #ruby-lang
karasawa has joined #ruby-lang
<whitequark> emocakes: +++ for beagle/pandaboards. they're quite nice.
<anannie> injekt: I want to print ascii art representing the game board in the game of life as it evolves over each iteration
<emocakes> rpi looks alright, but might be a tad weak for certain things
<ggreer> I have a beagleboard. it works ok but I didn't do anything useful with it
<whitequark> emocakes: and they actually have an open ecosystem rather than locking you in between of proprietary blobs and shitty peripherals
<peterhellberg> anannie: Do you find it too slow to wipe the entire terminal between generations?
<rue> There was some ASCII library
<ggreer> it's way easier to just use an old laptop
<anannie> injekt: Writing it to a file would be suboptimal as there's no way someone would scroll through all of that. Right now I just do a puts and then I do a hack to clear the screen, but it's quite ugly
<anannie> peterhellberg: I haven't hit against any limits so far, the terminal refresh rate is quite high
<whitequark> ggreer: old laptops have at least an order of magnitude higher power consumption
<whitequark> that is, if you don't use sleep capabilities of arms on *boards
<ggreer> electricity is cheap. my time isn't
<whitequark> if you do, it can be anywhere from 1 to 3 orders of magnitude
<whitequark> ggreer: it is not when you're running on batteries
<whitequark> depends on your use case, of course.
<rue> anannie: There’s ruby-toolbox that you could try to search in—or in this case, $ gem search -r ascii # or ansi gives some results too
<whitequark> gem ansi is okay for this
francisfish has joined #ruby-lang
jxie has joined #ruby-lang
<ggreer> I used a lead-acid battery and got about 24 hours out of it. the main problem is that I couldn't integrate it with the beagleboard. I couldn't tell how much battery was left without checking a multimeter
<peterhellberg> anannie: I experimented with printing Emoji in the OS X terminal a while back, GoL runs pretty fast http://assets.c7.se/skitch/Game_of_Life__Emoji-20130103-111429.png
<anannie> Ah I didn't realise I could do that (and that was what I was searching for) rue!
<ggreer> consumption was 1-2 watts but that was without a screen
<ggreer> most of that 1-2 watts was probably the usb wifi card
karasawa has quit [Read error: Connection reset by peer]
<whitequark> might've been
<whitequark> vendors often skip implementing sleep modes properly, and this sucks
<peterhellberg> anannie: Are you currently using the print "\e[2J\e[f" hack to clear the screen?
<ggreer> oh yeah. that was another thing. by default it ran at 1.2Ghz no matter what
<anannie> peterhellberg: Oh wow, how did you make that? Can you take input while it's running?
<anannie> peterhellberg: Yes
<ggreer> I forget howI managed to get cpufreq working
<ggreer> *how
<whitequark> ggreer: well, if there's working cpuidle you might even not need cpufreq
<whitequark> unless you do long computations
<ggreer> it wasn't working. once I got cpufreq working the board ran much cooler
<peterhellberg> anannie: Same here :) And no, it was just a simple GoL implementation that I used to se how well the terminal could write emoji (Also calling GC.disable)
<anannie> peterhellberg: Well I want to refine it and turn it into a terminal application or any other application with proper IO
<anannie> I plan on using Gosper's HashLife algorithm and making it much more refined so that you can explore GoL
<peterhellberg> anannie: Neat :) Do you have any thoughts on how to actually perform the input?
<anannie> I'll randomly seed it, or pick up patterns from file and allow them to embed it in
<anannie> It's more interesting to seed the world randomly and then see how life evolves from that point
<anannie> I'll also experiment with doing a floating point based life and zooming out the terminal until it becomes more apparent.... (if that is indeed possible at all)
<whitequark> anannie: floating point based life sounds like a cool idea
<whitequark> through I'm afraid you'll hit some performance problems there
<anannie> whitequark: How so? It's just the same evaluation scheme, the ranges are just more diverse because the numbers aren't integers
<whitequark> anannie: integers are discrete, floats form a continuum
<whitequark> to check neighbors in integer, you need to perform 9 operations, that's O(1)
<anannie> whitequark: Well if you're doing a check of the sort if x > 3.2 && x <4.5 then true
<peterhellberg> anannie: Something like SmoothLife/SmoothLifeL?
<anannie> peterhellberg: Yes
<whitequark> to check neighbors in floats, you need to check if the point falls inside a range, that's O(n) for n=count of points
<peterhellberg> anannie: Cool, but probably easier in a framebuffer rather than a character display/terminal
<anannie> whitequark: Ah I see. I didn't realise that. I thought the range checking was a heuristic
* anannie googles framebuffer
voker57 has quit [Remote host closed the connection]
adambeynon has joined #ruby-lang
<peterhellberg> anannie: Eg: "surface where you can draw pixels"
<whitequark> anannie: framebuffer is basically a rectangle with pixels where you can draw anything you want
<anannie> Ah I see... I don't know much about programming peterhellberg
<whitequark> anannie: check out ruby sdl bindings for that, they're pretty simple
<peterhellberg> anannie: You’ll get there :)
<anannie> Thanks peterhellberg
<peterhellberg> Well, time for lunch here in Stockholm
<judofyr> peterhellberg: I hope it's soon lunch here in Oslo too
<anannie> whitequark: I thought it checked up to X binary digits and then stopped, making it the same as an integer, but I guess it must be actually quite harder as it doesn't have discrete states
<anannie> peterhellberg: Have a nice one!
dhruvasagar has quit [Ping timeout: 252 seconds]
<whitequark> anannie: of course not
<whitequark> comparing two floating point values is an operation similar to comparing two integer ones
<whitequark> you see, basically you have an array of points with coordinates, whether that's integers or floats
<whitequark> but in case of integers, you can make a nice and powerful optimization: store them in a 2-dimensional array with indexes identical to coordinates
leopard_me has quit [Quit: Computer has gone to sleep.]
<whitequark> with floats, you don't have such an option
dhruvasagar has joined #ruby-lang
<whitequark> anannie: besides, all binary digits are compared in parallel. it would be no good if 10<10 and 0.01<0.01 took different time to finish :)
dankest has quit [Quit: Leaving...]
<anannie> I'm sorry if I'm being thick over here, but does this not contradict what you said about an O(n) run time for comparisons in a float based system?
<whitequark> anannie: a single integer and floating point comparison take roughly the same time on your PC
<whitequark> the O(n) complexity is for searching neighbors
leopard_me has joined #ruby-lang
zmack has quit [Remote host closed the connection]
<anannie> whitequark: Ah but a floating point GoL implementation would basically be stored in an array except that the values of individual cells are floats and are somewhere between the state of being alive and dead (at least that's how I envision mine)
<anannie> whitequark: So searching for neighbours should still be a trivial process, unless you turn it into a circle or something
karasawa has joined #ruby-lang
<whitequark> anannie: ahhh, so that's not like SmoothLife
<whitequark> well yeah, that's much simpler
<anannie> whitequark: Yeah.
dhruvasagar has quit [Ping timeout: 240 seconds]
GarethAdams has joined #ruby-lang
leopard_me has quit [Quit: Computer has gone to sleep.]
krohrbaugh1 has joined #ruby-lang
<charliesome> whitequark: i have an idea to bounce off you
blacktul_ has joined #ruby-lang
<whitequark> charliesome: shoot
blacktulip has quit [Ping timeout: 248 seconds]
<charliesome> how feasible do you think it would be to modify ruby so that all global variables were actually thread locals
<charliesome> as in, global variables on the c level
<charliesome> so you could host multiple ruby vms in one process
karasawa has quit [Quit: Lost terminal]
<judofyr> charliesome: all constants need to be per VM too, right?
krohrbaugh has quit [Ping timeout: 252 seconds]
<charliesome> oh yeah fuck
<charliesome> that throws a spanner in the works
<charliesome> i guess there would be no point hosting multiple vms in a process then because you couldn't share memory...
<whitequark> charliesome: correct
karasawa has joined #ruby-lang
karasawa has quit [Client Quit]
<whitequark> multivm was actually considered by ruby-core folks
<whitequark> but ruby uses C globals all over the place
<charliesome> and they decided it was not worth it?
<whitequark> yes, the changes would be very extensive
<whitequark> and the benefit is not immediately clear, especially for *nix
<charliesome> yeah
<charliesome> it helps for ruby embedders
karasawa has joined #ruby-lang
<whitequark> charliesome: embedding ruby is already ugh
<whitequark> it does weird shit with stack, for example
<whitequark> and threads. and signals
<charliesome> mruby looks cool but it's annoying that it isn't full ruby
<whitequark> you don't really *want* to embed full ruby
<charliesome> how come?
<whitequark> stuff like ARGV makes no sense, to begin with
<judofyr> whitequark: btw, have you heard about Cheney on the M.T.A?
karasawa has quit [Client Quit]
<lupine> there are many contexts in which embedding ruby is sane
<whitequark> judofyr: oh sure
<whitequark> judofyr: did I tell you about my hierarchical heap idea?
<judofyr> whitequark: nope? tell, tell!
karasawa has joined #ruby-lang
<lupine> but since it's so difficult, there's always lua instead
<lupine> (or python, which is standard for C++ apps wanting to embed an interpreted language)
<charliesome> cpython is just as bad as mri, no?
<whitequark> lupine: ha, python is all the same crap all over again
<whitequark> exactly
<charliesome> also lua is a bad language
<whitequark> also python has reference counting which does bite you painfully
<lupine> good, bad, meh
<charliesome> luajit is an amazing bit of engineering
<charliesome> but the language itself is awkward and limited
<whitequark> so far, every attempt at replicating Self has failed from a language design standpoint
<whitequark> I'm starting to think that Self wasn't that of a good idea at all
<charliesome> whitequark: refcounting seems like it would be handy for things like rails apps which allocate a ton of temporary objects
<whitequark> judofyr: I'm somewhat sleep deprived right now. I'm going to write a blog post
<judofyr> whitequark: appreciate it
<whitequark> charliesome: yeah, it's also handy for crashes and/or memory leaks
<lupine> ah, the python/c++ thing is boost.python, so slightly different
<whitequark> judofyr: forget one Py_INCREF(Py_None) in a loop and you'll die in a completely unrelated place
<charliesome> whitequark: obviously you don't use refcounting exclusively
<charliesome> python uses a gc as well as refcounting afaik
<whitequark> judofyr: and yes python explicitly refcounts None (the analogue of ruby nil)
<judofyr> whitequark: what, Py_None is garbage collected?
<whitequark> which is so fucking stupid
<judofyr> ehm
<charliesome> yeah lol
<judofyr> wtf?
cultureulterior_ has joined #ruby-lang
<whitequark> judofyr: also they allocate all numbers on heap
<whitequark> and free them
<charliesome> whitequark: :|
<judofyr> whitequark: all of them?
<whitequark> -1..100 are statically allocated to provide a +30% speed boost
<whitequark> judofyr: yeah, no tagged pointers there
<charliesome> that's fucked
<judofyr> and I though cpython was decent
<whitequark> cpython is even more horrible than mri
<whitequark> also
<charliesome> i don't see why nil, true, false in ruby aren't statically allocated
<whitequark> guido explicitly opposes optimizatins in cpython
<charliesome> instead of being special pointer values
workmad3 has quit [Ping timeout: 272 seconds]
vlad_starkov has quit [Remote host closed the connection]
<charliesome> whitequark: guido makes a lot of terrible decisions
<judofyr> charliesome: one less de-referencing?
<whitequark> charliesome: lisp heritage, simplified checks
<charliesome> judofyr: but then you have to have extra checks before every deref
larrylv_ has joined #ruby-lang
<charliesome> whitequark: simpler checks? myvalue == rb_nil
<charliesome> get rid of Qnil
<charliesome> VALUE rb_nil; somewhere
<whitequark> charliesome: you don't do these kinds of checks, you check for nil || false
<whitequark> being purely arithmetic that is somewhat faster
<whitequark> one and, one branch
<whitequark> zero memory accesses
<charliesome> hm
<charliesome> is it really so significant?
larrylv has quit [Ping timeout: 272 seconds]
<whitequark> there is a whole lot of these checks, so maybe. but the real reason is elisp heritage.
<whitequark> charliesome: besides, if you have tagged numbers you do need to have those checks anyway
<whitequark> might as well just add true/false/nil to the mix
<whitequark> judofyr: btw, why did you suddenly decide to show the Charlie on M.T.A article to me?
<whitequark> *Cheney
<charliesome> lol
<judofyr> whitequark: I just recently discovered it. seemed like a neat trick (although I'm not sure if it's any use for you now)
richardburton1 has quit [Quit: Leaving.]
<whitequark> judofyr: the trick indeed is, the article I've read some time ago
<whitequark> I'm extending the trick somewhat through
<anannie> rue: I went through the search results and there doesn't seem to be a gem that does the type of terminal UI I want other than ncurses and ncursesw. Both are too advanced for me... Maybe I should look at some other form of display? I would really appreciate it if you could provide any suggestions
<whitequark> judofyr: I've no idea what he meant by "CONS Should Not CONS Its Arguments", through
<whitequark> that reference is completely opaque to me
<whitequark> oh nevermind, there's a citation.
<whitequark> judofyr: there won't be a blog post, http://www.pipeline.com/~hbaker1/LazyAlloc.html is exactly what I've invented
krz has quit [Quit: krz]
zarubin has quit []
<anannie> rue: I'm looking into the ANSI API, but I'm not sure how to make headway over there...
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
m3nd3s has joined #ruby-lang
GarethAdams has quit [Quit: Leaving...]
karasawa has quit [Ping timeout: 248 seconds]
GarethAdams has joined #ruby-lang
<anannie> Okay I think I might be better off if I used GOSU for this.
bubonicpestilenc has joined #ruby-lang
<bubonicpestilenc> hey al
<bubonicpestilenc> guys
<bubonicpestilenc> got a shitty question :D
<bubonicpestilenc> best name for method which return next point/cell in specified direction, e.g.: p = current_p.get_nearest_cell_in_direction(dir)
<bubonicpestilenc> any suggestions? :D
<yorickpeterse> get_adjacent_cell(...)
<yorickpeterse> or something like `get_adjacent_cell(..., :right)`
<yorickpeterse> get_adjacent_cell_to_the_right # this this not Java
<yorickpeterse> You don't want one method for every direction
<bubonicpestilenc> mmmm
<bubonicpestilenc> thanks
<apeiros_> -get
<judofyr> yeah, drop the get
<apeiros_> just adjacent_cell(dir)
<bubonicpestilenc> awesome :)
<bubonicpestilenc> thank you )
<apeiros_> personally I'd make that one just a case/when delegating to right_neighbor, left_neighbour, …
<apeiros_> *neighbor
<yorickpeterse> case...when...what
<yorickpeterse> Hold on, let me get my cane
* yorickpeterse waves cane at apeiros_
zz_chrismcg is now known as chrismcg
canuck3141 has joined #ruby-lang
canuck3141 has quit [Client Quit]
Sinestro has quit [Ping timeout: 248 seconds]
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
dhruvasagar has joined #ruby-lang
stardiviner has joined #ruby-lang
judofyr has quit [Remote host closed the connection]
* apeiros_ canes a wave at yorickpeterse
<andrewvos> What's up rue? :(
<rue> Whah?
<andrewvos> rue: emo tweet
<apeiros_> yorickpeterse: def neighbor(direction); case direction; when :left then left_neighbor; when :right then right_neighbor; …
<rue> andrewvos: Ah, just some racist derailing
<rue> Or racism derailing, I should say.
<andrewvos> rue: Oh. People are douches, just remember that :)
kurko_ has joined #ruby-lang
megharsh has quit [Ping timeout: 252 seconds]
sheerun has quit [Ping timeout: 256 seconds]
wallerdev has quit [Quit: wallerdev]
TvL2386 has joined #ruby-lang
judofyr has joined #ruby-lang
vlad_starkov has joined #ruby-lang
jxie has quit [Quit: leaving]
vlad_starkov has quit [Ping timeout: 276 seconds]
madish has joined #ruby-lang
megharsh has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
sheerun has joined #ruby-lang
leopard_me has joined #ruby-lang
srbaker has joined #ruby-lang
<injekt> lol emo tweet
<judofyr> wat
solars has quit [Ping timeout: 240 seconds]
francisfish has quit [Remote host closed the connection]
<yorickpeterse> apeiros_: if you have to go down that route at least polymorph things
<apeiros_> yorickpeterse: in soviet russia, things polymorph you!
* apeiros_ has no idea how to polymorph that…
<yorickpeterse> send("#{direction}_neighbor") if respond_to?("#{direction}_neighbor")
<yorickpeterse> something like that
amaya_the has quit [Ping timeout: 276 seconds]
amaya_the has joined #ruby-lang
<apeiros_> probably slower than the case/when
Guest25746 has quit [Quit: Leaving]
<apeiros_> and not sufficiently more succinct than the 5 lines of case/when
<apeiros_> also less readable
* apeiros_ clearly favors case/when for this
<apeiros_> ok, 6 lines of case/when (forgot to count the `end`)
<yorickpeterse> except case/when doesn't scale
<apeiros_> hm, 7 if you do it properly and add an `else raise ArgumentError`
<yorickpeterse> Every time you add a direction you have to add a method *and* a case statement
<apeiros_> yorickpeterse: lol
<yorickpeterse> err, when
<apeiros_> because there's so many directions :-p
<yorickpeterse> top, top right, right, bottom right, bottom, bottom left, left, top left
solars has joined #ruby-lang
<yorickpeterse> maybe he also wants diagonal
<yorickpeterse> or top left 2 cells whatever
<yorickpeterse> etc
<yorickpeterse> anyway, back to $WORK
<judofyr> yorickpeterse: in that case, I doubt that he want to write 10 different _direction methods
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
<apeiros_> yorickpeterse: you scaled by factor 2! incredoable! ;-p
<yorickpeterse> judofyr: correct, that was my statement all along
<yorickpeterse> use a parameter, not a method for each direction
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
<yorickpeterse> Though OOP zealots will probably crucify me for saying that
<apeiros_> yorickpeterse: and then you do what in your method? let me guess…
<apeiros_> (in your single method with the parameter…)
<yorickpeterse> Depends on what exactly he wants to do
<judofyr> this *really* depends on what he wants to do
<judofyr> but I doubt the logic is 100% different for all the directions
<judofyr> meh, I'm out of this discussion
<apeiros_> if your calls to *neighbor will be parametrized anyway, then there's no point in writing the separate *_neighbor methods
<apeiros_> you could also create a neighbor_at(offset_x, offset_y) and delegate to that (from both, neighbor(direction) and *_neighbor)
<apeiros_> but that depends on the implementation (without a grid/coordinate system at the base, it probably won't be a good approach)
sheerun has quit [Quit: ZNC - http://znc.in]
Nisstyre-laptop has quit [Read error: Operation timed out]
Haribhau has joined #ruby-lang
xalei has quit [Remote host closed the connection]
Haribhau has quit [Client Quit]
cultureulterior_ has quit [Quit: cultureulterior_]
meatballhat has joined #ruby-lang
meatballhat has quit [Changing host]
meatballhat has joined #ruby-lang
sheerun has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
gja has joined #ruby-lang
gja has quit [Changing host]
gja has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby-lang
<apeiros_> andrewvos: you're not natively german speaking?
anannie has quit [Remote host closed the connection]
lele|w has joined #ruby-lang
rsl has joined #ruby-lang
<andrewvos> apeiros_: Not that I'm aware of.
<andrewvos> apeiros_: Why do you ask?
<apeiros_> because my only suggestion is german only :)
sepp2k has joined #ruby-lang
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
francisfish has joined #ruby-lang
<andrewvos> apeiros_: You wanted to suggest another book?
Haribhau has joined #ruby-lang
<apeiros_> yes
<andrewvos> What is everone using for git push.default?
<apeiros_> the default
<apeiros_> I think
<andrewvos> apeiros_: Oh okay. No I can understand Afrikaans, but that's about as close as I get to German.
<apeiros_> :D
<andrewvos> apeiros_: push.default behaviour is changing in 2.0 though, and was wondering what everyone thinks about a sane default.
<andrewvos> "nothing" might be the best :/
meatballhat has quit [Ping timeout: 240 seconds]
<judofyr> andrewvos: I use upstream
<Haribhau> hi Guys- I need help. I am trying to install ruby-oci8 gem wth ruby 1.9.3. It install gem successfully but when say require 'oci8' it gives OCIError: OCI Library Initialization Error
<andrewvos> judofyr: How is that different from "current"?
<judofyr> andrewvos: don't remember now
<andrewvos> haribhau: You probably need to install Oracle?
<Haribhau> I have instant client
<apeiros_> aahahaha, oracle… have fun haribhau
<Haribhau> on solaris
solars has quit [Ping timeout: 240 seconds]
<Haribhau> I am trying to solve this problem since 3 days but no luck
<andrewvos> haribhau: Installed on the same machine you're trying to require ruby-oci8?
<apeiros_> (sorry, if I had useful help, I'd provide it - I just happen to know that oracle client is a bitch, at least on osx)
<Haribhau> yes
<andrewvos> haribhau: Okay, well I'm no expert. Can't help you sorry.
<Haribhau> ok
<apeiros_> haribhau: one bit of advise, though - make sure you follow the directions on the ruby-oci8 website by the letter
<Haribhau> any pointer would have been helpful though
<Haribhau> I tried all
Future[Chimp] has quit [Quit: This computer has gone to sleep]
<apeiros_> the last times I had trouble with oci8, it was either one of two reasons: a) I failed to follow it correctly, or b) oracle simply didn't support what I did (like osx 10.8…)
<Haribhau> ok. could that be any of the missing libarary in instant client
<Haribhau> ?
<apeiros_> no idea
<Haribhau> ok
goshakkk has quit [Quit: Computer has gone to sleep.]
dc5ala has quit [Quit: Ex-Chat]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
solars has joined #ruby-lang
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
davidbalber|away is now known as davidbalbert
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
rcvalle has joined #ruby-lang
workmad3 has joined #ruby-lang
marr has quit [Ping timeout: 255 seconds]
jxie has joined #ruby-lang
meatballhat has joined #ruby-lang
meatballhat has quit [Changing host]
meatballhat has joined #ruby-lang
havenn has joined #ruby-lang
havenn has quit [Remote host closed the connection]
amaya_the has quit [Ping timeout: 240 seconds]
imajes has quit [Excess Flood]
krohrbaugh1 has quit [Ping timeout: 252 seconds]
krohrbaugh has joined #ruby-lang
krohrbaugh has quit [Client Quit]
meatballhat has quit [Ping timeout: 255 seconds]
francisfish has quit [Ping timeout: 265 seconds]
imajes has joined #ruby-lang
francisfish has joined #ruby-lang
krohrbaugh has joined #ruby-lang
jxie has quit [Quit: leaving]
slyphon has quit [Ping timeout: 245 seconds]
dhruvasagar has quit [Ping timeout: 240 seconds]
meatballhat has joined #ruby-lang
meatballhat has quit [Changing host]
meatballhat has joined #ruby-lang
dhruvasagar has joined #ruby-lang
breakingthings has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
slyphon has joined #ruby-lang
sailias has joined #ruby-lang
sailias has quit [Client Quit]
postmodern has quit [Quit: Leaving]
meatballhat has quit [Ping timeout: 240 seconds]
francisfish has quit [Ping timeout: 264 seconds]
Uranio has joined #ruby-lang
francisfish has joined #ruby-lang
workmad3 has quit [Read error: Operation timed out]
jtoy has joined #ruby-lang
slyphon has quit [Ping timeout: 245 seconds]
marr has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
davidbalbert is now known as davidbalber|away
slyphon has joined #ruby-lang
unlikely_monkey has joined #ruby-lang
mytrile has joined #ruby-lang
sailias has joined #ruby-lang
blacktul_ has left #ruby-lang [#ruby-lang]
blacktulip has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
slyphon has quit [Ping timeout: 245 seconds]
karasawa has joined #ruby-lang
outoftime has joined #ruby-lang
gja has quit [Quit: This computer has gone to sleep]
peterhellberg has left #ruby-lang [#ruby-lang]
megharsh has quit [Quit: WeeChat 0.3.9.2]
krohrbaugh has joined #ruby-lang
larrylv_ has quit [Remote host closed the connection]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
jxie has joined #ruby-lang
thone_ has joined #ruby-lang
davidbalber|away is now known as davidbalbert
unlikely_monkey has quit [Remote host closed the connection]
thone has quit [Ping timeout: 245 seconds]
<rking> zzak: My previous P.R. got its hopes qrushed. Here's round 2, without the aggressive Markup part: https://github.com/rubygems/rubygems.org/pull/504
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
stevechiagozie has joined #ruby-lang
workmad3 has joined #ruby-lang
srbaker has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
raptor has joined #ruby-lang
goshakkk has quit [Quit: Computer has gone to sleep.]
workmad3 has quit [Ping timeout: 264 seconds]
larrylv has joined #ruby-lang
hack has joined #ruby-lang
larrylv has quit [Remote host closed the connection]
larrylv has joined #ruby-lang
workmad3 has joined #ruby-lang
lightcap has joined #ruby-lang
lightcap has quit [Excess Flood]
lightcap has joined #ruby-lang
lightcap has quit [Excess Flood]
joast has quit [Quit: Leaving.]
lightcap has joined #ruby-lang
lightcap has quit [Excess Flood]
davpoind has joined #ruby-lang
lightcap has joined #ruby-lang
lightcap has quit [Excess Flood]
lightcap has joined #ruby-lang
lightcap has quit [Excess Flood]
gix has quit [Quit: Client exiting]
srbaker has quit [Quit: Computer has gone to sleep.]
blahwoop has joined #ruby-lang
mytrile has quit [Read error: Connection reset by peer]
mytrile has joined #ruby-lang
glebm has quit [Quit: Computer has gone to sleep.]
slyphon has joined #ruby-lang
joast has joined #ruby-lang
karasawa has quit [Ping timeout: 264 seconds]
richardburton has joined #ruby-lang
richardburton has quit [Client Quit]
Banistergalaxy has quit [Ping timeout: 255 seconds]
jtoy has quit [Quit: jtoy]
Banistergalaxy has joined #ruby-lang
jtoy has joined #ruby-lang
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
karasawa has joined #ruby-lang
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
slyphon_ has joined #ruby-lang
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
gnufied1 has joined #ruby-lang
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
vlad_starkov has joined #ruby-lang
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
slyphon has quit [Ping timeout: 245 seconds]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
jonahR has joined #ruby-lang
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
krohrbaugh has quit [Quit: Leaving.]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
judofyr has quit [Remote host closed the connection]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
srbaker has joined #ruby-lang
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
zhul_mechanos has joined #ruby-lang
gix has joined #ruby-lang
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
djinni` has quit [Ping timeout: 260 seconds]
melter has joined #ruby-lang
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
mephux has quit [Remote host closed the connection]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
workmad3 has quit [Ping timeout: 240 seconds]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
stevechiagozie has quit [Ping timeout: 240 seconds]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
wang has quit [Ping timeout: 260 seconds]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
wang has joined #ruby-lang
djinni` has joined #ruby-lang
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
mephux has joined #ruby-lang
goshakkk has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
karasawa has quit [Quit: Lost terminal]
karasawa has joined #ruby-lang
havenn has joined #ruby-lang
Guest___ has joined #ruby-lang
Guest___ has quit [Client Quit]
Guest___ has joined #ruby-lang
Guest___ has left #ruby-lang [#ruby-lang]
gustavnils has joined #ruby-lang
wyhaines has joined #ruby-lang
agarcia has quit [Quit: Konversation terminated!]
anachronistic has joined #ruby-lang
andrewhl has joined #ruby-lang
<zzak> good morning!
<kentos> morning!
elux has joined #ruby-lang
<injekt> afternoon!
stevechiagozie has joined #ruby-lang
<GarethAdams> evening!
<Uranio> lunch time
jonahR has quit [Quit: jonahR]
jonahR has joined #ruby-lang
schaerli has joined #ruby-lang
voker57 has joined #ruby-lang
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
francisfish has quit [Remote host closed the connection]
<zzak> rking: whats simple_markup()?
francisfish has joined #ruby-lang
<rking> zzak: That's the existing thing
<rking> Actually I really like knowing about it
stonerfish has joined #ruby-lang
<rking> (If your description or summary match /^==/ you get Markedown output. I'm going to use it everywhere now. ☺)
karasawa has quit [Ping timeout: 240 seconds]
<rking> That seems like a really arbitrary pattern to match, that's why in my previous Pull Req I just said do it all the time.
karasawa has joined #ruby-lang
lightcap has joined #ruby-lang
lightcap has quit [Max SendQ exceeded]
goshakkk has quit [Quit: Computer has gone to sleep.]
larrylv has quit [Remote host closed the connection]
francisfish has quit [Ping timeout: 265 seconds]
bougyman has quit [Ping timeout: 255 seconds]
bougyman has joined #ruby-lang
bougyman has quit [Changing host]
bougyman has joined #ruby-lang
<zzak> i think you'll have better luck with this one
<zzak> thanks for the patch!
krohrbaugh has joined #ruby-lang
<rking> Heh, no prob. Thanks for the thanks.
lightcap has joined #ruby-lang
lightcap has quit [Excess Flood]
lightcap has joined #ruby-lang
lightcap has quit [Excess Flood]
lightcap has joined #ruby-lang
lightcap has quit [Excess Flood]
lightcap has joined #ruby-lang
lightcap has quit [Excess Flood]
krohrbaugh has quit [Client Quit]
lightcap has joined #ruby-lang
lightcap has quit [Excess Flood]
krohrbaugh has joined #ruby-lang
blazes816 has joined #ruby-lang
lightcap has joined #ruby-lang
lightcap has quit [Excess Flood]
lightcap has joined #ruby-lang
lightcap has quit [Excess Flood]
breakingthings has quit [Read error: Connection reset by peer]
emocakes has quit [Quit: emocakes]
lightcap has joined #ruby-lang
lightcap has quit [Excess Flood]
breakingthings has joined #ruby-lang
lightcap has joined #ruby-lang
lightcap has quit [Excess Flood]
lightcap has joined #ruby-lang
lightcap has quit [Excess Flood]
lightcap has joined #ruby-lang
Sinestro has joined #ruby-lang
lightcap has quit [Excess Flood]
lightcap has joined #ruby-lang
lightcap has quit [Excess Flood]
lightcap has joined #ruby-lang
lightcap has quit [Excess Flood]
lightcap has joined #ruby-lang
lightcap has quit [Excess Flood]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
lightcap has joined #ruby-lang
lightcap has quit [Excess Flood]
lightcap has joined #ruby-lang
lightcap has quit [Excess Flood]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
lightcap has joined #ruby-lang
lightcap has quit [Excess Flood]
goshakkk has joined #ruby-lang
lightcap has joined #ruby-lang
lightcap has quit [Excess Flood]
lightcap has joined #ruby-lang
lightcap has quit [Excess Flood]
lightcap has joined #ruby-lang
lightcap has quit [Excess Flood]
lightcap has joined #ruby-lang
lightcap has quit [Excess Flood]
lightcap has joined #ruby-lang
lightcap has quit [Excess Flood]
lightcap has joined #ruby-lang
lightcap has quit [Excess Flood]
lightcap has joined #ruby-lang
lightcap has quit [Excess Flood]
lightcap has joined #ruby-lang
lightcap has quit [Excess Flood]
lightcap has joined #ruby-lang
lightcap has quit [Excess Flood]
lightcap has joined #ruby-lang
lightcap has quit [Excess Flood]
lightcap has joined #ruby-lang
lightcap has quit [Excess Flood]
lightcap has joined #ruby-lang
lightcap has quit [Excess Flood]
lightcap has joined #ruby-lang
lightcap has quit [Remote host closed the connection]
<kentos> how do you think codecademy.com is sandboxing their ruby environment?
gregmore_ has joined #ruby-lang
<rking> kentos: It's probably run on a VM with limited everything, yeah.
stonerfish has quit [Quit: Leaving.]
<kentos> but check out the console, when you do `puts self` you get a Context object
<kentos> any idea what that's about?
<kentos> and backticks give a [FATAL] Failed to create timer thread (errno: 11) msg
workmad3 has joined #ruby-lang
<injekt> self.__run("puts 'hello'") tehe
<injekt> Context just looks like a simple object, it only adds a 'gets', '__test' and '__run' methods so it cant do too much special
larrylv has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 255 seconds]
rins has joined #ruby-lang
imperator has joined #ruby-lang
<kentos> self.__run("123456123456123456.times {|i| Math.sqrt(123498120498123490873459845*12309487234908732948674351243 + i)}")
<kentos> "Program took too long to finish. Restarting ..."
banisterfiend has joined #ruby-lang
stonerfish has joined #ruby-lang
larrylv has quit [Ping timeout: 272 seconds]
breakingthings has quit []
tonni has joined #ruby-lang
jtoy has quit [Quit: jtoy]
davpoind has quit [Quit: Be back later]
__butch__ has joined #ruby-lang
meatballhat has joined #ruby-lang
meatballhat has quit [Changing host]
meatballhat has joined #ruby-lang
lightcap has joined #ruby-lang
lightcap has quit [Excess Flood]
lightcap has joined #ruby-lang
lightcap has quit [Excess Flood]
lightcap has joined #ruby-lang
lightcap has quit [Excess Flood]
lightcap has joined #ruby-lang
lightcap has quit [Excess Flood]
meatballhat has quit [Ping timeout: 264 seconds]
lightcap has joined #ruby-lang
lightcap has quit [Excess Flood]
stevechiagozie has quit [Quit: stevechiagozie]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
workmad3 has quit [Ping timeout: 240 seconds]
GarethAdams has quit [Quit: Leaving...]
drollwit has quit [Remote host closed the connection]
lightcap has joined #ruby-lang
drollwit has joined #ruby-lang
drollwit has quit [Read error: Connection reset by peer]
drollwit has joined #ruby-lang
wyhaines_ has joined #ruby-lang
wyhaines has quit [Read error: Connection reset by peer]
S2kx has joined #ruby-lang
stevechiagozie has joined #ruby-lang
methods has joined #ruby-lang
methods has left #ruby-lang [#ruby-lang]
goshakkk has quit [Quit: Computer has gone to sleep.]
S2kx has quit [Quit: Leaving]
chrismcg is now known as zz_chrismcg
tonni has quit [Remote host closed the connection]
stevechiagozie has quit [Read error: Connection reset by peer]
io_syl has joined #ruby-lang
stevechiagozie has joined #ruby-lang
gnufied1 has quit [Quit: Leaving.]
achiu has joined #ruby-lang
achiu has quit [Client Quit]
dankest has joined #ruby-lang
achiu has joined #ruby-lang
workmad3 has joined #ruby-lang
jtoy has joined #ruby-lang
sn0wb1rd has quit [Quit: sn0wb1rd]
blahwoop has quit [Ping timeout: 276 seconds]
davidbalbert is now known as davidbalber|away
srbaker has quit [Quit: Computer has gone to sleep.]
jonahR has quit [Quit: jonahR]
stevechiagozie has quit [Read error: Connection reset by peer]
methods has joined #ruby-lang
jammi has quit [Ping timeout: 260 seconds]
stevechiagozie has joined #ruby-lang
karasawa has quit [Ping timeout: 240 seconds]
raptor has quit [Disconnected by services]
gustavnils has quit [Quit: Textual IRC Client: www.textualapp.com]
raptor1 has joined #ruby-lang
havenn has quit [Remote host closed the connection]
mpan has joined #ruby-lang
havenn has joined #ruby-lang
sn0wb1rd has joined #ruby-lang
havenn has quit [Read error: No route to host]
havenn has joined #ruby-lang
hahuang65 has joined #ruby-lang
blahwoop has joined #ruby-lang
srbaker has joined #ruby-lang
srbaker has quit [Client Quit]
jonahR has joined #ruby-lang
mercwithamouth has joined #ruby-lang
breakingthings has joined #ruby-lang
gregmore_ has quit [Remote host closed the connection]
sepp2k has quit [Ping timeout: 252 seconds]
drbrain has quit [Read error: Connection reset by peer]
gregmoreno has joined #ruby-lang
jammi has joined #ruby-lang
drbrain has joined #ruby-lang
stonerfish has quit [Quit: Leaving.]
<dRbiG> is there a way to have a per-thread stdin, stdout and stderr?
vlad_starkov has quit [Remote host closed the connection]
stonerfish has joined #ruby-lang
<dRbiG> hmm, or I'll try forking first
jtoy has quit [Ping timeout: 265 seconds]
<drbrain> dRbiG: there isn't, but you can have per-thread IO objects
schaerli has quit [Remote host closed the connection]
Spaceghostc2c has quit [Excess Flood]
sepp2k has joined #ruby-lang
Spaceghostc2c has joined #ruby-lang
elux has quit [Quit: Bye!]
dvorak has quit [Remote host closed the connection]
davidbalber|away is now known as davidbalbert
kentos has quit [Quit: Leaving]
workmad3 has quit [Ping timeout: 276 seconds]
jtoy has joined #ruby-lang
llaskin1 has joined #ruby-lang
wallerdev has joined #ruby-lang
llaskin1 has quit [Changing host]
llaskin1 has joined #ruby-lang
llaskin1 is now known as llaskin
<llaskin> so I run the following command a = system "ssh SERVER \"svn info /svn/ |grep '^URL:' | sed -e 's/^URL: //'\"" how can I get a to be equal to the URL, and not to "true"?
dvorak has joined #ruby-lang
Will has joined #ruby-lang
Will is now known as Guest69771
jonahR has quit [Quit: jonahR]
jonahR has joined #ruby-lang
<Smol> use backticks
srbaker has joined #ruby-lang
<Smol> a = `ssh ...`
<llaskin> aha backticks
<llaskin> ty
<Smol> also look at the Process module if you need anything fancier
dvorak has quit [Quit: leaving]
enebo has joined #ruby-lang
dvorak has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
drbrain has quit [Remote host closed the connection]
drbrain has joined #ruby-lang
drbrain has quit [Ping timeout: 276 seconds]
tonni has joined #ruby-lang
mutenewt has joined #ruby-lang
karasawa has joined #ruby-lang
scampbell has joined #ruby-lang
scampbell has quit [Max SendQ exceeded]
scampbell has joined #ruby-lang
karasawa has quit [Ping timeout: 260 seconds]
dvorak has quit [Remote host closed the connection]
Gues_____ has joined #ruby-lang
ebouchut has joined #ruby-lang
zmack has joined #ruby-lang
setmeaway has quit [Quit: Leaving]
dvorak has joined #ruby-lang
Gues_____ has quit [Read error: Connection reset by peer]
zmack has quit [Remote host closed the connection]
bubonicpestilenc has quit [Quit: My blog @ http://bubonicpestilence.ru/]
Gues_____ has joined #ruby-lang
llaskin has left #ruby-lang [#ruby-lang]
workmad3 has joined #ruby-lang
<dRbiG> ok, new better question: any way to treat a TCPSocket as a tty? :) i.e. I wan't Pry to treat the client socket as a tty.
<dRbiG> want*
mutenewt has quit [Quit: WeeChat 0.3.5]
mercwithamouth has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Ping timeout: 260 seconds]
kentos has joined #ruby-lang
chris2 has quit [Ping timeout: 255 seconds]
workmad3 has quit [Ping timeout: 244 seconds]
chris2 has joined #ruby-lang
methods has left #ruby-lang [#ruby-lang]
<ryanf> dRbiG: what exactly are you trying to accomplish?
<dRbiG> ryanf: access a pry session over telnet in a non-blocking manner (hence not pry-remote), which i got working,
<dRbiG> for tty's i would somehow need to get the ioctl answered by the other side
<ryanf> you should check out pry-remote-em I think?
<ryanf> oh I guess that still blocks the main process while it's running
wnd has quit [Ping timeout: 240 seconds]
wnd has joined #ruby-lang
headius has joined #ruby-lang
<dRbiG> still worth at least skimming the code
<dRbiG> my solution though is dead simple
<ryanf> cool
ryanf_ has joined #ruby-lang
ryanf has quit [Quit: leaving]
jbsan has quit [Quit: jbsan]
yfeldblum has joined #ruby-lang
setmeaway has joined #ruby-lang
Uranio has quit [Quit: WeeChat 0.3.8]
<dRbiG> just wonder if trying to get the socket to behave as a tty is worth the effort
banisterfiend has quit [Remote host closed the connection]
methods1 has joined #ruby-lang
methods1 has left #ruby-lang [#ruby-lang]
emocakes has joined #ruby-lang
m3nd3s has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
Mellett68 has joined #ruby-lang
dankest is now known as dankest|away
ebouchut has quit [Quit: This computer has gone to sleep]
blahwoop has quit [Ping timeout: 276 seconds]
Mellett68 has quit [Remote host closed the connection]
ryanf_ has quit [Quit: broken pipes |||]
ryanf has joined #ruby-lang
ryanf_ has joined #ruby-lang
ryanf has quit [Client Quit]
workmad3 has joined #ruby-lang
wallerdev has joined #ruby-lang
blahwoop has joined #ruby-lang
emocakes has quit [Quit: emocakes]
workmad3 has quit [Ping timeout: 276 seconds]
<zzak> dRbiG: idk about pry, but there is the pty module in stdlib
davidbalbert is now known as davidbalber|away
Pricey has quit [Quit: MOAR RAM!]
<dRbiG> zzak: yes, i'm actually experimenting with it right now
goshakkk has joined #ruby-lang
davidbalber|away is now known as davidbalbert
three0three has joined #ruby-lang
Nisstyre-laptop has joined #ruby-lang
emocakes has joined #ruby-lang
lightcap has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
workmad3 has joined #ruby-lang
Mellett68 has joined #ruby-lang
meatballhat has joined #ruby-lang
meatballhat has quit [Ping timeout: 248 seconds]
banisterfiend has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
meatballhat has joined #ruby-lang
srbaker has joined #ruby-lang
Paradox has quit [Ping timeout: 252 seconds]
srbaker has quit [Client Quit]
krohrbaugh has quit [Quit: Leaving.]
krohrbaugh has joined #ruby-lang
ryanf_ has quit [Read error: Connection reset by peer]
srbaker has joined #ruby-lang
drbrain has joined #ruby-lang
Spaceghostc2c has quit [Excess Flood]
ryanf has joined #ruby-lang
Spaceghostc2c has joined #ruby-lang
Gues_____ has quit [Quit: Textual IRC Client: www.textualapp.com]
sailias has quit [Quit: Leaving.]
blahwoop has quit [Ping timeout: 276 seconds]
Banistergalaxy has quit [Ping timeout: 265 seconds]
Banistergalaxy has joined #ruby-lang
Spaceghostc2c has quit [Excess Flood]
srbaker has quit [Quit: Computer has gone to sleep.]
drollwit has quit [Remote host closed the connection]
drollwit has joined #ruby-lang
Mellett68 has quit [Read error: Connection reset by peer]
<naquad> how do i calculate today date + 3 month?
<emocakes> add 3 to the date
ivanoats has quit [Remote host closed the connection]
Spaceghostc2c has joined #ruby-lang
<emocakes> so today is the 3rd'so 3 + 3 = 6
<emocakes> so the '6th'
<emocakes> :)
<emocakes> oh woops
<emocakes> months
<emocakes> 1+3 = 5
<emocakes> so may
Mellett68 has joined #ruby-lang
<emocakes> np
<imperator> wat?
drollwit has quit [Remote host closed the connection]
<injekt> lol
<hagabaka> heh
<blazes816> naquad: I recommend the chronic gem; Chronic.parse('3 months from now')
drollwit has joined #ruby-lang
<injekt> Chronic is overkill for this
<injekt> (and hell, im the guy who maintains it)
<injekt> you could just get todays date and add * 3 of whatever a month in seconds is
<injekt> or active support date.advance(3.months)
<emocakes> or you can google naquad
<zzak> dRbiG: cool, lemme know what you find, im gonna be hacking on pty docs soon
tenderlove has joined #ruby-lang
<naquad> Time.now + (3 * 30 * 86400) - the problem of this solution is that 1) not all month are 30-day long 2) DST is ignored
jonahR has quit [Quit: jonahR]
thufir_ has joined #ruby-lang
<injekt> naquad: use active support
<injekt> or you can use chronic i guess
<naquad> injekt, same as with chronic - overkill
<blazes816> because AS is much lighter than chronic?
<injekt> aye
<injekt> blazes816: :P
<injekt> blazes816: as is for programatically messing with dates
<injekt> blazes816: chronic is for parsing natural strings
scampbell has quit [Quit: Leaving]
<hagabaka> naquad: so what do you mean by "3 months" if you know months have different lengths?
<naquad> hagabaka, i mean 3 calendar month
<blazes816> so he should only use the time parts of AS?
<injekt> of course
<hagabaka> do you simply mean add 3 to the month and keep the day and year?
<blazes816> except that would break any month after september
<naquad> exactly
<naquad> mktime can do that trick (with month > 12), but Time.new(2012, 14) raises exception
slyphon__ has joined #ruby-lang
<blazes816> i recommended chronic because it handles all this crap already, and is more lightweight to include than AS
<naquad> when will ruby get something like chronic out of the box :S
ivanoats has joined #ruby-lang
<hagabaka> and also what do you do with "3 months from november 30"? february 30?
<naquad> even stupid php has DateInverval
<emocakes> hey! leave PHP alone :|
<hagabaka> chronic doesn't "handle" it, it has a definition for "3 months"
<emocakes> php is made for web programming. ruby is a general language
<injekt> naquad: never
<injekt> naquad: chronic is hard
<emocakes> its like asking why doesnt C have datetime?
blacktul_ has joined #ruby-lang
slyphon_ has quit [Ping timeout: 245 seconds]
<naquad> emocakes, C has mktime, mktime can use something 14-th month
<blazes816> chronic most certainly does handle all that junk correctly
srbaker has joined #ruby-lang
Guest69771 has left #ruby-lang [#ruby-lang]
<naquad> now i'm just interesting: how?
<blazes816> or, at least, tries to handle it I should say
<hagabaka> there are many correct ways to handle it, all depending on your definitions
<blazes816> uh, of course
<injekt> blazes816: chronic has many, many many many pitfalls
TvL2386 has quit [Quit: Ex-Chat]
slyphon__ has quit [Ping timeout: 245 seconds]
<injekt> which is why I've been working on a replacement for a very long time
<blazes816> injekt: I'm sure it does. that doesn't mean it isn't better than naively adding 30 * seconds_in_a_day
<blazes816> or hand rolling a correct solution
blacktulip has quit [Ping timeout: 252 seconds]
<injekt> sure
jtoy has quit [Quit: jtoy]
jashank has quit [Changing host]
jashank has joined #ruby-lang
nyuszika7h has quit [Remote host closed the connection]
emocakes has quit [Quit: emocakes]
blacktul_ has quit [Remote host closed the connection]
nyuszika7h has joined #ruby-lang
cirenyc has joined #ruby-lang
ivanoats has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 252 seconds]
ivanoats has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
tbuehlmann has joined #ruby-lang
rcvalle has quit [Quit: Leaving]
swarley has left #ruby-lang ["Leaving"]
<dRbiG> zzak: the master/slave distinction is unclear in practice, i found i need to reopen std* as one, and do IO.select on the other to get any data flowing - which i chose for which doesn't matter
<injekt> I really need to get around to 1.0 of Chronic...
<injekt> blah
outoftime has quit [Remote host closed the connection]
outoftime has joined #ruby-lang
<dRbiG> zzak: now i'm trying to figure out how to actually setup the pty so that when you telnet in you get a terminal and not a raw line-mode (i'm thinking i need to output some magic to the telnet to let it know i'm a terminal)
diegoviola has joined #ruby-lang
benanne has joined #ruby-lang
<blazes816> like I said, not sure of the specifics on how it works, but Chronic.parse('12 months from now') != Time.now + (30 * 24 * 60 * 60 * 12)
<blazes816> Time.now + (30 * 24 * 60 * 60 * 12) #=> 2013-12-29 14:24:53 -0800
<hagabaka> I'm not sure what you're getting at
<hagabaka> is it more correct if you let Chronic figure out what "12 months" means, instead of specifying yourself what it means?
mjio has joined #ruby-lang
<blazes816> hagabaka: if 'specifying yourself' means writing code that correctly handles all of the intricacies of time manipulation then no
<blazes816> or does so better than chronic, I should say
Guest has joined #ruby-lang
atmosx has joined #ruby-lang
<atmosx> hello
dankest|away is now known as dankest
<injekt> hallo
<hagabaka> "month" is a vague term, and that's what makes chronic's definition different, not "intricacies of time manipulation"
<injekt> Chronic relies on the user to specify extra information when it calculates month information, it's a hard thing to figure out
<hagabaka> it doesn't seem to offer a way to calculate "3 months from x" instead of "from now" anyway, and I wonder what it would do with "3 months from november 30"
srbaker has joined #ruby-lang
<blazes816> it does offer that
jbsan has joined #ruby-lang
<injekt> yeah that'll parse
<hagabaka> how, and what's the result?
<injekt> it calculates the months as a set unit, so probably february 2nd or 3rd
<hagabaka> oh 2014-02-02 06:00:00 -0500
<injekt> :)
<blazes816> hagabaka: Chronic.parse('3 months from now', :now => Chronic.parse('november 30'))
<hagabaka> so, 3 months from november 30 is exactly the same as 3 months from november 1
<blazes816> 2014-02-28 12:00:00 -0800
lightcap has joined #ruby-lang
<injekt> hagabaka: right, chronic expects you to be more specific
<hagabaka> well we must have different versions of the gem
krohrbaugh has quit [Quit: Leaving.]
<injekt> mine is the same as your ouptput
<hagabaka> but my point stands, it's a matter of definition, as opposed to correctness
<injekt> output*
<blazes816> definition of what?
<hagabaka> definition of "WTF do you mean by 3 months, every month has a different length"
<injekt> hagabaka: if I asked you "3 months from the 30th of november" you would reply "30th of february?"?
mercwithamouth has joined #ruby-lang
<blazes816> yes. an my point this entire time, is that it's easier to use chronic, which handles that shit already, instead of doing it yourself
<hagabaka> I wouldn't, but I don't think there is one single correct answer for that
<injekt> exactly
<hagabaka> so I would say adding 90 days is perfectly acceptable
<blazes816> that depends on if you need your data to be accurate or not
<blazes816> when I'm writing software that bills people monthly, I don't just call every 30 days good
<hagabaka> my point is that if you don't need the natural language parsing which is the focus of chronic, then it's better to just roll your own simplistic solution
swav has quit [Ping timeout: 255 seconds]
<hagabaka> how can you say chronic is accurate when you don't even know how it handles this?
<blazes816> good call
<blazes816> hagabaka: because I use it often
<hagabaka> heh
<blazes816> and every time I do it's correct
<hagabaka> guess what chronic uses? Date.time and addition of numbers
<hagabaka> *DateTime
<blazes816> yes. and it does so correctly. guess what rails uses? strings and symbols and shit. why would you not just write your own http parser and stuff?
jbsan has quit [Quit: jbsan]
<blazes816> because somebody already did and many people use it and iron out the kinks and bugs
goshakkk has quit [Quit: Computer has gone to sleep.]
jonahR has joined #ruby-lang
<khaase> injekt: you around?
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
<khaase> injekt: you still using slop?
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
cirenyc has quit [Quit: Leaving...]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
jonahR has quit [Client Quit]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
<injekt> khaase: just saw your email, yeah the commands need a lot of work, they were broken in 2 and lack a lot of features (plus a sane api) in 3. I haven't really had the need to use them but i do want to improve them some time
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
<injekt> khaase: tl;dr execute doesnt exist anymore
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
<khaase> injekt: yeah, I think I gonna write a little dsl atop of optionparser and use that for now
krohrbaugh has joined #ruby-lang
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
<hagabaka> blazes816: try that. I wouldn't call that accurate in any sense, but it's understandable because "3 months from ..." is such a vague phrase
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
dankest is now known as dankest|away
<blazes816> hagabaka: it thinks you mean the 1st of november, at that hour
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
ap4y has joined #ruby-lang
<blazes816> it isn't chronics fault you're using it wrong. use :now to set the current time context
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
<hagabaka> blazes816: how do you do that exactly?
cirenyc has joined #ruby-lang
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
cirenyc has quit [Client Quit]
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
<hagabaka> no difference if I add :now => Time.now
goshakkk has quit [Excess Flood]
<blazes816> because that would change the meaning in any way
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
<hagabaka> ok, you fix the code to use it the right way
<blazes816> Chronic.parse('3 months from now', :now => Chronic.parse('november 30th'))
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
<blazes816> unfortunately I have to get back to doing real work now
tenderlove has quit [Remote host closed the connection]
blazes816 has quit [Quit: blazes816]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
<injekt> khaase: sure, slop::commands is really just a hash of nested slop instances anyway
vlad_starkov has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
davidbalbert is now known as davidbalber|away
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
breakingthings has quit []
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
headius has quit [Quit: headius]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
vlad_starkov has quit [Ping timeout: 248 seconds]
sepp2k1 has joined #ruby-lang
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
<dRbiG> finally did it...
goshakkk has joined #ruby-lang
<dRbiG> what a mess
goshakkk has quit [Excess Flood]
sepp2k has quit [Ping timeout: 244 seconds]
dankest|away is now known as dankest
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
<dRbiG> i still have no idea why it works though :)
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
tenderlove has joined #ruby-lang
goshakkk has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
goshakkk has quit [Excess Flood]
sailias has joined #ruby-lang
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
goshakkk has joined #ruby-lang
goshakkk has quit [Excess Flood]
headius has joined #ruby-lang
goshakkk has joined #ruby-lang
soahccc_________ has quit [Excess Flood]
soahccc_________ has joined #ruby-lang
soahccc_________ has quit [Excess Flood]
soahccc_________ has joined #ruby-lang
soahccc_________ has quit [Excess Flood]
tenderlove has quit [Ping timeout: 248 seconds]
soahccc_________ has joined #ruby-lang
soahccc_________ has quit [Excess Flood]
soahccc_________ has joined #ruby-lang
soahccc_________ has quit [Excess Flood]
soahccc_________ has joined #ruby-lang
tenderlove has joined #ruby-lang
toretore has quit [Quit: This computer has gone to sleep]
slyphon__ has joined #ruby-lang
agile has joined #ruby-lang
ivanoats has quit [Remote host closed the connection]
drbrain has quit [Remote host closed the connection]
ap4y has quit [Remote host closed the connection]
drbrain has joined #ruby-lang
slyphon__ has quit [Ping timeout: 245 seconds]
briantrust has joined #ruby-lang
chendo_ has joined #ruby-lang
<zzak> thats how i felt using sockets too
headius has quit [Quit: headius]
<imajes> can anyone remember what key i use to get the day of the month in strftime w/o a leading zero ?
workmad3 has joined #ruby-lang
dankest has quit [Quit: Leaving...]
spuk has joined #ruby-lang
meatballhat has quit [Ping timeout: 248 seconds]
meatballhat has joined #ruby-lang
<darix> imajes: %e maybe?
<imajes> maybe
leopard_me has quit [Quit: Computer has gone to sleep.]
briantrust has quit [Remote host closed the connection]
rins has quit [Ping timeout: 264 seconds]
<imajes> darix: that looks about ok
meatballhat has quit [Ping timeout: 276 seconds]
meatballhat has joined #ruby-lang
meatballhat has quit [Changing host]
meatballhat has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
ap4y has joined #ruby-lang
enebo has quit [Quit: enebo]
lightcap has quit [Quit: Computer has gone to sleep.]
Jake232 has joined #ruby-lang
solars has quit [Ping timeout: 248 seconds]
meatballhat has quit [Ping timeout: 248 seconds]
dankest has joined #ruby-lang
meatballhat has joined #ruby-lang
meatballhat has quit [Changing host]
meatballhat has joined #ruby-lang
kentos has quit [Quit: Leaving]
hack has quit [Ping timeout: 248 seconds]
m3nd3s has joined #ruby-lang
workmad3 has quit [Quit: Lost terminal]
<imperator> ri Time#strftime says %e is correct :)
meatballhat has quit [Ping timeout: 260 seconds]
<darix> well it comes with the downtime of adding spaces.
<darix> but either could be gsubbed
mjio has quit []
meatballhat has joined #ruby-lang
meatballhat has quit [Changing host]
meatballhat has joined #ruby-lang
zhul_mechanos has quit [Quit: zhul_mechanos]
vlad_starkov has joined #ruby-lang