havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
<Ox0dea> guacjack: "Death!"
<guacjack> :D
<jhass> trying to run after the most hyped language is stupid IMO, instead sharpen your skills of adopting things quickly
dn5 has joined #ruby
<jhass> and the best way to do that is to lurk into as many things as possible, being interested in them making that easier
<Ox0dea> JavaScript is a different sort of hype, though; the browser *is* immortal.
CloCkWeRX has quit [Quit: Leaving.]
<jhass> but is JS in the browser, given efforts like web assembly or whatever it was?
<VeryBewitching> guacjack: Consider this; Ruby has been made very useful. So long as it can suit a need, it's as relevant as any tool that you stack against it.
socialjackie has joined #ruby
towski_ has joined #ruby
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> jhass: WASM is essentially a "backend" for JS, so to speak.
simplyianm has quit [Remote host closed the connection]
<jhass> which can allow new frontends which aren't JS
<Ox0dea> Fair enough, but the likelihood is vanishingly slim.
<VeryBewitching> Also, consider that Java/ECMAScript evolved through a relationship with an event-driven DOM.
<jhass> I think the likelihood for new frontends is quite high, should WASM turn out usable that is
yoongkang has quit [Remote host closed the connection]
<VeryBewitching> On the back end, yes you can do things with it, but I feel JavaScript is stretched beyond it's purpose.
cashnguns has joined #ruby
<jhass> JS ever being unsupported is unlikely though, granted
<Ox0dea> VeryBewitching: Could you elaborate?
<jhass> but look at the immense efforts people go through to make something "better" on top of JS today
tubuliferous_ has joined #ruby
solocshaw has quit [Remote host closed the connection]
<Ox0dea> "The Good Parts" would be a much thicker book today.
dn5 has quit [Ping timeout: 244 seconds]
djbkd has joined #ruby
solocshaw has joined #ruby
<VeryBewitching> Ox0dea: Moving a front-end, DOM scripting language (I'm going back about 15 years in memory of JavaScript) meant to create interactivity in a client-side scenario into a back-end, full-stack solution where developers want "one language, behind and in front" makes me feel like the other shoe just hasn't dropped yet.
jdawgaz has joined #ruby
<Ox0dea> VeryBewitching: I stopped reading at your parenthetical.
<Ox0dea> >> Time.now.year
<ruboto> Ox0dea # => 2015 (https://eval.in/468810)
tref has quit [Quit: tref]
<VeryBewitching> (2000..2015)
dn5 has joined #ruby
<Ox0dea> Today is simply not yesterday.
<VeryBewitching> Evolution didn't just happen now.
<Ox0dea> But it did happen.
<VeryBewitching> Yes; it's what evolved into what I find unnerving.
<VeryBewitching> Maybe it's the culture of JS that rubs me the wrong way.
towski_ has quit [Remote host closed the connection]
<Ox0dea> GSD not your cuppa?
rehat_ has quit [Ping timeout: 276 seconds]
<shevy> VeryBewitching yeah, it is convenient but I am wondering at what point it becomes weird ... say you have a project where you have like 200 of these class methods, memorizing all that for a casual user is quite scary; I only found out about Prawn.debug by chance (not that I was studying the full documentation either)
<jhass> it's always nice hear brandon talk about how JS was created btw https://www.youtube.com/watch?v=83_rC1FesOI
<Ox0dea> shevy: Prawn.methods.grep(/=$/)
<Ox0dea> *Brendon
<Ox0dea> *Brendan
<jhass> er, right, my bad
<Ox0dea> Muphry's Law strikes without mercy.
<Ox0dea> That was a really good conference, by the way.
chipotle has quit [Quit: cheerio]
<jhass> yeah, lot's of high quality talks
<Ox0dea> Aye, that's how I meant.
k3asd` has quit [Ping timeout: 240 seconds]
solocshaw has quit [Ping timeout: 246 seconds]
Yzguy has joined #ruby
<shevy> I just found Prawn.taguri= that way
<Ox0dea> That could really use an underscore; I thought it might've been a Japanese word, but it's apparently Filipino/Tagalog.
jamesaxl has quit [Ping timeout: 246 seconds]
chipotle has joined #ruby
moeabdol has quit [Ping timeout: 255 seconds]
<shevy> lol
scripore has quit [Quit: This computer has gone to sleep]
mwlang has quit [Quit: mwlang]
unknowns2k2 has joined #ruby
rgrmatt has joined #ruby
IrishGringo has quit [Ping timeout: 240 seconds]
tubuliferous_ has quit [Ping timeout: 250 seconds]
trosborn has joined #ruby
scripore has joined #ruby
solocshaw has joined #ruby
socialjackie has quit [Ping timeout: 276 seconds]
chipotle has quit [Quit: cheerio]
huzzah has joined #ruby
huzzah is now known as Guest17394
Trynemjoel has quit [Ping timeout: 250 seconds]
solocshaw has quit [Remote host closed the connection]
Guest39756 has quit [Ping timeout: 264 seconds]
<_blizzy_> huh, til ruby has structs.
|ifei5g00d has quit [Remote host closed the connection]
rgrmatt has quit [Remote host closed the connection]
solocshaw has joined #ruby
|ifei5g00d has joined #ruby
<shevy> it has! although for some strange reason, I don't seem to need them
fantazo has quit [Ping timeout: 250 seconds]
joufflu has quit [Ping timeout: 246 seconds]
<Ox0dea> shevy: You've never written a bunch of `@foo = foo` in an initializer?
rgrmatt has joined #ruby
teemo_shrooms has joined #ruby
<Ox0dea> >> Card = Struct.new(:rank, :suit) { def ace?; rank == ?A end }; Card.new(?K, ?D).ace? # _blizzy_
<ruboto> Ox0dea # => false (https://eval.in/468812)
predator217 has joined #ruby
<Ox0dea> You can feed Struct.new a block and create a full-blown class.
<Ox0dea> You essentially get `attr_accessor` called on all the members, but sometimes you want that.
<_blizzy_> Ox0dea, what does ? do?
<Ox0dea> >> ?c == 'c' # _blizzy_
<shevy> Ox0dea I tend to use methods when I assing to @vars usually
<ruboto> Ox0dea # => true (https://eval.in/468813)
<Ox0dea> shevy: Naughty, naughty.
<_blizzy_> oh ok, it turns it into a string.
<shevy> lol
<shevy> I meant to write "assigning"
solocshaw has quit [Ping timeout: 246 seconds]
<shevy> or perhaps assign
<shevy> :(
<_blizzy_> it's ok, we all make mistakes.
<shevy> my mind could not make up its mind
<Ox0dea> shevy: I understood you, and my admonishment stands.
<Ox0dea> (But not really.)
Guest17394 has quit [Ping timeout: 240 seconds]
<Ox0dea> Some people think it's bad to put code in initializers, but they're stupid and dumb.
predator117 has quit [Ping timeout: 240 seconds]
socialjackie has joined #ruby
<shevy> I found that I have to think less when I just use methods
<Ox0dea> Encapsulation is for humans.
hkumar has joined #ruby
<shevy> I once toyed with the idea of writing a MUD in ruby where all the various things like the objects, would be structs
<Ox0dea> It's not a terrible way to do it.
n_blownapart has quit []
<Ox0dea> Entity all the things!
trosborn has quit [Quit: trosborn]
<shevy> >> require 'ostruct'; sword = OpenStruct.new; sword.length = 155; sword.length
<ruboto> shevy # => 155 (https://eval.in/468814)
<shevy> I don't remember why I gave up on that
<Ox0dea> You've gone too far.
<_blizzy_> why does this this equal 4712
<_blizzy_> >> require 'date'; Date.new
<ruboto> _blizzy_ # => #<Date: -4712-01-01 ((0j,0s,0n),+0s,2299161j)> (https://eval.in/468815)
<_blizzy_> like, why is the year -4712.
solocshaw has joined #ruby
<Ox0dea> It's explicitly defined that way, but I don't yet know why.
<_blizzy_> oh, and I just realized this. strptime = strip time
<_blizzy_> as in strip the time from a string. how did I not know that. :/
mary5030 has joined #ruby
<shevy> hah
<shevy> I did not know that either
<Ox0dea> _blizzy_: I believe the 'p' in "strptime" is for "parse".
<shevy> there is strftime though
<Ox0dea> Where the 'f' is for "format".
<shevy> would have made a good mnenomic for _blizzy_
guacjack has quit [Ping timeout: 240 seconds]
<Ox0dea> Did you mean a bad one?
<_blizzy_> Ox0dea, oh ok, then I was wrong. good guess, lol.
<Ox0dea> _blizzy_: What made you so certain, if you don't mind my asking?
<_blizzy_> Ox0dea, IDK. it was a strong guess.
solocshaw has quit [Ping timeout: 240 seconds]
socialjackie has quit [Ping timeout: 272 seconds]
<Ox0dea> But it wasn't?
benlieb has joined #ruby
<_blizzy_> like today I learned the difference between sync and async in node.
charliesome_ has joined #ruby
Rickmasta has joined #ruby
tkuchiki has joined #ruby
<Ox0dea> > The Julian Period is a chronological interval of 7980 years beginning 4713 BC.
NeverDie has quit [Quit: http://radiux.io/]
solocshaw has joined #ruby
<Ox0dea> Ruby represents 4713 as -4712 for whatever reason.
<shevy> it was the beginning of the world after all
<_blizzy_> oh. TIL.
<Ox0dea> shevy: Stop that.
<Ox0dea> >> require 'date'; Date.new.julian? # _blizzy_
<ruboto> Ox0dea # => true (https://eval.in/468817)
<_blizzy_> ruby has a lot of weird methods.
charliesome has quit [Ping timeout: 246 seconds]
<_blizzy_> ok so strftime formats a date/time into a certain format, and strptime parses a string and turns it into a date/time
<Ox0dea> Just so.
tkuchiki has quit [Ping timeout: 240 seconds]
<shevy> _blizzy_ many methods make a lot of sense
<shevy> str*something is indeed weird
<shevy> C heritage perhaps like sprintf
roxtrong_ has quit [Remote host closed the connection]
<_blizzy_> wow, ruby has a method for every day of the week
<_blizzy_> >> require 'date'; DateTime.now.saturday?
<ruboto> _blizzy_ # => false (https://eval.in/468819)
<_blizzy_> huh.
<_blizzy_> guess it must not be saturday where the bot lives.
CloCkWeRX has joined #ruby
unknowns2k2 has quit [Quit: unknowns2k2]
bb010g has quit [Quit: Connection closed for inactivity]
<_blizzy_> OH, strptime = string parse time, strftime = string format time.
<shevy> >> require 'date'; DateTime.now.sunday?
<ruboto> shevy # => true (https://eval.in/468822)
<shevy> it's sunday here as well! you are living in the past _blizzy_
<_blizzy_> lol. I guess I'm a time traveler.
The_Phoenix1 has quit [Read error: Connection reset by peer]
Sam0163141155 has joined #ruby
<shevy> how many times can you use the word 'cop' in ruby code:
<Ox0dea> >> Time.new.zone # _blizzy_
<ruboto> Ox0dea # => "UTC" (https://eval.in/468823)
NeverDie has joined #ruby
<_blizzy_> shevy, 93 times on that webpage, wow.
pimpin has joined #ruby
dtscode is now known as nchambers
<Ox0dea> ~ $ rubocop thing.rb 2> /dev/null | tail -1
<Ox0dea> 1 file inspected, 139 offenses detected
<shevy> hehe
<shevy> rubocop is cool because of auto-corrections
nateberkopec has quit [Quit: Leaving...]
<shevy> I hope it gets improved, then I can rescue a project from 2005 with really strangely written code
charliesome_ has quit [Ping timeout: 240 seconds]
allcentury has quit [Ping timeout: 264 seconds]
BillSussman has quit [Quit: Leaving]
<Ox0dea> > 1 file inspected, 416 offenses detected, 396 offenses corrected
lapidary has joined #ruby
<shevy> you write bad code!
<_blizzy_> so Time only has the strftime method, DateTime and Date have strptime and strftime.
<Ox0dea> shevy: RuboCop broke it!
<_blizzy_> am I right or wrong?
<_blizzy_> also, 21 files inspected, 742 offenses detected
pimpin has quit [Ping timeout: 246 seconds]
<Ox0dea> Yikes.
<_blizzy_> yeah.
leifg has joined #ruby
<_blizzy_> most of them are 'tab detected'
<jhass> _blizzy_: sounds like you have some time of configuring rubocop ahead of you :P
<shevy> well, it has a narrow definition according to the specification it applies
<_blizzy_> Ox0dea, well, according to my terminal, most of them seem to be tab issues.
<Ox0dea> "Most" would mean you've got at least 372 hard tabs in your code, and I can't bring myself to think so little of you.
<_blizzy_> so i'm probably wrong.
<shevy> "Inspecting 213 files"
<shevy> _blizzy_ ^^^ this won't be pretty
<Ox0dea> _blizzy_: Are you using some crazy editor?
<_blizzy_> Ox0dea, sublime.
<_blizzy_> but then I realized I have tabs on. :/
IrishGringo has joined #ruby
<shevy> 213 files inspected, 8262 offenses detected
<shevy> hmm
<shevy> "Use alias_method instead of alias."
kedare has quit [Remote host closed the connection]
<shevy> "Use && instead of and."
yoongkang has joined #ruby
<_blizzy_> well, that answered a question I was going to ask later.
<shevy> "Do not suppress exceptions."
<_blizzy_> >8262
symm- has quit [Ping timeout: 240 seconds]
<_blizzy_> god.
<shevy> "Wipe after going to toilet."
<shevy> actually this one is a good one:
<shevy> "Trailing whitespace detected."
symm- has joined #ruby
<shevy> I can chop away whitespaces like that
<jhass> a good editor does that on save
tubuliferous_ has joined #ruby
<shevy> no, I had a line like this
<shevy> " # "
<Ox0dea> autocmd BufWritePre * %s/\s\+$//e
Coldblackice has quit [Ping timeout: 240 seconds]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> "Place when conditions with a splat at the end of the when branches."
<shevy> hmmmmm
raz has left #ruby ["*fump*"]
<shevy> is that explained?
<shevy> curious...
mdih has quit [Ping timeout: 244 seconds]
<Ox0dea> shevy: Where'd that 213 come from?
<shevy> all the code!
<_blizzy_> shevy, run 'rubocop --auto-correct'
<_blizzy_> and see how many it corrects for you.
<Ox0dea> shevy: Which code?
<shevy> "This is not a guaranteed performance improvement. If the data being processed by the case condition is normalized in a manner that favors hitting a condition in the splat expansion, it is possible that moving the splat condition to the end will use more memory, and run slightly slower."
yoongkang has quit [Ping timeout: 276 seconds]
<shevy> _blizzy_ the last time I used it, it was in the range of perhaps 80% auto-corrections but I also found that, the more files and code it works on, the slower it'll get
treaki has quit [Ping timeout: 260 seconds]
asianMike has joined #ruby
<shevy> I am confused now ... is when *foo,'bar' worse or better than when 'bar',*foo now?
<_blizzy_> knocked it down to 254 offenses
tulak has joined #ruby
<_blizzy_> shevy, oh.
<_blizzy_> Im gonna make my code 100% rubocop approved.
<_blizzy_> ....this is going to be a long night.
<shevy> lol
<Ox0dea> _blizzy_: What's the point?
<_blizzy_> Ox0dea, satification.
<shevy> what are the offenses rubocop tells you?
<Ox0dea> _blizzy_: Whose satisfaction?
<_blizzy_> mine
<_blizzy_> lib/plugins.rb:3:1: C: Missing top-level module documentation comment.
<shevy> Mine are ... "Surrounding space missing for operator", "Inconsistent indentation detected."... use alias_method rather than alias ... and the much dreaded "Line is too long. [115/80]"
<shevy> aha you got lazy and did not document it!
<shevy> add: "Shut up rubocop."
gvaughn has joined #ruby
fedexo has quit [Ping timeout: 240 seconds]
<_blizzy_> lib/commands.rb:121:3: C: Perceived complexity for dice is too high. [9/7]
sdwrage has quit [Quit: This computer has gone to sleep]
<_blizzy_> hmm, seems like it changed all my _ to _foobar.
tulak has quit [Ping timeout: 260 seconds]
nateberkopec has joined #ruby
leifg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<_blizzy_> I was going to leaqrn some more java tonight, but I guess my bot may be more important.
<_blizzy_> *learn
longfeet has joined #ruby
KillerFox has quit [Remote host closed the connection]
KillerFox has joined #ruby
rgtk has joined #ruby
symm- has quit [Ping timeout: 240 seconds]
CloCkWeRX has quit [Quit: Leaving.]
bruce_lee has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby
bruno- is now known as Guest58657
asianMike has quit [Remote host closed the connection]
ekinmur has joined #ruby
bruce_lee has joined #ruby
ruid has joined #ruby
_0mega has quit [Quit: Leaving.]
rgtk has quit [Ping timeout: 260 seconds]
chipotle has joined #ruby
marr has quit [Ping timeout: 240 seconds]
<Ox0dea> > 1704 files inspected, 58430 offenses detected
blackmesa has quit [Ping timeout: 265 seconds]
<_blizzy_> oh god.
Guest58657 has quit [Ping timeout: 272 seconds]
roxtrongo has joined #ruby
minimalism has joined #ruby
<Ox0dea> _blizzy_: Not mine. :P
<_blizzy_> oh ok. that's good.
<Ox0dea> $ gem unpack `curl -s https://rubygems.org/profiles/shevy | grep -o '/gems/\w\+' | cut -d/ -f3` && rubocop .
<Ox0dea> I got curious.
tkuchiki has joined #ruby
kedare has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
hololeap has joined #ruby
solocshaw1 has joined #ruby
solocshaw has quit [Read error: Connection reset by peer]
solocshaw1 is now known as solocshaw
tkuchiki has quit [Ping timeout: 240 seconds]
mattwildig has joined #ruby
framling has joined #ruby
asianMike has joined #ruby
htmldrum has joined #ruby
Yzguy has quit [Quit: Zzz...]
skcin7 has joined #ruby
Yzguy has joined #ruby
mattwildig has quit [Ping timeout: 240 seconds]
dorei has quit []
mary5030 has quit [Remote host closed the connection]
vigintas has quit [Ping timeout: 260 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> yeah
<shevy> you have way too much spare time
<Ox0dea> But I made the machine do it!
arescorpio has joined #ruby
<Ox0dea> You have way too much unintentionally crazy code.
<jhass> Ox0dea: that surprises you?
benlieb has quit [Quit: benlieb]
<Ox0dea> On the bright side, multimedia_paradise seems to have uncovered a bug in RuboCop.
<shevy> my code can crash everything
<jhass> you stole that statement from hanmac
<Ox0dea> shevy: Y U NO FILE ISSUE?
gvaughn has quit [Remote host closed the connection]
<shevy> I file lots of issues!
<shevy> though usually for things such as ruby-gnome
roxtrongo has quit [Remote host closed the connection]
IrishGringo has quit [Ping timeout: 240 seconds]
benlieb has joined #ruby
<shevy> hanmac discovers the real bugs actually
<shevy> that's why nobu likes him so much
symm- has joined #ruby
griffindy has joined #ruby
nateberkopec has quit [Quit: Leaving...]
DrShoggoth has quit [Read error: No route to host]
hkumar has quit [Ping timeout: 264 seconds]
griffindy has quit [Client Quit]
<ruid> whats the problem here: blah = 5; a = {bl-ah: 5}
<ruid> even a = {:bl-ah=>blah} gives me grief
<shevy> yes this is not good
<ruid> can symbols not have '-' in them?
<shevy> >> :"bl-ah"
<ruboto> shevy # => :"bl-ah" (https://eval.in/468833)
<shevy> >> :bl-ah
<ruboto> shevy # => undefined local variable or method `ah' for main:Object (NameError) ...check link for more (https://eval.in/468834)
<shevy> you have to add quotes there
<ruid> Isee
tref has joined #ruby
<Ox0dea> ruid: Coming from Lisp?
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
<ruid> Ox0dea, no
<ruid> btw... that nick is a real pita :)
<ruid> The OH x really threw me
<shevy> it's a total nick disaster
<shevy> it should have been 0x0dea
<ruid> or 0xOidea
<shevy> or The Great Ox
<ruid> but that wouldnt make much sense in english
<shevy> dunno
<shevy> zero idea!
<ruid> anywho.... this limitation is really annoying
<Ox0dea> ruid: It's not the end of the world.
<shevy> yes, Ox0dea complains about this every day :)
<ruid> yeah... OH_idea doesnt make much sense
<Ox0dea> > every day
<Ox0dea> Where are you getting "idea"?
<Ox0dea> It's pronounced "ox-oh-dee-uh".
<ruid> fuck if I know
<ruid> sry
<ruid> probably should keep it clean
<ruid> :/
<Ox0dea> Wat.
HammyJammy has quit [Read error: Connection reset by peer]
<shevy> oh
<shevy> larry also did a non-hobbit perl talk? https://www.youtube.com/watch?v=kwxHXgiLsFE
<ruid> im actually coming from C
<ruid> and some JS
<ruid> but anyway... how can i strip the "" from the key when do something like a.collect {|k,v|....}
<Ox0dea> ruid: Well, you can't use hyphens in identifiers in either of those languages, so why you are so keen?
<Ox0dea> Are you sure you have "" in your keys?
<ruid> well... I can use '-' as a struct member in C
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> Wat.
karapetyan has quit [Ping timeout: 250 seconds]
Mia has quit [Read error: Connection reset by peer]
<ruid> actually looks like it is fine
molay has joined #ruby
<shevy> >> :"bl-ah".class
<ruboto> shevy # => Symbol (https://eval.in/468835)
<shevy> it's a symbol even though it looks like a String!
<Ox0dea> ruid: Could you explain why you said that about being able to name struct members '-'?
<molay> does anyone have experience with the gem "sequel"? given A short example on the sequel website (http://www.rubydoc.info/gems/sequel/4.28.0#A_Short_Example) how would I insert the line items with a timestamp?
<ruid> Ox0dea, it is perfectly fine to name a struct memeber "abc-123" in C
<Ox0dea> ruid: What are you on about?
<ruid> struct blah { int abc-123; }
rgrmatt has quit [Remote host closed the connection]
<Ox0dea> No.
<ruid> that's fine
<shevy> aaaah larry uses vim!
<Ox0dea> You must be pretending to be retarded.
<shevy> lol
<Ox0dea> ruid: What even makes you say something like that?
tubuliferous_ has quit [Ping timeout: 250 seconds]
skcin7 has quit [Ping timeout: 250 seconds]
giuseppesolinas has joined #ruby
giuseppesolinas_ has joined #ruby
benlieb has quit [Quit: benlieb]
<ruid> Ox0dea, oh... im wrong
huzzah has joined #ruby
giuseppesolinas_ has quit [Client Quit]
<Ox0dea> But... how did that happen?
<shevy> one of the more hilarious Ox comments
huzzah is now known as Guest76002
sankaber has joined #ruby
giuseppesolinas is now known as Torrone
<Ox0dea> How did you come to hold such a ridiculous belief with such conviction?
<Ox0dea> >> 0xbaff1ed
gambl0re has joined #ruby
<ruboto> Ox0dea # => 196080109 (https://eval.in/468838)
Torrone has quit [Client Quit]
<ruid> tired and drinking?
<shevy> admit it
cdg_ has joined #ruby
<shevy> you were scraping on stackoverflow for the impossibles
dorei has joined #ruby
<Ox0dea> shevy: https://eval.in/468839
<Ox0dea> That's enough to make RuboCop die the same way your multimedia_paradise made it do.
<Ox0dea> So you're absolved, and RuboCop a shit.
teemo_shrooms has quit [Quit: teemo_shrooms]
skcin7 has joined #ruby
_blizzy_ has quit [Quit: Leaving]
bruno- has joined #ruby
bruno- is now known as Guest26323
rgrmatt has joined #ruby
<shevy> looooook larry goes ruby: http://i.imgur.com/BDX4oF7.png
<shevy> Ox0dea lol
<shevy> you have too much time, you need to write a game in ruby Ox0dea
Guest76002 has quit [Ping timeout: 240 seconds]
Guest26323 has quit [Ping timeout: 240 seconds]
millerti has joined #ruby
Rickmasta has joined #ruby
<Ox0dea> I do, don't I?
hololeap has quit [Read error: Connection reset by peer]
<Ox0dea> There aren't near enough platformer RPGs.
kstuart_ has joined #ruby
ruid has quit [Ping timeout: 240 seconds]
DrShoggoth has joined #ruby
<shevy> modern games are weird
tkuchiki has joined #ruby
kstuart has quit [Ping timeout: 250 seconds]
<Ox0dea> I don't like them.
socialjackie has joined #ruby
<jhass> molay: sounds like something your database should do for you, created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP for postges for example
<jhass> molay: but to answer the question, just :created_at => Time.now should be fine
morf has joined #ruby
sdwrage has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
tmtwd has quit [Ping timeout: 240 seconds]
<shevy> "The approach taken with Go was to start with C, remove things that were difficult to use correctly, and fill in the gaps until there was nothing left that was sufficiently simple or sufficiently orthogonal to add."
<shevy> hmmmm
lapidary has quit [Quit: lapidary]
gusrub has quit [Quit: Leaving]
kstuart_ has quit [Ping timeout: 272 seconds]
<Ox0dea> That Gophers use the empty interface all over the place means that part of the spec is likely "wrong".
vigintas has joined #ruby
peppers has quit [Quit: Leaving]
in0perable has quit [Quit: ZNC 1.7.x-git-473-cc76522 - http://znc.in]
cdg_ has quit [Remote host closed the connection]
iateadonut has joined #ruby
inoperable has joined #ruby
Oog has joined #ruby
vigintas has quit [Ping timeout: 250 seconds]
rgrmatt has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
yoongkang has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pimpin has joined #ruby
JammyHammy has joined #ruby
<shevy> I hate bugs
simplyianm has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
mary5030 has joined #ruby
<Ox0dea> > Light thinks it travels faster than anything but it is wrong. No matter how fast light travels, it finds the darkness has always got there first, and is waiting for it.
pimpin has quit [Ping timeout: 250 seconds]
<jhass> that implies darkness travels, but does it?
Rickmasta has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
SteveC has joined #ruby
sdwrage has joined #ruby
<Ox0dea> I could try to give you a /r/shittyaskscience answer.
JammyHammy has quit [Read error: Connection reset by peer]
Coldblackice has joined #ruby
MyMind has joined #ruby
symm- has quit [Ping timeout: 252 seconds]
<Ox0dea> >> 4073930972120442021941899024580558813626659657148635604951730592.to_s(16).tr '0-9a-e', 'pwn givestomach'
<ruboto> Ox0dea # => "the voices want me to stop wanting the voices to stop" (https://eval.in/468845)
Sembei has quit [Ping timeout: 240 seconds]
uri has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jdawgaz has joined #ruby
<shevy> I guess real darkness holds no energy
baweaver has quit [Remote host closed the connection]
<jhass> what's unreal darkness?
<jhass> would make a good game title I guess
<Ox0dea> > Nothing is just nothing.
sbhatore has quit [Ping timeout: 260 seconds]
yqt has quit [Ping timeout: 276 seconds]
tulak has joined #ruby
<Ox0dea> I'm only now realizing that can be parsed two different ways to express two completely different sentiments.
<pontiki> and both ways to interpret that are simultaneously accurate :)
<Ox0dea> But then whence the Universe?
sdwrage has quit [Quit: This computer has gone to sleep]
tulak has quit [Ping timeout: 250 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_fumk is now known as fumk
tkuchiki has joined #ruby
rgrmatt has joined #ruby
rgtk has joined #ruby
rgrmatt has quit [Remote host closed the connection]
<dn5> http://i.imgur.com/QaSGf7y.png This crancked me up. ot
sdwrage has joined #ruby
FooMunki has quit [Quit: FooMunki]
sdwrage has quit [Client Quit]
bruno- has joined #ruby
bruno- is now known as Guest82108
rgtk has quit [Ping timeout: 260 seconds]
<Ox0dea> keiju> Well. ruby is also good.
<Ox0dea> matz> But, coral is also good
<Ox0dea> To think we would've been in #coral right now.
<Ox0dea> Or worse, that we wouldn't be!
cdg has joined #ruby
Guest82108 has quit [Ping timeout: 255 seconds]
gusrub has joined #ruby
inoperable has quit [Quit: ZNC 1.7.x-git-473-cc76522 - http://znc.in]
ph4g has joined #ruby
CodingWolf has quit [Ping timeout: 246 seconds]
zwdr has quit [Ping timeout: 240 seconds]
inoperable has joined #ruby
zwdr has joined #ruby
ledestin has quit [Excess Flood]
sdwrage has joined #ruby
socialjackie has quit [Quit: Leaving]
dn5 has quit [Quit: leaving]
chipotle has quit [Quit: cheerio]
tref has quit [Quit: tref]
mattwildig has joined #ruby
ph4g has quit [Ping timeout: 250 seconds]
niftylettuce has joined #ruby
Yzguy has quit [Quit: Zzz...]
vigintas has joined #ruby
mattwildig has quit [Ping timeout: 244 seconds]
vigintas has quit [Ping timeout: 272 seconds]
purplexed- has quit [Ping timeout: 260 seconds]
crdpink2 has joined #ruby
crdpink has quit [Ping timeout: 246 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
tkuchiki has quit [Remote host closed the connection]
unknowns2k2 has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
ledestin has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
dorei has quit []
x-light has joined #ruby
benlieb has joined #ruby
tubuliferous_ has joined #ruby
nertzy has joined #ruby
Channel6 has joined #ruby
braincrash has quit [Quit: bye bye]
tubuliferous_ has quit [Ping timeout: 240 seconds]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
atomical has joined #ruby
SteveC has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
UtkarshRay has quit [Remote host closed the connection]
baweaver has joined #ruby
cashnguns has quit [Quit: I'm just an old fashioned cowboy]
SCHAAP137 has quit [Quit: Leaving]
baweaver has quit [Ping timeout: 240 seconds]
braincrash has joined #ruby
benlieb has quit [Quit: benlieb]
tubuliferous_ has joined #ruby
axsuul has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
braincra- has joined #ruby
braincrash has quit [Ping timeout: 250 seconds]
bruno- has joined #ruby
bruno- is now known as Guest37084
xxneolithicxx has quit [Quit: Leaving.]
xxneolithicxx has joined #ruby
xxneolithicxx has quit [Max SendQ exceeded]
xxneolithicxx has joined #ruby
xxneolithicxx has quit [Max SendQ exceeded]
IrishGringo has joined #ruby
Guest37084 has quit [Ping timeout: 240 seconds]
nertzy has quit [Quit: This computer has gone to sleep]
nertzy has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
Rickmasta has joined #ruby
asianMike has quit [Remote host closed the connection]
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kstuart_ has joined #ruby
diegoaguilar has joined #ruby
terminalrecluse has joined #ruby
terminalrecluse has quit [Max SendQ exceeded]
uri has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
terminalrecluse has joined #ruby
kstuart_ has quit [Ping timeout: 240 seconds]
leafybas_ has joined #ruby
eboaz_ has joined #ruby
NET||abuse has quit [Ping timeout: 264 seconds]
vigintas has joined #ruby
terminal_ has joined #ruby
arthurnn has quit [Ping timeout: 264 seconds]
Helheim has quit [Ping timeout: 264 seconds]
phreakocious has quit [Ping timeout: 264 seconds]
null__ has quit [Ping timeout: 264 seconds]
reaVer has quit [Ping timeout: 264 seconds]
bytecrawler has quit [Ping timeout: 264 seconds]
mgorbach has quit [Ping timeout: 264 seconds]
SebastianThorn has quit [Ping timeout: 264 seconds]
ozzloy has quit [Ping timeout: 264 seconds]
cookiez has quit [Ping timeout: 264 seconds]
fluchtreflex has quit [Ping timeout: 264 seconds]
wnd_ has joined #ruby
sdwrage has joined #ruby
terminalrecluse has quit [Ping timeout: 264 seconds]
gusrub has quit [Ping timeout: 264 seconds]
dlitvak has quit [Ping timeout: 264 seconds]
skweek has quit [Ping timeout: 264 seconds]
Azure has quit [Ping timeout: 264 seconds]
leafybasil has quit [Ping timeout: 264 seconds]
sumark has quit [Ping timeout: 264 seconds]
dasher00 has quit [Ping timeout: 264 seconds]
blue_deref has quit [Ping timeout: 264 seconds]
c0ncealed has quit [Ping timeout: 264 seconds]
Encapsulation has quit [Ping timeout: 264 seconds]
mprelude has quit [Ping timeout: 264 seconds]
knight_ has quit [Ping timeout: 264 seconds]
ahuman has quit [Ping timeout: 264 seconds]
ghormoon has quit [Ping timeout: 264 seconds]
scroff has quit [Ping timeout: 264 seconds]
_ko1 has quit [Ping timeout: 264 seconds]
Shapeshi1ter has quit [Ping timeout: 264 seconds]
mbeasley_ has quit [Ping timeout: 264 seconds]
SirCmpwn has quit [Ping timeout: 264 seconds]
sunya7a has quit [Ping timeout: 264 seconds]
beagles has quit [Ping timeout: 264 seconds]
eboaz has quit [Ping timeout: 264 seconds]
wnd has quit [Ping timeout: 264 seconds]
OmegaA has quit [Ping timeout: 264 seconds]
knight_ has joined #ruby
ahuman has joined #ruby
SebastianThorn has joined #ruby
ozzloy has joined #ruby
ozzloy has quit [Changing host]
ozzloy has joined #ruby
reaVer has joined #ruby
sumark has joined #ruby
OmegaA has joined #ruby
sunya7a has joined #ruby
Shapeshifter has joined #ruby
Azure has joined #ruby
northfurr has joined #ruby
PaulCape_ has joined #ruby
vigintas has quit [Ping timeout: 276 seconds]
fluchtreflex has joined #ruby
fluchtreflex has quit [Changing host]
fluchtreflex has joined #ruby
phreakocious has joined #ruby
SirCmpwn has joined #ruby
PaulCapestany has quit [Ping timeout: 246 seconds]
b3nt_pin has joined #ruby
ghormoon has joined #ruby
NET||abuse has joined #ruby
_ko1 has joined #ruby
b3nt_pin is now known as Guest51663
mgorbach has joined #ruby
tkuchiki has joined #ruby
dlitvak has joined #ruby
makenoise has joined #ruby
pimpin has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
arthurnn has joined #ruby
unknowns2k2 has quit [Quit: unknowns2k2]
wnd_ is now known as wnd
_ko1 has quit [Client Quit]
tkuchiki_ has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
davedev24 has quit [Ping timeout: 240 seconds]
pimpin has quit [Ping timeout: 272 seconds]
gusrub has joined #ruby
_ko1 has joined #ruby
bytecrawler has joined #ruby
dasher00 has joined #ruby
scroff has joined #ruby
c0ncealed has joined #ruby
blue_deref has joined #ruby
mbeasley_ has joined #ruby
northfurr has quit [Quit: northfurr]
arescorpio has quit [Quit: Leaving.]
gix has quit [Ping timeout: 272 seconds]
skweek has joined #ruby
davedev24 has joined #ruby
mprelude has joined #ruby
tubuliferous_ has quit [Ping timeout: 240 seconds]
tkuchiki_ has quit [Remote host closed the connection]
x-light has quit [Ping timeout: 240 seconds]
devoldmx has quit [Remote host closed the connection]
gix has joined #ruby
tubuliferous_ has joined #ruby
null__ has joined #ruby
null__ has quit [Changing host]
null__ has joined #ruby
mesamoo has quit [Quit: Konversation terminated!]
justbleed has quit [Disconnected by services]
cookiez has joined #ruby
UtkarshRay has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
simplyianm has quit [Remote host closed the connection]
simplyianm has joined #ruby
nertzy has joined #ruby
pepperbreath1 has left #ruby [#ruby]
coderhut has joined #ruby
baweaver has joined #ruby
tulak has joined #ruby
makenoise has quit [Remote host closed the connection]
Oli` has quit [Ping timeout: 246 seconds]
Oog has quit []
baweaver has quit [Ping timeout: 240 seconds]
tulak has quit [Ping timeout: 240 seconds]
mooe has joined #ruby
quazimodo has quit [Ping timeout: 260 seconds]
nertzy has quit [Quit: This computer has gone to sleep]
rgtk has joined #ruby
nofxx has quit [Remote host closed the connection]
nofxx has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
The_Phoenix has joined #ruby
fedexo has joined #ruby
wa_r_ch_i__ld1 has joined #ruby
<wa_r_ch_i__ld1> Is there a way to generate a key event from a Ruby web app? Right now I have a Rails app calling a Linux program that generates key events, but will it work for an end-user at run time?
molay has quit [Ping timeout: 240 seconds]
makenoise has joined #ruby
rgtk has quit [Ping timeout: 260 seconds]
bruno- has joined #ruby
davedev24 has quit []
bruno- is now known as Guest43238
molay has joined #ruby
cdg has quit [Remote host closed the connection]
quazimodo has joined #ruby
Guest43238 has quit [Ping timeout: 240 seconds]
tubuliferous_ has quit [Ping timeout: 272 seconds]
gusrub has quit [Quit: Leaving]
fantazo has joined #ruby
Channel6 has quit [Read error: Connection reset by peer]
IrishGringo has quit [Ping timeout: 240 seconds]
leafybas_ has quit [Remote host closed the connection]
leafybasil has joined #ruby
darkf has joined #ruby
terminal_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mattwildig has joined #ruby
tkuchiki has joined #ruby
Meow-J has joined #ruby
leafybasil has quit [Ping timeout: 255 seconds]
devoldmx has joined #ruby
tkuchiki has quit [Remote host closed the connection]
mattwildig has quit [Ping timeout: 276 seconds]
blue_deref has quit [Quit: bbn]
vigintas has joined #ruby
dlitvak has quit [Ping timeout: 250 seconds]
fantazo has quit [Ping timeout: 260 seconds]
vigintas has quit [Ping timeout: 246 seconds]
SteveC has joined #ruby
stardiviner has joined #ruby
stardiviner has quit [Remote host closed the connection]
stardiviner has joined #ruby
stardiviner has quit [Remote host closed the connection]
stardiviner has joined #ruby
Outlastsheep has joined #ruby
<Ox0dea> wa_r_ch_i__ld1: I thought you said you were doing this insanity on a server?
stardiviner has quit [Remote host closed the connection]
stardiviner has joined #ruby
stardiviner has quit [Remote host closed the connection]
stardiviner has joined #ruby
niftylettuce has quit [Quit: Connection closed for inactivity]
stardiviner has quit [Remote host closed the connection]
baweaver has joined #ruby
stardiviner has joined #ruby
tubuliferous_ has joined #ruby
stardiviner has quit [Remote host closed the connection]
stardiviner has joined #ruby
stardiviner has quit [Remote host closed the connection]
stardiviner has joined #ruby
stardiviner has quit [Remote host closed the connection]
fantazo has joined #ruby
htmldrum has quit [Ping timeout: 250 seconds]
stardiviner has joined #ruby
stardiviner has quit [Remote host closed the connection]
stardiviner has joined #ruby
stardiviner has quit [Remote host closed the connection]
stardiviner has joined #ruby
stardiviner has quit [Remote host closed the connection]
Sam0163141155 has quit [Quit: Leaving]
stardiviner has joined #ruby
stardiviner has quit [Remote host closed the connection]
stardiviner has joined #ruby
stardiviner has quit [Remote host closed the connection]
<wa_r_ch_i__ld1> @Ox0dea well thats my question but i think it doesnt work
stardiviner has joined #ruby
<wa_r_ch_i__ld1> i have a hosted app on a linux server, but i want it to simulate the key presses for the end-user
<wa_r_ch_i__ld1> if they dont have linux + xdtool will the key presses be generated?
<Ox0dea> There's gotta be a better way, man.
<Ox0dea> No, they won't be.
<Ox0dea> Well, it depends on how you've got everything wired up, I guess.
<Ox0dea> But why aren't you just using a damned HTTP library to do the authentication or whatever?
stardiviner has quit [Remote host closed the connection]
brushbox has joined #ruby
stardiviner has joined #ruby
tref has joined #ruby
stardiviner has quit [Remote host closed the connection]
stardiviner has joined #ruby
stardiviner has quit [Remote host closed the connection]
stardiviner has joined #ruby
wa_r_ch_i__ld1 has quit [Ping timeout: 240 seconds]
stardiviner has quit [Remote host closed the connection]
stardiviner has joined #ruby
stardiviner has quit [Remote host closed the connection]
beast has joined #ruby
stardiviner has joined #ruby
quazimodo has quit [Ping timeout: 240 seconds]
stardiviner has quit [Remote host closed the connection]
stardiviner has joined #ruby
tubuliferous_ has quit [Ping timeout: 240 seconds]
stardiviner has quit [Client Quit]
htmldrum has joined #ruby
skullcrasher has quit [Ping timeout: 240 seconds]
wa_r_ch_i__ld1 has joined #ruby
user1138 has quit [Ping timeout: 260 seconds]
skullcrasher has joined #ruby
Averna has joined #ruby
TomPeed has joined #ruby
<wa_r_ch_i__ld1> @Ox0dea it is ntlm auth by the way
<wa_r_ch_i__ld1> right now i just have a controller calling xdtool
TomPeed is now known as justbleed
brushbox has quit [Ping timeout: 264 seconds]
<wa_r_ch_i__ld1> i actually need to embed the site itself, thats the sticky part. i cant just curl in or w/e
<Ox0dea> wa_r_ch_i__ld1: Do you solemnly swear that you're up to no good?
<wa_r_ch_i__ld1> haha
<wa_r_ch_i__ld1> im def not
<wa_r_ch_i__ld1> ;)
<Ox0dea> Do you know that msf is a thing?
<wa_r_ch_i__ld1> what is that?
htmldrum has quit [Ping timeout: 250 seconds]
<Ox0dea> Something that would've stopped you reinventing this particular wheel so poorly. :P
xcesariox has joined #ruby
bruno- has joined #ruby
bruno- is now known as Guest62980
xcesariox has quit [Max SendQ exceeded]
trosborn has joined #ruby
<wa_r_ch_i__ld1> so should I just write this off as something that is impossible? (filling in an auth popup for an end-client)
<wa_r_ch_i__ld1> note it has to be filled in, I cant just append the creds because its not basic http
Guest62980 has quit [Ping timeout: 240 seconds]
<Ox0dea> Of course it's not impossible.
Averna has quit [Ping timeout: 260 seconds]
<wa_r_ch_i__ld1> But i take it using bash isnt the way to get there
daivyk has quit [Quit: ZZZzzz…]
jacyzon has joined #ruby
leafybasil has joined #ruby
kstuart_ has joined #ruby
DrShoggoth has quit [Read error: No route to host]
htmldrum has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
makenoise has quit [Remote host closed the connection]
leafybasil has quit [Ping timeout: 260 seconds]
kstuart_ has quit [Ping timeout: 252 seconds]
tref has quit [Quit: tref]
makenoise has joined #ruby
_blizzy_ has joined #ruby
Averna has joined #ruby
govg has joined #ruby
ledestin has quit [Max SendQ exceeded]
Rickmasta has joined #ruby
psy_ has joined #ruby
makenoise has quit []
devoldmx has quit [Remote host closed the connection]
_blizzy_ has quit [Quit: Leaving]
trosborn has quit [Quit: trosborn]
ledestin has joined #ruby
tmtwd has joined #ruby
djellemah has joined #ruby
rippa has joined #ruby
makenoise has joined #ruby
yardenbar has joined #ruby
mistermocha has joined #ruby
coderhut has quit [Ping timeout: 246 seconds]
tulak has joined #ruby
xcesariox has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
tulak has quit [Ping timeout: 250 seconds]
htmldrum has quit [Ping timeout: 260 seconds]
rgtk has joined #ruby
sanjayu has joined #ruby
aevitas has quit [Remote host closed the connection]
rgtk has quit [Ping timeout: 260 seconds]
x-light has joined #ruby
araujo_ has quit [Quit: Leaving]
araujo has joined #ruby
vigintas has joined #ruby
vigintas has quit [Ping timeout: 240 seconds]
houhoulis has joined #ruby
mattwildig has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
sdwrage has joined #ruby
mattwildig has quit [Ping timeout: 240 seconds]
User458764 has joined #ruby
ohaibbq has quit [Quit: Leaving...]
sdwrage has quit [Client Quit]
ohaibbq has joined #ruby
Averna has quit [Quit: Ex-Chat]
wildlander has joined #ruby
Averna has joined #ruby
sdwrage has joined #ruby
devoldmx has joined #ruby
fedexo has quit [Ping timeout: 246 seconds]
govg has quit [Ping timeout: 264 seconds]
govg has joined #ruby
sbhatore has joined #ruby
terminalrecluse has joined #ruby
chipotle has quit [Quit: cheerio]
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
sanjayu has quit [Ping timeout: 260 seconds]
lxsameer has joined #ruby
justbleed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Gi0 has quit [Remote host closed the connection]
wa_r_ch_i__ld1 has quit [Read error: Connection reset by peer]
devl_ has quit [Ping timeout: 250 seconds]
futilegames has joined #ruby
antgel has joined #ruby
hkumar has joined #ruby
VeryBewitching has quit [Quit: Konversation terminated!]
govg has quit [Ping timeout: 264 seconds]
govg has joined #ruby
vdamewood has joined #ruby
Ox0dea has quit [Quit: WeeChat 1.4-dev]
hkumar has quit [Ping timeout: 260 seconds]
x-light has quit [Ping timeout: 252 seconds]
devl_ has joined #ruby
makenoise has quit []
bruno- has joined #ruby
bruno- is now known as Guest99698
Blaguvest has joined #ruby
lenwood has joined #ruby
govg has quit [Ping timeout: 260 seconds]
Guest99698 has quit [Ping timeout: 264 seconds]
vigintas has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kstuart_ has joined #ruby
tref has joined #ruby
vigintas has quit [Ping timeout: 260 seconds]
kstuart_ has quit [Ping timeout: 272 seconds]
karapetyan has joined #ruby
karapetyan has quit [Ping timeout: 250 seconds]
yoongkang has quit [Remote host closed the connection]
arup_r has joined #ruby
lenwood has quit [Ping timeout: 252 seconds]
DMRadford_ has quit [Read error: Connection reset by peer]
leafybasil has joined #ruby
jamesaxl has joined #ruby
DMRadford_ has joined #ruby
hkumar has joined #ruby
jacyzon has quit [Quit: Connection closed for inactivity]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
houhoulis has quit [Remote host closed the connection]
leafybasil has quit [Ping timeout: 264 seconds]
aevitas has joined #ruby
trosborn has joined #ruby
blackmesa has joined #ruby
lenwood has joined #ruby
k3asd` has joined #ruby
marr has joined #ruby
govg has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Averna has quit [Ping timeout: 265 seconds]
blackmesa has joined #ruby
mistermocha has joined #ruby
tulak has joined #ruby
tmtwd has quit [Ping timeout: 240 seconds]
moeabdol has joined #ruby
yoongkang has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
tulak has quit [Ping timeout: 246 seconds]
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 272 seconds]
bruno-_ has joined #ruby
treaki has joined #ruby
rgtk has joined #ruby
rapeseed has joined #ruby
Averna has joined #ruby
bMalum has joined #ruby
bruno-_ has quit [Ping timeout: 240 seconds]
govg has quit [Ping timeout: 240 seconds]
rgtk has quit [Ping timeout: 260 seconds]
govg has joined #ruby
devl_ has quit [Remote host closed the connection]
SteveC has quit [Read error: Connection reset by peer]
<rapeseed> are there any sites listing the gotcha of ruby like there are for other?
<rapeseed> are there any sites listing the gotcha of ruby like there are for others?
xet7 has quit [Quit: Leaving]
akem has joined #ruby
zvive has joined #ruby
<apeiros> probably
framlinqp has joined #ruby
<apeiros> a quick google shows some results which might be interesting.
blackmesa has joined #ruby
lapide_viridi has joined #ruby
<rapeseed> i did but did not find any
<apeiros> I found this f.ex.: http://stackoverflow.com/a/392795/764342
<rapeseed> would be thankful if sb could link me to
<rapeseed> thanks
framling has quit [Ping timeout: 240 seconds]
<apeiros> additionally this: http://blog.elpassion.com/ruby-gotchas/
<apeiros> I didn't read through them, so no idea how accurate/good they are
tom_lowndes has joined #ruby
<rapeseed> thanks :)
axsuul has quit [Ping timeout: 276 seconds]
rapeseed has quit [Quit: Leaving]
<apeiros> skimmed through the second one. seems to be good.
guacjack has joined #ruby
vigintas has joined #ruby
antgel has quit [Ping timeout: 240 seconds]
mattwildig has joined #ruby
vigintas has quit [Ping timeout: 252 seconds]
<zvive> this is more of a logic question (rails) .. but say you have users... and you have teachers, students, parents, and children that all are users.. I currently have a self-referential thing setup matching teachers/students, and parents/children - via has_many :through via 2 different models. would it be more 'dry' or make more sense to just create a relationship with maybe a main_id sub_id type (parent, teacher) where the sub would then be a child or student dep
<zvive> ending on type, then I could just have a method to get relationships based on type..?
mattwildig has quit [Ping timeout: 252 seconds]
tkuchiki has joined #ruby
guacjack has quit [Ping timeout: 272 seconds]
iateadonut has quit [Ping timeout: 260 seconds]
kerunaru has joined #ruby
tkuchiki has quit [Ping timeout: 246 seconds]
guacjack has joined #ruby
duncannz has quit [Remote host closed the connection]
symm- has joined #ruby
axsuul has joined #ruby
antgel has joined #ruby
kerunaru has quit [Ping timeout: 246 seconds]
karapetyan has joined #ruby
axsuul has quit [Ping timeout: 250 seconds]
longfeet has quit [Ping timeout: 246 seconds]
chipotle has joined #ruby
guacjack has quit [Quit: WeeChat 1.1.1]
last_staff has joined #ruby
leafybasil has joined #ruby
devoldmx has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
moeabdol has quit [Ping timeout: 252 seconds]
Jackneill has joined #ruby
djellemah has quit [Ping timeout: 265 seconds]
leafybasil has quit [Ping timeout: 255 seconds]
htmldrum has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
gguggi has joined #ruby
bubbys has quit [Ping timeout: 240 seconds]
Spami has joined #ruby
SCHAAP137 has joined #ruby
htmldrum has quit [Ping timeout: 250 seconds]
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bruno- has joined #ruby
bruno- is now known as Guest88124
karapetyan has quit [Remote host closed the connection]
spider-mario has joined #ruby
last_staff has quit [Quit: last_staff]
Guest88124 has quit [Ping timeout: 240 seconds]
lubarch has joined #ruby
mozzarella has quit [Quit: WeeChat 1.2]
lubarch has quit [Client Quit]
karapetyan has joined #ruby
glenn_ has joined #ruby
glenn_ has quit [Client Quit]
roxtrongo has joined #ruby
BaroMeter has joined #ruby
scripore has joined #ruby
lapide_viridi has quit [Quit: Leaving]
skakri` is now known as skakri
fantazo has quit [Ping timeout: 240 seconds]
karapetyan has quit [Remote host closed the connection]
vigintas has joined #ruby
morf has quit [Ping timeout: 240 seconds]
kstuart_ has joined #ruby
antgel has quit [Ping timeout: 272 seconds]
vigintas has quit [Ping timeout: 250 seconds]
antgel has joined #ruby
hkumar has quit [Ping timeout: 240 seconds]
ruby-lang215 has joined #ruby
karapetyan has joined #ruby
kstuart_ has quit [Ping timeout: 240 seconds]
mozzarella has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
trosborn has quit [Quit: trosborn]
DoubleMalt has joined #ruby
Oli` has joined #ruby
<apeiros> shevy: ping
lenwood has quit [Ping timeout: 252 seconds]
ruby-lang215 has quit [Quit: Page closed]
trosborn has joined #ruby
fantazo has joined #ruby
trosborn has quit [Client Quit]
CloCkWeRX has joined #ruby
CloCkWeRX has left #ruby [#ruby]
ohaibbq has quit [Quit: Leaving...]
lukaszes has joined #ruby
zotherstupidguy has joined #ruby
glenny has quit [Remote host closed the connection]
treaki has quit [Ping timeout: 260 seconds]
scripore has quit [Quit: This computer has gone to sleep]
ruurd has joined #ruby
axsuul has joined #ruby
stamina has joined #ruby
purplexed- has joined #ruby
Averna has quit [Remote host closed the connection]
Spami has quit [Ping timeout: 276 seconds]
FooMunki has joined #ruby
baweaver has quit [Remote host closed the connection]
Coldblackice has quit [Ping timeout: 240 seconds]
axsuul has quit [Ping timeout: 264 seconds]
<jokke> hey guys
<jokke> i have a question about psych
<jokke> I'm confused why the r is being overridden by BIG, even though SMALL comes last in the array
ruurd has quit [Quit: ZZZzzz…]
ruurd has joined #ruby
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Oli` has quit [Quit: Leaving]
lubarch has joined #ruby
subscope has joined #ruby
<apeiros> jokke: I'd have expected r=1 too. I guess you'll have to consult the specs.
<jokke> you mean the yaml spes?
<jokke> *specs
<apeiros> yes
<jokke> ok
blackmesa has quit [Quit: WeeChat 1.3]
tulak has joined #ruby
lkba_ has quit [Ping timeout: 260 seconds]
ruurd has quit [Quit: ZZZzzz…]
ccooke_ is now known as ccooke
fantazo has quit [Ping timeout: 252 seconds]
tulak has quit [Ping timeout: 276 seconds]
Ox0dea has joined #ruby
<Ox0dea> I'm checking `block_given?` again in an `ensure` clause; is there a clean way to be DRY here?
bruno- has joined #ruby
bruno- is now known as Guest60488
rgtk has joined #ruby
Guest60488 has quit [Ping timeout: 265 seconds]
rgtk has quit [Ping timeout: 260 seconds]
sbhatore has quit [Remote host closed the connection]
<j416> Ox0dea: maybe put the ensure inside the method instead of on it?
skweek has quit [Remote host closed the connection]
<Ox0dea> j416: Huh?
<j416> if block_given?; begin; ...; ensure; ...; end;
<j416> end;
<Ox0dea> I need to execute the `ensure` clause only if I was given a block.
<Ox0dea> But the method's functionality is also governed by that value.
<j416> code example?
BaroMeter has quit [Remote host closed the connection]
<Ox0dea> j416: For your records, `def foo; ...; ensure ...; end` is valid and to be preferred.
<Ox0dea> I just don't want both of those `...`s to contain `block_given?`.
skweek has joined #ruby
<Ox0dea> It's not a big deal, but it feels like I might be missing a trick in this area.
<j416> sounds like you don't want my input :)
* j416 off to town
<Ox0dea> You didn't know about `def ... ensure` without an explicit `begin`.
<j416> sure I did
<j416> which is why I gave another suggestion above
<Ox0dea> Oh, sorry, I'm derping. :P
devoldmx has joined #ruby
tkuchiki has joined #ruby
<Ox0dea> But then I don't get to use `def ... ensure`!
<j416> true.
<Ox0dea> Alas.
<j416> you can't span your if to include both blocks so it would seem logically impossible to have the block_given? check only once
<j416> unless you move the ensure inside the if
<Ox0dea> Aye, your recommendation is the right way to go about it.
BaroMeter has joined #ruby
<j416> then again, maybe ruby has some sugary trick up its sleeve that I have never heard of
<Ox0dea> Right, I couldn't quite say why my Ruby senses are tingling, but they are.
<j416> heh. I would feel the same.
<j416> then again, I'm a bit allergic to tagging the ensure or rescue at the end like that
<j416> but I guess it has its usecases.
<Ox0dea> My editor aligns the `ensure` with the `def`, and I think that improves legibility.
<j416> yep, if the behaviour of the entire method is to be protected then I would agree on putting it like that
<Ox0dea> Did you know that `defined?(yield)` is a synonym for `block_given?`?
devoldmx has quit [Ping timeout: 250 seconds]
tkuchiki has quit [Ping timeout: 240 seconds]
vigintas has joined #ruby
<j416> hah. I did not.
<j416> that's so ... silly.
<Ox0dea> `defined?` is crazy.
leafybasil has joined #ruby
User458764 has joined #ruby
mattwildig has joined #ruby
futilegames has quit [Quit: futilegames]
vigintas has quit [Ping timeout: 240 seconds]
rgtk has joined #ruby
leafybasil has quit [Ping timeout: 240 seconds]
diegoaguilar has quit [Remote host closed the connection]
mattwildig has quit [Ping timeout: 250 seconds]
tom_lowndes has quit [Quit: Textual IRC Client: www.textualapp.com]
tom_lowndes has joined #ruby
clonesig has joined #ruby
<Ox0dea> It's mildly infuriating that we can refine #method_missing but not #const_missing. It's gotta be a bug, right?
<Ox0dea> The asymmetry is just... grr.
Xeago has joined #ruby
djellemah has joined #ruby
symm- has quit [Ping timeout: 240 seconds]
moeabdol has joined #ruby
fantazo has joined #ruby
skade has joined #ruby
skade has quit [Client Quit]
lkba has joined #ruby
skade has joined #ruby
trosborn has joined #ruby
skade has quit [Client Quit]
nertzy has joined #ruby
Xeago has quit [Remote host closed the connection]
trosborn has quit [Client Quit]
kirun has joined #ruby
baweaver has joined #ruby
roshanavand has joined #ruby
lukaszes has joined #ruby
sdothum has joined #ruby
vigintas has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
FernandoBasso has joined #ruby
lubarch has quit [Quit: leaving]
ruurd has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
leafybasil has joined #ruby
doddok has quit [Quit: Leaving]
<Papierkorb> Is there a gem or tool, which lets me save my pry session as .rb file? Like, when I type in a Class, figure it does what I want, and now I want to save it into a file.
Spami has joined #ruby
minimalism has quit [Quit: leaving]
<Ox0dea> Papierkorb: You'd almost certainly be better off incorporating Pry into your editor.
<Ox0dea> "REPL-driven development" doesn't mean you've actually got to be *at* the REPL while developing.
k3asd` has quit [Read error: Connection reset by peer]
<pontiki> edit the class; then you can write it to a file
bruno- has joined #ruby
k3asd` has joined #ruby
bruno- is now known as Guest13864
_blizzy_ has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
rob_ has quit [Quit: rob_]
sabram__ has joined #ruby
sanjayu has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Guest13864 has quit [Ping timeout: 260 seconds]
sdothum has joined #ruby
sabram_ has quit [Ping timeout: 246 seconds]
trosborn has joined #ruby
karapetyan has quit [Ping timeout: 250 seconds]
karapetyan has joined #ruby
AccordLTN has quit []
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ruurd has quit [Quit: ZZZzzz…]
sameerynho has joined #ruby
tkuchiki has joined #ruby
bMalum has quit [Quit: bMalum]
lxsameer has quit [Ping timeout: 240 seconds]
roshanavand has quit [Remote host closed the connection]
jxs_ has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
ruurd has joined #ruby
trosborn has quit [Quit: trosborn]
tkuchiki has quit [Ping timeout: 240 seconds]
bruno-_ has joined #ruby
kstuart_ has joined #ruby
ruurd has quit [Client Quit]
AccordLTN has joined #ruby
infernix has quit [Ping timeout: 246 seconds]
Averna has joined #ruby
karapetyan has quit [Remote host closed the connection]
Averna has quit [Client Quit]
leafybasil has quit [Remote host closed the connection]
karapetyan has joined #ruby
mooe has quit [Quit: Connection closed for inactivity]
ruurd has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kstuart_ has quit [Ping timeout: 272 seconds]
karapetyan has quit [Ping timeout: 250 seconds]
roshanavand has joined #ruby
Meow-J has quit [Quit: Connection closed for inactivity]
benhuda has joined #ruby
ruurd has quit [Client Quit]
ruurd has joined #ruby
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lukaszes has joined #ruby
edwardly has quit [Ping timeout: 246 seconds]
mgorbach has quit [Ping timeout: 260 seconds]
aevitas has quit [Remote host closed the connection]
tkuchiki has joined #ruby
mgorbach has joined #ruby
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
Nahra has quit [Read error: Connection reset by peer]
Nahra has joined #ruby
nomadicoder has joined #ruby
roxtrong_ has joined #ruby
banister has joined #ruby
jdawgaz has joined #ruby
roxtrongo has quit [Ping timeout: 276 seconds]
banister has quit [Ping timeout: 244 seconds]
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lukaszes has joined #ruby
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
baweaver has joined #ruby
Someguy123 has left #ruby [#ruby]
dancer_ has quit [Max SendQ exceeded]
dancer_ has joined #ruby
karapetyan has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
roxtrong_ has quit [Remote host closed the connection]
dancer_ has quit [Changing host]
dancer_ has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
mistermocha has joined #ruby
aevitas has joined #ruby
hkumar has joined #ruby
tulak has joined #ruby
sanjayu has quit [Ping timeout: 272 seconds]
infernix has joined #ruby
roshanavand has quit [Remote host closed the connection]
Blaguvest is now known as Semtex-H
allcentury has joined #ruby
ruid has joined #ruby
infernix has quit [Changing host]
infernix has joined #ruby
ruurd has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
tulak has quit [Ping timeout: 250 seconds]
livcd has quit [Changing host]
livcd has joined #ruby
User458764 has joined #ruby
moeabdol has quit [Ping timeout: 246 seconds]
ruid has quit [Ping timeout: 252 seconds]
devoldmx has joined #ruby
bMalum has joined #ruby
millerti has joined #ruby
roxtrongo has joined #ruby
roxtrong_ has joined #ruby
minimalism has joined #ruby
yoongkang has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 252 seconds]
moeabdol has joined #ruby
moeabdol has quit [Client Quit]
roxtrongo has quit [Ping timeout: 240 seconds]
rob_ has joined #ruby
dtordable has quit [Quit: Lost terminal]
dtordable has joined #ruby
moeabdol has joined #ruby
mattwildig has joined #ruby
codecop has joined #ruby
dlitvak has joined #ruby
roxtrong_ has quit [Remote host closed the connection]
roshanavand has joined #ruby
lenwood has joined #ruby
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rollabunna has quit [Quit: Leaving...]
mattwildig has quit [Ping timeout: 265 seconds]
lipoqil has quit [Quit: Connection closed for inactivity]
roxtrongo has joined #ruby
roxtrong_ has joined #ruby
leafybasil has joined #ruby
scripore has joined #ruby
quazimodo has joined #ruby
pwnd_nfsw has joined #ruby
rgrmatt has joined #ruby
roxtrongo has quit [Ping timeout: 260 seconds]
pwnd_nsfw has quit [Ping timeout: 240 seconds]
lukaszes has joined #ruby
leafybasil has quit [Ping timeout: 240 seconds]
sgambino has joined #ruby
roshanavand has quit [Remote host closed the connection]
gambl0re has quit [Ping timeout: 240 seconds]
Rollabunna has joined #ruby
gambl0re has joined #ruby
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nateberkopec has joined #ruby
roshanavand has joined #ruby
mattwildig has joined #ruby
baweaver has joined #ruby
_blizzy_ has quit [Quit: Leaving]
yoongkang has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
scripore has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
bruno-_ has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
bruno- is now known as Guest64079
Meow-J has joined #ruby
atomical has joined #ruby
yoongkang has quit [Ping timeout: 240 seconds]
bMalum has quit [Quit: bMalum]
jamesaxl has quit [Ping timeout: 246 seconds]
IrishGringo has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
Guest64079 has quit [Quit: Lost terminal]
dlitvak has quit [Remote host closed the connection]
ruurd has joined #ruby
rgrmatt has quit [Remote host closed the connection]
bruno-_ has joined #ruby
simplyianm has quit [Remote host closed the connection]
simplyianm has joined #ruby
Encapsulation has joined #ruby
momo-reina has joined #ruby
davedev24 has joined #ruby
vaguelyNothere has joined #ruby
synthroid has joined #ruby
Yzguy has joined #ruby
hkumar has quit [Ping timeout: 265 seconds]
lenwood has quit [Ping timeout: 252 seconds]
Yzguy has quit [Client Quit]
cgfbee has quit [Ping timeout: 276 seconds]
benhuda has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kstuart_ has joined #ruby
skweek has quit [Read error: Connection reset by peer]
vaguelyNothere has left #ruby [#ruby]
joneshf-laptop has quit [Read error: Connection reset by peer]
joneshf-laptop has joined #ruby
kstuart_ has quit [Client Quit]
scripore has quit [Quit: This computer has gone to sleep]
DoubleMalt has quit [Remote host closed the connection]
bMalum has joined #ruby
tkuchiki has quit [Remote host closed the connection]
scripore has joined #ruby
roshanavand has quit [Remote host closed the connection]
akem has quit [Ping timeout: 240 seconds]
daivyk has joined #ruby
tkuchiki has joined #ruby
sankaber has joined #ruby
dravine has quit [Ping timeout: 250 seconds]
aevitas has quit [Remote host closed the connection]
Xeago has joined #ruby
sepp2k has joined #ruby
skweek has joined #ruby
aevitas has joined #ruby
sanjayu has joined #ruby
morf has joined #ruby
morf has quit [Remote host closed the connection]
bMalum has quit [Quit: bMalum]
nateberkopec has quit [Quit: Leaving...]
treaki has joined #ruby
nsuke has quit [Remote host closed the connection]
nofxx_ has joined #ruby
roshanavand has joined #ruby
nofxx has quit [Ping timeout: 240 seconds]
akem has joined #ruby
treaki has quit [Ping timeout: 276 seconds]
baweaver has joined #ruby
axsuul has joined #ruby
treaki has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
sameerynho has quit [Quit: Leaving]
frog0909 has joined #ruby
nietzschette has joined #ruby
axsuul has quit [Ping timeout: 255 seconds]
tulak has joined #ruby
klingeldraht has joined #ruby
futilegames has joined #ruby
sanjayu has quit [Ping timeout: 272 seconds]
futilegames has quit [Client Quit]
vdamewood has quit [Quit: Life beckons.]
nietzschette has quit [Quit: Nettalk6 - www.ntalk.de]
roshanavand has quit []
treaki has quit [Ping timeout: 260 seconds]
tulak has quit [Ping timeout: 264 seconds]
BaroMeter has quit [Quit: Leaving]
IrishGringo has quit [Ping timeout: 246 seconds]
dfockler has joined #ruby
mghaig has joined #ruby
fantazo has quit [Quit: Verlassend]
daivyk has quit [Quit: Part & Quit]
arup_r has quit [Quit: Leaving]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
clonesig has quit [Quit: Leaving]
shredding has joined #ruby
devoldmx has joined #ruby
solocshaw1 has joined #ruby
solocshaw has quit [Read error: Connection reset by peer]
solocshaw1 is now known as solocshaw
devoldmx has quit [Ping timeout: 244 seconds]
vnk has joined #ruby
<vnk> hello rubyst, anyone got minute to help me with understunding small code(15) lines?
lipoqil has joined #ruby
dfockler has quit [Ping timeout: 272 seconds]
sanjayu has joined #ruby
iateadonut has joined #ruby
Rollabunna has quit [Read error: Connection reset by peer]
jxs_ has quit [Remote host closed the connection]
pandaant has joined #ruby
davedev2_ has joined #ruby
shredding has quit [Ping timeout: 265 seconds]
davedev24 has quit [Ping timeout: 240 seconds]
colegatron has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SteveC has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jdawgaz has joined #ruby
yqt has joined #ruby
TheHodge has joined #ruby
jdawgaz has quit [Client Quit]
mghaig has quit [Read error: Connection reset by peer]
sanjayu has quit [Ping timeout: 240 seconds]
skcin7 has joined #ruby
arup_r has joined #ruby
arup_r is now known as Guest5514
<havenwood> vnk: Link to the codE?
<vnk> havenwood: found solution, still thanks a lot!
shinnya_ has quit [Ping timeout: 240 seconds]
nertzy has joined #ruby
<havenwood> vnk: Any time.
cgfbee has joined #ruby
Xeago has quit [Remote host closed the connection]
mghaig has joined #ruby
riotjones has joined #ruby
woodshine has joined #ruby
User458764 has joined #ruby
Guest5514 is now known as arup_r
freerobby has joined #ruby
symm- has joined #ruby
naftilos76 has joined #ruby
sonOfRa has quit [Quit: Bye!]
guacjack has joined #ruby
guacjack has quit [Client Quit]
sonOfRa has joined #ruby
riotjones has quit [Ping timeout: 240 seconds]
tref has quit [Quit: tref]
baweaver has joined #ruby
tref has joined #ruby
IrishGringo has joined #ruby
mghaig has quit [Read error: Connection reset by peer]
baweaver has quit [Ping timeout: 246 seconds]
aevitas has quit [Remote host closed the connection]
roxtrong_ has quit [Remote host closed the connection]
mghaig has joined #ruby
momo-reina has quit [Ping timeout: 264 seconds]
woodshine has quit [Quit: Page closed]
axsuul has joined #ruby
zenguy_pc has quit [Read error: Connection reset by peer]
tkuchiki has quit [Remote host closed the connection]
sdwrage has joined #ruby
_blizzy_ has joined #ruby
IrishGringo has quit [Ping timeout: 240 seconds]
axsuul has quit [Ping timeout: 240 seconds]
yardenbar has quit [Ping timeout: 244 seconds]
diegoaguilar has joined #ruby
blue_deref has joined #ruby
patdohere has joined #ruby
ruid has joined #ruby
lenwood has joined #ruby
nofxx_ has quit [Remote host closed the connection]
d0lph1n98 has joined #ruby
benhuda has joined #ruby
nofxx has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
patdohere has quit [Read error: Connection reset by peer]
guacjack has joined #ruby
griffindy has joined #ruby
<guacjack> Hey, just got a quick question about Rails, is this the right place to ask?
devoldmx has joined #ruby
solocshaw has quit [Ping timeout: 244 seconds]
<shevy> there is a dedicated channel for rails #rubyonrails
<guacjack> ah thanks :)
freerobby has quit [Quit: Leaving.]
nateberkopec has joined #ruby
sw has joined #ruby
benhuda has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ruurd has quit [Quit: ZZZzzz…]
d0lph1n98 has quit [Quit: leaving]
Rollabunna has joined #ruby
devoldmx has quit [Ping timeout: 264 seconds]
tmtwd has joined #ruby
<havenwood> ("How to Stop Hating your Test Suite" is the current talk.)
<shevy> hmm
<shevy> did matz already talk?
<havenwood> So if they keep streaming from that same room it'll be Tenderlove next with "Inside Ruby's VM: The TMI Edition."
<havenwood> shevy: No Matz keynote this year! :O
<havenwood> shevy: This will be the second year ever that Matz hasn't given a Keynote.
<shevy> ok
<shevy> I'll tune in for tenderlove then
<havenwood> I miss the turtle at the bottom of his slides.
Rollabunna has quit [Remote host closed the connection]
pimpin has joined #ruby
Rollabunna has joined #ruby
Fire-Dragon-DoL has joined #ruby
Xeago has joined #ruby
jdawgaz has joined #ruby
mattwildig has quit [Remote host closed the connection]
huzzah has joined #ruby
huzzah is now known as Guest40430
Rollabunna has quit [Ping timeout: 240 seconds]
NeverDie has quit [Quit: http://radiux.io/]
pandaant has quit [Remote host closed the connection]
pimpin has quit [Remote host closed the connection]
bMalum has joined #ruby
mghaig has quit [Ping timeout: 250 seconds]
tubuliferous_ has joined #ruby
zeroDivisible has quit [Quit: WeeChat 1.3]
zeroDivisible has joined #ruby
Guest40430 has quit [Ping timeout: 264 seconds]
riotjones has joined #ruby
akem has quit [Ping timeout: 244 seconds]
Z00t has joined #ruby
Z00t has quit [Client Quit]
ruid has quit [Ping timeout: 246 seconds]
Z00t has joined #ruby
<Fire-Dragon-DoL> sunday, so silent
roxtrongo has joined #ruby
guacjack has quit [Quit: WeeChat 1.3]
riotjones has quit [Ping timeout: 250 seconds]
axsuul has joined #ruby
<havenwood> Fire-Dragon-DoL: Also RubyConf.
baweaver has joined #ruby
SteveC has quit [Read error: Connection reset by peer]
sinkensabe has joined #ruby
<Fire-Dragon-DoL> true
karapetyan has quit [Remote host closed the connection]
roxtrongo has quit [Ping timeout: 264 seconds]
axsuul has quit [Ping timeout: 244 seconds]
guacjack has joined #ruby
babblebre has joined #ruby
yoongkang has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
Fire-Dragon-DoL has quit [Remote host closed the connection]
NeverDie has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
mistermocha has joined #ruby
tulak has joined #ruby
zenguy_pc has joined #ruby
SteveC has joined #ruby
sdwrage has quit [Quit: Leaving]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yoongkang has quit [Ping timeout: 250 seconds]
troulouliou_dev has joined #ruby
treaki has joined #ruby
jdawgaz has joined #ruby
tkuchiki has joined #ruby
scripore has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
tulak has quit [Ping timeout: 250 seconds]
<shevy> undefined method `+@'
<shevy> why is this notation used? I am confused about the @
czsr has joined #ruby
last_staff has joined #ruby
<shevy> I triggered this via a two lines code, the second + happened on a new line, one + was superfluous, but the notation confuses me: "+ +image
huzzah_ has joined #ruby
Z00t has quit [Ping timeout: 244 seconds]
troulouliou_dev has quit [Client Quit]
dopie has quit [Quit: This computer has gone to sleep]
beast has quit [Quit: Leaving]
dopie has joined #ruby
tkuchiki has quit [Ping timeout: 255 seconds]
<jhass> shevy: that's unary +
<jhass> >> +-5
<ruboto> jhass # => -5 (https://eval.in/468943)
_stu_ has joined #ruby
mattwildig has joined #ruby
<jhass> shevy: since ruby doesn't overload on argument count, def +(o); and def +; would be the same method, so you need something to disambiguate a.+(b) (a+b) from a.+() (+a)
<jhass> so it's a.+@()
rgtk has quit []
rgtk has joined #ruby
chipotle has quit [Quit: cheerio]
SteveC has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> you can imagine the @ as the receiver if it helps anything, so that in +1 the @ kind of stands for the 1
SCHAAP137 has quit [Quit: Leaving]
cdg has joined #ruby
nateberkopec has quit [Quit: Leaving...]
yeticry has quit [Ping timeout: 240 seconds]
yeticry has joined #ruby
SCHAAP137 has joined #ruby
ibloodlust has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<ibloodlust> hello
<ibloodlust> in ruby can multiple child classes all share one parent class?
scripore has joined #ruby
yardenbar has joined #ruby
scripore has quit [Remote host closed the connection]
<jhass> I'm not aware of any OO language where that's not the case
<jhass> so, of course
<ibloodlust> oh thanks ok
<shevy> hmm
<shevy> ok
<shevy> the @ there initially reminded me of an instance variable
tildes has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Contigi has quit [Quit: Leaving]
yeticry has quit [Ping timeout: 260 seconds]
yeticry has joined #ruby
m3_del has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
<Ox0dea> >> $VERBOSE = nil; class Fixnum; alias +@ + end; @@x = 25; 17.+@@@x
<ruboto> Ox0dea # => 42 (https://eval.in/468946)
<Ox0dea> Triple asperand!
northfurr has joined #ruby
kobain has joined #ruby
solocshaw has joined #ruby
chipotle has joined #ruby
karapetyan has joined #ruby
treaki has quit [Ping timeout: 240 seconds]
<shevy> this is madness
futilegames has joined #ruby
jamesaxl has joined #ruby
aevitas has joined #ruby
leifg has joined #ruby
aevitas has quit [Remote host closed the connection]
aevitas has joined #ruby
karapetyan has quit [Remote host closed the connection]
treaki has joined #ruby
futilegames has quit [Client Quit]
karapetyan has joined #ruby
vnk has quit [Remote host closed the connection]
tubuliferous_ has quit [Quit: ZNC - http://znc.in]
mrtomme has quit [Ping timeout: 260 seconds]
diegoaguilar has quit [Remote host closed the connection]
mghaig has joined #ruby
tulak has joined #ruby
mrtomme has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
leifg has quit [Quit: Textual IRC Client: www.textualapp.com]
Jardayn has joined #ruby
ruurd has joined #ruby
treaki has quit [Ping timeout: 272 seconds]
ruid has joined #ruby
hkumar has joined #ruby
<shevy> hmm ... github has fancy labels
<shevy> "Pistos added the bug label to your issue" something something
<apeiros> shevy: and, did you try it? :)
Xeago has quit [Remote host closed the connection]
shellie__ has quit [Remote host closed the connection]
jdawgaz has joined #ruby
lenwood has quit [Ping timeout: 252 seconds]
<shevy> trying to find out how to add labels to my reported issues right
Xeago has joined #ruby
<apeiros> shevy: well, tell me if you want to give it a try yourself
SCHAAP137 has quit [Remote host closed the connection]
agentmeerkat has quit [Ping timeout: 265 seconds]
<shevy> ah do you meant that tokenizer thingy?
cyb3rspy has joined #ruby
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vigintas has quit [Ping timeout: 260 seconds]
SCHAAP137 has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
allcentury has quit [Ping timeout: 260 seconds]
benhuda has joined #ruby
allcentury has joined #ruby
<cyb3rspy> Does anybody know where I can find a great & free ruby tutorial?
<jhass> ?links
<cyb3rspy> Thanks :)
fedexo has joined #ruby
slawrence00 has joined #ruby
northfurr has quit [Quit: northfurr]
vigintas has joined #ruby
skcin7 has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
skcin7 has joined #ruby
dome22xl has joined #ruby
dome22xl has quit [Client Quit]
roxtrongo has joined #ruby
lsv has joined #ruby
Rickmasta has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
huzzah_ has quit [Quit: Lost terminal]
lsv_ has quit [Ping timeout: 240 seconds]
yonatankoren has joined #ruby
<shevy> havenwood is tenderlove speaking already?
ruurd has joined #ruby
<Ox0dea> I'm serializing a massive nested hash whose keys are all short strings; any sense in using symbols instead?
Xeago has quit [Remote host closed the connection]
dfockler has joined #ruby
mikecmpbll has joined #ruby
Phage has joined #ruby
tref has quit [Quit: tref]
ruid has quit [Ping timeout: 246 seconds]
FooMunki has quit [Quit: FooMunki]
DEac- has quit [Ping timeout: 246 seconds]
northfurr has joined #ruby
k3asd` has quit [Ping timeout: 250 seconds]
rehat_ has joined #ruby
<Ox0dea> shevy: They just went for lunch.
k3asd` has joined #ruby
<Ox0dea> I'll do that too if I don't get all Strings.
<Ox0dea> >> [*ObjectSpace.each_object].sample 3
<ruboto> Ox0dea # => [" end\n", <RubyVM::InstructionSequence:find_full_gem_path@/execpad/interpreters/ruby-2.2.0/lib/rub ...check link for more (https://eval.in/468949)
<Ox0dea> Yay!
dviola has joined #ruby
<shevy> Ox0dea damn lunch
<shevy> they should talk while eating
subscope has quit [Quit: Leaving]
<shevy> real programmers code all the time, even upon toilet time
dtordable has quit [Remote host closed the connection]
NeverDie has quit [Quit: http://radiux.io/]
dtordable has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
NeverDie has joined #ruby
dtordable has quit [Client Quit]
dtordable has joined #ruby
rgtk has quit [Remote host closed the connection]
predator217 has left #ruby [#ruby]
sdothum has joined #ruby
devoldmx has joined #ruby
tkuchiki has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dtordable has quit [Quit: Lost terminal]
northfurr has quit [Quit: northfurr]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
axsuul has joined #ruby
devoldmx has quit [Ping timeout: 265 seconds]
tkuchiki has quit [Ping timeout: 250 seconds]
northfurr has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
tmtwd has quit [Ping timeout: 240 seconds]
northfurr has quit [Client Quit]
jdawgaz has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
dlitvak has joined #ruby
northfurr has joined #ruby
sdothum has joined #ruby
yosiat has joined #ruby
axsuul has quit [Ping timeout: 240 seconds]
northfurr has quit [Client Quit]
dlitvak_ has joined #ruby
Vile` has quit [Quit: .]
northfurr has joined #ruby
Rollabunna has joined #ruby
northfurr has quit [Client Quit]
northfurr has joined #ruby
dlitvak has quit [Ping timeout: 255 seconds]
DrD has joined #ruby
northfurr has quit [Client Quit]
Rollabunna has quit [Ping timeout: 246 seconds]
ruurd has joined #ruby
northfurr has joined #ruby
dfockler has quit [Ping timeout: 246 seconds]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
user1138 has joined #ruby
Yzguy has joined #ruby
rgtk has joined #ruby
northfurr has quit [Client Quit]
atmosx has joined #ruby
yonatankoren has quit [Quit: ZNC 1.6.1 - http://znc.in]
stannard has joined #ruby
northfurr has joined #ruby
northfurr has quit [Client Quit]
<shevy> I am really starting to like the foo: 'bar' notation for Hash elements, primarily because it can be so terse
northfurr has joined #ruby
<Papierkorb> Ruby 1.9 is amazing, yeah *looks at latest version*
sanjayu has joined #ruby
<UNIMPL> :\
yonatankoren has joined #ruby
Coldblackice has joined #ruby
zacts has quit [Ping timeout: 240 seconds]
pimpin has joined #ruby
chipotle has quit [Quit: cheerio]
dlitvak has joined #ruby
dikaio has joined #ruby
hkumar has quit [Quit: Leaving]
mirageglobe has joined #ruby
dlitvak_ has quit [Ping timeout: 240 seconds]
arup_r has quit [Quit: Leaving]
pimpin has quit [Ping timeout: 240 seconds]
guacjack has quit [Quit: WeeChat 1.3]
mirageglobe has quit [Remote host closed the connection]
User458764 has joined #ruby
baweaver has joined #ruby
darkf has quit [Quit: Leaving]
Vile` has joined #ruby
shredding has joined #ruby
perturbation has joined #ruby
tref has joined #ruby
yoongkang has joined #ruby
axsuul has joined #ruby
stannard has quit [Ping timeout: 250 seconds]
dtordable has joined #ruby
htmldrum has joined #ruby
baweaver has quit [Ping timeout: 246 seconds]
nateberkopec has joined #ruby
solars has joined #ruby
<Yzguy> anyone have any advice on making it better? It works but I'm new to ruby so
ruid has joined #ruby
yosiat has quit [Quit: Textual IRC Client: www.textualapp.com]
yoongkang has quit [Ping timeout: 250 seconds]
<jhass> two spaces for indentation would be awesome :P
htmldrum has quit [Ping timeout: 250 seconds]
karapetyan has quit [Remote host closed the connection]
<jhass> Yzguy: check Enumerable#count
<Yzguy> hm, not sure how to set two spaces for ruby files
<Yzguy> in vimrc
<Yzguy> to be honest I didn't notice the spaces, but I know it's 2
<jhass> push_data = %{"title": "Running Instances", "description": "Amazon Web Services", "just-value": "#{count}"})
<jhass> or maybe even push_data = {"title" => "Running Instances", "description" => "Amazon Web Services", "just-value" => count.to_s}.to_json
<Papierkorb> wasn't there a way in HAML documents to run code *once* when the document is parsed by haml?
skweek has quit [Ping timeout: 240 seconds]
<Yzguy> its not json, which is crappy
scripore has joined #ruby
chipotle has joined #ruby
matcz has quit [Ping timeout: 246 seconds]
matcz has joined #ruby
<Yzguy> its for http://tipboard.readthedocs.org/en/latest/, but i guess you pass in a json string
<jhass> push_data already being a string, "#{push_data}" is entirely redundant, if it weren't a string, .to_s is preferred if there's no concatenation happening
solars has quit [Ping timeout: 276 seconds]
yonatankoren has quit [Quit: ZNC 1.6.1 - http://znc.in]
yonatankoren has joined #ruby
synthroid has quit []
stannard has joined #ruby
ruurd has quit [Read error: Connection reset by peer]
sw has left #ruby [#ruby]
DMRadford__ has joined #ruby
mattwildig has quit [Remote host closed the connection]
tref has quit [Quit: tref]
mattwildig has joined #ruby
DMRadford has joined #ruby
ruby-lang656 has joined #ruby
<ruby-lang656> test
nertzy has joined #ruby
<jhass> whatcha testing?
DMRadford_ has quit [Ping timeout: 265 seconds]
DrD has quit [Remote host closed the connection]
Azure has joined #ruby
DMRadford_ has joined #ruby
mattwildig has quit [Ping timeout: 252 seconds]
DMRadford__ has quit [Ping timeout: 244 seconds]
allcentury has quit [Ping timeout: 264 seconds]
<shevy> this channel
DMRadford has quit [Ping timeout: 255 seconds]
DrShoggoth has joined #ruby
ruby-lang656 has quit [Ping timeout: 246 seconds]
stannard has quit [Remote host closed the connection]
n_blownapart has joined #ruby
naftilos76 has quit [Ping timeout: 260 seconds]
erbesharat has joined #ruby
ramfjord has joined #ruby
UtkarshRay has quit [Ping timeout: 246 seconds]
allcentury has joined #ruby
<yardenbar> Hi all, I'm trying to install curb 0.8.8 on Ubuntu Wily. it succeeds when I use 'gem install...' but when I try to use 'rvm 2.0.0-p645 do bundle install --path vendor/bundle --deployment --without COUPLE_OF_GROUPS_HERE' it failes with 'Makefile:223: recipe for target 'curb_easy.o' failed'
northfurr has quit [Quit: northfurr]
<yardenbar> Any one encountered this?
mistermocha has joined #ruby
northfurr has joined #ruby
johnzorn has joined #ruby
mghaig has quit [Ping timeout: 260 seconds]
ohaibbq has joined #ruby
<shevy> sounds as if you are trying to compile some C code there?
<apeiros> shevy: yes, I meant literal_parser and your request for adding ranges
benhuda has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> ah
<shevy> yeah I needed precisely that to turn "strings" into the corresponding ruby object
<shevy> I tried to add Ranges, it sorta works but it was hackish
<shevy> what I did that is :)
<shevy> I needed it for something such as:
<shevy> '@foobar = [1,2,3]'
mistermocha has quit [Ping timeout: 240 seconds]
<shevy> I was a bit surprised that Ranges were not handled but as jhass pointed out, it's probably a very old project altogether
<apeiros> shevy: it is pretty old. still works fine, though.
x-light has joined #ruby
vigintas has quit [Ping timeout: 240 seconds]
<apeiros> ranges were an oversight, I believe. adding it was quite trivial.
<apeiros> I think I'm also missing {"foo": value} as valid symbol style in hashes.
tlaxkit has joined #ruby
<jhass> I think there also was an eval you can get rid of now since const_get handles :: resolution now
Z00t has joined #ruby
<apeiros> jhass: yes. though I have to dynamically decide upon which to use.
shlomo has joined #ruby
vigintas has joined #ruby
dikaio has quit [Ping timeout: 252 seconds]
<shlomo> Which key-value pair does Hash#shift remove? Is it guranteed to be oldest one? I can't tell from the documentation
TheNet has joined #ruby
devoldmx has joined #ruby
northfurr has quit [Quit: northfurr]
goodcodeguy has joined #ruby
northfurr has joined #ruby
atmosx has quit [Quit: Lost in trance]
mattwildig has joined #ruby
<shevy> yardenbar I just compiled curb, it's ruby curl bindings so you have to see that your curl works fine; my curl version is: curl-7.45.0
<jhass> shlomo: hash is insertion ordered, though I wish it wouldn't have these operations, depending on the order of a hash is shitty
nateberkopec has quit [Quit: Leaving...]
<shlomo> jhass: ok thanks
tlaxkit has quit [Quit: ¡Hasta luego!]
platzhirsch has joined #ruby
dviola has quit [Quit: WeeChat 1.3]
sanjayu has quit [Ping timeout: 272 seconds]
nertzy has quit [Quit: This computer has gone to sleep]
rgtk has quit [Remote host closed the connection]
decoponio has quit [Quit: Leaving...]
|ifei5good has joined #ruby
naftilos76 has joined #ruby
daivyk has joined #ruby
nateberkopec has joined #ruby
northfurr has quit [Quit: northfurr]
|ifei5g00d has quit [Ping timeout: 240 seconds]
mghaig has joined #ruby
northfurr has joined #ruby
shiru has joined #ruby
baweaver has joined #ruby
ruid has quit [Ping timeout: 260 seconds]
<yardenbar> shevy, Will do, thank you
<havenwood> I like our fancy new Hash#dig and Hash#to_proc methods.
mghaig has quit [Read error: Connection reset by peer]
devoldmx has quit [Remote host closed the connection]
<havenwood> I also like saying "doubly-circular linked list." Sounds fancy.
nateberkopec has quit [Quit: Leaving...]
<apeiros> havenwood: what's Hash#to_proc do?
baweaver has quit [Ping timeout: 240 seconds]
<shevy> I dig dig
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<havenwood> apeiros: h = {aim: true, blah: nil, another: false}; [:aim, :another].map &h #=> [true, false]
solocshaw has quit [Ping timeout: 246 seconds]
<yxhuvud> so basically #[].
shiru has quit [Ping timeout: 272 seconds]
<apeiros> I see
<apeiros> so we can also use hashes in case/when?
<havenwood> aye
<apeiros> and grep?
<havenwood> hmm
<apeiros> to_proc-ification of ruby has begun
<Papierkorb> apeiros: wat. I didn't think of using to_proc yet with case/when! Amazing
nateberkopec has joined #ruby
<apeiros> one api, to bind them all, and proc unto existence
<yxhuvud> apeiros: it begain with Symbol#to_proc.
<yxhuvud> -i
northfurr has quit [Quit: northfurr]
nateberkopec has quit [Client Quit]
n_blownapart has quit []
<apeiros> we shall remove all other methods and instead have classes with a single method: to_proc
rgtk has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<apeiros> HashStoreKey#to_proc, HashLookupKey#to_proc, HashSort#to_proc
mghaig has joined #ruby
<yxhuvud> Lets call the language to_proc-calculus!
karapetyan has joined #ruby
northfurr has joined #ruby
<apeiros> proc-tastic
<apeiros> instead of func-tastic
<apeiros> but the important part is indeed, to *call* it, haha.
<Ox0dea> FizzBuzz using *only* Procs: http://codon.com/programming-with-nothing#victory
<havenwood> >> {a: [:b, {c: [{d: :e}]}]}.dig :a, 1, :c, 0, :d
<ruboto> havenwood # => undefined method `dig' for {:a=>[:b, {:c=>[{:d=>:e}]}]}:Hash (NoMethodError) ...check link for more (https://eval.in/468959)
<havenwood> oh, right
<Ox0dea> 23>> apeiros.plz
babblebre has quit [Quit: Connection closed for inactivity]
<havenwood> Proc-based FizzBuzz is nice and fast in mruby.
<Ox0dea> Is that so?
nateberkopec has joined #ruby
<Ox0dea> > closure_setup(mrb, p, mrb->c->ci->proc->body.irep->nlocals);
<Ox0dea> Holy indirection, Batman.
haxrbyte_ has quit [Ping timeout: 252 seconds]
karapetyan has quit [Ping timeout: 252 seconds]
|ifei5g00d has joined #ruby
<Ox0dea> havenwood: Ah, so it's not that it's fast in mruby, it's just embarrassingly slow in KRI.
<havenwood> Ox0dea: Haha
FooMunki has joined #ruby
haxrbyte has joined #ruby
|ifei5good has quit [Ping timeout: 240 seconds]
yoongkang has joined #ruby
uri has joined #ruby
sanjayu has joined #ruby
mistermocha has joined #ruby
northfurr has quit [Quit: northfurr]
uri has quit [Client Quit]
mghaig has quit [Ping timeout: 272 seconds]
northfurr has joined #ruby
tulak has quit [Remote host closed the connection]
Channel6 has joined #ruby
adac has joined #ruby
Ox0dea has quit [Quit: WeeChat 1.4-dev]
vF3hNGxc47h8 has joined #ruby
malconis has joined #ruby
mistermocha has quit [Remote host closed the connection]
Ox0dea has joined #ruby
fantazo has joined #ruby
<ibloodlust> how do i find elasped time in ruby
<Yzguy> Line 50, 70, 71
<Ox0dea> >> s = Time.now; 9001.times {}; Time.now - s # ibloodlust
<ruboto> Ox0dea # => 0.000720054 (https://eval.in/468961)
User458764 has joined #ruby
<ibloodlust> wow thanks guys
<Ox0dea> ibloodlust: I am but one person.
<Yzguy> yeah but basically Time.now, save it to a variable, do your process, do another Time.now, and subtract the start time from the end time
nateberkopec has quit [Quit: Leaving...]
<Ox0dea> Yzguy: Very insightful. :P
<Yzguy> I think people get tripped up a little thinking about it, like you're writing code, there is probably a process to follow, but yeah it's that simple haha
<perturbation> can someone talk me off the ledge with frozen strings? Making all strings immutable by default seems... bad (worse string concatenation, needing a stringbuilder(?), lots of rewriting needed whenever mutate a string in old code, etc.)
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> Yzguy: For what it's worth, I think ibloodlust immediately understood what was going on in the code.
<perturbation> What are the advantages? Less memory usage / thread safety?
erbesharat has quit [Quit: erbesharat]
mghaig has joined #ruby
<Yzguy> I think so too. I was just in the same thing the other day. I just overthought it
<Ox0dea> perturbation: That's about the size of it.
<Ox0dea> It's just a small step toward embracing immutability.
<Ox0dea> But I don't think it's in line with the language's other tenets.
<perturbation> +1 to that
stamina has quit [Ping timeout: 250 seconds]
codecop has quit [Remote host closed the connection]
<Ox0dea> >> require 'fiddle'; class Object; def thaw; Fiddle::Pointer.new(__id__ * 2)[1] &= ~8; end end; s = 'foo'.freeze; s.thaw; s.frozen?
<ruboto> Ox0dea # => false (https://eval.in/468963)
<Ox0dea> perturbation: There's Object#thaw in case you ever need it. ^_^
<djellemah> Immutability is quite useful. But it's easy to take it too far. Look at Haskell, for example... :-p
nateberkopec has joined #ruby
<Ox0dea> Clojure's state model is the ideal, in my opinion.
Rollabunna has joined #ruby
<perturbation> lol 0x0dea 'def thaw; Fiddle::Pointer.new(__id__ * 2)[1] &= ~8; end' looks pretty scary to me
<perturbation> looks like programming C in Ruby >.>
NeverDie has quit [Quit: http://radiux.io/]
<Ox0dea> perturbation: That's... exactly what it is. :)
<Ox0dea> It's poking raw memory.
<Ox0dea> Specifically, it's unconditionally setting the 11th bit of the object's `flags` member (FL_FREEZE) to 0.
nofxx has quit []
fedexo has quit [Ping timeout: 240 seconds]
<Ox0dea> I made a diagram for reasons: https://eval.in/468965
<perturbation> hmm... well I know C but I haven't looked at the Fiddle module before... interesting
bMalum has quit [Quit: bMalum]
tildes has quit [Ping timeout: 276 seconds]
cornerma1 has joined #ruby
NeverDie has joined #ruby
FooMunki has quit [Quit: FooMunki]
Rollabunna has quit [Ping timeout: 272 seconds]
shlomo has quit [Quit: WeeChat 1.3]
mghaig has quit [Read error: Connection reset by peer]
cornerman has quit [Ping timeout: 240 seconds]
cornerma1 is now known as cornerman
mistermocha has joined #ruby
<Ox0dea> perturbation: It's pretty nifty. You can get up to all sorts of nasty tomfoolery.
TheHodge has quit [Quit: Connection closed for inactivity]
<Ox0dea> For instance, since every Symbol is actually backed by a frozen String, you can walk them, thaw them unconditionally, and append to them, and you'll have modified every Symbol.
<perturbation> thanks 0x0dea the diagram really helps explain... needed to look up Fixnum#~ to find out one's complement though heheh
<Ox0dea> *two's complement.
<Ox0dea> Oh, it is the one's complement.
otherj has joined #ruby
<perturbation> that's evil but kind of awesome
<Ox0dea> But yeah, it's the same as C's ~ operator.
tulak has joined #ruby
roxtrongo has quit [Remote host closed the connection]
<Ox0dea> I mistakenly thought there might be a difference since Ruby's integers can be arbitrarily large, but that's only true of Bignum, not Fixnum.
<Ox0dea> >> -1[9001]
<ruboto> Ox0dea # => 1 (https://eval.in/468966)
SCHAAP137 has quit [Ping timeout: 260 seconds]
tildes has joined #ruby
sanjayu has quit [Ping timeout: 260 seconds]
mistermocha has quit [Remote host closed the connection]
djbkd has quit [Quit: Leaving...]
unclouded has quit [Remote host closed the connection]
Channel6 has quit [Ping timeout: 272 seconds]
platzhirsch has quit [Ping timeout: 250 seconds]
diegoaguilar has joined #ruby
baweaver has joined #ruby
dviola has joined #ruby
Channel6 has joined #ruby
northfurr has quit [Quit: northfurr]
northfurr has joined #ruby
vF3hNGxc47h8 has quit [Ping timeout: 240 seconds]
tom_lowndes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iateadonut has quit [Quit: Leaving.]
tref has joined #ruby
tildes has quit [Ping timeout: 265 seconds]
chipotle has quit [Quit: cheerio]
karapetyan has joined #ruby
akem has joined #ruby
mikecmpbll has quit [Quit: ciao.]
CodingWolf has joined #ruby
makenoise has joined #ruby
Channel6 has quit [Quit: Leaving]
platzhirsch has joined #ruby
<Ox0dea> > The real problem with mobile devices is that they are composed of Satan.
devoldmx has joined #ruby
quazimodo has quit [Ping timeout: 240 seconds]
dbnoch has joined #ruby
devoldmx has quit [Ping timeout: 260 seconds]
_blizzy_ has quit [Read error: Connection reset by peer]
platzhirsch has quit [Ping timeout: 240 seconds]
colegatron has quit [Ping timeout: 244 seconds]
blue_deref has quit [Quit: bbn]
yoongkang has quit [Remote host closed the connection]
mercurius has joined #ruby
<ibloodlust> how do i make it so like for every second do something
<ibloodlust> in ruby
DEac- has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
otherj has quit [Quit: .]
<Ox0dea> ibloodlust: `foo while sleep 1`
<jhass> depends on the something
<Ox0dea> Does not.
<Yzguy> while true, do your stuff, sleep
<Papierkorb> ibloodlust: loo{ sleep1; do_something}
<Papierkorb> +p
<jhass> what if it takes half a second?
<Ox0dea> I think ibloodlust isn't doing anything terribly sensitive just yet.
Rickmasta has joined #ruby
user1138 has quit [Ping timeout: 260 seconds]
sinkensabe has quit [Remote host closed the connection]
m3_del has quit [Read error: Connection reset by peer]
sinkensabe has joined #ruby
m3_del has joined #ruby
rikkipitt has joined #ruby
<shevy> you are so mean to ibloodlust Ox0dea
<Ox0dea> You needn't've interpreted my comment so negatively.
<Ox0dea> What's wrong with supposing somebody just needs a simple sleep loop?
<shevy> but he doesn't want to do a simple sleep
<shevy> he wants to do something
dlitvak has quit [Remote host closed the connection]
sepp2k1 has joined #ruby
<Ox0dea> He wants to do something in a simple sleep loop.
veg_ has quit [Ping timeout: 276 seconds]
sepp2k has quit [Ping timeout: 264 seconds]
zotherstupidguy has quit [Quit: WeeChat 1.3]
sinkensabe has quit [Ping timeout: 260 seconds]
yardenbar has quit [Ping timeout: 255 seconds]
Jackneill has quit [Remote host closed the connection]
colegatron has joined #ruby
shredding has quit [Ping timeout: 250 seconds]
k3asd` has quit [Ping timeout: 240 seconds]
naftilos76 has quit [Ping timeout: 240 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
rikkipitt has quit [Quit: Leaving...]
_stu_ has quit [Quit: _stu_]
chipotle has joined #ruby
VeryBewitching has joined #ruby
<VeryBewitching> G'day folks.
karapetyan has quit [Remote host closed the connection]
framlinqp is now known as framling
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
benlieb has joined #ruby
karapetyan has joined #ruby
chipotle has quit [Ping timeout: 240 seconds]
tref has quit [Quit: tref]
Darkchaos has joined #ruby
_stu_ has joined #ruby
<Darkchaos> Hey Guys, I have the following question: I start out with template engines and sinatra. I am curious: Is there something to have multiple "styles" as something between the templates? And/Or is there something prebuilt to have a simple page with login and a sidebar on mobile devices?
sinkensabe has joined #ruby
tref has joined #ruby
perturbation has quit [Quit: Leaving]
_blizzy_ has joined #ruby
<BraddPitt> has anyone read Ruby Under a Microscope and would you recommend it for learning low level implementation of Ruby, or some other resource (free or paid)
nateberkopec has quit [Quit: Leaving...]
rakm has joined #ruby
adac has quit [Ping timeout: 250 seconds]
roxtrongo has joined #ruby
molay has quit [Quit: Leaving]
mercurius has quit [Ping timeout: 250 seconds]
platzhirsch has joined #ruby
Oog has joined #ruby
Pupp3tm4st3r has joined #ruby
htmldrum has joined #ruby
roxtrongo has quit [Ping timeout: 240 seconds]
Rollabunna has joined #ruby
moeabdol has quit [Read error: Connection reset by peer]
Oog has quit []
Pupp3tm4st3r has quit [Remote host closed the connection]
felixr has joined #ruby
lokulin has quit [Changing host]
lokulin has joined #ruby
moeabdol has joined #ruby
SCHAAP137 has joined #ruby
chipotle has joined #ruby
aibot has quit [Remote host closed the connection]
felixr has quit [Quit: Konversation terminated!]
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
NeverDie has quit [Quit: http://radiux.io/]
sepp2k1 has quit [Read error: Connection reset by peer]
last_staff has quit [Quit: last_staff]
kirun has quit [Remote host closed the connection]
fantazo has quit [Quit: Verlassend]
Darkchaos has quit [Quit: Page closed]
Yzguy has quit [Quit: Zzz...]
dn5 has joined #ruby
<dn5> Hi all :>
<ibloodlust> damnit sleep isnt working
<ibloodlust> it just gives my application a blank screen
<jhass> ?answers
<ruboto> How to ask the right questions to get you the right answer: https://www.mikeash.com/getting_answers.html
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
m3_del has quit [Remote host closed the connection]
m3_del has joined #ruby
<Ox0dea> BraddPitt: Yes, RUaM is quite good, as are most of ko1's talks on KRI internals.
bruce_lee has quit [Read error: Connection reset by peer]
<Ox0dea> Hey, dn5!
<Radar> jhass: what's this news about openssl and ruby 2.2.3?
makenoise has quit [Remote host closed the connection]
<jhass> Radar: debian stopped bulding SSLv3 support and that apparently landed in ubuntu 15.10
<Radar> #lol
<jhass> yep
<jhass> will be in 2.3, but backported nowhere
<Radar> I reckon ruby-install will have a patch for this soon enough
<jhass> applies cleanly on at least 2.2.3 though
makenoise has joined #ruby
<jhass> so ruby-install -p ^ url works
<Radar> If I see anyone complaining about that then at least I have that noted down
makenoise has quit [Remote host closed the connection]
makenoise has joined #ruby
makenoise has quit [Client Quit]
ycyclist has joined #ruby
<jhass> had somebody complaining in #RubyOnRails following one of your guides, which is why I pinged you
<Radar> ah
<ycyclist> I forgot what the term is for the methods that display internals values.
leafybasil has joined #ruby
<ycyclist> Or perhaps the activity of seeing these values.
<ycyclist> I think it's a recent CSci term, but it may just be used in Ruby for all I know.
<Ox0dea> ycyclist: ?
<Ox0dea> Introspection?
quazimodo has joined #ruby
<Ox0dea> Reflection?
m3_del has quit [Ping timeout: 244 seconds]
<ycyclist> Either of those could be it.
zotherstupidguy has joined #ruby
<Ox0dea> Asking a program about itself is hardly a new trick.
Z00t has quit [Ping timeout: 272 seconds]
parus_ is now known as parus
<ycyclist> Yes, but it's a term I waant to use correctly: https://en.wikipedia.org/wiki/Reflection_(computer_programming)
<ycyclist> Thanks.
aevitas has quit [Remote host closed the connection]
TheNet has quit [Ping timeout: 240 seconds]
k3asd` has joined #ruby
NeverDie has joined #ruby
northfurr has quit [Quit: northfurr]
rgtk has quit [Remote host closed the connection]
dn5 has quit [Ping timeout: 240 seconds]
<ibloodlust> do anyone here know how to use gosu?I can't figure out how to make a delay between frames
czsr has quit [Quit: WeeChat 0.4.2]
dn5 has joined #ruby
<shevy> lol
<shevy> so fake
diegoaguilar has quit [Ping timeout: 250 seconds]
framling has quit [Remote host closed the connection]
chipotle has quit [Quit: cheerio]
htmldrum has quit [Ping timeout: 264 seconds]
lukaszes has joined #ruby
recurrence has joined #ruby
TomPeed has joined #ruby
recurrence has quit [Client Quit]
SCHAAP137 has quit [Quit: Leaving]
<quazimodo> morn
tulak has quit [Remote host closed the connection]
tulak has joined #ruby
htmldrum has joined #ruby
chipotle has joined #ruby
quazimodo has quit [Ping timeout: 250 seconds]
symm- has quit [Ping timeout: 240 seconds]
user1138 has joined #ruby
Fire-Dragon-DoL has joined #ruby
<havenwood> good mornin'
<UNIMPL> Bah.
rgtk has joined #ruby
<havenwood> Bah.humbug
<UNIMPL> Not yet, havenwood.
opensource_ninja has joined #ruby
diegoaguilar has joined #ruby
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jamesaxl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<cyb3rspy> exit
cyb3rspy has quit [Quit: leaving]
dn5 has quit [Ping timeout: 240 seconds]
Oli has joined #ruby
Oli is now known as Guest23092
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blue_deref has joined #ruby
roxtrongo has joined #ruby
quazimodo has joined #ruby
mesamoo has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
user1138 has quit [Remote host closed the connection]
mghaig has joined #ruby
TheHodge has joined #ruby
roxtrongo has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby
dn5 has joined #ruby
<ihme-TTilus> ibloodlust: what do you mean by "defaly between frames"?
<ibloodlust> like a time delay, to control the animation speed
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ihme-TTilus> ibloodlust: just draw same image several times
<Ox0dea> Nah, don't do that.
dbnoch has quit [Read error: Connection reset by peer]
aevitas has joined #ruby
<ihme-TTilus> or skip drawing?
CloCkWeRX has joined #ruby
CloCkWeRX has left #ruby [#ruby]
<shevy> ibloodlust loop itself is a keyword by the way, don't use keywords as arguments; same reason such as: def foo(class = 'bar')
<Ox0dea> ihme-TTilus: A very simple approach would be to incremement a @tick variable in #update, and the only actually do the drawing in #draw if @tick % 60 == 0.
<Ox0dea> ibloodlust: ^
<Ox0dea> Sorry, ihme-TTilus.
tkuchiki has quit [Ping timeout: 240 seconds]
<Ox0dea> *and then only
<Ox0dea> shevy: #loop is not a keyword.
<Ox0dea> >> method :loop
<ruboto> Ox0dea # => #<Method: Object(Kernel)#loop> (https://eval.in/468995)
dn5 has quit [Ping timeout: 264 seconds]
<ihme-TTilus> say, you have frames [1, 2, 3] and animation array [1, :skip, :skip, :skip, 2, 3] to make frame 1 to last for 4 ticks
benlieb has quit [Quit: benlieb]
<shevy> Ox0dea that is distressing
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> shevy: Why?
<Ox0dea> ihme-TTilus: Easier just to let a ticker modulate FPS, no?
<shevy> because you can write code such as: loop { # more loops }
<Ox0dea> Onoes?
<shevy> yes, stop encouraging code like that
<Ox0dea> The fuck're you talking about?
<Ox0dea> #loop is sometimes the Right Tool, and it's not like you can't `break` out.
<shevy> Onoes?
<ihme-TTilus> Ox0dea: well, definitely so, if you have modulation rules that are more easier to state as such than as "frame mapping table"
aevitas has quit [Ping timeout: 252 seconds]
leitz has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
<ihme-TTilus> Ox0dea: in practical cases you approach is prolly clearest
<Ox0dea> ihme-TTilus: Sure, if ibloodlust has lots of different objects whose animation speeds need coordinated, he'll have to do some architecting.
exadeci has joined #ruby
devoldmx has joined #ruby
user1138 has joined #ruby
Rickmasta has joined #ruby
dviola has quit [Quit: WeeChat 1.3]
<Ox0dea> I actually get to blame Canada for making one of my tests fail unexpectedly: http://www.fileformat.info/info/unicode/char/1558/index.htm
diegoaguilar has joined #ruby
zeroDivisible has quit [Quit: WeeChat 1.3]
mghaig has quit [Ping timeout: 272 seconds]
zeroDivisible has joined #ruby
rgrmatt has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
symm- has joined #ruby
cdg has quit [Remote host closed the connection]
<ihme-TTilus> poor Ox0dea, naughty foo :D
ihme-TTilus is now known as TTilus
zotherstupidguy has quit [Quit: WeeChat 1.3]
dlitvak has joined #ruby
TomPeed has joined #ruby
m3_del has joined #ruby
AustinMatherne has quit [Remote host closed the connection]
dn5 has joined #ruby
tref has quit [Quit: tref]
AustinMatherne has joined #ruby
<Ox0dea> TTilus: I singled out Canada, but there are at least two other syllabaries that use "foo"; is nothing sacred?!
dn5 has quit [Ping timeout: 240 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jdawgaz has joined #ruby
atomical has quit [Read error: Connection reset by peer]
<leitz> Using antiquated Ruby (1,8.7), can you insert modules and remove modules as your program runs?
bruno-_ has quit [Ping timeout: 255 seconds]
Success has joined #ruby
d5sx43 has joined #ruby
zotherstupidguy has joined #ruby
PaulCape_ has quit [Quit: .]
northfurr has joined #ruby
fedexo has joined #ruby
ibloodlust has quit [Quit: Page closed]
PaulCapestany has joined #ruby
rehat_ has quit [Ping timeout: 265 seconds]
<Success> is there a way i can pas --no-check-certificates or something of the sort to ruby (or globally set it)
_stu_ has quit [Quit: _stu_]
d5sx43 has quit []
Xeago has joined #ruby
<jhass> Success: luckily not
wildlander has quit [Quit: Saliendo]
<shevy> hehe
<Success> eh well the thing is I'm trying to "ruby configure" for rubinius and I'm getting lots of "ERROR: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed"
<Success> I already tried the copy cert thing
<TTilus> leitz: insert modules as in dynamically loading stuff? yes
x-light has quit [Ping timeout: 264 seconds]
nothing_ has joined #ruby
patdohere has joined #ruby
nothing_ has left #ruby [#ruby]
<Ox0dea> TTilus: I think it's the removal with which leitz is having trouble.
Sam0163141155 has joined #ruby
<TTilus> thats the tricky part
* leitz is having lots of trouble. Have been out for a bit.
<leitz> Lemme post the theory I'm working on.
<havenwood> Success: It's gem installs that are failing?
<Ox0dea> TTilus: Fiddle to the rescue! https://eval.in/468157
zeroDivisible has quit [Quit: WeeChat 1.3]
<Ox0dea> 1.8.7 doesn't have Fiddle, though, and I don't know the DL module.
zeroDivisible has joined #ruby
<Success> havenwood: particularly "Fetching gem..." then failures
<havenwood> Success: Try the release tarball that already has the gems: http://releases.rubini.us/rubinius-2.5.8.tar.bz2
htmldrum has quit [Ping timeout: 240 seconds]
eminencehc has joined #ruby
<jhass> Success: also make sure you got the latest rubygems
<havenwood> Success: bundle install --local && ./configure && rake build
<leitz> I'm still working on understanding OOP, classes, modules, etc. This is one area I quickly get confused in.
<Ox0dea> This is just the saddest thing: http://i.imgur.com/7YwsSee.png
mloy has quit [Ping timeout: 246 seconds]
Xeago has quit [Remote host closed the connection]
<havenwood> Ox0dea: ouch...
dlitvak_ has joined #ruby
<Ox0dea> leitz: Well, why do you think you'll need/want to dynamically remove inclusions?
<Ox0dea> Also, why are you stuck on 1.8.7 for what appears to be a game?
IrishGringo has joined #ruby
<leitz> Ox0dea, the names of the attributes for each career module like Marine and Pirate will remain the same. The vaules will change and I want to ensure the old is gone as not all Careers have all attributes.
djbkd has joined #ruby
dn5 has joined #ruby
Oli` has joined #ruby
<leitz> And my dayjob requires 1.8.7, so I use the game as a fun way to learn ruby.
dlitvak has quit [Ping timeout: 264 seconds]
<Ox0dea> leitz: Sounds like you might want OpenStruct.
trosborn has joined #ruby
<Ox0dea> Or else Marine and Pirate could subclass something like MaritimeCareer.
Guest23092 has quit [Ping timeout: 246 seconds]
user1138 has quit [Remote host closed the connection]
<leitz> Yeah, I was playing with OpenStruct a couple months ago but lost track of where I was. I've been wanting to refactor the game stuff to use more OO since I tend to just use hashes and JSON.
allcentu1 has joined #ruby