« Back to channel list

#ruby - 15 November 2015

« Back 1 day Forward 1 day »
[00:00:03] Ox0dea: guacjack: "Death!"
[00:00:30] jhass: trying to run after the most hyped language is stupid IMO, instead sharpen your skills of adopting things quickly
[00:00:54] dn5: has joined #ruby
[00:01:02] jhass: and the best way to do that is to lurk into as many things as possible, being interested in them making that easier
[00:01:02] Ox0dea: JavaScript is a different sort of hype, though; the browser *is* immortal.
[00:01:55] jhass: but is JS in the browser, given efforts like web assembly or whatever it was?
[00:02:07] 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.
[00:02:18] socialjackie: has joined #ruby
[00:02:18] towski_: has joined #ruby
[00:02:30] Ox0dea: jhass: WASM is essentially a "backend" for JS, so to speak.
[00:03:02] jhass: which can allow new frontends which aren't JS
[00:03:12] Ox0dea: Fair enough, but the likelihood is vanishingly slim.
[00:03:27] VeryBewitching: Also, consider that Java/ECMAScript evolved through a relationship with an event-driven DOM.
[00:03:42] jhass: I think the likelihood for new frontends is quite high, should WASM turn out usable that is
[00:03:51] VeryBewitching: On the back end, yes you can do things with it, but I feel JavaScript is stretched beyond it's purpose.
[00:03:57] cashnguns: has joined #ruby
[00:04:00] jhass: JS ever being unsupported is unlikely though, granted
[00:04:17] Ox0dea: VeryBewitching: Could you elaborate?
[00:04:34] jhass: but look at the immense efforts people go through to make something "better" on top of JS today
[00:04:39] tubuliferous_: has joined #ruby
[00:05:02] Ox0dea: "The Good Parts" would be a much thicker book today.
[00:05:19] djbkd: has joined #ruby
[00:05:37] solocshaw: has joined #ruby
[00:06:21] 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.
[00:06:22] jdawgaz: has joined #ruby
[00:06:33] Ox0dea: VeryBewitching: I stopped reading at your parenthetical.
[00:06:37] Ox0dea: >> Time.now.year
[00:06:38] ruboto: Ox0dea # => 2015 (https://eval.in/468810)
[00:07:07] dn5: has joined #ruby
[00:07:47] Ox0dea: Today is simply not yesterday.
[00:08:03] VeryBewitching: Evolution didn't just happen now.
[00:08:23] Ox0dea: But it did happen.
[00:08:45] VeryBewitching: Yes; it's what evolved into what I find unnerving.
[00:08:57] VeryBewitching: Maybe it's the culture of JS that rubs me the wrong way.
[00:09:20] Ox0dea: GSD not your cuppa?
[00:09:44] 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)
[00:10:14] jhass: it's always nice hear brandon talk about how JS was created btw https://www.youtube.com/watch?v=83_rC1FesOI
[00:10:19] Ox0dea: shevy: Prawn.methods.grep(/=$/)
[00:11:07] jhass: er, right, my bad
[00:11:14] Ox0dea: Muphry's Law strikes without mercy.
[00:11:33] Ox0dea: That was a really good conference, by the way.
[00:11:56] jhass: yeah, lot's of high quality talks
[00:12:13] Ox0dea: Aye, that's how I meant.
[00:12:47] Yzguy: has joined #ruby
[00:13:02] shevy: I just found Prawn.taguri= that way
[00:14:20] Ox0dea: That could really use an underscore; I thought it might've been a Japanese word, but it's apparently Filipino/Tagalog.
[00:14:30] chipotle: has joined #ruby
[00:19:01] unknowns2k2: has joined #ruby
[00:19:33] rgrmatt: has joined #ruby
[00:20:57] trosborn: has joined #ruby
[00:21:33] Scripore: has joined #ruby
[00:23:01] solocshaw: has joined #ruby
[00:24:59] huzzah: has joined #ruby
[00:26:12] _blizzy_: huh, til ruby has structs.
[00:26:34] solocshaw: has joined #ruby
[00:26:39] |ifei5g00d: has joined #ruby
[00:26:58] shevy: it has! although for some strange reason, I don't seem to need them
[00:28:10] Ox0dea: shevy: You've never written a bunch of `@foo = foo` in an initializer?
[00:28:41] rgrmatt: has joined #ruby
[00:28:51] teemo_shrooms: has joined #ruby
[00:29:08] Ox0dea: >> Card = Struct.new(:rank, :suit) { def ace?; rank == ?A end }; Card.new(?K, ?D).ace? # _blizzy_
[00:29:09] ruboto: Ox0dea # => false (https://eval.in/468812)
[00:29:11] predator217: has joined #ruby
[00:29:19] Ox0dea: You can feed Struct.new a block and create a full-blown class.
[00:29:40] Ox0dea: You essentially get `attr_accessor` called on all the members, but sometimes you want that.
[00:30:07] _blizzy_: Ox0dea, what does ? do?
[00:30:13] Ox0dea: >> ?c == 'c' # _blizzy_
[00:30:13] shevy: Ox0dea I tend to use methods when I assing to @vars usually
[00:30:14] ruboto: Ox0dea # => true (https://eval.in/468813)
[00:30:27] Ox0dea: shevy: Naughty, naughty.
[00:30:33] _blizzy_: oh ok, it turns it into a string.
[00:30:47] shevy: I meant to write "assigning"
[00:30:58] shevy: or perhaps assign
[00:31:09] _blizzy_: it's ok, we all make mistakes.
[00:31:10] shevy: my mind could not make up its mind
[00:31:37] Ox0dea: shevy: I understood you, and my admonishment stands.
[00:31:43] Ox0dea: (But not really.)
[00:31:58] Ox0dea: Some people think it's bad to put code in initializers, but they're stupid and dumb.
[00:32:29] socialjackie: has joined #ruby
[00:33:03] shevy: I found that I have to think less when I just use methods
[00:33:13] Ox0dea: Encapsulation is for humans.
[00:33:49] hkumar: has joined #ruby
[00:33:57] shevy: I once toyed with the idea of writing a MUD in ruby where all the various things like the objects, would be structs
[00:34:12] Ox0dea: It's not a terrible way to do it.
[00:34:33] Ox0dea: Entity all the things!
[00:35:16] shevy: >> require 'ostruct'; sword = OpenStruct.new; sword.length = 155; sword.length
[00:35:18] ruboto: shevy # => 155 (https://eval.in/468814)
[00:35:23] shevy: I don't remember why I gave up on that
[00:35:26] Ox0dea: You've gone too far.
[00:35:29] _blizzy_: why does this this equal 4712
[00:35:37] _blizzy_: >> require 'date'; Date.new
[00:35:38] ruboto: _blizzy_ # => #<Date: -4712-01-01 ((0j,0s,0n),+0s,2299161j)> (https://eval.in/468815)
[00:35:50] _blizzy_: like, why is the year -4712.
[00:36:17] solocshaw: has joined #ruby
[00:36:48] Ox0dea: It's explicitly defined that way, but I don't yet know why.
[00:37:23] _blizzy_: oh, and I just realized this. strptime = strip time
[00:37:32] _blizzy_: as in strip the time from a string. how did I not know that. :/
[00:37:42] mary5030: has joined #ruby
[00:38:11] shevy: I did not know that either
[00:38:22] Ox0dea: _blizzy_: I believe the 'p' in "strptime" is for "parse".
[00:38:23] shevy: there is strftime though
[00:38:29] Ox0dea: Where the 'f' is for "format".
[00:38:49] shevy: would have made a good mnenomic for _blizzy_
[00:39:01] Ox0dea: Did you mean a bad one?
[00:39:32] _blizzy_: Ox0dea, oh ok, then I was wrong. good guess, lol.
[00:39:46] Ox0dea: _blizzy_: What made you so certain, if you don't mind my asking?
[00:40:04] _blizzy_: Ox0dea, IDK. it was a strong guess.
[00:40:18] Ox0dea: But it wasn't?
[00:40:25] benlieb: has joined #ruby
[00:40:28] _blizzy_: like today I learned the difference between sync and async in node.
[00:41:03] charliesome_: has joined #ruby
[00:41:04] rickmasta: has joined #ruby
[00:41:41] tkuchiki: has joined #ruby
[00:42:15] Ox0dea: > The Julian Period is a chronological interval of 7980 years beginning 4713 BC.
[00:42:28] solocshaw: has joined #ruby
[00:42:32] Ox0dea: Ruby represents 4713 as -4712 for whatever reason.
[00:43:00] shevy: it was the beginning of the world after all
[00:43:14] Ox0dea: shevy: Stop that.
[00:43:20] Ox0dea: >> require 'date'; Date.new.julian? # _blizzy_
[00:43:21] ruboto: Ox0dea # => true (https://eval.in/468817)
[00:43:55] _blizzy_: ruby has a lot of weird methods.
[00:44:41] _blizzy_: ok so strftime formats a date/time into a certain format, and strptime parses a string and turns it into a date/time
[00:47:22] shevy: _blizzy_ many methods make a lot of sense
[00:47:27] shevy: str*something is indeed weird
[00:47:40] shevy: C heritage perhaps like sprintf
[00:48:00] _blizzy_: wow, ruby has a method for every day of the week
[00:48:37] _blizzy_: >> require 'date'; DateTime.now.saturday?
[00:48:38] ruboto: _blizzy_ # => false (https://eval.in/468819)
[00:48:56] _blizzy_: guess it must not be saturday where the bot lives.
[00:49:35] CloCkWeRX: has joined #ruby
[00:50:45] _blizzy_: OH, strptime = string parse time, strftime = string format time.
[00:51:09] shevy: >> require 'date'; DateTime.now.sunday?
[00:51:11] ruboto: shevy # => true (https://eval.in/468822)
[00:51:21] shevy: it's sunday here as well! you are living in the past _blizzy_
[00:51:32] _blizzy_: lol. I guess I'm a time traveler.
[00:52:24] Sam0163141155: has joined #ruby
[00:54:07] shevy: how many times can you use the word 'cop' in ruby code:
[00:54:08] shevy: https://github.com/bbatsov/rubocop/commit/bcab75c5c549c1fa7fb7e74f0c4ff0411337775a#diff-aaa82a90d90f9a0d9c9c4048a224fde2L69
[00:54:18] Ox0dea: >> Time.new.zone # _blizzy_
[00:54:19] ruboto: Ox0dea # => "UTC" (https://eval.in/468823)
[00:54:27] NeverDie: has joined #ruby
[00:54:39] _blizzy_: shevy, 93 times on that webpage, wow.
[00:54:44] pimpin: has joined #ruby
[00:55:41] Ox0dea: ~ $ rubocop thing.rb 2> /dev/null | tail -1
[00:55:43] Ox0dea: 1 file inspected, 139 offenses detected
[00:55:52] shevy: rubocop is cool because of auto-corrections
[00:56:06] shevy: I hope it gets improved, then I can rescue a project from 2005 with really strangely written code
[00:56:46] Ox0dea: > 1 file inspected, 416 offenses detected, 396 offenses corrected
[00:56:48] lapidary: has joined #ruby
[00:57:03] shevy: you write bad code!
[00:57:09] _blizzy_: so Time only has the strftime method, DateTime and Date have strptime and strftime.
[00:57:33] Ox0dea: shevy: RuboCop broke it!
[00:57:50] _blizzy_: am I right or wrong?
[00:59:04] _blizzy_: also, 21 files inspected, 742 offenses detected
[00:59:47] leifg: has joined #ruby
[01:00:04] _blizzy_: most of them are 'tab detected'
[01:00:08] jhass: _blizzy_: sounds like you have some time of configuring rubocop ahead of you :P
[01:00:09] shevy: well, it has a narrow definition according to the specification it applies
[01:00:32] Ox0dea: _blizzy_: http://i.imgur.com/Ufbr5ej.gif
[01:01:04] _blizzy_: Ox0dea, well, according to my terminal, most of them seem to be tab issues.
[01:01:08] 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.
[01:01:12] _blizzy_: so i'm probably wrong.
[01:02:26] shevy: "Inspecting 213 files"
[01:02:31] shevy: _blizzy_ ^^^ this won't be pretty
[01:02:33] Ox0dea: _blizzy_: Are you using some crazy editor?
[01:02:49] _blizzy_: Ox0dea, sublime.
[01:02:55] _blizzy_: but then I realized I have tabs on. :/
[01:03:11] IrishGringo: has joined #ruby
[01:04:29] shevy: 213 files inspected, 8262 offenses detected
[01:04:45] shevy: "Use alias_method instead of alias."
[01:05:04] shevy: "Use && instead of and."
[01:05:05] yoongkang: has joined #ruby
[01:05:19] _blizzy_: well, that answered a question I was going to ask later.
[01:05:23] shevy: "Do not suppress exceptions."
[01:05:34] shevy: "Wipe after going to toilet."
[01:05:57] shevy: actually this one is a good one:
[01:05:58] shevy: "Trailing whitespace detected."
[01:06:00] symm-: has joined #ruby
[01:06:10] shevy: I can chop away whitespaces like that
[01:06:37] jhass: a good editor does that on save
[01:06:50] tubuliferous_: has joined #ruby
[01:06:51] shevy: no, I had a line like this
[01:07:09] Ox0dea: autocmd BufWritePre * %s/\s\+$//e
[01:07:58] shevy: "Place when conditions with a splat at the end of the when branches."
[01:08:03] raz: has left #ruby: ("*fump*")
[01:08:44] shevy: is that explained?
[01:09:06] Ox0dea: http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Performance/CaseWhenSplat
[01:09:36] shevy: curious...
[01:09:57] Ox0dea: shevy: Where'd that 213 come from?
[01:10:15] shevy: all the code!
[01:10:28] _blizzy_: shevy, run 'rubocop --auto-correct'
[01:10:35] _blizzy_: and see how many it corrects for you.
[01:10:40] Ox0dea: shevy: Which code?
[01:10:43] 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."
[01:11:12] 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
[01:11:26] asianMike: has joined #ruby
[01:11:41] shevy: I am confused now ... is when *foo,'bar' worse or better than when 'bar',*foo now?
[01:11:42] _blizzy_: knocked it down to 254 offenses
[01:11:49] tulak: has joined #ruby
[01:12:02] _blizzy_: Im gonna make my code 100% rubocop approved.
[01:12:07] _blizzy_: ....this is going to be a long night.
[01:12:13] Ox0dea: _blizzy_: What's the point?
[01:12:20] _blizzy_: Ox0dea, satification.
[01:12:21] shevy: what are the offenses rubocop tells you?
[01:12:29] Ox0dea: _blizzy_: Whose satisfaction?
[01:12:43] _blizzy_: lib/plugins.rb:3:1: C: Missing top-level module documentation comment.
[01:13:00] 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]"
[01:13:11] shevy: aha you got lazy and did not document it!
[01:13:26] shevy: add: "Shut up rubocop."
[01:14:29] gvaughn: has joined #ruby
[01:14:55] _blizzy_: lib/commands.rb:121:3: C: Perceived complexity for dice is too high. [9/7]
[01:16:13] _blizzy_: hmm, seems like it changed all my _ to _foobar.
[01:16:39] nateberkopec: has joined #ruby
[01:18:03] _blizzy_: I was going to leaqrn some more java tonight, but I guess my bot may be more important.
[01:18:46] longfeet: has joined #ruby
[01:19:56] KillerFox: has joined #ruby
[01:20:10] rgtk: has joined #ruby
[01:21:46] bruno-: has joined #ruby
[01:22:36] ekinmur: has joined #ruby
[01:23:13] bruce_lee: has joined #ruby
[01:23:43] ruid: has joined #ruby
[01:26:08] chipotle: has joined #ruby
[01:26:51] Ox0dea: > 1704 files inspected, 58430 offenses detected
[01:28:41] roxtrongo: has joined #ruby
[01:29:16] minimalism: has joined #ruby
[01:29:33] Ox0dea: _blizzy_: Not mine. :P
[01:29:48] _blizzy_: oh ok. that's good.
[01:29:51] Ox0dea: $ gem unpack `curl -s https://rubygems.org/profiles/shevy | grep -o '/gems/\w\+' | cut -d/ -f3` && rubocop .
[01:29:54] Ox0dea: I got curious.
[01:31:18] tkuchiki: has joined #ruby
[01:32:43] Kedare: has joined #ruby
[01:33:14] tkuchiki: has joined #ruby
[01:34:03] hololeap: has joined #ruby
[01:34:48] solocshaw1: has joined #ruby
[01:38:20] mattwildig: has joined #ruby
[01:39:04] framling: has joined #ruby
[01:39:13] asianMike: has joined #ruby
[01:40:41] htmldrum: has joined #ruby
[01:41:40] skcin7: has joined #ruby
[01:41:56] Yzguy: has joined #ruby
[01:50:30] shevy: you have way too much spare time
[01:52:25] Ox0dea: But I made the machine do it!
[01:52:45] arescorpio: has joined #ruby
[01:52:46] Ox0dea: You have way too much unintentionally crazy code.
[01:54:00] jhass: Ox0dea: that surprises you?
[01:55:28] Ox0dea: On the bright side, multimedia_paradise seems to have uncovered a bug in RuboCop.
[01:57:01] shevy: my code can crash everything
[01:57:16] jhass: you stole that statement from hanmac
[01:57:39] Ox0dea: shevy: Y U NO FILE ISSUE?
[01:58:08] shevy: I file lots of issues!
[01:58:17] shevy: though usually for things such as ruby-gnome
[01:58:57] benlieb: has joined #ruby
[01:59:54] shevy: hanmac discovers the real bugs actually
[02:00:04] shevy: that's why nobu likes him so much
[02:00:50] symm-: has joined #ruby
[02:01:04] griffindy: has joined #ruby
[02:05:40] ruid: whats the problem here: blah = 5; a = {bl-ah: 5}
[02:05:59] ruid: even a = {:bl-ah=>blah} gives me grief
[02:06:56] shevy: yes this is not good
[02:07:07] ruid: can symbols not have '-' in them?
[02:07:11] shevy: >> :"bl-ah"
[02:07:12] ruboto: shevy # => :"bl-ah" (https://eval.in/468833)
[02:07:16] shevy: >> :bl-ah
[02:07:17] ruboto: shevy # => undefined local variable or method `ah' for main:Object (NameError) ...check link for more (https://eval.in/468834)
[02:07:28] shevy: you have to add quotes there
[02:07:46] Tref: has joined #ruby
[02:08:29] Ox0dea: ruid: Coming from Lisp?
[02:08:56] karapetyan: has joined #ruby
[02:09:18] ruid: Ox0dea, no
[02:09:27] ruid: btw... that nick is a real pita :)
[02:09:44] ruid: The OH x really threw me
[02:09:50] shevy: it's a total nick disaster
[02:09:58] shevy: it should have been 0x0dea
[02:10:07] ruid: or 0xOidea
[02:10:12] shevy: or The Great Ox
[02:10:13] ruid: but that wouldnt make much sense in english
[02:10:25] shevy: zero idea!
[02:10:34] ruid: anywho.... this limitation is really annoying
[02:10:40] Ox0dea: ruid: It's not the end of the world.
[02:10:43] shevy: yes, Ox0dea complains about this every day :)
[02:10:48] ruid: yeah... OH_idea doesnt make much sense
[02:10:49] Ox0dea: > every day
[02:10:57] Ox0dea: Where are you getting "idea"?
[02:11:15] Ox0dea: It's pronounced "ox-oh-dee-uh".
[02:11:16] ruid: fuck if I know
[02:11:24] ruid: probably should keep it clean
[02:12:02] shevy: larry also did a non-hobbit perl talk? https://www.youtube.com/watch?v=kwxHXgiLsFE
[02:12:13] ruid: im actually coming from C
[02:12:15] ruid: and some JS
[02:12:42] ruid: but anyway... how can i strip the "" from the key when do something like a.collect {|k,v|....}
[02:12:43] Ox0dea: ruid: Well, you can't use hyphens in identifiers in either of those languages, so why you are so keen?
[02:13:03] Ox0dea: Are you sure you have "" in your keys?
[02:13:07] ruid: well... I can use '-' as a struct member in C
[02:14:02] ruid: actually looks like it is fine
[02:14:06] molay: has joined #ruby
[02:14:26] shevy: >> :"bl-ah".class
[02:14:27] ruboto: shevy # => Symbol (https://eval.in/468835)
[02:14:34] shevy: it's a symbol even though it looks like a String!
[02:15:20] Ox0dea: ruid: Could you explain why you said that about being able to name struct members '-'?
[02:15:26] 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?
[02:15:30] ruid: Ox0dea, it is perfectly fine to name a struct memeber "abc-123" in C
[02:15:41] Ox0dea: ruid: What are you on about?
[02:15:52] ruid: struct blah { int abc-123; }
[02:15:57] ruid: that's fine
[02:16:03] shevy: aaaah larry uses vim!
[02:16:04] Ox0dea: You must be pretending to be retarded.
[02:16:44] Ox0dea: ruid: What even makes you say something like that?
[02:17:02] giuseppesolinas: has joined #ruby
[02:17:06] giuseppesolinas_: has joined #ruby
[02:17:37] ruid: Ox0dea, oh... im wrong
[02:17:38] huzzah: has joined #ruby
[02:17:54] Ox0dea: But... how did that happen?
[02:17:54] shevy: one of the more hilarious Ox comments
[02:18:06] sankaber: has joined #ruby
[02:18:14] Ox0dea: How did you come to hold such a ridiculous belief with such conviction?
[02:18:37] Ox0dea: >> 0xbaff1ed
[02:18:38] gambl0re: has joined #ruby
[02:18:39] ruboto: Ox0dea # => 196080109 (https://eval.in/468838)
[02:18:50] ruid: tired and drinking?
[02:19:03] cdg_: has joined #ruby
[02:19:04] shevy: you were scraping on stackoverflow for the impossibles
[02:20:08] dorei: has joined #ruby
[02:22:06] Ox0dea: shevy: https://eval.in/468839
[02:22:21] Ox0dea: That's enough to make RuboCop die the same way your multimedia_paradise made it do.
[02:22:30] Ox0dea: So you're absolved, and RuboCop a shit.
[02:23:07] skcin7: has joined #ruby
[02:24:10] bruno-: has joined #ruby
[02:25:32] rgrmatt: has joined #ruby
[02:26:22] shevy: looooook larry goes ruby: http://i.imgur.com/BDX4oF7.png
[02:26:41] shevy: Ox0dea lol
[02:26:53] shevy: you have too much time, you need to write a game in ruby Ox0dea
[02:29:29] millerti: has joined #ruby
[02:30:26] rickmasta: has joined #ruby
[02:30:51] Ox0dea: I do, don't I?
[02:31:19] Ox0dea: There aren't near enough platformer RPGs.
[02:31:23] kstuart_: has joined #ruby
[02:31:38] DrShoggoth: has joined #ruby
[02:33:36] shevy: modern games are weird
[02:33:54] tkuchiki: has joined #ruby
[02:34:28] Ox0dea: I don't like them.
[02:34:50] socialjackie: has joined #ruby
[02:36:10] 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
[02:36:31] jhass: molay: but to answer the question, just :created_at => Time.now should be fine
[02:37:12] morf: has joined #ruby
[02:37:18] sdwrage: has joined #ruby
[02:39:27] shevy: http://jmoiron.net/blog/for-better-or-for-worse/
[02:39:40] 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."
[02:41:22] Ox0dea: That Gophers use the empty interface all over the place means that part of the spec is likely "wrong".
[02:43:18] vigintas: has joined #ruby
[02:45:28] iateadonut: has joined #ruby
[02:45:29] Inoperable: has joined #ruby
[02:45:30] Oog: has joined #ruby
[02:49:58] yoongkang: has joined #ruby
[02:50:48] pimpin: has joined #ruby
[02:51:30] JammyHammy: has joined #ruby
[02:52:17] shevy: I hate bugs
[02:52:44] simplyianm: has joined #ruby
[02:54:38] mary5030: has joined #ruby
[02:54:54] 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.
[02:57:08] jhass: that implies darkness travels, but does it?
[02:57:42] rickmasta: has joined #ruby
[03:00:33] SteveC: has joined #ruby
[03:01:32] sdwrage: has joined #ruby
[03:02:39] Ox0dea: I could try to give you a /r/shittyaskscience answer.
[03:03:16] Coldblackice: has joined #ruby
[03:03:25] MyMind: has joined #ruby
[03:04:25] Ox0dea: >> 4073930972120442021941899024580558813626659657148635604951730592.to_s(16).tr '0-9a-e', 'pwn givestomach'
[03:04:26] ruboto: Ox0dea # => "the voices want me to stop wanting the voices to stop" (https://eval.in/468845)
[03:07:21] uri: has joined #ruby
[03:10:30] jdawgaz: has joined #ruby
[03:11:00] shevy: I guess real darkness holds no energy
[03:11:22] jhass: what's unreal darkness?
[03:11:41] jhass: would make a good game title I guess
[03:11:44] Ox0dea: > Nothing is just nothing.
[03:12:42] tulak: has joined #ruby
[03:13:16] Ox0dea: I'm only now realizing that can be parsed two different ways to express two completely different sentiments.
[03:15:40] pontiki: and both ways to interpret that are simultaneously accurate :)
[03:16:01] Ox0dea: But then whence the Universe?
[03:20:49] tkuchiki: has joined #ruby
[03:20:49] rgrmatt: has joined #ruby
[03:21:00] rgtk: has joined #ruby
[03:23:16] dn5: http://i.imgur.com/QaSGf7y.png This crancked me up. ot
[03:23:39] sdwrage: has joined #ruby
[03:24:46] bruno-: has joined #ruby
[03:26:36] Ox0dea: keiju> Well. ruby is also good.
[03:26:38] Ox0dea: matz> But, coral is also good
[03:26:45] Ox0dea: To think we would've been in #coral right now.
[03:27:13] Ox0dea: Or worse, that we wouldn't be!
[03:27:51] cdg: has joined #ruby
[03:29:51] gusrub: has joined #ruby
[03:31:51] ph4g: has joined #ruby
[03:32:55] Inoperable: has joined #ruby
[03:32:58] zwdr: has joined #ruby
[03:34:00] sdwrage: has joined #ruby
[03:39:08] mattwildig: has joined #ruby
[03:41:10] niftylettuce: has joined #ruby
[03:43:29] vigintas: has joined #ruby
[03:49:30] crdpink2: has joined #ruby
[03:51:02] unknowns2k2: has joined #ruby
[03:54:35] ledestin: has joined #ruby
[03:57:03] chipotle: has joined #ruby
[04:00:11] x-light: has joined #ruby
[04:01:48] benlieb: has joined #ruby
[04:01:50] tubuliferous_: has joined #ruby
[04:01:56] nertzy: has joined #ruby
[04:04:59] Channel6: has joined #ruby
[04:09:55] atomical: has joined #ruby
[04:11:56] baweaver: has joined #ruby
[04:17:17] braincrash: has joined #ruby
[04:20:18] tubuliferous_: has joined #ruby
[04:21:05] Axsuul: has joined #ruby
[04:22:17] braincra-: has joined #ruby
[04:26:41] bruno-: has joined #ruby
[04:27:35] xxneolithicxx: has joined #ruby
[04:28:26] xxneolithicxx: has joined #ruby
[04:28:49] IrishGringo: has joined #ruby
[04:33:42] nertzy: has joined #ruby
[04:35:48] rickmasta: has joined #ruby
[04:37:32] kstuart_: has joined #ruby
[04:37:55] diegoaguilar: has joined #ruby
[04:38:42] terminalrecluse: has joined #ruby
[04:40:14] terminalrecluse: has joined #ruby
[04:43:47] leafybas_: has joined #ruby
[04:43:54] eboaz_: has joined #ruby
[04:44:16] vigintas: has joined #ruby
[04:44:21] terminal_: has joined #ruby
[04:45:28] wnd_: has joined #ruby
[04:45:30] sdwrage: has joined #ruby
[04:45:56] knight_: has joined #ruby
[04:46:12] ahuman: has joined #ruby
[04:46:43] SebastianThorn: has joined #ruby
[04:46:48] ozzloy: has joined #ruby
[04:46:48] ozzloy: has joined #ruby
[04:46:49] reaVer: has joined #ruby
[04:47:10] sumark: has joined #ruby
[04:47:16] OmegaA: has joined #ruby
[04:47:22] sunya7a: has joined #ruby
[04:47:28] shapeshifter: has joined #ruby
[04:47:37] Azure: has joined #ruby
[04:47:43] northfurr: has joined #ruby
[04:48:11] PaulCape_: has joined #ruby
[04:49:54] fluchtreflex: has joined #ruby
[04:49:54] fluchtreflex: has joined #ruby
[04:50:26] phreakocious: has joined #ruby
[04:50:28] SirCmpwn: has joined #ruby
[04:50:32] b3nt_pin: has joined #ruby
[04:50:38] ghormoon: has joined #ruby
[04:50:38] NET||abuse: has joined #ruby
[04:50:38] iko1: has joined #ruby
[04:50:44] mgorbach: has joined #ruby
[04:51:17] tkuchiki: has joined #ruby
[04:51:33] dlitvak: has joined #ruby
[04:52:04] makenoise: has joined #ruby
[04:52:32] pimpin: has joined #ruby
[04:52:48] arthurnn: has joined #ruby
[04:55:39] tkuchiki_: has joined #ruby
[04:57:39] gusrub: has joined #ruby
[04:57:59] iko1: has joined #ruby
[04:58:02] bytecrawler: has joined #ruby
[04:58:04] dasher00: has joined #ruby
[04:58:34] Scroff: has joined #ruby
[04:59:05] c0ncealed: has joined #ruby
[04:59:07] blue_deref: has joined #ruby
[04:59:08] mbeasley_: has joined #ruby
[04:59:22] skweek: has joined #ruby
[04:59:35] davedev24: has joined #ruby
[04:59:47] mprelude: has joined #ruby
[05:03:56] gix: has joined #ruby
[05:04:06] tubuliferous_: has joined #ruby
[05:04:33] null__: has joined #ruby
[05:04:33] null__: has joined #ruby
[05:08:16] cookiez: has joined #ruby
[05:09:17] UtkarshRay: has joined #ruby
[05:10:43] simplyianm: has joined #ruby
[05:10:53] nertzy: has joined #ruby
[05:11:42] pepperbreath1: has left #ruby: ()
[05:12:16] coderhut: has joined #ruby
[05:13:02] baweaver: has joined #ruby
[05:13:42] tulak: has joined #ruby
[05:18:19] mooe: has joined #ruby
[05:21:35] rgtk: has joined #ruby
[05:22:31] nofxx: has joined #ruby
[05:22:56] The_Phoenix: has joined #ruby
[05:23:22] fedexo: has joined #ruby
[05:23:48] wa_r_ch_i__ld1: has joined #ruby
[05:24:26] 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?
[05:26:05] makenoise: has joined #ruby
[05:26:47] bruno-: has joined #ruby
[05:27:46] molay: has joined #ruby
[05:30:32] quazimodo: has joined #ruby
[05:34:45] fantazo: has joined #ruby
[05:36:46] leafybasil: has joined #ruby
[05:37:37] darkf: has joined #ruby
[05:40:04] mattwildig: has joined #ruby
[05:40:27] tkuchiki: has joined #ruby
[05:40:40] Meow-J: has joined #ruby
[05:43:16] devoldmx: has joined #ruby
[05:46:45] vigintas: has joined #ruby
[05:52:12] SteveC: has joined #ruby
[05:56:56] stardiviner: has joined #ruby
[05:57:56] stardiviner: has joined #ruby
[05:58:51] stardiviner: has joined #ruby
[05:59:14] Outlastsheep: has joined #ruby
[05:59:30] Ox0dea: wa_r_ch_i__ld1: I thought you said you were doing this insanity on a server?
[06:00:43] stardiviner: has joined #ruby
[06:01:48] stardiviner: has joined #ruby
[06:02:50] baweaver: has joined #ruby
[06:02:56] stardiviner: has joined #ruby
[06:03:08] tubuliferous_: has joined #ruby
[06:03:55] stardiviner: has joined #ruby
[06:04:52] stardiviner: has joined #ruby
[06:05:31] fantazo: has joined #ruby
[06:05:47] stardiviner: has joined #ruby
[06:06:41] stardiviner: has joined #ruby
[06:07:39] stardiviner: has joined #ruby
[06:09:03] stardiviner: has joined #ruby
[06:09:59] stardiviner: has joined #ruby
[06:10:48] wa_r_ch_i__ld1: @Ox0dea well thats my question but i think it doesnt work
[06:10:58] stardiviner: has joined #ruby
[06:11:09] 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
[06:11:24] wa_r_ch_i__ld1: if they dont have linux + xdtool will the key presses be generated?
[06:11:28] Ox0dea: There's gotta be a better way, man.
[06:11:32] Ox0dea: No, they won't be.
[06:11:46] Ox0dea: Well, it depends on how you've got everything wired up, I guess.
[06:12:02] Ox0dea: But why aren't you just using a damned HTTP library to do the authentication or whatever?
[06:13:28] brushbox: has joined #ruby
[06:13:30] stardiviner: has joined #ruby
[06:13:53] Tref: has joined #ruby
[06:14:39] stardiviner: has joined #ruby
[06:16:05] stardiviner: has joined #ruby
[06:17:28] stardiviner: has joined #ruby
[06:18:18] beast: has joined #ruby
[06:18:27] stardiviner: has joined #ruby
[06:19:30] stardiviner: has joined #ruby
[06:19:56] htmldrum: has joined #ruby
[06:20:24] wa_r_ch_i__ld1: has joined #ruby
[06:20:58] skullcrasher: has joined #ruby
[06:20:58] Averna: has joined #ruby
[06:21:48] TomPeed: has joined #ruby
[06:22:04] wa_r_ch_i__ld1: @Ox0dea it is ntlm auth by the way
[06:22:06] wa_r_ch_i__ld1: right now i just have a controller calling xdtool
[06:24:18] 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
[06:24:41] Ox0dea: wa_r_ch_i__ld1: Do you solemnly swear that you're up to no good?
[06:25:33] Ox0dea: http://i.imgur.com/Ufbr5ej.gif
[06:26:23] Ox0dea: Do you know that msf is a thing?
[06:27:36] Ox0dea: Something that would've stopped you reinventing this particular wheel so poorly. :P
[06:27:46] xcesariox: has joined #ruby
[06:28:02] bruno-: has joined #ruby
[06:30:46] trosborn: has joined #ruby
[06:32:07] 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)
[06:32:24] wa_r_ch_i__ld1: note it has to be filled in, I cant just append the creds because its not basic http
[06:32:46] Ox0dea: Of course it's not impossible.
[06:34:50] wa_r_ch_i__ld1: But i take it using bash isnt the way to get there
[06:36:33] jacyzon: has joined #ruby
[06:37:55] leafybasil: has joined #ruby
[06:38:33] kstuart_: has joined #ruby
[06:41:21] htmldrum: has joined #ruby
[06:48:06] makenoise: has joined #ruby
[06:49:07] _blizzy_: has joined #ruby
[06:49:59] Averna: has joined #ruby
[06:50:45] govg: has joined #ruby
[06:52:17] rickmasta: has joined #ruby
[06:54:25] psye: has joined #ruby
[06:59:33] ledestin: has joined #ruby
[07:00:46] tmtwd: has joined #ruby
[07:03:26] djellemah: has joined #ruby
[07:03:39] rippa: has joined #ruby
[07:06:06] makenoise: has joined #ruby
[07:06:14] yardenbar: has joined #ruby
[07:13:23] mistermocha: has joined #ruby
[07:14:29] tulak: has joined #ruby
[07:14:31] xcesariox: has joined #ruby
[07:22:32] rgtk: has joined #ruby
[07:23:20] sanjayu: has joined #ruby
[07:28:33] x-light: has joined #ruby
[07:30:30] araujo: has joined #ruby
[07:34:54] vigintas: has joined #ruby
[07:39:35] houhoulis: has joined #ruby
[07:40:54] mattwildig: has joined #ruby
[07:43:47] sdwrage: has joined #ruby
[07:45:29] User458764: has joined #ruby
[07:48:56] ohaibbq: has joined #ruby
[07:51:42] wildlander: has joined #ruby
[07:52:21] Averna: has joined #ruby
[07:52:43] sdwrage: has joined #ruby
[07:53:11] devoldmx: has joined #ruby
[07:56:37] govg: has joined #ruby
[07:58:14] sbhatore: has joined #ruby
[08:02:53] terminalrecluse: has joined #ruby
[08:04:15] bruce_lee: has joined #ruby
[08:05:33] lxsameer: has joined #ruby
[08:15:07] futilegames: has joined #ruby
[08:18:34] antgel: has joined #ruby
[08:19:08] hkumar: has joined #ruby
[08:21:23] govg: has joined #ruby
[08:21:24] vdamewood: has joined #ruby
[08:25:38] devl_: has joined #ruby
[08:29:20] bruno-: has joined #ruby
[08:31:14] Blaguvest: has joined #ruby
[08:31:18] lenwood: has joined #ruby
[08:35:46] vigintas: has joined #ruby
[08:39:33] kstuart_: has joined #ruby
[08:39:36] Tref: has joined #ruby
[08:45:27] karapetyan: has joined #ruby
[08:52:15] arup_r: has joined #ruby
[08:53:55] leafybasil: has joined #ruby
[08:54:37] jamesaxl: has joined #ruby
[08:54:53] DMRadford_: has joined #ruby
[08:55:32] hkumar: has joined #ruby
[08:59:51] aevitas: has joined #ruby
[09:00:44] trosborn: has joined #ruby
[09:01:22] blackmesa: has joined #ruby
[09:02:22] lenwood: has joined #ruby
[09:02:36] k3asd`: has joined #ruby
[09:04:04] marr: has joined #ruby
[09:05:59] govg: has joined #ruby
[09:06:19] Mia: has joined #ruby
[09:06:19] Mia: has joined #ruby
[09:09:46] blackmesa: has joined #ruby
[09:14:51] mistermocha: has joined #ruby
[09:15:10] tulak: has joined #ruby
[09:17:28] moeabdol: has joined #ruby
[09:18:54] yoongkang: has joined #ruby
[09:22:14] bruno-_: has joined #ruby
[09:22:14] treaki: has joined #ruby
[09:23:23] rgtk: has joined #ruby
[09:24:03] Rapeseed: has joined #ruby
[09:24:40] Averna: has joined #ruby
[09:25:20] bmalum: has joined #ruby
[09:30:12] govg: has joined #ruby
[09:32:22] Rapeseed: are there any sites listing the gotcha of ruby like there are for other?
[09:33:14] Rapeseed: are there any sites listing the gotcha of ruby like there are for others?
[09:34:22] akem: has joined #ruby
[09:34:26] zvive: has joined #ruby
[09:34:49] framlinqp: has joined #ruby
[09:34:52] apeiros: a quick google shows some results which might be interesting.
[09:34:54] blackmesa: has joined #ruby
[09:35:11] lapide_viridi: has joined #ruby
[09:35:13] Rapeseed: i did but did not find any
[09:35:39] apeiros: I found this f.ex.: http://stackoverflow.com/a/392795/764342
[09:35:42] Rapeseed: would be thankful if sb could link me to
[09:36:22] apeiros: additionally this: http://blog.elpassion.com/ruby-gotchas/
[09:36:35] apeiros: I didn't read through them, so no idea how accurate/good they are
[09:36:37] tom_lowndes: has joined #ruby
[09:37:34] apeiros: skimmed through the second one. seems to be good.
[09:37:41] guacjack: has joined #ruby
[09:37:43] vigintas: has joined #ruby
[09:41:39] mattwildig: has joined #ruby
[09:43:21] 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
[09:43:22] zvive: ending on type, then I could just have a method to get relationships based on type..?
[09:46:49] tkuchiki: has joined #ruby
[09:51:26] kerunaru: has joined #ruby
[09:53:19] guacjack: has joined #ruby
[09:54:24] symm-: has joined #ruby
[10:00:53] Axsuul: has joined #ruby
[10:02:01] antgel: has joined #ruby
[10:04:56] karapetyan: has joined #ruby
[10:06:04] chipotle: has joined #ruby
[10:09:20] last_staff: has joined #ruby
[10:09:37] leafybasil: has joined #ruby
[10:11:12] karapetyan: has joined #ruby
[10:12:14] karapetyan: has joined #ruby
[10:13:49] Jackneill: has joined #ruby
[10:16:54] htmldrum: has joined #ruby
[10:19:27] gguggi: has joined #ruby
[10:20:16] Spami: has joined #ruby
[10:20:28] SCHAAP137: has joined #ruby
[10:22:23] bruno-: has joined #ruby
[10:25:12] spider-mario: has joined #ruby
[10:29:05] lubarch: has joined #ruby
[10:31:41] karapetyan: has joined #ruby
[10:34:02] glennt: has joined #ruby
[10:34:31] roxtrongo: has joined #ruby
[10:34:36] BaroMeter: has joined #ruby
[10:34:58] Scripore: has joined #ruby
[10:38:26] vigintas: has joined #ruby
[10:40:30] kstuart_: has joined #ruby
[10:42:47] antgel: has joined #ruby
[10:44:11] ruby-lang215: has joined #ruby
[10:44:12] karapetyan: has joined #ruby
[10:45:17] mozzarella: has joined #ruby
[10:45:56] karapetyan: has joined #ruby
[10:46:51] DoubleMalt: has joined #ruby
[10:46:55] Oli`: has joined #ruby
[10:47:53] apeiros: shevy: ping
[10:50:29] trosborn: has joined #ruby
[10:50:42] fantazo: has joined #ruby
[10:51:05] CloCkWeRX: has joined #ruby
[10:51:07] CloCkWeRX: has left #ruby: ()
[10:52:19] lukaszes: has joined #ruby
[10:52:45] zotherstupidguy: has joined #ruby
[10:59:10] ruurd: has joined #ruby
[11:01:26] Axsuul: has joined #ruby
[11:01:42] stamina: has joined #ruby
[11:02:55] purplexed-: has joined #ruby
[11:05:50] FooMunki: has joined #ruby
[11:07:44] jokke: i have a question about psych
[11:07:46] jokke: https://github.com/tenderlove/psych/blob/master/test/psych/test_merge_keys.rb#L173
[11:08:15] jokke: I'm confused why the r is being overridden by BIG, even though SMALL comes last in the array
[11:11:03] ruurd: has joined #ruby
[11:12:05] lubarch: has joined #ruby
[11:12:42] subscope: has joined #ruby
[11:13:04] apeiros: jokke: I'd have expected r=1 too. I guess you'll have to consult the specs.
[11:13:22] jokke: you mean the yaml spes?
[11:16:26] tulak: has joined #ruby
[11:22:30] Ox0dea: has joined #ruby
[11:23:07] Ox0dea: I'm checking `block_given?` again in an `ensure` clause; is there a clean way to be DRY here?
[11:23:40] bruno-: has joined #ruby
[11:24:21] rgtk: has joined #ruby
[11:30:05] j416: Ox0dea: maybe put the ensure inside the method instead of on it?
[11:30:42] Ox0dea: j416: Huh?
[11:30:47] j416: if block_given?; begin; ...; ensure; ...; end;
[11:31:10] Ox0dea: I need to execute the `ensure` clause only if I was given a block.
[11:31:19] Ox0dea: But the method's functionality is also governed by that value.
[11:31:31] j416: code example?
[11:32:14] Ox0dea: j416: For your records, `def foo; ...; ensure ...; end` is valid and to be preferred.
[11:32:34] Ox0dea: I just don't want both of those `...`s to contain `block_given?`.
[11:32:38] skweek: has joined #ruby
[11:32:54] Ox0dea: It's not a big deal, but it feels like I might be missing a trick in this area.
[11:33:21] j416: sounds like you don't want my input :)
[11:33:23] j416: ACTION off to town
[11:33:48] Ox0dea: You didn't know about `def ... ensure` without an explicit `begin`.
[11:33:56] j416: sure I did
[11:34:07] Ox0dea: http://i.imgur.com/Ufbr5ej.gif
[11:34:09] j416: which is why I gave another suggestion above
[11:34:26] Ox0dea: Oh, sorry, I'm derping. :P
[11:34:38] devoldmx: has joined #ruby
[11:34:42] tkuchiki: has joined #ruby
[11:34:44] Ox0dea: But then I don't get to use `def ... ensure`!
[11:35:38] 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
[11:35:50] j416: unless you move the ensure inside the if
[11:35:55] Ox0dea: Aye, your recommendation is the right way to go about it.
[11:35:57] BaroMeter: has joined #ruby
[11:36:15] j416: then again, maybe ruby has some sugary trick up its sleeve that I have never heard of
[11:36:41] Ox0dea: Right, I couldn't quite say why my Ruby senses are tingling, but they are.
[11:36:57] j416: heh. I would feel the same.
[11:37:10] j416: then again, I'm a bit allergic to tagging the ensure or rescue at the end like that
[11:37:24] j416: but I guess it has its usecases.
[11:37:45] Ox0dea: My editor aligns the `ensure` with the `def`, and I think that improves legibility.
[11:38:39] j416: yep, if the behaviour of the entire method is to be protected then I would agree on putting it like that
[11:38:54] Ox0dea: Did you know that `defined?(yield)` is a synonym for `block_given?`?
[11:39:15] vigintas: has joined #ruby
[11:39:18] j416: hah. I did not.
[11:39:31] j416: that's so ... silly.
[11:39:42] Ox0dea: `defined?` is crazy.
[11:40:23] leafybasil: has joined #ruby
[11:41:23] User458764: has joined #ruby
[11:42:31] mattwildig: has joined #ruby
[11:43:51] rgtk: has joined #ruby
[11:49:18] tom_lowndes: has joined #ruby
[11:50:02] clonesig: has joined #ruby
[11:51:37] Ox0dea: It's mildly infuriating that we can refine #method_missing but not #const_missing. It's gotta be a bug, right?
[11:51:58] Ox0dea: The asymmetry is just... grr.
[11:52:09] Xeago: has joined #ruby
[11:55:13] djellemah: has joined #ruby
[11:59:54] moeabdol: has joined #ruby
[12:00:48] fantazo: has joined #ruby
[12:02:05] skade: has joined #ruby
[12:02:44] lkba: has joined #ruby
[12:02:45] skade: has joined #ruby
[12:03:19] trosborn: has joined #ruby
[12:04:56] nertzy: has joined #ruby
[12:06:47] kirun: has joined #ruby
[12:07:09] baweaver: has joined #ruby
[12:07:47] roshanavand: has joined #ruby
[12:08:05] lukaszes: has joined #ruby
[12:09:05] sdothum: has joined #ruby
[12:11:03] vigintas: has joined #ruby
[12:12:03] FernandoBasso: has joined #ruby
[12:12:23] ruurd: has joined #ruby
[12:16:26] leafybasil: has joined #ruby
[12:18:52] 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.
[12:19:07] Spami: has joined #ruby
[12:22:07] Ox0dea: Papierkorb: You'd almost certainly be better off incorporating Pry into your editor.
[12:22:28] Ox0dea: "REPL-driven development" doesn't mean you've actually got to be *at* the REPL while developing.
[12:23:06] pontiki: edit the class; then you can write it to a file
[12:24:08] bruno-: has joined #ruby
[12:24:19] k3asd`: has joined #ruby
[12:26:21] _blizzy_: has joined #ruby
[12:26:49] karapetyan: has joined #ruby
[12:27:01] sabram__: has joined #ruby
[12:27:19] sanjayu: has joined #ruby
[12:28:35] pontiki: https://github.com/pry/pry/wiki/Editor-integration#Edit_command
[12:29:29] sdothum: has joined #ruby
[12:30:28] trosborn: has joined #ruby
[12:32:11] karapetyan: has joined #ruby
[12:34:15] sameerynho: has joined #ruby
[12:35:19] tkuchiki: has joined #ruby
[12:36:08] jxs_: has joined #ruby
[12:37:11] ruurd: has joined #ruby
[12:40:13] bruno-_: has joined #ruby
[12:41:27] kstuart_: has joined #ruby
[12:42:22] AccordLTN: has joined #ruby
[12:44:02] Averna: has joined #ruby
[12:44:45] karapetyan: has joined #ruby
[12:46:05] ruurd: has joined #ruby
[12:49:19] roshanavand: has joined #ruby
[12:49:51] benhuda: has joined #ruby
[12:50:56] ruurd: has joined #ruby
[12:51:19] lukaszes: has joined #ruby
[12:53:32] tkuchiki: has joined #ruby
[12:54:27] mgorbach: has joined #ruby
[12:55:18] edwardly: has joined #ruby
[12:55:18] edwardly: has joined #ruby
[12:56:23] Nahra: has joined #ruby
[12:57:05] nomadicoder: has joined #ruby
[12:59:10] roxtrongo: has joined #ruby
[12:59:34] banister: has joined #ruby
[13:00:46] jdawgaz: has joined #ruby
[13:06:06] lukaszes: has joined #ruby
[13:07:46] roshanavand: has joined #ruby
[13:07:54] baweaver: has joined #ruby
[13:08:10] Someguy123: has left #ruby: ()
[13:11:03] dancer_: has joined #ruby
[13:11:03] karapetyan: has joined #ruby
[13:15:00] dancer_: has joined #ruby
[13:16:37] mistermocha: has joined #ruby
[13:16:39] aevitas: has joined #ruby
[13:16:44] hkumar: has joined #ruby
[13:17:06] tulak: has joined #ruby
[13:18:34] infernix: has joined #ruby
[13:18:54] allcentury: has joined #ruby
[13:19:22] ruid: has joined #ruby
[13:20:06] infernix: has joined #ruby
[13:20:39] ruurd: has joined #ruby
[13:29:19] livcd: has joined #ruby
[13:32:52] User458764: has joined #ruby
[13:35:23] devoldmx: has joined #ruby
[13:35:38] bmalum: has joined #ruby
[13:35:55] millerti: has joined #ruby
[13:37:06] roxtrongo: has joined #ruby
[13:37:48] roxtrongo: has joined #ruby
[13:39:17] minimalism: has joined #ruby
[13:40:55] moeabdol: has joined #ruby
[13:41:26] rob_: has joined #ruby
[13:42:07] dtordable: has joined #ruby
[13:43:07] moeabdol: has joined #ruby
[13:43:27] mattwildig: has joined #ruby
[13:43:45] codecop: has joined #ruby
[13:43:49] dlitvak: has joined #ruby
[13:45:09] roshanavand: has joined #ruby
[13:46:12] lenwood: has joined #ruby
[13:52:10] roxtrongo: has joined #ruby
[13:52:49] roxtrongo: has joined #ruby
[13:55:01] leafybasil: has joined #ruby
[13:55:20] Scripore: has joined #ruby
[13:55:21] quazimodo: has joined #ruby
[13:55:38] pwnd_nfsw: has joined #ruby
[13:56:35] rgrmatt: has joined #ruby
[13:58:26] lukaszes: has joined #ruby
[14:01:18] sgambino: has joined #ruby
[14:02:45] Rollabunna: has joined #ruby
[14:03:08] gambl0re: has joined #ruby
[14:07:43] nateberkopec: has joined #ruby
[14:08:11] roshanavand: has joined #ruby
[14:08:27] mattwildig: has joined #ruby
[14:08:47] baweaver: has joined #ruby
[14:10:21] yoongkang: has joined #ruby
[14:12:46] Scripore: has joined #ruby
[14:15:30] bruno-: has joined #ruby
[14:16:32] Meow-J: has joined #ruby
[14:16:49] atomical: has joined #ruby
[14:19:38] IrishGringo: has joined #ruby
[14:24:51] ruurd: has joined #ruby
[14:27:34] bruno-_: has joined #ruby
[14:28:01] simplyianm: has joined #ruby
[14:28:08] Encapsulation: has joined #ruby
[14:28:37] momo-reina: has joined #ruby
[14:28:38] davedev24: has joined #ruby
[14:33:09] vaguelyNothere: has joined #ruby
[14:33:41] synthroid: has joined #ruby
[14:33:47] Yzguy: has joined #ruby
[14:39:27] kstuart_: has joined #ruby
[14:40:25] vaguelyNothere: has left #ruby: ()
[14:40:59] joneshf-laptop: has joined #ruby
[14:45:51] bmalum: has joined #ruby
[14:46:34] Scripore: has joined #ruby
[14:50:21] daivyk: has joined #ruby
[14:50:22] tkuchiki: has joined #ruby
[14:50:41] sankaber: has joined #ruby
[14:53:56] Xeago: has joined #ruby
[14:55:10] sepp2k: has joined #ruby
[14:55:14] skweek: has joined #ruby
[14:57:23] aevitas: has joined #ruby
[14:57:26] sanjayu: has joined #ruby
[14:58:28] morf: has joined #ruby
[15:03:36] treaki: has joined #ruby
[15:05:33] nofxx1: has joined #ruby
[15:07:20] roshanavand: has joined #ruby
[15:08:18] akem: has joined #ruby
[15:09:26] baweaver: has joined #ruby
[15:12:09] Axsuul: has joined #ruby
[15:12:51] treaki: has joined #ruby
[15:16:05] frog0909: has joined #ruby
[15:16:27] nietzschette: has joined #ruby
[15:18:02] tulak: has joined #ruby
[15:19:05] klingeldraht: has joined #ruby
[15:19:09] futilegames: has joined #ruby
[15:25:10] dfockler: has joined #ruby
[15:26:12] mghaig: has joined #ruby
[15:31:17] karapetyan: has joined #ruby
[15:36:01] shredding: has joined #ruby
[15:36:25] devoldmx: has joined #ruby
[15:39:55] solocshaw1: has joined #ruby
[15:41:54] vnk: has joined #ruby
[15:42:18] vnk: hello rubyst, anyone got minute to help me with understunding small code(15) lines?
[15:43:30] lipoqil: has joined #ruby
[15:44:29] sanjayu: has joined #ruby
[15:44:38] iateadonut: has joined #ruby
[15:48:03] pandaant: has joined #ruby
[15:48:21] davedev24: has joined #ruby
[15:56:36] colegatron: has joined #ruby
[15:57:55] SteveC: has joined #ruby
[15:58:41] jdawgaz: has joined #ruby
[15:58:56] yqt: has joined #ruby
[15:59:06] TheHodge: has joined #ruby
[16:01:15] skcin7: has joined #ruby
[16:02:26] arup_r: has joined #ruby
[16:03:28] havenwood: vnk: Link to the codE?
[16:03:41] vnk: havenwood: found solution, still thanks a lot!
[16:03:52] nertzy: has joined #ruby
[16:04:12] havenwood: vnk: Any time.
[16:04:26] cgfbee: has joined #ruby
[16:05:17] mghaig: has joined #ruby
[16:05:25] riotjones: has joined #ruby
[16:06:06] woodshine: has joined #ruby
[16:06:26] User458764: has joined #ruby
[16:06:44] freerobby: has joined #ruby
[16:07:04] symm-: has joined #ruby
[16:07:50] naftilos76: has joined #ruby
[16:08:55] guacjack: has joined #ruby
[16:09:19] sonOfRa: has joined #ruby
[16:10:20] baweaver: has joined #ruby
[16:10:52] Tref: has joined #ruby
[16:14:02] IrishGringo: has joined #ruby
[16:19:57] mghaig: has joined #ruby
[16:21:00] Axsuul: has joined #ruby
[16:22:11] sdwrage: has joined #ruby
[16:24:41] _blizzy_: has joined #ruby
[16:26:21] diegoaguilar: has joined #ruby
[16:26:23] blue_deref: has joined #ruby
[16:27:38] patdohere: has joined #ruby
[16:28:13] ruid: has joined #ruby
[16:30:39] lenwood: has joined #ruby
[16:31:27] d0lph1n98: has joined #ruby
[16:31:41] benhuda: has joined #ruby
[16:32:55] nofxx: has joined #ruby
[16:35:17] guacjack: has joined #ruby
[16:36:22] griffindy: has joined #ruby
[16:36:38] guacjack: Hey, just got a quick question about Rails, is this the right place to ask?
[16:36:53] devoldmx: has joined #ruby
[16:37:27] shevy: there is a dedicated channel for rails #rubyonrails
[16:38:08] guacjack: ah thanks :)
[16:39:35] nateberkopec: has joined #ruby
[16:40:12] sw: has joined #ruby
[16:41:26] Rollabunna: has joined #ruby
[16:43:51] havenwood: RubyConf live stream: http://confreaks.tv/videos/rubyconf2015-live-stream
[16:44:43] tmtwd: has joined #ruby
[16:45:23] havenwood: ("How to Stop Hating your Test Suite" is the current talk.)
[16:46:39] shevy: did matz already talk?
[16:46:57] havenwood: So if they keep streaming from that same room it'll be Tenderlove next with "Inside Ruby's VM: The TMI Edition."
[16:47:07] havenwood: shevy: No Matz keynote this year! :O
[16:47:29] havenwood: shevy: This will be the second year ever that Matz hasn't given a Keynote.
[16:47:53] shevy: I'll tune in for tenderlove then
[16:47:55] havenwood: I miss the turtle at the bottom of his slides.
[16:48:49] pimpin: has joined #ruby
[16:48:52] Rollabunna: has joined #ruby
[16:49:09] Fire-Dragon-DoL: has joined #ruby
[16:49:19] Xeago: has joined #ruby
[16:50:39] jdawgaz: has joined #ruby
[16:51:43] huzzah: has joined #ruby
[16:58:35] bmalum: has joined #ruby
[16:59:15] tubuliferous_: has joined #ruby
[17:00:50] zeroDivisible: has joined #ruby
[17:06:12] riotjones: has joined #ruby
[17:07:29] Z00t: has joined #ruby
[17:08:14] Z00t: has joined #ruby
[17:08:55] Fire-Dragon-DoL: sunday, so silent
[17:09:24] roxtrongo: has joined #ruby
[17:11:16] Axsuul: has joined #ruby
[17:12:02] havenwood: Fire-Dragon-DoL: Also RubyConf.
[17:12:15] baweaver: has joined #ruby
[17:13:46] sinkensabe: has joined #ruby
[17:15:57] guacjack: has joined #ruby
[17:16:21] babblebre: has joined #ruby
[17:16:26] yoongkang: has joined #ruby
[17:17:34] NeverDie: has joined #ruby
[17:18:25] mistermocha: has joined #ruby
[17:18:50] tulak: has joined #ruby
[17:19:32] zenguy_pc: has joined #ruby
[17:19:50] SteveC: has joined #ruby
[17:21:06] troulouliou_dev: has joined #ruby
[17:21:13] treaki: has joined #ruby
[17:22:00] jdawgaz: has joined #ruby
[17:22:02] tkuchiki: has joined #ruby
[17:22:27] Scripore: has joined #ruby
[17:23:06] shevy: undefined method `+@'
[17:23:16] shevy: why is this notation used? I am confused about the @
[17:23:21] czsr: has joined #ruby
[17:23:49] last_staff: has joined #ruby
[17:24:14] 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
[17:24:40] huzzah_: has joined #ruby
[17:26:15] dopie: has joined #ruby
[17:26:54] jhass: shevy: that's unary +
[17:27:05] ruboto: jhass # => -5 (https://eval.in/468943)
[17:27:21] _stu_: has joined #ruby
[17:28:12] mattwildig: has joined #ruby
[17:28:34] 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)
[17:29:39] jhass: so it's a.+@()
[17:30:04] rgtk: has joined #ruby
[17:30:17] jhass: you can imagine the @ as the receiver if it helps anything, so that in +1 the @ kind of stands for the 1
[17:31:30] cdg: has joined #ruby
[17:35:03] yeticry: has joined #ruby
[17:37:18] SCHAAP137: has joined #ruby
[17:37:43] iBloodLust: has joined #ruby
[17:38:01] iBloodLust: in ruby can multiple child classes all share one parent class?
[17:38:02] Scripore: has joined #ruby
[17:38:13] yardenbar: has joined #ruby
[17:38:21] jhass: I'm not aware of any OO language where that's not the case
[17:38:28] jhass: so, of course
[17:38:38] iBloodLust: oh thanks ok
[17:40:02] shevy: the @ there initially reminded me of an instance variable
[17:40:32] tildes: has joined #ruby
[17:41:35] yeticry: has joined #ruby
[17:42:12] m3_del: has joined #ruby
[17:42:51] Ox0dea: >> $VERBOSE = nil; class Fixnum; alias +@ + end; @@x = 25; 17.+@@@x
[17:42:52] ruboto: Ox0dea # => 42 (https://eval.in/468946)
[17:42:57] Ox0dea: Triple asperand!
[17:43:17] northfurr: has joined #ruby
[17:44:16] kobain: has joined #ruby
[17:44:26] solocshaw: has joined #ruby
[17:44:37] chipotle: has joined #ruby
[17:44:49] karapetyan: has joined #ruby
[17:44:59] shevy: this is madness
[17:45:16] futilegames: has joined #ruby
[17:46:00] jamesaxl: has joined #ruby
[17:46:31] aevitas: has joined #ruby
[17:46:57] leifg: has joined #ruby
[17:47:27] aevitas: has joined #ruby
[17:48:39] treaki: has joined #ruby
[17:49:00] karapetyan: has joined #ruby
[17:51:06] mghaig: has joined #ruby
[17:51:22] tulak: has joined #ruby
[17:52:30] mrtomme: has joined #ruby
[17:53:16] Jardayn: has joined #ruby
[17:55:34] ruurd: has joined #ruby
[17:56:04] ruid: has joined #ruby
[17:56:29] hkumar: has joined #ruby
[17:58:09] shevy: hmm ... github has fancy labels
[17:58:29] shevy: "Pistos added the bug label to your issue" something something
[17:59:20] apeiros: shevy: and, did you try it? :)
[18:01:00] jdawgaz: has joined #ruby
[18:01:31] shevy: trying to find out how to add labels to my reported issues right
[18:01:57] Xeago: has joined #ruby
[18:03:02] apeiros: shevy: well, tell me if you want to give it a try yourself
[18:03:33] shevy: ah do you meant that tokenizer thingy?
[18:03:36] cyb3rspy: has joined #ruby
[18:04:50] SCHAAP137: has joined #ruby
[18:07:06] benhuda: has joined #ruby
[18:07:41] allcentury: has joined #ruby
[18:08:11] cyb3rspy: Does anybody know where I can find a great & free ruby tutorial?
[18:08:30] ruboto: http://ruby-community.com/pages/links
[18:09:30] fedexo: has joined #ruby
[18:09:53] slawrence00: has joined #ruby
[18:11:54] vigintas: has joined #ruby
[18:13:01] baweaver: has joined #ruby
[18:13:25] skcin7: has joined #ruby
[18:13:29] dome22xl: has joined #ruby
[18:14:40] roxtrongo: has joined #ruby
[18:14:46] lsv: has joined #ruby
[18:16:05] rickmasta: has joined #ruby
[18:18:06] yonatankoren: has joined #ruby
[18:18:58] shevy: havenwood is tenderlove speaking already?
[18:19:19] ruurd: has joined #ruby
[18:21:07] Ox0dea: I'm serializing a massive nested hash whose keys are all short strings; any sense in using symbols instead?
[18:22:17] dfockler: has joined #ruby
[18:22:31] mikecmpbll: has joined #ruby
[18:22:37] Phage: has joined #ruby
[18:23:57] northfurr: has joined #ruby
[18:26:13] rehat_: has joined #ruby
[18:26:15] Ox0dea: shevy: They just went for lunch.
[18:26:25] k3asd`: has joined #ruby
[18:26:26] Ox0dea: I'll do that too if I don't get all Strings.
[18:26:33] Ox0dea: >> [*ObjectSpace.each_object].sample 3
[18:26:35] 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)
[18:27:06] dviola: has joined #ruby
[18:28:10] shevy: Ox0dea damn lunch
[18:28:14] shevy: they should talk while eating
[18:28:46] shevy: real programmers code all the time, even upon toilet time
[18:31:01] dtordable: has joined #ruby
[18:33:54] NeverDie: has joined #ruby
[18:36:09] dtordable: has joined #ruby
[18:36:29] predator217: has left #ruby: ()
[18:36:51] sdothum: has joined #ruby
[18:37:38] devoldmx: has joined #ruby
[18:38:24] tkuchiki: has joined #ruby
[18:41:48] Axsuul: has joined #ruby
[18:42:49] northfurr: has joined #ruby
[18:44:42] jdawgaz: has joined #ruby
[18:45:12] dlitvak: has joined #ruby
[18:45:42] northfurr: has joined #ruby
[18:46:02] sdothum: has joined #ruby
[18:46:09] yosiat: has joined #ruby
[18:48:03] dlitvak_: has joined #ruby
[18:49:13] northfurr: has joined #ruby
[18:49:23] Rollabunna: has joined #ruby
[18:51:45] northfurr: has joined #ruby
[18:53:09] drd: has joined #ruby
[18:54:04] ruurd: has joined #ruby
[18:54:11] northfurr: has joined #ruby
[18:54:27] user1138: has joined #ruby
[18:54:30] Yzguy: has joined #ruby
[18:54:32] rgtk: has joined #ruby
[18:56:04] atmosx: has joined #ruby
[18:56:44] stannard: has joined #ruby
[18:57:18] northfurr: has joined #ruby
[18:59:22] shevy: I am really starting to like the foo: 'bar' notation for Hash elements, primarily because it can be so terse
[18:59:46] northfurr: has joined #ruby
[19:00:09] Papierkorb: Ruby 1.9 is amazing, yeah *looks at latest version*
[19:00:23] sanjayu: has joined #ruby
[19:00:52] yonatankoren: has joined #ruby
[19:01:31] Coldblackice: has joined #ruby
[19:03:27] pimpin: has joined #ruby
[19:04:18] dlitvak: has joined #ruby
[19:04:35] dikaio: has joined #ruby
[19:07:03] mirageglobe: has joined #ruby
[19:11:41] User458764: has joined #ruby
[19:13:45] baweaver: has joined #ruby
[19:14:40] Vile`: has joined #ruby
[19:15:14] shredding: has joined #ruby
[19:15:24] perturbation: has joined #ruby
[19:15:40] Tref: has joined #ruby
[19:17:09] yoongkang: has joined #ruby
[19:17:10] Axsuul: has joined #ruby
[19:17:23] dtordable: has joined #ruby
[19:17:28] htmldrum: has joined #ruby
[19:18:24] nateberkopec: has joined #ruby
[19:20:02] Yzguy: https://github.com/yzguy/yzguy-sandbox/blob/master/tipboard/scripts/running_instances_tile.rb
[19:20:21] solars: has joined #ruby
[19:20:25] Yzguy: anyone have any advice on making it better? It works but I'm new to ruby so
[19:20:30] ruid: has joined #ruby
[19:21:55] jhass: two spaces for indentation would be awesome :P
[19:22:17] jhass: Yzguy: check Enumerable#count
[19:22:57] Yzguy: hm, not sure how to set two spaces for ruby files
[19:23:21] Yzguy: to be honest I didn't notice the spaces, but I know it's 2
[19:23:29] jhass: push_data = %{"title": "Running Instances", "description": "Amazon Web Services", "just-value": "#{count}"})
[19:24:23] jhass: or maybe even push_data = {"title" => "Running Instances", "description" => "Amazon Web Services", "just-value" => count.to_s}.to_json
[19:24:35] Papierkorb: wasn't there a way in HAML documents to run code *once* when the document is parsed by haml?
[19:24:39] Yzguy: its not json, which is crappy
[19:24:42] Scripore: has joined #ruby
[19:24:44] chipotle: has joined #ruby
[19:24:55] matcz: has joined #ruby
[19:25:10] Yzguy: its for http://tipboard.readthedocs.org/en/latest/, but i guess you pass in a json string
[19:25:14] 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
[19:27:31] yonatankoren: has joined #ruby
[19:27:38] stannard: has joined #ruby
[19:29:05] sw: has left #ruby: ()
[19:30:30] DMRadford__: has joined #ruby
[19:31:07] mattwildig: has joined #ruby
[19:32:47] DMRadford: has joined #ruby
[19:33:02] ruby-lang656: has joined #ruby
[19:33:31] nertzy: has joined #ruby
[19:33:43] jhass: whatcha testing?
[19:34:31] Azure: has joined #ruby
[19:35:04] DMRadford_: has joined #ruby
[19:36:56] shevy: this channel
[19:38:31] DrShoggoth: has joined #ruby
[19:39:52] n_blownapart: has joined #ruby
[19:41:50] erbesharat: has joined #ruby
[19:42:43] ramfjord: has joined #ruby
[19:44:01] allcentury: has joined #ruby
[19:44:13] 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'
[19:44:24] yardenbar: Any one encountered this?
[19:44:42] mistermocha: has joined #ruby
[19:45:08] northfurr: has joined #ruby
[19:45:09] johnzorn: has joined #ruby
[19:45:20] ohaibbq: has joined #ruby
[19:45:26] shevy: sounds as if you are trying to compile some C code there?
[19:46:57] apeiros: shevy: yes, I meant literal_parser and your request for adding ranges
[19:47:31] shevy: yeah I needed precisely that to turn "strings" into the corresponding ruby object
[19:47:53] shevy: I tried to add Ranges, it sorta works but it was hackish
[19:47:57] shevy: what I did that is :)
[19:48:26] shevy: I needed it for something such as:
[19:48:37] shevy: '@foobar = [1,2,3]'
[19:49:07] shevy: I was a bit surprised that Ranges were not handled but as jhass pointed out, it's probably a very old project altogether
[19:49:22] apeiros: shevy: it is pretty old. still works fine, though.
[19:49:25] x-light: has joined #ruby
[19:49:37] apeiros: ranges were an oversight, I believe. adding it was quite trivial.
[19:49:56] apeiros: I think I'm also missing {"foo": value} as valid symbol style in hashes.
[19:50:42] tlaxkit: has joined #ruby
[19:50:51] jhass: I think there also was an eval you can get rid of now since const_get handles :: resolution now
[19:52:01] Z00t: has joined #ruby
[19:52:41] apeiros: jhass: yes. though I have to dynamically decide upon which to use.
[19:52:45] shlomo: has joined #ruby
[19:53:38] vigintas: has joined #ruby
[19:53:48] shlomo: Which key-value pair does Hash#shift remove? Is it guranteed to be oldest one? I can't tell from the documentation
[19:54:35] TheNet: has joined #ruby
[19:54:38] devoldmx: has joined #ruby
[19:55:02] goodcodeguy: has joined #ruby
[19:55:28] northfurr: has joined #ruby
[19:56:00] mattwildig: has joined #ruby
[19:56:19] 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
[19:57:27] jhass: shlomo: hash is insertion ordered, though I wish it wouldn't have these operations, depending on the order of a hash is shitty
[19:58:03] shlomo: jhass: ok thanks
[19:59:53] platzhirsch: has joined #ruby
[20:09:14] |ifei5good: has joined #ruby
[20:09:26] naftilos76: has joined #ruby
[20:09:27] daivyk: has joined #ruby
[20:11:30] nateberkopec: has joined #ruby
[20:12:19] mghaig: has joined #ruby
[20:12:23] northfurr: has joined #ruby
[20:12:38] shiru: has joined #ruby
[20:14:29] baweaver: has joined #ruby
[20:15:33] yardenbar: shevy, Will do, thank you
[20:16:39] havenwood: I like our fancy new Hash#dig and Hash#to_proc methods.
[20:17:52] havenwood: I also like saying "doubly-circular linked list." Sounds fancy.
[20:18:23] apeiros: havenwood: what's Hash#to_proc do?
[20:18:58] shevy: I dig dig
[20:19:32] havenwood: apeiros: h = {aim: true, blah: nil, another: false}; [:aim, :another].map &h #=> [true, false]
[20:20:06] yxhuvud: so basically #[].
[20:20:23] apeiros: so we can also use hashes in case/when?
[20:20:47] apeiros: to_proc-ification of ruby has begun
[20:20:52] Papierkorb: apeiros: wat. I didn't think of using to_proc yet with case/when! Amazing
[20:21:06] nateberkopec: has joined #ruby
[20:21:14] apeiros: one api, to bind them all, and proc unto existence
[20:21:40] yxhuvud: apeiros: it begain with Symbol#to_proc.
[20:22:23] apeiros: we shall remove all other methods and instead have classes with a single method: to_proc
[20:22:35] rgtk: has joined #ruby
[20:22:39] apeiros: HashStoreKey#to_proc, HashLookupKey#to_proc, HashSort#to_proc
[20:22:51] mghaig: has joined #ruby
[20:22:53] yxhuvud: Lets call the language to_proc-calculus!
[20:22:53] karapetyan: has joined #ruby
[20:22:56] northfurr: has joined #ruby
[20:23:03] apeiros: proc-tastic
[20:23:09] apeiros: instead of func-tastic
[20:23:27] apeiros: but the important part is indeed, to *call* it, haha.
[20:23:31] Ox0dea: FizzBuzz using *only* Procs: http://codon.com/programming-with-nothing#victory
[20:23:54] havenwood: >> {a: [:b, {c: [{d: :e}]}]}.dig :a, 1, :c, 0, :d
[20:23:55] ruboto: havenwood # => undefined method `dig' for {:a=>[:b, {:c=>[{:d=>:e}]}]}:Hash (NoMethodError) ...check link for more (https://eval.in/468959)
[20:24:12] Ox0dea: 23>> apeiros.plz
[20:25:06] havenwood: Proc-based FizzBuzz is nice and fast in mruby.
[20:25:17] Ox0dea: Is that so?
[20:25:36] nateberkopec: has joined #ruby
[20:26:17] Ox0dea: > closure_setup(mrb, p, mrb->c->ci->proc->body.irep->nlocals);
[20:26:21] Ox0dea: Holy indirection, Batman.
[20:27:07] havenwood: Ox0dea: https://bugs.ruby-lang.org/issues/10212
[20:27:46] |ifei5g00d: has joined #ruby
[20:27:56] Ox0dea: havenwood: Ah, so it's not that it's fast in mruby, it's just embarrassingly slow in KRI.
[20:28:02] havenwood: Ox0dea: Haha
[20:28:57] FooMunki: has joined #ruby
[20:30:02] haxrbyte: has joined #ruby
[20:30:25] yoongkang: has joined #ruby
[20:30:30] uri: has joined #ruby
[20:31:05] sanjayu: has joined #ruby
[20:31:08] mistermocha: has joined #ruby
[20:33:41] northfurr: has joined #ruby
[20:35:31] Channel6: has joined #ruby
[20:36:13] adac: has joined #ruby
[20:38:13] vF3hNGxc47h8: has joined #ruby
[20:38:18] malconis: has joined #ruby
[20:40:59] Ox0dea: has joined #ruby
[20:41:09] fantazo: has joined #ruby
[20:42:06] iBloodLust: how do i find elasped time in ruby
[20:42:50] Yzguy: https://github.com/yzguy/yzguy-sandbox/blob/master/ruby/utilities/ldaplook
[20:43:03] Yzguy: Line 50, 70, 71
[20:43:04] Ox0dea: >> s = Time.now; 9001.times {}; Time.now - s # ibloodlust
[20:43:05] ruboto: Ox0dea # => 0.000720054 (https://eval.in/468961)
[20:43:22] User458764: has joined #ruby
[20:43:26] iBloodLust: wow thanks guys
[20:43:33] Ox0dea: ibloodlust: I am but one person.
[20:44:03] 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
[20:44:14] Ox0dea: Yzguy: Very insightful. :P
[20:45:24] 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
[20:45:35] 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.)
[20:45:47] Ox0dea: Yzguy: For what it's worth, I think ibloodlust immediately understood what was going on in the code.
[20:45:50] perturbation: What are the advantages? Less memory usage / thread safety?
[20:45:56] mghaig: has joined #ruby
[20:46:14] Yzguy: I think so too. I was just in the same thing the other day. I just overthought it
[20:46:41] Ox0dea: perturbation: That's about the size of it.
[20:46:51] Ox0dea: It's just a small step toward embracing immutability.
[20:47:01] Ox0dea: But I don't think it's in line with the language's other tenets.
[20:48:48] Ox0dea: >> require 'fiddle'; class Object; def thaw; Fiddle::Pointer.new(__id__ * 2)[1] &= ~8; end end; s = 'foo'.freeze; s.thaw; s.frozen?
[20:48:49] ruboto: Ox0dea # => false (https://eval.in/468963)
[20:48:56] Ox0dea: perturbation: There's Object#thaw in case you ever need it. ^_^
[20:49:05] djellemah: Immutability is quite useful. But it's easy to take it too far. Look at Haskell, for example... :-p
[20:49:15] nateberkopec: has joined #ruby
[20:49:31] Ox0dea: Clojure's state model is the ideal, in my opinion.
[20:50:15] Rollabunna: has joined #ruby
[20:50:26] perturbation: lol 0x0dea 'def thaw; Fiddle::Pointer.new(__id__ * 2)[1] &= ~8; end' looks pretty scary to me
[20:50:34] perturbation: looks like programming C in Ruby >.>
[20:51:17] Ox0dea: perturbation: That's... exactly what it is. :)
[20:51:21] Ox0dea: It's poking raw memory.
[20:52:09] Ox0dea: Specifically, it's unconditionally setting the 11th bit of the object's `flags` member (FL_FREEZE) to 0.
[20:53:55] Ox0dea: I made a diagram for reasons: https://eval.in/468965
[20:54:18] perturbation: hmm... well I know C but I haven't looked at the Fiddle module before... interesting
[20:54:55] cornerma1: has joined #ruby
[20:55:03] NeverDie: has joined #ruby
[20:58:06] mistermocha: has joined #ruby
[20:59:45] Ox0dea: perturbation: It's pretty nifty. You can get up to all sorts of nasty tomfoolery.
[21:00:23] 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.
[21:00:25] perturbation: thanks 0x0dea the diagram really helps explain... needed to look up Fixnum#~ to find out one's complement though heheh
[21:00:35] Ox0dea: *two's complement.
[21:00:52] Ox0dea: Oh, it is the one's complement.
[21:01:50] otherj: has joined #ruby
[21:01:53] perturbation: that's evil but kind of awesome
[21:01:58] Ox0dea: But yeah, it's the same as C's ~ operator.
[21:02:37] tulak: has joined #ruby
[21:03:31] 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.
[21:03:59] Ox0dea: >> -1[9001]
[21:04:00] ruboto: Ox0dea # => 1 (https://eval.in/468966)
[21:04:45] tildes: has joined #ruby
[21:07:14] diegoaguilar: has joined #ruby
[21:07:34] baweaver: has joined #ruby
[21:07:48] dviola: has joined #ruby
[21:09:06] Channel6: has joined #ruby
[21:10:03] northfurr: has joined #ruby
[21:11:23] Tref: has joined #ruby
[21:15:17] karapetyan: has joined #ruby
[21:15:26] akem: has joined #ruby
[21:16:28] CodingWolf: has joined #ruby
[21:16:58] makenoise: has joined #ruby
[21:17:19] platzhirsch: has joined #ruby
[21:18:16] Ox0dea: > The real problem with mobile devices is that they are composed of Satan.
[21:18:17] devoldmx: has joined #ruby
[21:22:21] dbnoch: has joined #ruby
[21:27:12] mercurius: has joined #ruby
[21:27:21] iBloodLust: how do i make it so like for every second do something
[21:27:31] DEac-: has joined #ruby
[21:28:31] Ox0dea: ibloodlust: `foo while sleep 1`
[21:28:33] jhass: depends on the something
[21:28:37] Ox0dea: Does not.
[21:28:37] Yzguy: while true, do your stuff, sleep
[21:28:40] Papierkorb: ibloodlust: loo{ sleep1; do_something}
[21:28:45] jhass: what if it takes half a second?
[21:29:07] Ox0dea: I think ibloodlust isn't doing anything terribly sensitive just yet.
[21:30:02] rickmasta: has joined #ruby
[21:33:11] sinkensabe: has joined #ruby
[21:33:24] m3_del: has joined #ruby
[21:33:42] rikkipitt: has joined #ruby
[21:34:21] shevy: you are so mean to ibloodlust Ox0dea
[21:34:46] Ox0dea: You needn't've interpreted my comment so negatively.
[21:35:02] Ox0dea: What's wrong with supposing somebody just needs a simple sleep loop?
[21:35:43] shevy: but he doesn't want to do a simple sleep
[21:35:45] shevy: he wants to do something
[21:36:00] sepp2k1: has joined #ruby
[21:36:25] Ox0dea: He wants to do something in a simple sleep loop.
[21:41:51] colegatron: has joined #ruby
[21:47:00] chipotle: has joined #ruby
[21:48:54] VeryBewitching: has joined #ruby
[21:50:49] karapetyan: has joined #ruby
[21:51:07] benlieb: has joined #ruby
[21:51:09] karapetyan: has joined #ruby
[21:52:15] Darkchaos: has joined #ruby
[21:52:16] _stu_: has joined #ruby
[21:54:11] 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?
[21:54:42] sinkensabe: has joined #ruby
[21:54:42] Tref: has joined #ruby
[21:56:33] _blizzy_: has joined #ruby
[21:59:35] 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)
[22:01:23] rakm: has joined #ruby
[22:03:20] roxtrongo: has joined #ruby
[22:04:25] platzhirsch: has joined #ruby
[22:06:06] Oog: has joined #ruby
[22:06:58] Pupp3tm4st3r: has joined #ruby
[22:07:13] htmldrum: has joined #ruby
[22:08:02] Rollabunna: has joined #ruby
[22:12:29] felixr: has joined #ruby
[22:14:03] lokulin: has joined #ruby
[22:14:12] moeabdol: has joined #ruby
[22:17:02] SCHAAP137: has joined #ruby
[22:17:09] chipotle: has joined #ruby
[22:19:01] duncannz: has joined #ruby
[22:20:03] duncannz: has joined #ruby
[22:20:59] duncannz: has joined #ruby
[22:26:59] dn5: has joined #ruby
[22:27:02] dn5: Hi all :>
[22:27:22] iBloodLust: damnit sleep isnt working
[22:27:45] iBloodLust: it just gives my application a blank screen
[22:29:54] ruboto: How to ask the right questions to get you the right answer: https://www.mikeash.com/getting_answers.html
[22:30:58] m3_del: has joined #ruby
[22:31:01] Ox0dea: BraddPitt: Yes, RUaM is quite good, as are most of ko1's talks on KRI internals.
[22:31:14] Ox0dea: Hey, dn5!
[22:31:21] Radar: jhass: what's this news about openssl and ruby 2.2.3?
[22:31:43] jhass: Radar: debian stopped bulding SSLv3 support and that apparently landed in ubuntu 15.10
[22:32:00] jhass: Radar: so you need https://github.com/ruby/ruby/commit/801e1fe46d83c856844ba18ae4751478c59af0d1.diff
[22:32:17] jhass: will be in 2.3, but backported nowhere
[22:32:19] Radar: I reckon ruby-install will have a patch for this soon enough
[22:32:24] jhass: applies cleanly on at least 2.2.3 though
[22:32:29] makenoise: has joined #ruby
[22:32:36] jhass: so ruby-install -p ^ url works
[22:32:49] Radar: If I see anyone complaining about that then at least I have that noted down
[22:33:04] makenoise: has joined #ruby
[22:33:15] ycyclist: has joined #ruby
[22:33:18] jhass: had somebody complaining in #RubyOnRails following one of your guides, which is why I pinged you
[22:33:31] ycyclist: I forgot what the term is for the methods that display internals values.
[22:33:52] leafybasil: has joined #ruby
[22:34:19] ycyclist: Or perhaps the activity of seeing these values.
[22:34:38] ycyclist: I think it's a recent CSci term, but it may just be used in Ruby for all I know.
[22:35:05] Ox0dea: ycyclist: ?
[22:35:11] Ox0dea: Introspection?
[22:35:14] quazimodo: has joined #ruby
[22:35:14] Ox0dea: Reflection?
[22:35:22] ycyclist: Either of those could be it.
[22:35:50] zotherstupidguy: has joined #ruby
[22:35:57] Ox0dea: Asking a program about itself is hardly a new trick.
[22:36:30] ycyclist: Yes, but it's a term I waant to use correctly: https://en.wikipedia.org/wiki/Reflection_(computer_programming)
[22:37:01] k3asd`: has joined #ruby
[22:38:58] NeverDie: has joined #ruby
[22:40:08] iBloodLust: do anyone here know how to use gosu?I can't figure out how to make a delay between frames
[22:41:11] iBloodLust: can someone help me? https://gist.github.com/anonymous/f6d20575aaa9022686a5
[22:42:04] dn5: has joined #ruby
[22:45:15] lukaszes: has joined #ruby
[22:46:34] recurrence: has joined #ruby
[22:46:38] TomPeed: has joined #ruby
[22:50:21] tulak: has joined #ruby
[22:52:17] htmldrum: has joined #ruby
[22:53:36] chipotle: has joined #ruby
[22:55:38] user1138: has joined #ruby
[22:56:09] Fire-Dragon-DoL: has joined #ruby
[22:58:26] havenwood: good mornin'
[22:58:57] rgtk: has joined #ruby
[22:59:05] UNIMPL: Not yet, havenwood.
[22:59:07] opensource_ninja: has joined #ruby
[22:59:29] diegoaguilar: has joined #ruby
[23:02:40] oli: has joined #ruby
[23:04:00] blue_deref: has joined #ruby
[23:04:24] roxtrongo: has joined #ruby
[23:05:32] quazimodo: has joined #ruby
[23:07:15] mesamoo: has joined #ruby
[23:07:48] mghaig: has joined #ruby
[23:07:57] TheHodge: has joined #ruby
[23:09:12] tkuchiki: has joined #ruby
[23:09:49] dn5: has joined #ruby
[23:10:32] ihme-TTilus: ibloodlust: what do you mean by "defaly between frames"?
[23:11:10] iBloodLust: like a time delay, to control the animation speed
[23:11:59] ihme-TTilus: ibloodlust: just draw same image several times
[23:12:08] Ox0dea: Nah, don't do that.
[23:12:28] aevitas: has joined #ruby
[23:12:50] ihme-TTilus: or skip drawing?
[23:12:56] CloCkWeRX: has joined #ruby
[23:13:02] CloCkWeRX: has left #ruby: ()
[23:13:02] shevy: ibloodlust loop itself is a keyword by the way, don't use keywords as arguments; same reason such as: def foo(class = 'bar')
[23:13:29] 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.
[23:13:34] Ox0dea: ibloodlust: ^
[23:13:36] Ox0dea: Sorry, ihme-TTilus.
[23:13:51] Ox0dea: *and then only
[23:14:09] Ox0dea: shevy: #loop is not a keyword.
[23:14:13] Ox0dea: >> method :loop
[23:14:14] ruboto: Ox0dea # => #<Method: Object(Kernel)#loop> (https://eval.in/468995)
[23:15:06] 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
[23:15:21] shevy: Ox0dea that is distressing
[23:15:25] Ox0dea: shevy: Why?
[23:15:41] Ox0dea: ihme-TTilus: Easier just to let a ticker modulate FPS, no?
[23:15:51] shevy: because you can write code such as: loop { # more loops }
[23:16:06] shevy: yes, stop encouraging code like that
[23:16:14] Ox0dea: The fuck're you talking about?
[23:16:57] Ox0dea: #loop is sometimes the Right Tool, and it's not like you can't `break` out.
[23:17:14] ihme-TTilus: Ox0dea: well, definitely so, if you have modulation rules that are more easier to state as such than as "frame mapping table"
[23:17:21] leitz: has joined #ruby
[23:17:37] ihme-TTilus: Ox0dea: in practical cases you approach is prolly clearest
[23:17:38] Ox0dea: ihme-TTilus: Sure, if ibloodlust has lots of different objects whose animation speeds need coordinated, he'll have to do some architecting.
[23:18:55] exadeci: has joined #ruby
[23:19:02] devoldmx: has joined #ruby
[23:19:06] user1138: has joined #ruby
[23:19:13] rickmasta: has joined #ruby
[23:21:24] 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
[23:21:24] diegoaguilar: has joined #ruby
[23:22:10] zeroDivisible: has joined #ruby
[23:22:40] rgrmatt: has joined #ruby
[23:23:31] symm-: has joined #ruby
[23:25:06] ihme-TTilus: poor Ox0dea, naughty foo :D
[23:26:31] dlitvak: has joined #ruby
[23:27:57] TomPeed: has joined #ruby
[23:28:24] m3_del: has joined #ruby
[23:30:19] dn5: has joined #ruby
[23:31:13] AustinMatherne: has joined #ruby
[23:32:32] Ox0dea: TTilus: I singled out Canada, but there are at least two other syllabaries that use "foo"; is nothing sacred?!
[23:35:42] jdawgaz: has joined #ruby
[23:36:30] leitz: Using antiquated Ruby (1,8.7), can you insert modules and remove modules as your program runs?
[23:38:03] Success: has joined #ruby
[23:38:26] d5sx43: has joined #ruby
[23:39:54] zotherstupidguy: has joined #ruby
[23:40:12] northfurr: has joined #ruby
[23:40:50] fedexo: has joined #ruby
[23:42:11] PaulCapestany: has joined #ruby
[23:42:40] Success: is there a way i can pas --no-check-certificates or something of the sort to ruby (or globally set it)
[23:44:15] Xeago: has joined #ruby
[23:44:36] jhass: Success: luckily not
[23:45:50] 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"
[23:45:56] Success: I already tried the copy cert thing
[23:47:07] TTilus: leitz: insert modules as in dynamically loading stuff? yes
[23:48:03] nothing_: has joined #ruby
[23:48:09] patdohere: has joined #ruby
[23:48:14] nothing_: has left #ruby: ()
[23:48:14] Ox0dea: TTilus: I think it's the removal with which leitz is having trouble.
[23:48:17] Sam0163141155: has joined #ruby
[23:48:32] TTilus: thats the tricky part
[23:48:43] leitz: ACTION is having lots of trouble. Have been out for a bit.
[23:48:54] leitz: Lemme post the theory I'm working on.
[23:49:17] havenwood: Success: It's gem installs that are failing?
[23:49:21] Ox0dea: TTilus: Fiddle to the rescue! https://eval.in/468157
[23:50:15] Ox0dea: 1.8.7 doesn't have Fiddle, though, and I don't know the DL module.
[23:50:15] zeroDivisible: has joined #ruby
[23:50:17] Success: havenwood: particularly "Fetching gem..." then failures
[23:51:05] havenwood: Success: Try the release tarball that already has the gems: http://releases.rubini.us/rubinius-2.5.8.tar.bz2
[23:51:24] EminenceHC: has joined #ruby
[23:51:49] jhass: Success: also make sure you got the latest rubygems
[23:52:09] havenwood: Success: bundle install --local && ./configure && rake build
[23:52:31] leitz: https://github.com/LeamHall/CT_Character_Generator/blob/master/docs/Program_flow.txt
[23:53:05] leitz: I'm still working on understanding OOP, classes, modules, etc. This is one area I quickly get confused in.
[23:53:07] Ox0dea: This is just the saddest thing: http://i.imgur.com/7YwsSee.png
[23:53:26] havenwood: Ox0dea: ouch...
[23:54:10] dlitvak_: has joined #ruby
[23:54:26] Ox0dea: leitz: Well, why do you think you'll need/want to dynamically remove inclusions?
[23:54:44] Ox0dea: Also, why are you stuck on 1.8.7 for what appears to be a game?
[23:55:32] IrishGringo: has joined #ruby
[23:55:51] 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.
[23:55:55] djbkd: has joined #ruby
[23:56:07] dn5: has joined #ruby
[23:56:07] Oli`: has joined #ruby
[23:56:12] leitz: And my dayjob requires 1.8.7, so I use the game as a fun way to learn ruby.
[23:57:49] Ox0dea: leitz: Sounds like you might want OpenStruct.
[23:57:56] trosborn: has joined #ruby
[23:57:59] Ox0dea: Or else Marine and Pirate could subclass something like MaritimeCareer.
[23:59:29] 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.
[23:59:36] allcentu1: has joined #ruby