« Back to channel list

#ruby - 31 October 2015

« Back 1 day Forward 1 day »
[00:05:46] shadoi: has joined #ruby
[00:06:48] bb010g: has joined #ruby
[00:07:54] KINGSABRI: has joined #ruby
[00:09:54] atomical: has joined #ruby
[00:10:02] rbennacer: has joined #ruby
[00:10:06] mordocai: has joined #ruby
[00:10:42] bruno-: has joined #ruby
[00:12:17] bb010g: has joined #ruby
[00:14:56] gizmore: has joined #ruby
[00:17:27] htmldrum: has joined #ruby
[00:19:26] zenguy_pc: has joined #ruby
[00:20:21] bradly: has joined #ruby
[00:21:19] al2o3-cr1: has joined #ruby
[00:22:57] stannard: has joined #ruby
[00:29:57] arooni: has joined #ruby
[00:32:26] stannard: has joined #ruby
[00:36:14] charliesome: has joined #ruby
[00:36:25] hiyosi: has joined #ruby
[00:37:38] K1MOS: has joined #ruby
[00:38:05] theery: has joined #ruby
[00:38:51] aevitas: has joined #ruby
[00:40:25] ledestin: has joined #ruby
[00:42:49] htmldrum: has joined #ruby
[00:43:31] SCHAAP137: has joined #ruby
[00:45:48] keen___________1: has joined #ruby
[00:45:58] K1MOS: has joined #ruby
[00:48:10] zylogz80: has joined #ruby
[00:48:49] tulak: has joined #ruby
[00:49:23] duckpuppy: has joined #ruby
[00:49:26] Coldblackice: has joined #ruby
[00:52:47] dfinninger: has joined #ruby
[00:54:41] chipotle: has joined #ruby
[00:55:43] BTRE: has joined #ruby
[00:57:47] willardg: has joined #ruby
[00:59:31] devbug_: has joined #ruby
[01:00:04] vigintas: has joined #ruby
[01:01:36] FrankD_: has joined #ruby
[01:01:57] K1MOS: has joined #ruby
[01:02:16] goglosh: has joined #ruby
[01:02:23] goglosh: hi rubiarbs
[01:03:02] al2o3-cr: has joined #ruby
[01:03:12] goglosh: how well does ruby get along with unix/linux?
[01:03:20] goglosh: as in, for system administration tasks
[01:04:17] goglosh: (maybe this is asked too often?)
[01:04:43] rgtk: has joined #ruby
[01:05:24] bradly: goglosh: It's been great for me.
[01:05:35] diego2: has joined #ruby
[01:05:43] diego2: has joined #ruby
[01:06:38] rgtk: has joined #ruby
[01:07:39] djellemah_: has joined #ruby
[01:07:51] sandals: has joined #ruby
[01:08:34] rgtk: has joined #ruby
[01:11:01] rbennacer: has joined #ruby
[01:12:45] rgtk_: has joined #ruby
[01:13:14] bruno-: has joined #ruby
[01:13:47] havenwood: goglosh: It's quite popular for such a purpose.
[01:13:55] tkuchiki: has joined #ruby
[01:19:19] rgtk: has joined #ruby
[01:23:19] shevy: goglosh basically it's an improved perl variant so it works very well on *nix
[01:23:31] rgtk: has joined #ruby
[01:23:39] crdpink: has joined #ruby
[01:24:22] arescorpio: has joined #ruby
[01:25:02] cwong_on_irc: has joined #ruby
[01:25:27] rgtk: has joined #ruby
[01:26:11] theery: has joined #ruby
[01:26:20] Ox0dea: goglosh: Like peas in a pod, mate.
[01:27:22] rgtk: has joined #ruby
[01:27:48] hmsimha_: has joined #ruby
[01:27:55] bambanx: has joined #ruby
[01:28:37] bambanx: what is the difference when you use * or ** , in arguments of a method?
[01:29:16] rgtk: has joined #ruby
[01:31:30] Ox0dea: bambanx: * is the "splat" operator; you use it to accept and collect any number of positional arguments into an Array. ** doesn't really have a cute name, but it collects the implicit Hash argument.
[01:32:55] bambanx: thanks Ox0dea when ** is used is optional too?
[01:33:45] Tref: has joined #ruby
[01:34:00] Ox0dea: bambanx: That's right, and it's the only significant difference between just accepting a final argument and having it catch the "implicit Hash" that can be supplied with any method call.
[01:34:21] tmtwd: has joined #ruby
[01:34:32] JCOE: has joined #ruby
[01:34:38] shevy: >> def foo(**i); p i; end; foo [1,2,3]
[01:34:39] ruboto: shevy # => wrong number of arguments (1 for 0) (ArgumentError) ...check link for more (https://eval.in/460470)
[01:34:59] shevy: >> def foo(*i); p i; end; foo [1,2,3]
[01:35:00] ruboto: shevy # => [[1, 2, 3]] ...check link for more (https://eval.in/460471)
[01:35:26] Ox0dea: bambanx: https://eval.in/460472
[01:35:43] bambanx: Ox0dea, thanks you very much
[01:35:46] Ox0dea: bambanx: Happy to help.
[01:35:56] jenrzzz: has joined #ruby
[01:36:23] havenwood: shevy: >> def foo(**i); p i; end; foo one: 1, two: 2, three: 3
[01:36:40] sankaber: has joined #ruby
[01:36:58] shevy: hmmmmmmmmm
[01:37:10] mikeharris22: has joined #ruby
[01:37:48] shevy: is ArgumenteError correct there?
[01:38:03] havenwood: shevy: Nope.
[01:38:09] rgtk: has joined #ruby
[01:38:16] shevy: >> RUBY_VERSION
[01:38:17] ruboto: shevy # => "2.2.0" (https://eval.in/460473)
[01:38:21] havenwood: #=> {:one=>1, :two=>2, :three=>3}
[01:38:24] DiCablo: has joined #ruby
[01:39:07] shevy: >> def foo(**i); p i; end; foo({:one=>1, :two=>2, :three=>3})
[01:39:08] ruboto: shevy # => {:one=>1, :two=>2, :three=>3} ...check link for more (https://eval.in/460474)
[01:39:14] Ox0dea: havenwood: I believe shevy was referring to the ArgumentError he received when he tried to use an Array as a Hash.
[01:39:22] shevy: ruby does not want me to drop the () there :(
[01:39:25] havenwood: shevy: ^ that true?
[01:39:55] shevy: well I did pass an argument!
[01:40:02] Ox0dea: shevy: Blocks have higher parse precedence than Hash arguments.
[01:40:19] Ox0dea: shevy: You didn't receive a NoArgumentError.
[01:40:50] shevy: what is a NoArgumentError
[01:41:54] al2o3-cr: >> foo **kwargs; p kwargs; end; foo **{a: 1, b: 2}
[01:41:55] ruboto: al2o3-cr # => /tmp/execpad-1fb759bd3c87/source-1fb759bd3c87:3: syntax error, unexpected keyword_rescue, expecting ...check link for more (https://eval.in/460475)
[01:42:15] al2o3-cr: >> def foo **kwargs; p kwargs; end; foo **{a: 1, b: 2}
[01:42:15] ruboto: al2o3-cr # => {:a=>1, :b=>2} ...check link for more (https://eval.in/460476)
[01:42:21] rgtk: has joined #ruby
[01:42:43] al2o3-cr: something seriously wrong with my connection :(
[01:44:12] Ox0dea: al2o3-cr: Did you get my message about "psych"?
[01:44:13] rgtk: has joined #ruby
[01:44:24] juanpablo__: has joined #ruby
[01:45:04] al2o3-cr: Ox0dea: Ah, just read it now :P
[01:45:20] al2o3-cr: My connection is proper lagging
[01:46:09] rgtk: has joined #ruby
[01:46:16] zenguy_pc: has joined #ruby
[01:48:02] rgtk: has joined #ruby
[01:50:20] mikeharr_: has joined #ruby
[01:50:39] Ox0dea: >> class Fixnum; def to_hash; {self => self}; end; end; [**42] rescue $!
[01:50:40] ruboto: Ox0dea # => #<TypeError: wrong argument type Fixnum (expected Symbol)> (https://eval.in/460480)
[01:51:09] Ox0dea: Why does #to_hash *have* to return a Hash with Symbol keys?
[01:51:50] rgtk: has joined #ruby
[01:53:42] rgtk: has joined #ruby
[01:54:22] roxtrongo: has joined #ruby
[01:55:03] Uranio: has joined #ruby
[01:55:40] rgtk: has joined #ruby
[01:56:13] charliesome: has joined #ruby
[01:57:34] rgtk_: has joined #ruby
[01:57:47] roxtrongo: has joined #ruby
[01:58:27] tkuchiki: has joined #ruby
[01:59:28] rgtk_: has joined #ruby
[01:59:31] djbkd: has joined #ruby
[02:01:19] rgtk: has joined #ruby
[02:03:16] klaas_: has joined #ruby
[02:05:55] rgtk: has joined #ruby
[02:06:36] cjk101010: has joined #ruby
[02:07:26] rgtk_: has joined #ruby
[02:07:54] mistermocha: has joined #ruby
[02:07:56] arescorpio: has joined #ruby
[02:09:23] rgtk: has joined #ruby
[02:10:49] TheWorstAmy: has joined #ruby
[02:11:16] rgtk: has joined #ruby
[02:11:59] TheWorstAmy: has left #ruby: ()
[02:12:22] Dairenn: has joined #ruby
[02:12:48] Eiam_: has joined #ruby
[02:13:11] rgtk: has joined #ruby
[02:13:41] bruno-: has joined #ruby
[02:15:04] rgtk: has joined #ruby
[02:15:12] aredridel: has joined #ruby
[02:16:23] Rennex: has joined #ruby
[02:16:27] theery: has joined #ruby
[02:16:57] rgtk_: has joined #ruby
[02:18:49] rgtk: has joined #ruby
[02:19:07] zenguy_pc: has joined #ruby
[02:21:05] rgtk: has joined #ruby
[02:21:33] RobertBirnie: has joined #ruby
[02:22:31] Rennex: has joined #ruby
[02:22:36] rgtk: has joined #ruby
[02:23:28] goglosh: has left #ruby: ("ERC (IRC client for Emacs 24.5.1)")
[02:24:31] rgtk: has joined #ruby
[02:24:51] Silverback: has joined #ruby
[02:25:04] cmoney: has joined #ruby
[02:26:24] rgtk: has joined #ruby
[02:28:21] rgtk: has joined #ruby
[02:29:25] Uranio: has joined #ruby
[02:30:13] rgtk: has joined #ruby
[02:30:33] roxtrongo: has joined #ruby
[02:31:12] everbot: has joined #ruby
[02:32:05] rgtk: has joined #ruby
[02:32:08] colegatron: has joined #ruby
[02:34:09] Rennex: has joined #ruby
[02:34:21] rgtk: has joined #ruby
[02:36:41] tlaxkit: has joined #ruby
[02:36:41] Ropeney: has joined #ruby
[02:38:15] rgtk_: has joined #ruby
[02:40:10] rgtk: has joined #ruby
[02:41:43] mikecmpbll: has joined #ruby
[02:42:02] rgtk: has joined #ruby
[02:42:47] dfinninger: has joined #ruby
[02:42:53] diego2: has joined #ruby
[02:43:19] diego2: has joined #ruby
[02:43:27] Maletor: has joined #ruby
[02:43:49] blackmesa: has joined #ruby
[02:43:55] rgtk: has joined #ruby
[02:44:46] mikeharris22: has joined #ruby
[02:45:26] juanpablo__: has joined #ruby
[02:45:52] rgtk: has joined #ruby
[02:46:11] roxtrongo: has joined #ruby
[02:46:12] The_Phoenix: has joined #ruby
[02:46:51] tigarcia: has joined #ruby
[02:47:42] rgtk_: has joined #ruby
[02:49:56] rgtk_: has joined #ruby
[02:51:40] rgtk: has joined #ruby
[02:53:26] rgtk_: has joined #ruby
[02:54:00] sandals: has joined #ruby
[02:55:08] RobertBirnie: has joined #ruby
[02:55:16] rgtk_: has joined #ruby
[02:57:06] h99h9h88: has joined #ruby
[02:57:10] rgtk: has joined #ruby
[02:59:13] Oatmeal: has joined #ruby
[02:59:31] jackjackdripper: has joined #ruby
[03:00:25] arooni: has joined #ruby
[03:00:32] Musashi007: has joined #ruby
[03:00:33] programmerq: has joined #ruby
[03:03:45] rgtk: has joined #ruby
[03:03:58] wldcordeiro: has joined #ruby
[03:04:41] mikeharris22: has joined #ruby
[03:05:39] rgtk: has joined #ruby
[03:07:16] fedexo: has joined #ruby
[03:07:34] rgtk: has joined #ruby
[03:08:51] terminalrecluse: has joined #ruby
[03:11:47] rgtk: has joined #ruby
[03:11:48] ekinmur: has joined #ruby
[03:11:48] rbennacer: has joined #ruby
[03:13:42] rgtk: has joined #ruby
[03:14:33] bruno-: has joined #ruby
[03:15:31] rgtk: has joined #ruby
[03:15:35] Uranio: has joined #ruby
[03:16:58] weihan: has joined #ruby
[03:17:25] rgtk: has joined #ruby
[03:17:40] Bulo: has joined #ruby
[03:19:18] rgtk: has joined #ruby
[03:20:01] diego2: has joined #ruby
[03:20:11] diego2: has joined #ruby
[03:21:23] Uranio-235: has joined #ruby
[03:21:34] rgtk: has joined #ruby
[03:21:38] bryanray: has joined #ruby
[03:21:40] CloCkWeRX: has joined #ruby
[03:23:17] rgtk: has joined #ruby
[03:25:00] kp666: has joined #ruby
[03:25:02] rgtk: has joined #ruby
[03:26:34] lemondom: has joined #ruby
[03:26:56] rgtk: has joined #ruby
[03:27:40] baweaver: has joined #ruby
[03:28:05] diego2: has joined #ruby
[03:28:34] diego2: has joined #ruby
[03:28:49] rgtk: has joined #ruby
[03:29:49] theery: has joined #ruby
[03:29:55] zenguy_pc: has joined #ruby
[03:30:41] rgtk_: has joined #ruby
[03:31:47] mordocai: has joined #ruby
[03:32:37] mndoci: has joined #ruby
[03:34:50] cmoney: has joined #ruby
[03:43:19] EminenceHC: has joined #ruby
[03:45:21] Eminence_: has joined #ruby
[03:45:39] duckpuppy: has joined #ruby
[03:46:41] kp666: has joined #ruby
[03:47:17] NeverDie: has joined #ruby
[03:48:41] EminenceHC: has joined #ruby
[03:50:40] Eminence_: has joined #ruby
[03:51:12] parus: has joined #ruby
[03:51:29] NeverDie: has joined #ruby
[03:52:43] Ropeney: has joined #ruby
[03:53:10] charliesome: has joined #ruby
[03:53:44] tenderlo_: has joined #ruby
[03:55:53] leafybasil: has joined #ruby
[03:56:25] blackmesa: has joined #ruby
[03:56:28] h99h9h88: has joined #ruby
[04:00:28] gener1c: has joined #ruby
[04:01:02] al2o3-cr: has joined #ruby
[04:02:20] EminenceHC: has joined #ruby
[04:04:20] cmoney: has joined #ruby
[04:05:11] tmtwd: has joined #ruby
[04:06:14] snockerton: has joined #ruby
[04:08:11] kies^: has joined #ruby
[04:08:42] bubbys: has joined #ruby
[04:09:04] freerobby: has joined #ruby
[04:09:09] devbug: has joined #ruby
[04:09:30] mistermocha: has joined #ruby
[04:09:57] braincras: has joined #ruby
[04:10:54] l_tonz: has joined #ruby
[04:11:20] solocshaw: has joined #ruby
[04:11:35] jenrzzz: has joined #ruby
[04:11:59] user1138: has joined #ruby
[04:12:57] user1138: has joined #ruby
[04:13:50] devbug_: has joined #ruby
[04:14:08] user1138: has joined #ruby
[04:15:36] EminenceHC: has joined #ruby
[04:16:40] netwoodle: has joined #ruby
[04:17:13] devbug: has joined #ruby
[04:18:41] RobertBirnie: has joined #ruby
[04:20:08] Eminence_: has joined #ruby
[04:24:50] gix: has joined #ruby
[04:25:10] SShrike: has joined #ruby
[04:26:26] braincrash: has joined #ruby
[04:26:39] baweaver: has joined #ruby
[04:26:57] greedo: has joined #ruby
[04:27:53] lemur: has joined #ruby
[04:29:10] tenderlove: has joined #ruby
[04:29:10] tenderlove: has joined #ruby
[04:31:34] sdfgsdfg: has joined #ruby
[04:34:12] juanpablo__: has joined #ruby
[04:35:54] swgillespie: has joined #ruby
[04:37:52] dikaio: has joined #ruby
[04:39:24] unsymbol: has joined #ruby
[04:40:32] htmldrum: has joined #ruby
[04:41:19] skarn: has joined #ruby
[04:41:29] phillips1012: has joined #ruby
[04:43:12] an0ma1y: has joined #ruby
[04:45:39] charliesome: has joined #ruby
[04:45:39] psye: has joined #ruby
[04:46:08] wildlander: has joined #ruby
[04:46:48] psye: has joined #ruby
[04:46:51] rbennacer: has joined #ruby
[04:46:59] wildlander: has joined #ruby
[04:47:44] wildlander: has joined #ruby
[04:49:35] beauby: has joined #ruby
[04:54:29] CloCkWeRX: has joined #ruby
[04:55:10] aevitas: has joined #ruby
[04:55:35] jhn: has joined #ruby
[04:57:11] blackmesa: has joined #ruby
[05:00:45] leafybasil: has joined #ruby
[05:03:42] fumduq: has joined #ruby
[05:04:14] purplexed-: has joined #ruby
[05:04:34] patronus: has joined #ruby
[05:05:00] darkf: has joined #ruby
[05:05:37] mwlang: has joined #ruby
[05:05:59] Elysia: has joined #ruby
[05:06:04] atmosx: has joined #ruby
[05:06:25] last_staff: has joined #ruby
[05:06:44] techsethi: has joined #ruby
[05:06:45] monsieurp: has joined #ruby
[05:07:27] jatb: has joined #ruby
[05:10:16] Dairenn: has joined #ruby
[05:12:13] Ropeney: has joined #ruby
[05:18:11] grambo: has joined #ruby
[05:18:24] grambo: has left #ruby: ()
[05:21:13] jenrzzz: has joined #ruby
[05:25:21] diegoaguilar: has joined #ruby
[05:25:34] mistermocha: has joined #ruby
[05:27:31] arup_r: has joined #ruby
[05:28:05] arup_r: has joined #ruby
[05:29:30] lxsameer: has joined #ruby
[05:29:30] lxsameer: has joined #ruby
[05:30:07] dengar007: has joined #ruby
[05:30:21] duckpuppy: has joined #ruby
[05:30:23] arup_: has joined #ruby
[05:31:08] devbug_: has joined #ruby
[05:31:13] zenguy_pc: has joined #ruby
[05:35:33] arup_r: has joined #ruby
[05:36:38] h99h9h88: has joined #ruby
[05:37:57] shinenelson: has joined #ruby
[05:39:11] devbug: has joined #ruby
[05:39:46] naftilos76: has joined #ruby
[05:40:16] Dairenn: has joined #ruby
[05:43:19] techsethi: has joined #ruby
[05:46:26] phillips1012: has joined #ruby
[05:49:47] NightMonkey: has joined #ruby
[05:54:46] l_tonz: has joined #ruby
[05:56:24] diegoaguilar_: has joined #ruby
[05:58:15] yfeldblum: has joined #ruby
[05:59:04] stannard: has joined #ruby
[05:59:12] blackmesa: has joined #ruby
[06:00:29] diegoaguilar_: has joined #ruby
[06:00:53] WizJin: has joined #ruby
[06:01:20] leafybasil: has joined #ruby
[06:01:47] bruno-: has joined #ruby
[06:03:40] diegoaguilar_: has joined #ruby
[06:03:55] gguggi: has joined #ruby
[06:04:19] NightMonkey: has joined #ruby
[06:04:54] patdohere: has joined #ruby
[06:06:14] diegoaguilar_: has joined #ruby
[06:06:23] mikeharris22: has joined #ruby
[06:06:53] Tref: has joined #ruby
[06:07:38] Maletor: has joined #ruby
[06:07:56] diegoaguilar: has joined #ruby
[06:08:09] trosborn: has joined #ruby
[06:11:35] DoubleMalt: has joined #ruby
[06:12:08] dfinninger: has joined #ruby
[06:12:54] [BNC]WizJin: has joined #ruby
[06:17:28] patdohere: has joined #ruby
[06:20:03] dellavg_: has joined #ruby
[06:22:56] juanpablo__: has joined #ruby
[06:23:36] gizmore: has joined #ruby
[06:26:44] patdohere: has joined #ruby
[06:27:50] arup_r: has joined #ruby
[06:28:41] mistermocha: has joined #ruby
[06:28:57] djbkd: has joined #ruby
[06:29:19] rippa: has joined #ruby
[06:33:58] cwong_on_irc: has joined #ruby
[06:36:48] flak: has joined #ruby
[06:39:20] rippa: has joined #ruby
[06:39:54] h99h9h88: has joined #ruby
[06:42:09] ruby-lang023: has joined #ruby
[06:44:01] hakunin_: has joined #ruby
[06:44:02] benlieb: has joined #ruby
[06:44:38] Musashi007: has joined #ruby
[06:46:13] ruby-lang023: newby here looking for help getting imagemagick and paperclip working.
[06:46:51] Rollabunna: has joined #ruby
[06:50:47] slackbotgz: has joined #ruby
[06:51:27] ehth77: has joined #ruby
[06:52:24] EminenceHC: has joined #ruby
[06:53:05] kp666_: has joined #ruby
[06:54:12] kp666_: has joined #ruby
[06:54:20] max_kuzmin: has joined #ruby
[06:55:00] max_kuzmin: Hello everybody.
[06:55:44] max_kuzmin: guys, i think my google is broken: i can not find how to access class variable (like @@var) from module that extends the class
[06:55:49] l_tonz: has joined #ruby
[06:56:26] max_kuzmin: can anybody chelp me with that?
[06:56:52] al2o3-cr: ?code max_kuzmin
[06:56:52] ruboto: max_kuzmin, We can't help you without your code, please post it to https://gist.github.com
[06:58:05] max_kuzmin: ACTION test
[06:58:19] Ox0dea: ?gist max_kuzmin
[06:58:19] ruboto: max_kuzmin, https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[06:58:38] Ox0dea: max_kuzmin: Sorry, I shouldn't have done that; I know exactly what you're trying to do.
[06:58:54] Ox0dea: You want Module#extended + #class_variable_get.
[06:59:48] Ox0dea: https://eval.in/460540
[06:59:58] blackmesa: has joined #ruby
[07:00:52] max_kuzmin: Thanks a lot!
[07:00:59] Ox0dea: Happy to help.
[07:01:40] max_kuzmin: I dont know why, but It is not so easy to find info about it
[07:01:42] devbug_: has joined #ruby
[07:02:21] Ox0dea: max_kuzmin: You're generally not supposed to do that sort of thing.
[07:02:43] Ox0dea: It's not as if these methods aren't documented, of course.
[07:02:46] bruno-: has joined #ruby
[07:04:15] joaomdmoura: has joined #ruby
[07:04:24] nemo_: has joined #ruby
[07:06:30] blue_deref: has joined #ruby
[07:06:53] davedev24: has joined #ruby
[07:06:53] max_kuzmin: i tried to use construction like that
[07:06:54] max_kuzmin: https://eval.in/460544
[07:07:05] max_kuzmin: but it fails with ???no method ???
[07:07:14] moeabdol1: has joined #ruby
[07:07:44] aevitas: has joined #ruby
[07:08:00] max_kuzmin: module @@var accepts only straight values, i dont know why =___=
[07:08:02] kidoz: has joined #ruby
[07:08:19] max_kuzmin: ruby is really beatiful, but sometimes it shows very scary sides)
[07:09:02] CloCkWeRX: has joined #ruby
[07:09:03] davedev24: has joined #ruby
[07:16:38] crystalmaiden: has joined #ruby
[07:17:24] moeabdol: has joined #ruby
[07:17:40] Ox0dea: max_kuzmin: Ruby is certainly a sharp tool, but the language isn't at fault here.
[07:18:08] charliesome: has joined #ruby
[07:18:25] davedev24: has joined #ruby
[07:19:57] quazimodo: has joined #ruby
[07:20:20] gagrio: has joined #ruby
[07:21:23] charliesome_: has joined #ruby
[07:21:28] Musashi007: has joined #ruby
[07:25:37] The_Phoenix: has joined #ruby
[07:25:58] davedev24: has joined #ruby
[07:27:45] davedev24: has joined #ruby
[07:28:16] ghoti: has joined #ruby
[07:29:23] benlieb: has joined #ruby
[07:31:00] duckpuppy: has joined #ruby
[07:32:05] zenguy_pc: has joined #ruby
[07:33:41] vdamewood: has joined #ruby
[07:35:16] davedev24: has joined #ruby
[07:37:07] davedev24: has joined #ruby
[07:38:13] techsethi: has joined #ruby
[07:38:28] kalzz: has joined #ruby
[07:38:57] davedev24: has joined #ruby
[07:40:56] davedev24: has joined #ruby
[07:41:35] davedev24: has joined #ruby
[07:44:56] trosborn: has joined #ruby
[07:48:13] x-light: has joined #ruby
[07:50:09] trosborn: has joined #ruby
[07:51:10] jamesaxl: has joined #ruby
[07:51:53] tlarevo: has joined #ruby
[07:54:20] ibouvousaime: has joined #ruby
[07:57:50] l_tonz: has joined #ruby
[07:59:51] Guest98662: has joined #ruby
[08:00:09] Guest98662: has left #ruby: ()
[08:00:10] Guest98662: has joined #ruby
[08:00:50] blackmesa: has joined #ruby
[08:01:09] karapetyan: has joined #ruby
[08:02:19] arup_r: has joined #ruby
[08:02:20] Guest98662: what is the purpose of using => in a call?
[08:02:50] Guest98662: is it for passng "named" args
[08:03:40] dellavg_: has joined #ruby
[08:03:51] bruno-: has joined #ruby
[08:04:54] Coldblackice: has joined #ruby
[08:05:12] aevitas: has joined #ruby
[08:05:35] willardg: has joined #ruby
[08:05:40] Mon_Ouie: >> def foo(argument); argument; end; foo(:bar => "baz")
[08:05:42] ruboto: Mon_Ouie # => {:bar=>"baz"} (https://eval.in/460565)
[08:06:31] allomov: has joined #ruby
[08:06:44] Mon_Ouie: ^ It passes a hash, which is how people used to emulate keyword arguments before they were added
[08:07:35] Mon_Ouie: (it also works with the actual keyword arguments that are now a part of the language)
[08:07:41] pard: Mon_Ouie , thanks; i thought it actually creats an "splat" hash
[08:08:35] pard: that is, much like py's print(**{l: 12, L: 12})
[08:09:58] Mon_Ouie: >> def example(l:, L:); [l, L]; end; example(:l => 12, :L => 13)
[08:09:59] ruboto: Mon_Ouie # => /tmp/execpad-5855131cecfa/source-5855131cecfa:2: formal argument cannot be a constant ...check link for more (https://eval.in/460566)
[08:10:24] Mon_Ouie: Oh, right, can't call a variable L like this :p
[08:11:12] pard: it is then semi-correct then that l({:L=>12}) is exctly same as l(:L=>12) ?
[08:11:48] Ox0dea: pard: Only if it's the final argument.
[08:12:02] juanpablo__: has joined #ruby
[08:12:03] Ox0dea: You only get one "implicit" (read: braceless) Hash.
[08:13:03] pard: Ox0dea, i actually thought it is always the final arg; are there any cases where it is not?
[08:14:09] pard: >> print 5=>12, "e"
[08:14:10] ruboto: pard # => /tmp/execpad-16db7de784fb/source-16db7de784fb:2: syntax error, unexpected '\n', expecting => (https://eval.in/460567)
[08:14:33] Ox0dea: >> def foo *args; args; end; foo({a: 1}, {b: 2}, {c: 3}) # pard
[08:14:34] ruboto: Ox0dea # => [{:a=>1}, {:b=>2}, {:c=>3}] (https://eval.in/460568)
[08:14:56] Ox0dea: That's three separate Hashes, mind.
[08:15:32] dellavg-: has joined #ruby
[08:15:41] Ox0dea: >> def foo *args; args; end; foo 1, 2, a: 3, b: 4
[08:15:42] ruboto: Ox0dea # => [1, 2, {:a=>3, :b=>4}] (https://eval.in/460569)
[08:17:40] leafybasil: has joined #ruby
[08:19:09] pard: Ox0dea, thanks; i guess i have been right then; the '=>' means "this is the final arg, and it is merely an undelimitd hash"
[08:19:48] Ox0dea: pard: This is the first time you've made that statement, but yes, it's correct.
[08:20:10] pard: i.e, print 5=>"l", 12=>"L", 5, 5 will not be correct
[08:21:11] willardg: has joined #ruby
[08:21:38] Jackneill: has joined #ruby
[08:22:24] firstdayonthejob: has joined #ruby
[08:23:09] pard: i can not help wonderng though, why is the delimiterless hash only possibl in a call actually
[08:23:32] Ox0dea: pard: Because the parser is complicated enough and we don't need more ambiguity.
[08:23:54] Ox0dea: >> [a: 1] # Not just calls, mind.
[08:23:55] ruboto: Ox0dea # => [{:a=>1}] (https://eval.in/460571)
[08:24:15] Ox0dea: You should probably forget you saw that.
[08:24:21] ghoti: has joined #ruby
[08:25:11] pard: Ox0dea, actually i was about to mention it :) it is just making me wonder even more -- it already is everywhere
[08:25:50] karapetyan: has joined #ruby
[08:26:16] Ox0dea: pard: Everywhere?
[08:26:31] pard: i can't know what ambiguity it might cause to have l = 12 => "e", 5 => "l"
[08:28:37] pard: i guess it already _is_ in Everywhere -- calls, []'s, and so on ;why not there then?
[08:28:44] Ox0dea: pard: Do you know about parallel assignment?
[08:29:05] Ox0dea: What should `a, b = a: 1, b: 2` do?
[08:29:35] pard: the same thing that print a => 1, b => 1 does
[08:30:01] Ox0dea: Assignment should do output...?
[08:30:12] pard: it will not treat a => 1 and b => 2 ndependently
[08:31:02] Ox0dea: How about `a, b, c = a: 1, 2, c: 3`, then?
[08:31:33] pard: it would be an err; much like the print a: 1, 2, c: 5 is
[08:31:55] Ox0dea: pard: But why? It could just as well result in two Hashes and a Fixnum being assigned independently.
[08:32:03] niemcu: has joined #ruby
[08:32:04] colegatron: has joined #ruby
[08:32:17] mistermocha: has joined #ruby
[08:32:32] Ox0dea: This is what is meant by "ambiguity".
[08:32:49] pard: Ox0dea, thanks :) that is actually my point -- print a: 1, 2, c: 5 could also mean that, but it won't
[08:33:26] devoldmx: has joined #ruby
[08:33:54] Ox0dea: pard: I'm almost certain it *could* be done that way, but it'd be a nightmare on all sides.
[08:36:03] pard: strange because i don't find it that dire :)
[08:36:37] pard: particularly as it already is there, in things such as
[08:36:59] pard: >> [print 12=>"e", 5=>"l"]
[08:37:00] ruboto: pard # => /tmp/execpad-081d76a16bc6/source-081d76a16bc6:2: syntax error, unexpected tINTEGER, expecting keywor ...check link for more (https://eval.in/460574)
[08:38:59] Ox0dea: It's available in places where the surrounding context helps narrow the field of reasonable interpretations; the RHS of an assignment is pretty much a free-for-all.
[08:39:15] devbug: has joined #ruby
[08:39:58] pard: for the record though, this is not possibl either
[08:40:03] pard: >>[print 12]
[08:40:04] ruboto: pard # => /tmp/execpad-f48e71819edc/source-f48e71819edc:2: syntax error, unexpected tINTEGER, expecting keywor ...check link for more (https://eval.in/460575)
[08:41:11] pard: i mean, at least in this case, the issue is more with sth else than with '=>' actually
[08:41:53] treaki: has joined #ruby
[08:42:45] arup_r: can you see me ?
[08:43:07] trosborn: has joined #ruby
[08:43:36] blackmesa: has joined #ruby
[08:44:12] pard: Ox0dea, any ideas?
[08:44:46] Ox0dea: pard: Nah, I've never bothered to dive in to figure that one out.
[08:45:04] al2o3-cr: has joined #ruby
[08:45:59] pard: these are quirks for jerks ;that is the reason they are only attractive to me
[08:46:02] karapetyan: has joined #ruby
[08:46:39] bricker: has joined #ruby
[08:47:31] treaki__: has joined #ruby
[08:47:39] tvw: has joined #ruby
[08:47:43] kidoz: has joined #ruby
[08:47:47] Ox0dea: >> $, = ' n'; (%w'utter'*2).join
[08:47:48] ruboto: Ox0dea # => "utter nutter" (https://eval.in/460576)
[08:47:53] Ox0dea: Quirks for jerks and utter nutters.
[08:48:15] pard: you naild it pard
[08:48:32] Ox0dea: pard: http://i.imgur.com/94jou4v.png
[08:48:43] skade: has joined #ruby
[08:48:58] Ox0dea: Let's at least give the parser a little credit; it handles that insanity just fine.
[08:49:12] pard: you naild it again :)
[08:50:34] dionysus69: has joined #ruby
[08:51:12] aevitas: has joined #ruby
[08:52:35] pard: Ox0dea, you should have told me the link you provided is NSFW :)
[08:52:35] aevitas: has joined #ruby
[08:54:05] pard: never thoughts the parsers have their own porn niche
[08:55:35] Ox0dea: pard: What're you talking about?
[08:55:39] Ox0dea: That shit is NSFL.
[08:56:34] pard: i was talking about http://i.imgur.com/94jou4v.png -- no offense
[08:56:37] dionysus69: has joined #ruby
[08:56:41] Ox0dea: Aye, me too.
[08:57:25] Ox0dea: No offense taken, of course; I didn't actually write it. I told a neural network that I wanted a Sinatra app and trained it to despise alphanumerics.
[08:57:38] Musashi007: has joined #ruby
[08:58:36] l_tonz: has joined #ruby
[08:59:27] pard: honstly though, i can't tell what [*?` on #5 means
[08:59:30] stannard: has joined #ruby
[08:59:41] ruboto: Ox0dea # => "`" (https://eval.in/460577)
[09:00:20] Ox0dea: >> [*?`..?{].join
[09:00:21] ruboto: Ox0dea # => "`abcdefghijklmnopqrstuvwxyz{" (https://eval.in/460578)
[09:00:29] Ox0dea: It's just a non-alphanumeric way to get hold of the alphabet.
[09:01:22] pard: thanks a lot; where've you got it from?
[09:01:35] Ox0dea: I... just kinda came up with it?
[09:02:05] Macaveli: has joined #ruby
[09:02:54] pard: i guess i've a lot to go to get a pro as you are
[09:03:14] Ox0dea: That's hardly the word I'd use for this sort of behavior.
[09:03:26] skade: has joined #ruby
[09:04:03] pard: i could not come up with a word more fit; i was considerng "hard-core" but thought it might be rude
[09:04:52] bruno-: has joined #ruby
[09:06:47] chipotle: has joined #ruby
[09:08:38] karapetyan: has joined #ruby
[09:09:08] al2o3-cr: >> [*?`..?{][?b<=>?a...?a<=>?b].join # :)
[09:09:09] ruboto: al2o3-cr # => "abcdefghijklmnopqrstuvwxyz" (https://eval.in/460579)
[09:09:45] karapetyan: has joined #ruby
[09:11:01] pard: i guess i must visit a vet soon
[09:13:11] Ox0dea: al2o3-cr: I can't believe I never thought to use that to get a 1.
[09:13:33] skade: has joined #ruby
[09:13:48] Ox0dea: pard: For my non-alphanumeric madness.
[09:13:52] Ox0dea: I gotta get numbers somehow.
[09:14:01] Ox0dea: >> [$$/$$, ' '=~/$/, ?`<=>?!]
[09:14:02] ruboto: Ox0dea # => [1, 1, 1] (https://eval.in/460580)
[09:14:17] Ox0dea: I like $$/$$ best, but the others are nifty too.
[09:14:52] karapetyan: has joined #ruby
[09:15:11] ruboto: Ox0dea # => 1 (https://eval.in/460581)
[09:15:19] pard: if i get it corrctly, [1..-1] won't work, though [1...-1] actually does?
[09:15:34] ruboto: pard # => false (https://eval.in/460582)
[09:16:10] Ox0dea: pard: I'm actually only using the alphabet in calls to String#tr, and since my encoding only uses 23 symbols, it's fine as long as it's correct up to "w".
[09:19:03] pard: >> ["a".."z"].each { |l| eval("$-"+l) }
[09:19:04] ruboto: pard # => no implicit conversion of Range into String (TypeError) ...check link for more (https://eval.in/460583)
[09:19:40] Ox0dea: pard: They're the command line flags.
[09:20:06] pard: what are they doing in the lang?
[09:20:30] Ox0dea: How do you mean?
[09:20:34] al2o3-cr: >> $*.size.next
[09:20:35] ruboto: al2o3-cr # => 1 (https://eval.in/460584)
[09:20:43] al2o3-cr: so many ways
[09:20:54] KINGSABRI_: has joined #ruby
[09:21:12] Ox0dea: al2o3-cr: That's a lot of letters, though.
[09:21:19] pard: i mean, are they so mportant they have $var names assiged to them?
[09:21:27] Ox0dea: pard: It's just a convenience, really.
[09:21:48] al2o3-cr: Yeah, $$/$$ I like the best
[09:22:41] decoponio: has joined #ruby
[09:23:49] Caius: has joined #ruby
[09:23:56] pard: it is so great being on this
[09:24:00] pard: thanks a lot
[09:24:33] Ox0dea: -~$. is sexy, but $. is dynamic.
[09:25:29] inteq: has joined #ruby
[09:25:49] joonty: has joined #ruby
[09:26:44] Musashi007: Guys, I???m getting this error: https://gist.github.com/skuhn/027f8262968db945e0c5 in ruby in sinatra and I???ve been trying to track it down for several hours but I???m not having any luck. Would anyone be willing to point me in some direction?
[09:28:04] Archyme: has joined #ruby
[09:28:40] bruno-: has joined #ruby
[09:29:12] Ox0dea: Musashi007: Are you able to post any code?
[09:29:52] Musashi007: can i send it privately?
[09:30:09] Ox0dea: Musashi007: Well, let's try something first.
[09:30:54] Ox0dea: Musashi007: You are using Sequel, yes?
[09:31:06] Musashi007: yes and the db is postgres
[09:31:21] Ox0dea: Musashi007: Put `Sequel.extension :core_extensions` after your requires.
[09:31:34] techsethi: has joined #ruby
[09:31:40] tvw: has joined #ruby
[09:31:43] Ox0dea: That'll add the #pg_array method to Array, whose absence is currently causing that NoMethodError.
[09:31:49] Musashi007: it???s there i???m pretty sure
[09:32:17] Ox0dea: How sure is "pretty sure"? :P
[09:32:43] Musashi007: require 'sequel/extensions/pg_array'
[09:32:43] Musashi007: require 'sequel/extensions/pg_interval'
[09:32:46] Musashi007: 200% positive
[09:32:57] Musashi007: Sequel::Model.db = Sinatra::Application.database
[09:33:02] duckpuppy: has joined #ruby
[09:33:03] zenguy_pc: has joined #ruby
[09:33:21] Musashi007: these are set in models.rb
[09:33:27] leafybasil: has joined #ruby
[09:33:58] fantazo: has joined #ruby
[09:34:57] Musashi007: I???m thinking it either has something to do with rack or my db isn???t up to date
[09:35:02] spider-mario: has joined #ruby
[09:35:07] Ox0dea: Musashi007: Well, you're getting a NoMethodError.
[09:35:31] Musashi007: that tells me it???s trying to call a function that it can???t find?
[09:35:38] stamina: has joined #ruby
[09:35:42] Ox0dea: A method that doesn't exist.
[09:36:07] CloCkWeRX: has joined #ruby
[09:36:19] Ox0dea: I think if you're bringing the extensions in that way, you still have to explicitly activate them.
[09:36:34] Ox0dea: That'd be `your_db.extension :pg_array`, in this case.
[09:37:50] Musashi007: Is it possible there???s some linking that I haven???t done?
[09:39:57] symm-: has joined #ruby
[09:39:58] Ox0dea: Well, Sequel is pure Ruby, so that seems unlikely.
[09:40:29] quazimodo: has joined #ruby
[09:42:20] but3k4: has joined #ruby
[09:43:32] ibouvousaime: has joined #ruby
[09:48:02] bricker: has joined #ruby
[09:48:35] Ox0dea: Musashi007: You have to tell Sequel that it's okay for it to patch core classes before you require extensions which do so.
[09:48:57] Ox0dea: `Sequel.extension :core_extensions` before `require 'sequel/extensions/pg_array'`.
[09:49:19] Musashi007: I think its incorrect one sec
[09:50:43] Musashi007: hm I am getting a different error. thank you very much
[09:51:16] Ox0dea: Sure thing. I may have to let you diagnose this new one. :P
[09:51:47] Musashi007: Yeah well at least its something new.. how did you figure that out, can I ask?
[09:52:36] Ox0dea: A NoMethodError is pretty informative if the receiver wasn't `nil`.
[09:53:01] Ox0dea: I just dug a little to figure out who was supposed to be providing this #pg_array method to the Array class and how.
[09:53:31] Musashi007: damn.. thanks
[09:53:36] ibouvousaime: has joined #ruby
[09:53:45] Ox0dea: Musashi007: http://git.io/vlGGa
[09:54:23] Musashi007: whoah the actual extension
[09:54:27] Ox0dea: There it is!
[09:55:00] arup_r: has joined #ruby
[09:55:03] Musashi007: i will be reading through that after i get through this
[09:55:40] Ox0dea: Can't help but appreciate a predilection for exploration. <3
[09:56:02] CloCkWeRX: has left #ruby: ()
[09:56:59] Musashi007: :D thanks.. back to this now
[09:58:02] Ox0dea: Godspeed.
[09:59:19] l_tonz: has joined #ruby
[10:00:28] juanpablo__: has joined #ruby
[10:03:51] [k-: has joined #ruby
[10:04:12] DEA7TH: has joined #ruby
[10:07:33] Archyme: has joined #ruby
[10:13:18] Alina-malina: has joined #ruby
[10:13:19] Trynemjoel: has joined #ruby
[10:13:34] kerunaru: has joined #ruby
[10:17:33] k3asd`: has joined #ruby
[10:17:58] ghoti: has joined #ruby
[10:23:42] techsethi: has joined #ruby
[10:26:54] ruurd: has joined #ruby
[10:28:09] FernandoBasso: has joined #ruby
[10:28:26] but3k4: has joined #ruby
[10:33:42] mistermocha: has joined #ruby
[10:34:10] devoldmx: has joined #ruby
[10:34:12] sdothum: has joined #ruby
[10:34:42] techsethi: has joined #ruby
[10:34:57] allomov: has joined #ruby
[10:38:23] ghoti: has joined #ruby
[10:40:29] user1138: has joined #ruby
[10:40:47] linocisco: has joined #ruby
[10:41:03] linocisco: hi all ruby folks.
[10:41:05] user1138: has joined #ruby
[10:41:06] neohunter: has joined #ruby
[10:41:36] linocisco: I am using ubuntu 14.04.3 LTS desktop x86, What should I install for learning ruby?
[10:41:55] beast: has joined #ruby
[10:42:10] user1138: has joined #ruby
[10:42:32] Ox0dea: linocisco: Books don't need to be installed.
[10:42:32] Musashi007: man, I justh have no clue
[10:42:45] user1138: has joined #ruby
[10:43:03] Musashi007: Is there a way to trace what is erroring with more paticularity, 0x0dea?
[10:43:13] linocisco: Ox0dea, I dont know.
[10:43:20] user1138: has joined #ruby
[10:43:39] linocisco: DO I need better IDE or ?/
[10:44:24] Musashi007: They all pretty much run the same stuff and if you???re starting with basic ruby you don???t really need an ide
[10:44:28] Musashi007: irb and a prompt
[10:44:50] Ox0dea: Musashi007: Whale, surely you're being given an exception and the line of code which raised it?
[10:45:22] Musashi007: NameError - undefined local variable or method `iworkout' for #<Sinatra::Application:0x007fe1a4703450>:
[10:45:23] Musashi007: web.1 | enkuhn/.rvm/gems/ruby-2.2.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1004:in `process_route'
[10:46:04] knight_: has joined #ruby
[10:46:21] knight: has joined #ruby
[10:46:26] ghoti: has joined #ruby
[10:46:39] Musashi007: I really don???t know what to make of that
[10:46:43] Ox0dea: Musashi007: That's simple enough; you're referencing something that doesn't actually exist.
[10:47:04] Musashi007: but i???m positive i???m refering to it in a file for cases where it does work
[10:47:19] Ox0dea: Musashi007: Well, sure, but file-scope is hardly the only kind.
[10:48:22] Musashi007: it worked previously which is funny that I don???t know what was done to mess this up
[10:48:33] Musashi007: I have been thinking that the security stuff is somehow interfering
[10:48:44] lkba: has joined #ruby
[10:48:59] lkba_: has joined #ruby
[10:49:33] blackmesa: has joined #ruby
[10:50:02] Musashi007: would my routes.rb ever require my models.rb?
[10:50:24] Ox0dea: It could, but that wouldn't import its local variables.
[10:50:57] knight-: has joined #ruby
[10:50:57] Musashi007: import its local variables..
[10:51:05] akem: has joined #ruby
[10:52:08] Ox0dea: Musashi007: Local variables declared outside of methods are not visible within them.
[10:52:47] Ox0dea: >> foo = 42; def bar; foo; end; bar rescue $!
[10:52:48] ruboto: Ox0dea # => #<NameError: undefined local variable or method `foo' for main:Object> (https://eval.in/460590)
[10:53:21] linocisco: hi all, should we install ruby on ubuntu like apt-get install ruby or from tar balls?
[10:53:25] Musashi007: can I make a global variable out of it?
[10:53:35] Ox0dea: Musashi007: You *could*, but it's likely you oughtn't.
[10:54:18] Ox0dea: linocisco: Install from current HEAD so you can use all the fancy new stuff in 2.3.
[10:56:13] linocisco: Ox0dea, using apt?
[10:57:18] linocisco: Ox0dea, https://www.ruby-lang.org/en/documentation/installation/#apt
[10:57:18] Ox0dea: linocisco: No, git and make.
[10:57:32] linocisco: Ox0dea, I dont know how to install by git and make
[10:57:37] startupality: has joined #ruby
[10:58:42] jxs_: has joined #ruby
[11:00:07] l_tonz: has joined #ruby
[11:00:22] weihan: has joined #ruby
[11:00:58] Musashi007: @0x0dea how can I pass a variable from one function to another when the functions define different routes?
[11:02:07] arup_r: has joined #ruby
[11:02:17] Ox0dea: Musashi007: How do you mean? Are you actually drawing routes inside other methods?
[11:03:16] Musashi007: I???m not sure on the terminology but I have a route which saves things into a string thats added to the web address which is basically a unique identifier and then calls another route
[11:03:52] Musashi007: btw, even making the variable global didn???t solve the problem
[11:03:53] rikkipitt: has joined #ruby
[11:04:19] Ox0dea: Musashi007: Well, you didn't get a NameError if it was a global, so what happened?
[11:05:39] Musashi007: I did, actually. I swear there is a typo and I am just missing it
[11:05:45] Musashi007: I just re-did that
[11:06:30] Ox0dea: >> $all_globals_exist_implicitly # Musashi007
[11:06:31] ruboto: Ox0dea # => nil (https://eval.in/460591)
[11:07:07] linocisco: Ox0dea, how to install from git?
[11:07:34] Ox0dea: linocisco: I was being facetious, but it'd be an interesting journey if you were actually up to it.
[11:07:35] rgtk: has joined #ruby
[11:07:59] linocisco: hi all, apt-get install ruby-full will give only version 1.9.1, and we dont need to maintain.
[11:08:21] linocisco: updated version is 2.3. or something. why so different?
[11:08:59] havenwood: linocisco: Brightbox maintains up-to-date Ruby packages for Ubuntu: https://www.brightbox.com/docs/ruby/ubuntu/
[11:10:25] hs366: has joined #ruby
[11:11:08] linocisco: havenwood, thanks let me see if 2.2 is latest
[11:11:43] havenwood: Oh, yeah, if you want 2.3 build it yourself.
[11:12:05] havenwood: Not out till Christmas.
[11:13:48] Ox0dea: >> 25 == 031 # havenwood
[11:13:49] ruboto: Ox0dea # => true (https://eval.in/460592)
[11:13:56] Ox0dea: (Somebody had to say it. :P)
[11:15:26] Igorshp: has joined #ruby
[11:17:27] havenwood: Product Item 25-031: http://www.goodpaper.com/reindeer-christmas-p-513.html
[11:17:45] jgpawletko: has joined #ruby
[11:18:16] CloCkWeRX: has joined #ruby
[11:18:39] havenwood: Hot dog reindeer! Hem. Thanks Google.
[11:18:56] Ox0dea: havenwood: You don't know why programmers confuse Halloween and Christmas?!
[11:19:36] havenwood: nightmare before christmas
[11:23:55] charliesome: has joined #ruby
[11:24:04] SCHAAP137: has joined #ruby
[11:26:17] stannard: has joined #ruby
[11:27:17] quazimodo: has joined #ruby
[11:30:19] rikkipitt: has joined #ruby
[11:32:14] kidoz: has joined #ruby
[11:32:54] mikecmpbll: has joined #ruby
[11:32:55] zenguy_pc: has joined #ruby
[11:33:31] pandaant: has joined #ruby
[11:34:19] moeabdol: has joined #ruby
[11:37:30] Igorshp: has joined #ruby
[11:38:30] CloCkWeRX: has joined #ruby
[11:42:52] voker57: has joined #ruby
[11:43:34] ekinmur: has joined #ruby
[11:45:39] firstdayonthejob: has joined #ruby
[11:46:12] juanpablo__: has joined #ruby
[11:46:45] ibouvousaime: has joined #ruby
[11:47:26] Guest66532: has joined #ruby
[11:47:49] agit0: has joined #ruby
[11:48:11] cornerma1: has joined #ruby
[11:49:16] sameerynho: has joined #ruby
[11:50:48] pard: >> def e(*arg,&r) [arg,r] end; [e(), e]
[11:50:49] ruboto: pard # => [[[], nil], [[], nil]] (https://eval.in/460613)
[11:51:54] bricker: has joined #ruby
[11:53:16] lxsameer_: has joined #ruby
[11:54:59] sdothum: has joined #ruby
[11:55:19] kerunaru: has joined #ruby
[11:56:13] ht__: has joined #ruby
[11:56:32] Ox0dea: What was that all about?
[11:56:53] FernandoBasso: has joined #ruby
[11:58:31] NeverDie: has joined #ruby
[12:00:51] l_tonz: has joined #ruby
[12:02:09] solocshaw: has joined #ruby
[12:05:36] ht__: has joined #ruby
[12:05:38] ruurd: has joined #ruby
[12:05:53] agit0: has joined #ruby
[12:06:19] DoubleMalt: has joined #ruby
[12:08:45] tkuchiki: has joined #ruby
[12:10:15] sdothum: has joined #ruby
[12:11:06] Erik_Underline: has joined #ruby
[12:12:42] Erik_Underline: Is there any reason why mac is prefered over windows in Ruby community? (And other programming languages aswell)
[12:14:19] tknz: has joined #ruby
[12:15:52] agit0: has joined #ruby
[12:16:42] charliesome: has joined #ruby
[12:17:21] solocshaw: has joined #ruby
[12:19:37] SCHAAP137: has joined #ruby
[12:21:02] Papierkorb: Is there something like a weekly ruby/development challenge? Not where you create something big or 'new', more of the sort of developing and implementing a small algorithm to solve some kind of issue.
[12:22:11] Ox0dea: Erik_Underline: That you even know to ask is arguably an answer to the question.
[12:22:51] Ox0dea: Papierkorb: RPCFN is inactive, but there are some very nice challenges there.
[12:23:30] ruurd: has joined #ruby
[12:25:59] Erik_Underline_: has joined #ruby
[12:26:12] Igorshp: has joined #ruby
[12:26:48] Erik_Underline_: Ox0dea: Not really, I can't really imagine any good reason why you'd prefer Mac over Windows, but the opposite being very easy for me to do.
[12:27:05] Ox0dea: Erik_Underline_: Please elaborate.
[12:27:47] vigintas: has joined #ruby
[12:27:53] Papierkorb: People prefer windows over anything? Wow
[12:28:41] Ox0dea: > If I had asked people what they wanted, they would have said faster horses.
[12:29:02] Erik_Underline_: The question is, what does mac do that makes rubyists prefer it over windows?
[12:29:08] Erik_Underline_: Very simple question.
[12:29:13] havenwood: Erik_Underline_: POSIX
[12:29:21] Papierkorb: Erik_Underline_: (Note that I also don't like Mac or Apple in general): UNIX and POSIX
[12:29:32] Papierkorb: A somewhat good and defined environment
[12:29:35] Ox0dea: Erik_Underline_: The tools in Unix-y environments are designed to integrate with each other.
[12:29:58] Papierkorb: Windows is like the wild west for software developers. everyone does his own thing, no consistency anywhere
[12:30:06] havenwood: Erik_Underline_: OS X is one of the BSDs from the UNIX heritage.
[12:30:22] bmalum: has joined #ruby
[12:30:48] Ox0dea: Are you two employed by AT&T or something? What's with the all caps?
[12:31:43] Ox0dea: Erik_Underline_: Windows is having to go all over the place to get your groceries, and nobody will tell you what's in it; Unix delivers to your door with the recipes.
[12:31:50] Papierkorb: Erik_Underline_: Just have a look at how software is installed. Pretend you know the softwares' name. Linux: Ask the package manager what the package is called, install it, done. 2 step process. You didn't waste time on clicking Next a thousand times, and you also don't have the Ask toolbar now. The software you DL'd is also malware free.
[12:31:50] jgt: has joined #ruby
[12:31:56] havenwood: Ox0dea: touche
[12:32:51] Papierkorb: Erik_Underline_: Windows: Google the program, try to find who's the actualy developer, try to find their webpage, hope that you got the right one and not a malware-ridden version of it, then click next, hope that you disabled all adware shit in the process, and then you may have a running application.
[12:33:13] Papierkorb: Erik_Underline_: So, what of that is harder to do? What feels more consistent, and what of that is more wild west?
[12:33:27] Erik_Underline_: Papierkorb: That's very true :P
[12:33:39] rgtk: has joined #ruby
[12:33:52] Papierkorb: Oh, and now try to update the program. There must be like at least 5 update services running on a usual windows installation. what a waste of resources.
[12:34:35] duckpuppy: has joined #ruby
[12:34:58] devoldmx: has joined #ruby
[12:35:21] ruurd: has joined #ruby
[12:36:30] Papierkorb: Erik_Underline_: Also, a good dev environment is so much harder to do on windows. On linux, that's pretty much given on every major distro. if gem install complains about something it couldn't find, ask your package manager for it, install it, and try again. Done. Windows: Well, for one, install a C compiler, then pray that you have the right one if you're using binary libs somewhere (ABI incompatibilities!). The list goes on. On linux it's not
[12:36:32] Papierkorb: fool proof. No doubt in that. But it's still so much easier to just get work done.
[12:37:46] Ox0dea: s/linux/not-Windows/
[12:38:21] Papierkorb: Ox0dea: never used Mac on my own, can't say more about it than that I dislike their keyboard layout and Apple in general.
[12:38:32] Ox0dea: Papierkorb: It's Unix...
[12:41:07] charliesome: has joined #ruby
[12:41:53] h99h9h88: has joined #ruby
[12:43:29] charliesome: has joined #ruby
[12:43:39] ht__: has joined #ruby
[12:44:49] rgtk`: has joined #ruby
[12:45:50] JammyHammy: has joined #ruby
[12:47:08] ruurd: has joined #ruby
[12:49:00] Musashi007: has joined #ruby
[12:52:14] c355E3B: has joined #ruby
[12:53:45] stannard: has joined #ruby
[12:58:01] charliesome: has joined #ruby
[12:58:16] dellavg: has joined #ruby
[12:58:22] CloCkWeRX: has joined #ruby
[12:59:36] ht__: has joined #ruby
[13:01:15] benhuda: has joined #ruby
[13:01:35] l_tonz: has joined #ruby
[13:02:21] atomical: has joined #ruby
[13:03:52] solocshaw: has joined #ruby
[13:06:37] but3k4: has joined #ruby
[13:06:51] dellavg_: has joined #ruby
[13:10:58] charliesome: has joined #ruby
[13:15:46] karapetyan: has joined #ruby
[13:17:40] diegoaguilar: has joined #ruby
[13:17:57] techsethi: has joined #ruby
[13:18:48] nanoz: has joined #ruby
[13:19:10] pabs: has joined #ruby
[13:24:06] rikkipitt: has joined #ruby
[13:30:50] vigintas: has joined #ruby
[13:31:14] Igorshp: has joined #ruby
[13:31:40] ht__: has joined #ruby
[13:31:43] karapetyan: has joined #ruby
[13:32:50] aep: has joined #ruby
[13:34:11] zenguy_pc: has joined #ruby
[13:34:58] juanpablo__: has joined #ruby
[13:36:44] arup_r: has joined #ruby
[13:39:18] charliesome: has joined #ruby
[13:39:46] chouhoulis: has joined #ruby
[13:43:00] karapetyan: has joined #ruby
[13:43:31] chouhoulis: has joined #ruby
[13:43:41] phillips1012: has joined #ruby
[13:45:48] agit0: has joined #ruby
[13:46:18] firstdayonthejob: has joined #ruby
[13:47:42] CloCkWeRX: has left #ruby: ()
[13:51:40] ht__: has joined #ruby
[13:53:57] bricker: has joined #ruby
[13:54:26] _blizzy_: has joined #ruby
[13:55:01] blackmesa: has joined #ruby
[13:57:24] leafybasil: has joined #ruby
[13:57:50] shevy: yeah apple even stole unix there
[14:00:52] demonlove: has joined #ruby
[14:02:22] l_tonz: has joined #ruby
[14:02:45] demonlove: has joined #ruby
[14:03:52] JDiPierro: has joined #ruby
[14:04:09] OrbitalKitten: has joined #ruby
[14:06:22] rubyaw: has joined #ruby
[14:06:25] duckpuppy: has joined #ruby
[14:06:41] Jardayn: has joined #ruby
[14:06:51] Igorshp: has joined #ruby
[14:07:42] pwnd_nsfw: has joined #ruby
[14:09:02] karapetyan: has joined #ruby
[14:09:07] tkuchiki: has joined #ruby
[14:12:19] rodfersou: has joined #ruby
[14:12:34] DiCablo: has joined #ruby
[14:12:46] Igorshp: has joined #ruby
[14:13:31] jgpawletko: has joined #ruby
[14:14:41] Erik_Underline: has joined #ruby
[14:17:41] ht__: has joined #ruby
[14:17:46] Macaveli: has joined #ruby
[14:18:40] Mia: has joined #ruby
[14:18:40] Mia: has joined #ruby
[14:21:08] moeabdol: has joined #ruby
[14:21:20] jmarchello: has joined #ruby
[14:21:58] Igorshp: has joined #ruby
[14:22:52] jmarchello: has left #ruby: ()
[14:24:36] ruurd: has joined #ruby
[14:25:34] icbm: has joined #ruby
[14:26:51] dellavg_: has joined #ruby
[14:27:58] Tref: has joined #ruby
[14:28:19] techsethi: has joined #ruby
[14:32:15] colegatron: has joined #ruby
[14:32:48] dionysus69: has joined #ruby
[14:33:06] ItSANgo: has joined #ruby
[14:33:41] ivanskie: has joined #ruby
[14:33:48] freerobby: has joined #ruby
[14:35:45] devoldmx: has joined #ruby
[14:36:46] kith: has joined #ruby
[14:36:52] fedexo: has joined #ruby
[14:37:25] mistermocha: has joined #ruby
[14:38:17] sankaber: has joined #ruby
[14:44:48] DrCode: has joined #ruby
[14:46:07] but3k4: has joined #ruby
[14:47:23] jmarchello: has joined #ruby
[14:47:38] ht__: has joined #ruby
[14:48:21] karapetyan: has joined #ruby
[14:50:00] shinnya: has joined #ruby
[14:50:23] Erik_Underline: Which linux distro is best suited for rubyists?
[14:50:48] lianj: Erik_Underline: doesn't matter
[14:51:01] roxtrongo: has joined #ruby
[14:51:16] Erik_Underline: Hm, what's your preference though? :D
[14:51:24] scampbell: has joined #ruby
[14:51:24] demonlove: distro which u install first!!
[14:51:38] Ox0dea: Erik_Underline: Which one(s) are you looking at?
[14:52:31] Erik_Underline: Ubuntu, Mint, Mageia, Gentoo etc
[14:52:44] Erik_Underline: I don't know what to pick xD
[14:52:49] Ox0dea: Erik_Underline: Gentoo, then.
[14:52:54] lianj: Ox0dea: haha
[14:53:01] lianj: Erik_Underline: you ever used linux before?
[14:53:08] Ox0dea: %w[Ubuntu Mint Mageia Gentoo].sample # Erik_Underline
[14:53:13] Ox0dea: >> %w[Ubuntu Mint Mageia Gentoo].sample # Erik_Underline
[14:53:14] ruboto: Ox0dea # => "Gentoo" (https://eval.in/460694)
[14:53:15] arup_r: has joined #ruby
[14:53:21] shevy: gentoo uses python
[14:53:25] Ox0dea: Erik_Underline: The robot has determined your fate.
[14:53:29] dorei: has joined #ruby
[14:53:43] lianj: Erik_Underline: gentoo will be too hard
[14:53:55] Ox0dea: Don't listen to them; robots are infallible.
[14:53:56] lianj: go with ubuntu and in a year look at archlinux/gentoo
[14:54:03] demonlove: ubuntu will be easier.
[14:54:17] Ox0dea: "Arch/Gentoo" is the "C/C++" of Linux distros.
[14:54:32] Ox0dea: They don't belong in the same bag.
[14:54:38] Rollabunna: has joined #ruby
[14:54:39] Erik_Underline: I'm more familiar with python than C
[14:54:59] demonlove: Ox0dea: how robot are conveting question into eval statement?
[14:55:07] Ox0dea: Erik_Underline: You don't really intend to switch to Linux, do you?
[14:55:15] Ox0dea: demonlove: Pardon?
[14:55:18] lianj: Erik_Underline: you plan to run it as desktop machine or only as a server/vm to ssh into?
[14:55:28] Z00t: has joined #ruby
[14:55:30] demonlove: (https://eval.in/460694)
[14:55:47] demonlove: how does bot convert it into question
[14:55:48] shevy: demonlove it should show more context
[14:56:04] Ox0dea: demonlove: I just used the Array#sample method to randomly pick one of the elements.
[14:56:20] Erik_Underline: I do, I'm gonna get a test machine to do some linux testing on it, you know
[14:56:26] Ox0dea: lianj: If I'm not much mistaken, Erik_Underline is something of a "help vampire" that's just pouring out the blood. :<
[14:56:41] shevy: yeah good old webchatster
[14:56:42] lianj: oh like shevy then. thanks
[14:56:47] Ox0dea: Not at all like shevy.
[14:56:53] shevy: oh lianj are you the guy who is annoying as hell?=
[14:56:54] Erik_Underline: I thought shevy was more advanced than me
[14:57:13] Erik_Underline: Ox0dea then says "He is"
[14:57:13] Z00t: has joined #ruby
[14:57:39] shevy: that's the problem with webchatsters
[14:57:47] hippyphysicist: has joined #ruby
[14:58:05] Ox0dea: Erik_Underline: We can't say how much more advanced shevy is than you; division by 0 is undefined.
[14:58:20] shevy: I don't webchat!
[14:58:28] Ox0dea: shevy: And you write Ruby!
[14:58:30] Erik_Underline: You're not even allowed to try that :c
[14:58:53] Erik_Underline: Hey, I know a bit of ruby, that's like 0.2 atleast in advancement
[14:58:55] shevy: Ox0dea true
[14:59:16] Erik_Underline: And like... 0.1 in python
[14:59:29] lianj: Ox0dea: shevy is pretty advanced and old when it comes to trolls. it will grow on you
[14:59:46] shevy: Ox0dea: lianj is pretty young and stupid. he won't grow
[15:00:28] Ox0dea: Erik_Underline: So, what's the game? Are you somehow able to perform the mental gymnastics necessary to equate asking stupid questions with becoming a better programmer?
[15:02:00] karapetyan: has joined #ruby
[15:02:22] Ox0dea: This is called deflection, incidentally, and it means there's a problem.
[15:02:38] davedev24: has joined #ruby
[15:02:51] Erik_Underline: Well, you deflected my deflection
[15:03:04] l_tonz: has joined #ruby
[15:03:05] Ox0dea: > So, it has come to this.
[15:03:19] Erik_Underline: I don't know what this is though :x
[15:03:28] Ox0dea: That's the bug we're trying to fix.
[15:04:04] Ox0dea: Yes, there is definitely a bug.
[15:04:35] chouhoul_: has joined #ruby
[15:05:40] cjbrambo: has joined #ruby
[15:05:52] zenguy_pc2: has joined #ruby
[15:06:43] chouhoul_: has joined #ruby
[15:10:52] kies^: has joined #ruby
[15:10:54] Erik_Underline: Ox0dea: Why didn't you write your code simple like this? = https://eval.in/460698
[15:11:43] Ox0dea: Shameful. https://eval.in/460695
[15:12:39] Erik_Underline: Okay, I forgot to put " ", sorry xD
[15:13:53] Erik_Underline: Oh neat, didn't know that https://eval.in/460701
[15:14:01] bricker: has joined #ruby
[15:14:26] Ox0dea: This guy.
[15:14:32] lotherk: has joined #ruby
[15:14:32] Erik_Underline: Anyhow, Ox0dea, why didn't you write your code like this? https://eval.in/460701 But instead like this https://eval.in/460694
[15:15:07] Ox0dea: Erik_Underline: We should strive not to have to name our throwaway values.
[15:15:34] Erik_Underline: What do you mean?
[15:15:35] havenwood: Erik_Underline: Sample yours a few more time to find the folly.
[15:16:00] jessemcgilallen: has joined #ruby
[15:16:15] FernandoBasso: has joined #ruby
[15:17:41] sandals: has joined #ruby
[15:17:54] Erik_Underline: havenwood: I don't see the folly? https://eval.in/460711
[15:18:40] havenwood: Erik_Underline: That's not the version you asked to compare.
[15:19:01] firstdayonthejob: has joined #ruby
[15:19:50] Erik_Underline: Yeah, I forgot to remove the ] brackets there
[15:20:06] ekinmur: has joined #ruby
[15:21:03] havenwood: Erik_Underline: Several versions of your "simple code" don't work. None are simpler.
[15:21:08] Ox0dea: Erik_Underline: This is your third day in #ruby and you still don't have an interpreter installed locally...? I just don't get it.
[15:21:30] Erik_Underline: <Ox0dea> We should strive not to have to name our throwaway values. What do you mean? https://www.youtube.com/watch?v=IwpphM7u5aQ
[15:21:37] havenwood: Erik_Underline: No trolling.
[15:21:54] Erik_Underline: I'm not trolling -.-
[15:22:04] havenwood: !kick Erik_Underline Bieber
[15:22:04] ruboto: ruboto kicked Erik_Underline:
[15:22:04] ruboto: -o ruboto
[15:23:41] juanpablo__: has joined #ruby
[15:24:00] Erik_Underline: has joined #ruby
[15:24:05] Erik_Underline: Whaa? Why was I kicked?
[15:26:19] shevy: because you are dishonest
[15:27:30] akem: has joined #ruby
[15:28:19] jhass: Erik_Underline: the boilerplate is added by the bot
[15:28:23] ruboto: jhass # => 1 (https://eval.in/460714)
[15:28:33] Erik_Underline: That, by any definition is an ad-hominem attack based on nothing.
[15:28:35] jhass: Erik_Underline: now compare my input to the code behind the link
[15:28:57] jhass: Erik_Underline: get over it, you don't want to fight it, you'll loose
[15:29:06] Erik_Underline: Well I didn't know that.
[15:29:15] Erik_Underline: I wasn't fighting it
[15:33:50] zenguy_pc2: has joined #ruby
[15:36:13] rgtk: has joined #ruby
[15:36:28] Ulfalizer: has joined #ruby
[15:39:25] Ox0dea: Erik_Underline: If you will maintain that you are not trolling (here meaning "feigning ignorance pursuant to the displeasure of others"), it must be concluded that you do not, at present, pay sufficiently close attention to detail for this programming thing to be your cup of tea.
[15:39:28] claw: has joined #ruby
[15:45:14] segfalt``: has joined #ruby
[15:46:32] but3k4: has joined #ruby
[15:47:37] rikkipitt: has joined #ruby
[15:49:36] cjbrambo: has joined #ruby
[15:50:01] shevy: hmm... "gem install" will only install .gem files right? bundler however had also allows installation from e. g. github-based projects... that's one clear advantage that bundler would have compared to gem-installations?
[15:50:50] havenwood: shevy: `gem install -g` will resolve dependencies from a Gemfile including installing gems directly from the Githubs.
[15:51:07] dfinninger: has joined #ruby
[15:52:28] diegoaguilar: has joined #ruby
[15:53:04] havenwood: shevy: https://github.com/rubygems/rubygems/blob/4a778c9c2489745e37bcc2d0a8f12c601a9c517f/lib/rubygems/request_set/gem_dependency_api.rb#L325-L338
[15:54:29] jackjackdripper: has joined #ruby
[15:57:23] startupality: has joined #ruby
[15:58:27] devoldmx: has joined #ruby
[15:58:50] arup_r: has joined #ruby
[15:59:22] sumark: has joined #ruby
[15:59:47] OrbitalKitten: has joined #ruby
[16:00:00] asmodlol: has joined #ruby
[16:00:18] stannard: has joined #ruby
[16:01:38] ht__: has joined #ruby
[16:02:34] Success: has joined #ruby
[16:03:15] Success: why is jruby faster than rubinius, java tends to be slower in almost every other case except ruby... I don't understand.
[16:03:41] ekinmur: has joined #ruby
[16:03:58] l_tonz: has joined #ruby
[16:05:26] arup_r: has joined #ruby
[16:06:39] bricker: has joined #ruby
[16:07:10] duckpuppy: has joined #ruby
[16:07:38] ht__: has joined #ruby
[16:08:55] Ox0dea: Success: Java is really quite good once the VM's warmed up.
[16:09:06] EminenceHC: has joined #ruby
[16:10:12] Success: besides the memory overhead and such I suppose.
[16:10:44] Maletor: has joined #ruby
[16:10:45] Ox0dea: Success: You were asking about speed.
[16:10:49] Success: ah i see the issue after you said that it all makes sense thanks
[16:11:40] ht__: has joined #ruby
[16:12:46] Success: thanks Ox0dea
[16:13:13] Ox0dea: Success: Happy to help, I guess? :P
[16:13:50] Success: btw what do you do with ruby
[16:14:25] apeiros: dangerous question to ask Ox0dea, that is, if you value your sanity.
[16:15:59] beauby: has joined #ruby
[16:16:33] bmalum_: has joined #ruby
[16:17:33] cjbrambo: has joined #ruby
[16:18:02] Ox0dea: Success: I value your sanity.
[16:18:39] Motoservo: has joined #ruby
[16:18:58] Success: Ox0dea oh trust me I don't that ship has sailed
[16:19:17] Ox0dea: Success: I can't that sentence. :<
[16:19:51] Success: Ox0dea: sanity? what is that.
[16:20:03] Success: Ox0dea: my sanity is long gone my friend lol
[16:20:20] Ox0dea: That's nothing to be joked about with such levity.
[16:21:07] Success: i'll just pretend its top secret or something and continue with my noobishness
[16:21:12] rgb-one: has joined #ruby
[16:21:43] Success: so basically nginx is running through unicorn to rack to render markdown for me. is that the proper way to do things or..?
[16:21:55] Success: mind you apache is also passing /cdn/ to nginx
[16:21:58] Success: hey rgb-one
[16:22:38] Ox0dea: Success: You've got Rack rendering your Markdown?
[16:22:52] Success: Ox0dea: yeah
[16:23:00] Ox0dea: Success: Do you mean Tilt?
[16:23:45] Success: i've been using these http://rack.github.io/ https://github.com/github/markup
[16:23:49] rgb-one: Success: o/
[16:24:46] rgb-one: I am working on a basic virus scanner application and would like to discuss it a bit
[16:24:58] Success: by the way how should I be accessing the url variable i legitimately edited the source code for each of these (i'm using gentoo and had it readily available) to pass it through something stupid i dont care to remember right now
[16:25:09] jackjackdripper: has joined #ruby
[16:25:35] Success: like I want localhost/readme.md to read readme.md from the filesystem and parse it as html
[16:25:47] Success: rgb-one: sure i've written some of those I'd love to discuss it :)
[16:25:57] Ox0dea: rgb-one: Have you done some cursory research into how the established players do it?
[16:26:18] favadi: has joined #ruby
[16:26:25] rgb-one: Ox0dea, Success, Cool :)
[16:26:37] Success: rgb-one: remember that fbi virus, I wrote a patch that hp and lenovo silently pushed to all of their systems globally to fix it hehe. pretty proud xD
[16:26:49] houhoulis: has joined #ruby
[16:27:03] Success: rgb-one how far are you, or have you started yet?
[16:28:01] rgb-one: Success: I have started with the GUI but I haven't done much.
[16:28:23] Ox0dea: rgb-one: You're doing it backwards. :<
[16:28:40] segfalt``: has joined #ruby
[16:28:46] Success: oX0dea, top down v. bottom up dude.
[16:28:57] rgb-one: I've been putting the cart ahead of the horse, in that I haven't clarified my ideas and already I am coding.
[16:29:01] Success: rgb-one but yes, usually you should write the gui as an interface to the cli
[16:29:17] carvantes: has joined #ruby
[16:29:20] rgb-one: Success: Yea
[16:29:46] Success: rgb-one: no worries man, it's youre first one, that's pretty common way (nubishly) of doing things, just know you'll end up rewriting it and being highly disatisfied
[16:30:17] tmtwd: has joined #ruby
[16:31:34] rgb-one: Alright so I will clarify the scope of this application
[16:32:20] rgb-one: thats another thing you know without boundaries I kinda go crazy with ideas and don't settle.
[16:33:28] rgb-one: So the application is a basic virus scanner that will scan files to check if it is a virus by using its file signiature (md5, sha1)
[16:33:45] centrx: has joined #ruby
[16:34:11] Guest26537: has joined #ruby
[16:34:30] rgb-one: So I will have a virus definitions database and if a file matches any of the definitions in the database, then it will be flagged as a virus and quarentined
[16:34:48] Ox0dea: rgb-one: All five of them?
[16:35:17] rgb-one: Ox0dea: five? What do you mean?
[16:36:09] Ox0dea: rgb-one: I realize you're only doing it as an exercise, but do be mindful of the fact that very few real-world viruses are "static" enough for a simple checksum to reliably detect them.
[16:36:39] Ox0dea: Success: Can you help? https://eval.in/460724
[16:36:53] Ox0dea: I don't get why that doesn't print "foo ".
[16:37:18] Ox0dea: I'm super-shoveling ' ' into 'foo', right?
[16:37:27] l_tonz: has joined #ruby
[16:37:50] Success: rgb-one just a sec
[16:38:01] cwong_on_irc: has joined #ruby
[16:38:11] rgb-one: Ox0dea: Maybe cause you are using single quotes.
[16:38:19] Ox0dea: rgb-one: Just a sec.
[16:39:18] Ox0dea: Same deal. https://eval.in/460730
[16:39:19] Success: Ox0dea: too many arrows dude only use two lmao
[16:39:29] Ox0dea: Success: But I want to super-shovel.
[16:39:44] sgambino: has joined #ruby
[16:39:50] Success: rgb-one: so for all intesnive purposes lets say we do that
[16:40:16] Success: Here's what you want to figure out how to do: checksum, get a directory listing, differentiate a file and folder, and access a database
[16:40:40] Success: rgb-one: now the hardest part is actually gui related- the progress bar, which will be very fun I promise ;)
[16:40:50] Success: rgb-one: what are you having issues with?
[16:41:03] mistermocha: has joined #ruby
[16:42:13] borkdude: has joined #ruby
[16:42:13] Success: Ox0dea: why doesn't i+++++i work, it's a valid statement XD same reason i think llol
[16:42:18] adambeynon: has joined #ruby
[16:42:19] bjmllr: has joined #ruby
[16:42:20] halfdan: has joined #ruby
[16:42:30] TvL: has joined #ruby
[16:42:31] ELCALOR: has joined #ruby
[16:42:37] Ox0dea: Success: That could work just fine. Do observe that I'm not getting a SyntaxError.
[16:42:47] tobyx: has joined #ruby
[16:42:49] G: has joined #ruby
[16:42:50] danzilio: has joined #ruby
[16:42:50] jevs: has joined #ruby
[16:42:50] knowtheory: has joined #ruby
[16:43:08] Ox0dea: >> i = 2; i+++++i
[16:43:09] ruboto: Ox0dea # => 4 (https://eval.in/460736)
[16:43:19] rflot: has joined #ruby
[16:43:44] pfg: has joined #ruby
[16:43:55] Eleeleth: has joined #ruby
[16:43:57] MiracleBlue: has joined #ruby
[16:44:02] Success: tbbh what do you mean "super shovel"
[16:44:09] Iacobus: has joined #ruby
[16:44:18] PhilK: has joined #ruby
[16:44:25] Success: Ox0dea: shouldn't that be like six?
[16:44:39] DoYouKnow: has joined #ruby
[16:44:39] iamdevnul: has joined #ruby
[16:44:41] EasyCo: has joined #ruby
[16:44:41] ramblinpeck: has joined #ruby
[16:44:44] symm-: has joined #ruby
[16:44:53] Ox0dea: Success: Nah, +@ is the identity function for Fixnums.
[16:45:18] Ox0dea: << is the "shovel" operator, so I figured I could use it twice to, like, double-shovel.
[16:45:23] Success: oh really it should be i++ + ++i
[16:45:30] Ox0dea: This isn't ##c.
[16:45:32] lele: has joined #ruby
[16:45:35] Success: idk what a double shovle would do other than push null to nothing lol
[16:45:35] codecop: has joined #ruby
[16:45:47] Ox0dea: >> 'foo' << 'x' << 'y' # Success
[16:45:48] ruboto: Ox0dea # => "fooxy" (https://eval.in/460737)
[16:45:49] frankS2: has joined #ruby
[16:46:00] Ox0dea: Why can't I cut out the middleman?
[16:46:10] prasselpikachu: has joined #ruby
[16:46:12] bougyman: has joined #ruby
[16:46:18] demophoon: has joined #ruby
[16:46:20] rgb-one: Success: I think I will focus on the backend first
[16:46:28] Success: >> 'foo' <<<< 'xy' # doesn't make sense
[16:46:29] Laaw: has joined #ruby
[16:46:29] ruboto: Success # => /tmp/execpad-f1502b1332fb/source-f1502b1332fb:2: syntax error, unexpected << ...check link for more (https://eval.in/460738)
[16:46:30] drPoggs: has joined #ruby
[16:46:41] BTRE: has joined #ruby
[16:46:46] Shidash: has joined #ruby
[16:46:47] JStoker: has joined #ruby
[16:46:53] Success: like i feel like this is to make a point in reference to somethin earlier but you win im not following XD
[16:46:53] elektronaut: has joined #ruby
[16:47:05] akitada: has joined #ruby
[16:47:06] Success: OH I GET IT NOW THATS BRILLIANT
[16:47:15] BackEndCoder: has joined #ruby
[16:47:38] rgb-one: Success: I will be using Python to code the application because I will be using PyQt for the GUI.
[16:47:41] akkad: has joined #ruby
[16:47:54] Ox0dea: rgb-one: I thought we were friends.
[16:47:54] Success: rgb-one lol well than why are you....
[16:48:06] rgb-one: Ox0dea: lol
[16:48:40] asmodlol: has joined #ruby
[16:49:39] dreinull75: is it possible to namespace methods? I have a bunch of methods from classes and subclasses that I want to iterate over. However, some methods I excluded. So if there's a way to group or namespace methods, I'd be happy to know.
[16:50:03] dreinull75: I _want_ excluded
[16:50:11] EminenceHC: has joined #ruby
[16:50:22] rgb-one: dreinull75: Yea, you can use module_function
[16:50:24] shevy: you could put each method into a separate module namespace
[16:50:49] dreinull75: how's that rgb-one and shevy?
[16:50:50] pwnd_nfsw: has joined #ruby
[16:50:53] Success: dreinull75: blacklist ur loop
[16:51:00] rgb-one: so define a module for eg. module ModuleName
[16:51:19] dreinull75: Success don't know which methods the classes will get. Besides, I don't like that approach.
[16:51:38] djbkd: has joined #ruby
[16:51:39] rgb-one: In order to use a function from within a module, you will need to use module_function
[16:51:42] shevy: module KillCat; def kill_cat(this_cat);end; end <-- you can add module_function too if you want to call it standalone, or just plain old def self.kill_cat
[16:52:11] rgb-one: Then you can reference the function like this: ModuleName.function()
[16:52:22] shevy: and build up an array that has all methods that you want to iterate
[16:52:30] Eminence_: has joined #ruby
[16:52:38] dreinull75: ok, so I define my methods outside the class.
[16:53:01] dreinull75: Makes sense. I thought about telling the methods inside that they also have a second home
[16:53:08] Ox0dea: dreinull75: Well, or even inside the class inside a module.
[16:53:23] Ox0dea: Classes are secretly modules, and they can nest arbitrarily deep.
[16:53:37] Ox0dea: >> Array.is_a? Module
[16:53:38] ruboto: Ox0dea # => true (https://eval.in/460742)
[16:53:56] zapata: has joined #ruby
[16:54:07] dreinull75: ok, great. In Ruby there's always a simple way to accomplish something difficult.
[16:54:10] SilentEcho: has joined #ruby
[16:54:15] Ox0dea: And vice-versa. ^_^
[16:54:28] juanpablo__: has joined #ruby
[16:54:40] Ox0dea: dreinull75: http://i.imgur.com/94jou4v.png
[16:54:41] shevy: Ox0dea what happened to [k-
[16:54:44] pmarreck: has joined #ruby
[16:54:52] Ox0dea: shevy: He's... not a fan of IRC anymore, I guess?
[16:55:04] shevy: that's almost ascii art there
[16:55:12] shevy: misses the unicode snowman though
[16:55:13] sandals: has joined #ruby
[16:55:22] sparr: has joined #ruby
[16:55:32] moss: has joined #ruby
[16:55:32] Ox0dea: Well, that wouldn't be a very sensible indicator for "delete from to-do list", would it?
[16:55:42] GGMethos: has joined #ruby
[16:55:50] chris2: has joined #ruby
[16:56:34] shevy: snowmen should have a lot of priority, it's winter season!
[16:57:36] Ox0dea: I ended up using ???: https://eval.in/459020
[16:57:39] Success: sry i live in texas we dont have snow
[16:58:22] Success: Ox0dea: i love you.
[16:58:27] Success: Ox0dea: now thats how you code ;)
[16:58:31] roxtrongo: has joined #ruby
[16:58:34] Ox0dea: shevy: I'm looking for wintry "delete" symbols in the Astral Planes.
[16:58:34] ChanServ: -b kjcwncsdr!*@*
[16:58:43] cmoney: has joined #ruby
[16:58:46] Ox0dea: Success: You were duly warned.
[16:58:57] shevy: /execpad/interpreters/ruby-2.2.0/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- sinatra (LoadError)
[16:59:11] Ox0dea: Sneaky LoadError.
[16:59:29] Success: nah dude i love it lol
[16:59:38] Success: my computer science teachers hated when i did that stuff
[16:59:49] Success: but mmm yumy
[16:59:50] Ox0dea: Do you love it so much that you'll run it blind?
[17:00:06] Ox0dea: As root, even?
[17:00:39] chipotle: has joined #ruby
[17:00:42] Ox0dea: Oh... never mind.
[17:01:16] Success: Ox0dea that's the only way to run things, isn't it.
[17:01:26] scary_saturday: has joined #ruby
[17:01:27] Ox0dea: Success: On Windows, sure. :P
[17:01:51] Success: NoMethodError at / undefined method `[]' for nil:NilClass
[17:02:00] scary_saturday: can I get someone's opinion on an rspec test design
[17:02:56] Ox0dea: Success: Damn, really? Which line?
[17:03:13] Ox0dea: I'm using the Binding#receiver method that was added in 2.2.
[17:03:18] Ox0dea: How appropriate.
[17:03:19] Success: the sinatra '*' line
[17:04:34] rgb-one: >> module ModuleName; def add(a, b); r = a + b; r; end; end; puts ModuleName.add(10, 12);
[17:04:35] ruboto: rgb-one # => undefined method `add' for ModuleName:Module (NoMethodError) ...check link for more (https://eval.in/460744)
[17:04:51] rgb-one: >> module ModuleName; module_function; def add(a, b); r = a + b; r; end; end; puts ModuleName.add(10, 12);
[17:04:52] ruboto: rgb-one # => 22 ...check link for more (https://eval.in/460745)
[17:05:05] Ox0dea: rgb-one: That's not quite what #module_function is for, though.
[17:05:45] rgb-one: Ox0dea: What other purpose does it serve?
[17:05:48] Ox0dea: That is, it doesn't just update the visibility modifier so that subsequently defined methods go on the singleton class, like you'd get with `class << self ...`.
[17:06:20] beauby: has joined #ruby
[17:06:36] greg: has joined #ruby
[17:06:55] Ox0dea: rgb-one: It also establishes hooks that define the module's singleton methods as instance methods on classes/modules that `include` it.
[17:10:33] SCHAAP137: has joined #ruby
[17:11:11] jhass: sure it sets up hooks?
[17:11:31] jhass: I thought it just copies the instance method to the modules singleton class, then makes it private
[17:11:35] dreinull75: hm, the methods I want are actually defined in a module that defines them dynamically in a self.included method. So I would have to create module inside the self included method that is somehow accessbile. That coorect?
[17:12:43] cntrx: has joined #ruby
[17:12:55] Ox0dea: jhass: I suppose "hook" isn't quite the right term, but then how do module functions get picked up from `include/extend`?
[17:12:56] agit0: has joined #ruby
[17:13:14] jhass: they remain to be private instance methods
[17:13:31] Ox0dea: Right, right. </derp>
[17:14:25] jhass: "Module functions are copies of the original, and so may be changed independently. The instance-method versions are made private"
[17:16:47] l_tonz: has joined #ruby
[17:17:40] uber: has joined #ruby
[17:18:10] l_tonz: has joined #ruby
[17:18:10] max_kuzmin: has left #ruby: ()
[17:18:45] _blizzy_: has joined #ruby
[17:18:50] nixmaniack: has joined #ruby
[17:19:02] nixmaniack: has joined #ruby
[17:20:31] Ox0dea: dreinull75: How come you can't just remember the target methods as you create them?
[17:20:32] skade: has joined #ruby
[17:20:33] nixmaniack: has joined #ruby
[17:20:33] nixmaniack: has joined #ruby
[17:21:03] cntrx: has joined #ruby
[17:21:13] beauby: has joined #ruby
[17:21:36] Ox0dea: dreinull75: As for "somewhat accessible", you can use #const_set to make that anonymous Module "completely accessible".
[17:23:01] ekinmur: has joined #ruby
[17:23:05] nixmania_: has joined #ruby
[17:23:58] dreinull75: It's headbending. The module that creates the methods is included by a bunch of classes. What I'm doing is creating accessor methods to DB table columns. So each table has its own class and columns. All created dynamically and added to the sequel base classes. So later on for my templates I want to have all of my methods that I have defined statically or dynamically and add some magic (the delegator method thing I managed the day before yesterday).
[17:24:17] dome22xl: has joined #ruby
[17:24:57] dreinull75: So I figured that there are so many Sequel methods and superclass methods that I'm losing track.
[17:25:31] diegoaguilar: has joined #ruby
[17:26:14] Ox0dea: dreinull75: Aye, you may well be doing too much metaprogramming. :<
[17:26:42] dreinull75: Ox0dea probably. But how am I going to learn that stuff without doing?
[17:27:06] ghoti: has joined #ruby
[17:27:18] Ox0dea: dreinull75: A fair assessment of the thing, I suppose, but it's possible to learn to do bad things.
[17:28:22] dreinull75: I guess I have to see for myself how things turn bad. Also this last week has taught me many interesting things.
[17:28:33] Ox0dea: Knowledge is bliss.
[17:28:33] rikkipitt: has joined #ruby
[17:29:27] jokke: has joined #ruby
[17:29:40] centrx: has joined #ruby
[17:30:32] naftilos76: has joined #ruby
[17:31:46] twe4ked_: has joined #ruby
[17:35:17] zenguy_pc2: has joined #ruby
[17:35:33] Bulo: has joined #ruby
[17:36:29] ghoti: has joined #ruby
[17:37:00] beauby: has joined #ruby
[17:37:20] rbennacer: has joined #ruby
[17:38:46] dasher00: has joined #ruby
[17:43:03] arup_r: has joined #ruby
[17:43:09] Alina-malina: has joined #ruby
[17:44:29] Maletor: has joined #ruby
[17:46:15] DexterLB: has joined #ruby
[17:46:17] devoldmx: has joined #ruby
[17:47:59] OrbitalKitten: has joined #ruby
[17:48:17] arup_: has joined #ruby
[17:48:25] musou: has joined #ruby
[17:48:40] Tref: has joined #ruby
[17:48:46] heyimwill: has joined #ruby
[17:50:46] krasnus: has joined #ruby
[17:50:49] pdoherty: has joined #ruby
[17:52:53] moeabdol: has joined #ruby
[17:53:36] bnizzle: has joined #ruby
[17:54:10] shevy: if only computers could write ruby for us
[17:54:39] stannard: has joined #ruby
[17:57:40] centrx: Matz could do it
[17:58:47] arup_: has joined #ruby
[18:00:14] willardg: has joined #ruby
[18:02:54] Alina-malina: has joined #ruby
[18:03:49] tulak: has joined #ruby
[18:04:09] arup_: has joined #ruby
[18:07:54] Ox0dea: I know it doesn't look like it, but matz is actually writing Ruby in this picture: http://i.imgur.com/0bNLHNc.png
[18:07:58] duckpuppy: has joined #ruby
[18:08:17] Ox0dea: He has become one with the interpreter.
[18:09:17] Success: hello atmosx
[18:11:33] blue_deref: has joined #ruby
[18:12:31] jessemcgilallen: has joined #ruby
[18:13:37] barhum2013: has joined #ruby
[18:14:36] momomomomo: has joined #ruby
[18:15:59] asmodlol: has joined #ruby
[18:16:06] shevy: Ox0dea hah, ruby-matrix
[18:16:13] shevy: matz starring as keanu reeves
[18:16:49] roxtrongo: has joined #ruby
[18:19:10] howdoi: has joined #ruby
[18:20:45] sankaber: has joined #ruby
[18:22:46] kp666: has joined #ruby
[18:22:48] arup_: has joined #ruby
[18:23:14] joonty: has joined #ruby
[18:31:13] Maletor: has joined #ruby
[18:40:41] jamesaxl: has joined #ruby
[18:40:52] treaki: has joined #ruby
[18:41:17] arup_r: has joined #ruby
[18:41:34] Alina-malina: has joined #ruby
[18:41:55] moeabdol: has joined #ruby
[18:43:13] juanpablo__: has joined #ruby
[18:45:36] barhum2013: has joined #ruby
[18:46:38] th0m_: has joined #ruby
[18:47:21] _blizzy_: has joined #ruby
[18:48:01] Dreamer3: has joined #ruby
[18:50:03] akem: has joined #ruby
[18:52:46] diego2: has joined #ruby
[18:55:05] Puffball: has joined #ruby
[18:57:02] DiCablo: has joined #ruby
[18:58:29] nixmaniack: has joined #ruby
[19:01:14] Puffball: has joined #ruby
[19:01:21] nixmaniack: has joined #ruby
[19:01:41] Musashi007: has joined #ruby
[19:03:39] VeryBewitching: has joined #ruby
[19:04:27] l_tonz: has joined #ruby
[19:04:53] OrbitalKitten: has joined #ruby
[19:05:48] Puffball: has joined #ruby
[19:08:32] ibouvousaime: has joined #ruby
[19:11:13] kadoppe: has joined #ruby
[19:11:33] lapide_viridi: has joined #ruby
[19:11:51] Puffball: has joined #ruby
[19:12:36] fantazo: has joined #ruby
[19:13:47] Puffball: has joined #ruby
[19:14:13] Puck6633: has joined #ruby
[19:18:08] arup_: has joined #ruby
[19:18:32] kobain: has joined #ruby
[19:21:00] Puffball: has joined #ruby
[19:22:01] sankaber: has joined #ruby
[19:23:17] Puffball: has joined #ruby
[19:25:14] shredding: has joined #ruby
[19:25:44] duckpuppy: has joined #ruby
[19:30:14] Puffball: has joined #ruby
[19:33:53] ibouvousaime_: has joined #ruby
[19:34:45] Alina-malina: has joined #ruby
[19:35:33] zenguy_pc2: has joined #ruby
[19:35:53] sankaber: has joined #ruby
[19:36:40] Puffball: has joined #ruby
[19:38:26] keen___________1: has joined #ruby
[19:45:34] segy: has joined #ruby
[19:47:04] yqt: has joined #ruby
[19:48:57] yeticry: has joined #ruby
[19:52:55] Maletor: has joined #ruby
[19:53:29] ekinmur: has joined #ruby
[19:55:04] mallu: has joined #ruby
[19:56:37] shevy: you people are soooo lazy on weekends
[19:57:34] Maletor: has joined #ruby
[19:58:26] Sou|cutter: Matz looks more like Keanu in Johnny Mnemonic http://i21.photobucket.com/albums/b300/spacemonkey_fg/spacemonkey_fg004/JohnnyMnemonic19945_zpscb532565.jpg
[19:58:58] juanpablo__: has joined #ruby
[19:59:30] machan: has joined #ruby
[19:59:43] machan: Hi guys. Testing question here for any TDD/test gurus :-)
[20:00:18] Ox0dea: machan: Stub your doubles, mock your floats.
[20:00:21] machan: I need to test that a certain attribute of an object is set. I can't inject a test double.
[20:01:03] Ox0dea: > Neener, neener, IEEE754 can't even accurately represent 0.3.
[20:01:09] Ox0dea: Something like that for the latter case.
[20:01:09] machan: How would assessing the value of the instance's method be approached?
[20:01:17] machan: Sorry, by attribute I did mean "method".
[20:01:58] Ox0dea: machan: So, `#respond_to?`, then?
[20:02:37] machan: Ox0dea: I can't invoke a method on the underlying object I wish to test directly, because it's being instantiated inside the class
[20:02:41] machan: And I cannot pass a test double.
[20:03:18] Ox0dea: machan: Uh... reconsider the decision you've made to arrive at such an impasse?
[20:03:20] Ox0dea: *decisions
[20:03:33] machan: Ox0dea: good point. That's probably the real question I should be asking here
[20:03:40] Ox0dea: machan: I think so, yeah.
[20:04:04] Ox0dea: machan: Just extract the object creation.
[20:04:58] diegoaguilar: has joined #ruby
[20:05:18] machan: Ox0dea: I think it's where the codebase I'm working with is already a little strange.
[20:05:18] cmoney: has joined #ruby
[20:05:40] machan: If it was all well designed - I don't think I'd be battering an eyelid at this. I feel like this change will be a little "odd one out"
[20:05:52] Ox0dea: machan: Fair enough, I guess, but if you want to pluck an object out of thin air, you'll have to resort to ObjectSpace.
[20:05:59] Ox0dea: And using ObjectSpace in your tests is fucking nuts.
[20:06:24] Ox0dea: (You should totally try it.)
[20:07:35] machan: Ox0dea: out of curiosity, why is it so nuts?
[20:07:49] FernandoBasso: has joined #ruby
[20:07:49] machan: Ox0dea: also, I think you're talking complete sense, and you've just reaffirmed what I _wanted_ to do anyway
[20:08:00] Ox0dea: May the fates have mercy.
[20:08:01] machan: Think I just needed to hear someone else sharing my point of view :-)
[20:08:33] mloy: has joined #ruby
[20:08:41] Ox0dea: Write code, be merry, and mind the footguns.
[20:09:29] willardg: has joined #ruby
[20:09:36] uris: has joined #ruby
[20:09:37] fantazo: has joined #ruby
[20:11:03] ibouvousaime__: has joined #ruby
[20:12:31] mallu: has joined #ruby
[20:13:27] mallu: I'm learning ruby and I just learn repeating string using *. How do you repeat n times in n lines?
[20:14:00] mallu: test * 5 I want it to show test in 5 lines
[20:15:33] lemondom_: has joined #ruby
[20:15:38] jhass: mallu: a newline is produced by the \n character
[20:15:40] al2o3-cr: >> "test\n"*5
[20:15:41] ruboto: al2o3-cr # => "test\ntest\ntest\ntest\ntest\n" (https://eval.in/460799)
[20:15:49] jhass: >> puts "test\n"*5
[20:15:50] ruboto: jhass # => test ...check link for more (https://eval.in/460800)
[20:17:43] azul1: has joined #ruby
[20:17:44] c355E3B: has joined #ruby
[20:18:19] _blizzy_: has joined #ruby
[20:18:25] mallu: thank you sir
[20:18:56] Ox0dea: mallu: Be advised that passing an Array to #puts causes it to print each element on its own line, so you could also say `puts ['test'] * 5`.
[20:20:06] jhass: mallu: you're welcome ma'am
[20:20:33] hmsimha_: has joined #ruby
[20:22:13] DEA7TH: has joined #ruby
[20:22:34] chipotle: has joined #ruby
[20:26:43] Silox|: has joined #ruby
[20:27:30] ibouvousaime: has joined #ruby
[20:27:35] willardg: has joined #ruby
[20:30:07] colegatron: has joined #ruby
[20:30:14] KINGSABRI: has joined #ruby
[20:31:39] dreinull75: method_added is nice but how do I know which class added it? Via ancestors? Is there a better way?
[20:31:42] cmoney: has joined #ruby
[20:32:15] Musashi007: has joined #ruby
[20:32:25] Ox0dea: dreinull75: `self`, no?
[20:32:36] devbug: has joined #ruby
[20:33:01] KINGSABRI: has joined #ruby
[20:33:50] Ox0dea: dreinull75: https://eval.in/460803
[20:34:25] Alina-malina: has joined #ruby
[20:34:44] dreinull75: Ox0dea oops, included works as well.
[20:35:01] dreinull75: I love that Module stuff
[20:35:29] diegoviola: has joined #ruby
[20:36:41] dreinull75: no, not included. self it is. You're right.
[20:36:58] hxegon: has joined #ruby
[20:37:41] jgt: has joined #ruby
[20:39:29] freerobby: has joined #ruby
[20:41:56] saddad: has joined #ruby
[20:42:49] tomkadwill: has joined #ruby
[20:43:22] tomkadwill: has left #ruby: ()
[20:43:32] ghoti: has joined #ruby
[20:45:15] Coldblackice: has joined #ruby
[20:45:46] rakm: has joined #ruby
[20:46:20] devoldmx: has joined #ruby
[20:46:56] bb010g: has joined #ruby
[20:47:10] ekinmur: has joined #ruby
[20:48:25] stamina: has joined #ruby
[20:52:23] bruno-: has joined #ruby
[20:53:02] devbug: Ox0dea: https://github.com/mtwilliams/ryb/blob/refactor/lib/ryb/properties/sources.rb
[20:53:30] devbug: I'm trying to figure out how to reconcile code like this with https://gist.github.com/mtwilliams/110a2fbdc643582690fb
[20:54:03] devbug: Merges are quite easy--just deep merge.
[20:54:23] _blizzy_: has joined #ruby
[20:54:53] Ox0dea: devbug: You can say `|=`, for future reference.
[20:54:53] leafybasil: has joined #ruby
[20:54:56] Ox0dea: It's not often you get to.
[20:55:16] devbug: Ox0dea: Noted.
[20:55:46] devbug: The crux, I think, is boiling it down to how do I "schematize" hierarchies?
[20:56:12] Ox0dea: devbug: Do what Postgres does? :P
[20:56:23] Ox0dea: (But seriously.)
[20:56:27] devbug: What I mean is, how do I specify I have a "Hash" (read: struct) with "includes/libraries/binaries"?
[20:57:40] devbug: I also want to be able to specify (and type check) that arrays only contain Ryb::Dependency's
[20:58:27] Ox0dea: devbug: The latter is just `foo.all? { |e| e.is_a? RyB::Dependency }`.
[20:58:44] akkad: has joined #ruby
[20:58:50] devbug: Ox0dea: mhm, but I want to declaratively
[20:58:54] radgeRayden: has joined #ruby
[20:59:00] devbug: ^ do this
[20:59:30] Ox0dea: Could you clarify what that means to you in this particular context?
[20:59:43] devbug: Ox0dea: I've been thinking that I could say
[21:00:11] devbug: property :dependencies, Array[Ryb::Dependency], :default => [], :merge => true
[21:00:30] Ox0dea: devbug: You're in space, mate.
[21:00:34] diegoaguilar: has joined #ruby
[21:00:34] devbug: Ox0dea: ?
[21:00:43] devbug: (property being def self.property(name, type, opts={}))
[21:00:56] devbug: I can decompose the type then, easily:
[21:01:26] devbug: https://gist.github.com/mtwilliams/e483acf66e631612514d
[21:02:49] s00pcan: has joined #ruby
[21:03:13] Ox0dea: devbug: Do you intend to dogfood this?
[21:03:18] devbug: Ox0dea: yes
[21:03:20] devbug: absolutely
[21:03:31] Ox0dea: And you're sure Ruby is the right language?
[21:03:55] Ox0dea: Because you like its syntax?
[21:04:05] devbug: A few things,
[21:04:08] devbug: 1) Syntax.
[21:04:30] devbug: 2) Extensibility, for end-user. (Using all manner of gems during builds)
[21:04:46] hxegon_: has joined #ruby
[21:05:27] devbug: 3) Librarification. So I can write tools to operate on a Rybfile
[21:06:07] devbug: For example, say I want to CI my project.
[21:06:38] devbug: I will write a .travis.yml, right?
[21:06:52] devbug: I need to verify my code compiles for debug/development/release.
[21:06:54] c355E3B: well depends on the host
[21:07:12] devbug: I could go in an manually write all the environment permutations.
[21:07:24] devbug: Or parse the Rybfile, and generate that--bug free.
[21:13:19] dh64: has joined #ruby
[21:13:36] bruno-: has joined #ruby
[21:13:40] to_json: has joined #ruby
[21:13:40] to_json: has joined #ruby
[21:15:55] shevy: what is a Rybfile
[21:16:32] nlsun: has joined #ruby
[21:17:27] hxegon: has joined #ruby
[21:19:19] ghoti: has joined #ruby
[21:20:53] solocshaw: has joined #ruby
[21:21:12] LBRapid: has joined #ruby
[21:21:20] Nightmare: has joined #ruby
[21:23:28] MVPhelp: has joined #ruby
[21:24:32] shinnya: has joined #ruby
[21:24:47] devbug: shevy: ever used premake?
[21:24:58] ekinmur: has joined #ruby
[21:25:20] devbug: well, in ruby terms it's ryb's equivilant of a gemspec/podfile/etc.
[21:25:22] shevy: hmm ... that is a build tool isn't it?
[21:25:40] shevy: I think I used it only very briefly, it did not seem to become as important as others like cmake, scons or waf
[21:25:48] wennefer: has joined #ruby
[21:26:06] Vile`: has joined #ruby
[21:26:16] devbug: shevy: doubt it
[21:26:20] devbug: Just started writing it
[21:26:24] devbug: oh premake. yeah
[21:27:23] startupality: has joined #ruby
[21:27:48] devbug: shevy: it's a niche build system (games/game engines/game tools)
[21:27:55] tomkadwi_: has joined #ruby
[21:28:15] devbug: Here's what a Rybfile looks like. https://gist.github.com/mtwilliams/d7c10c6ecc740dc8568b
[21:28:46] devbug: I'm going to be cleaning it up w/ a builder pattern to reduce repetition
[21:29:58] tomkadwill: has joined #ruby
[21:30:17] rikkipitt: has joined #ruby
[21:32:32] duncannz: has joined #ruby
[21:32:46] naftilos76_: has joined #ruby
[21:33:01] duckpuppy: has joined #ruby
[21:33:49] devbug: btw, is there a be-all, end-all solution for managing&deployinging ruby cli tools?
[21:34:18] ghoti: has joined #ruby
[21:34:47] devbug: like, using octra/omnibus/platypus/homebrew to ship to all major platforms?
[21:35:28] thesquidbits: has joined #ruby
[21:35:29] devbug: I'd rather not have to build a huge rakefile for that.
[21:36:24] hxegon: has joined #ruby
[21:36:50] zenguy_pc2: has joined #ruby
[21:36:52] joshua75: has joined #ruby
[21:37:02] joshua75: i have a question
[21:37:51] joshua75: im trying to make the terminal ask a question in ruby and then if the user types yes or no to the question is has an answer depending on the answer
[21:37:53] cmoney: has joined #ruby
[21:38:02] joshua75: like if yes itd say "okay lets do it" or if no "nevermind"
[21:38:46] jgt: has joined #ruby
[21:39:04] timonv: has joined #ruby
[21:39:28] al2o3-cr: Joshua__: print/gets
[21:39:38] adaedra: what is the real issue, Joshua__
[21:40:25] dreinull75: Let's rock, it works.
[21:41:00] troulouliou_dev: has joined #ruby
[21:41:09] dreinull75: I created a method logger module/class with class vars that keep track of all whitelisted defined methods.
[21:41:31] dreinull75: Feeling great now.
[21:41:42] SenpaiSilver: has joined #ruby
[21:42:10] dreinull75: off for a beer. mission accomplished.
[21:42:56] ruboto: I don't know anything about beer
[21:46:56] Ox0dea: Joshua__: No, not without having said something else first.
[21:47:15] Ox0dea: You *can* say `END{}` wherever you want, but that's of little impertinence just now.
[21:47:20] nettoweb: has joined #ruby
[21:47:42] juanpablo__: has joined #ruby
[21:47:43] Ox0dea: >> "#{END { p 1 }}"
[21:47:44] ruboto: Ox0dea # => "" ...check link for more (https://eval.in/460834)
[21:47:49] yfeldblum: has joined #ruby
[21:48:13] joshua75: can i say if answer == "yes"
[21:48:17] Ox0dea: ?try Joshua__
[21:48:17] ruboto: Joshua__, Why don't you try it and see for yourself?
[21:48:27] Ox0dea: Joshua__: Are you learning Ruby by guessing?
[21:48:50] joshua75: no, im having an issue
[21:49:25] Ox0dea: Joshua__: Your issue is likely that you're not bothering to find a decent resource from which to learn Ruby.
[21:50:00] joshua75: thats not it, one second
[21:50:11] joshua75: ill show you the code and youll see what im trying to figure out
[21:51:39] devbug_: has joined #ruby
[21:52:44] joshua75: puts("Do know know how many stars on the american flag?") answer = gets if answer == "yes" puts("Thats awesome!") elsif answer == "no" puts("Wow, thats no good!") else puts("You need to type yes or no.") end
[21:53:00] joshua75: damn this looks terrible
[21:53:21] nertzy: has joined #ruby
[21:53:31] ruboto: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[21:53:55] adaedra: Use that to show your code, Joshua__ ^
[21:54:10] joshua75: okay sorry about that i will one moment
[21:54:11] EminenceHC: has joined #ruby
[21:54:13] adaedra: Also, don't forget to include a description of the issue, i.e. an error message or a not working case
[21:54:21] adaedra: (expectation/reality)
[21:54:26] dreinull75: Actually, I like fpaste.org better.
[21:54:52] dreinull75: But I'm off anyway.
[21:55:29] joshua75: <script src="https://gist.github.com/jminchew97/b1c7ed40a99a36521ddb.js"></script>
[21:55:42] joshua75: its automatically going to the else statement
[21:56:42] dreinull75: Joshua__ you can just paste the URL
[21:57:00] joshua75: https://gist.github.com/jminchew97/b1c7ed40a99a36521ddb
[21:58:27] ghoti: has joined #ruby
[21:59:07] adaedra: &ri Kernel#gets
[21:59:08] `derpy: http://www.rubydoc.info/stdlib/core/Kernel#gets-instance_method
[21:59:21] adaedra: Read this carefully, it holds the why.
[22:01:02] al2o3-cr: Joshua__: HINT: remove 10.chr(s)
[22:01:17] mozzarella: has joined #ruby
[22:01:57] RobertBirnie: has joined #ruby
[22:02:48] diegoaguilar: has joined #ruby
[22:02:55] uris: has joined #ruby
[22:03:01] l_tonz: has joined #ruby
[22:03:14] adaedra: Joshua__: there is something about `gets` that you don't seem to know and prevents your code from working as is.
[22:04:38] adaedra: It's written in the documentation of Kernel#gets. You can also try to inspect with p the string you get from gets.
[22:05:42] allomov: has joined #ruby
[22:06:17] chipotle: has joined #ruby
[22:11:44] bryanray: has joined #ruby
[22:12:34] Oatmeal: has joined #ruby
[22:12:42] RobertBirnie: has joined #ruby
[22:13:10] k3asd`: has joined #ruby
[22:16:23] chrisja: has joined #ruby
[22:17:27] jessemcgilallen: has joined #ruby
[22:19:16] l_tonz: has joined #ruby
[22:21:40] EminenceHC: has joined #ruby
[22:22:20] yxhuvud: has joined #ruby
[22:23:46] hxegon_: has joined #ruby
[22:25:04] segfalt``: has joined #ruby
[22:26:03] towski_: has joined #ruby
[22:26:04] keen___________1: has joined #ruby
[22:26:54] agit0: has joined #ruby
[22:30:22] cashnguns: has joined #ruby
[22:38:28] rgtk: has joined #ruby
[22:40:53] zipace: has joined #ruby
[22:41:46] quazimodo: has joined #ruby
[22:45:07] yashinbasement: has joined #ruby
[22:47:26] Oatmeal: has joined #ruby
[22:47:28] devoldmx: has joined #ruby
[22:47:32] akem: has joined #ruby
[22:47:36] mistermocha: has joined #ruby
[22:47:56] nixmaniack: has joined #ruby
[22:48:45] rakm: has joined #ruby
[22:49:16] k3asd`: has joined #ruby
[22:50:23] chipotle: has joined #ruby
[22:52:13] l_tonz: has joined #ruby
[22:52:28] K1MOS: has joined #ruby
[22:53:00] tvw: has joined #ruby
[22:53:23] karapetyan: has joined #ruby
[22:53:43] asmodlol: has joined #ruby
[22:54:30] rakm: has joined #ruby
[22:55:00] k3asd`: has joined #ruby
[22:59:39] hxegon: has joined #ruby
[23:01:10] freerobby: has joined #ruby
[23:02:48] j5s7: has joined #ruby
[23:04:38] SShrike: has joined #ruby
[23:09:37] SShrike: has joined #ruby
[23:09:46] Channel6: has joined #ruby
[23:13:13] rdema: has joined #ruby
[23:13:31] hxegon: has joined #ruby
[23:15:39] tlaxkit: has joined #ruby
[23:16:18] riotjones: has joined #ruby
[23:16:44] cpup: has joined #ruby
[23:19:31] shevy: can this be simplified? I need to check for a subset of keys in a hash, and assign them to a variable for later use but only for some keys https://gist.github.com/shevegen/5f5da217120341343404
[23:20:18] djbkd: has joined #ruby
[23:21:36] ghoti: has joined #ruby
[23:22:16] adaedra: argument.select { |k, _| %i[foo bar baz].include? k }.map { |_, v| v }
[23:22:44] adaedra: (since you want only one)
[23:23:17] Trynemjoel: has joined #ruby
[23:27:16] Maletor: has joined #ruby
[23:30:09] Erik_Underline: has joined #ruby
[23:31:16] Erik_Underline: Hey hxegon I got vim and while it's a bit weird, I find myself loving the way it works ^^
[23:31:56] StarBreaker: has joined #ruby
[23:32:21] adaedra: Soon, you won't be able to use other editors without vim bindings.
[23:33:50] htmldrum: has joined #ruby
[23:34:05] Erik_Underline: :D I wonder if you could get so used to vim that you can't even handle writing in word because it's so unflexible :D
[23:34:47] Erik_Underline: Is that a text editor?
[23:35:49] adaedra: Erik_Underline: https://sv.wikipedia.org/wiki/Latex_(typs??ttningssystem)
[23:35:52] zenguy_pc2: has joined #ruby
[23:36:28] juanpablo__: has joined #ruby
[23:36:30] grotewold: has joined #ruby
[23:36:41] duncannz: has joined #ruby
[23:37:26] Musashi007: has joined #ruby
[23:37:32] DEA7TH: has joined #ruby
[23:37:37] rickmasta: has joined #ruby
[23:38:35] arooni: has joined #ruby
[23:39:32] jgt: has joined #ruby
[23:39:35] shevy: it's a condom
[23:40:16] StarBreaker: has joined #ruby
[23:41:40] Authenticator: has joined #ruby
[23:41:54] Erik_Underline: "Used especially in scientific communities"... Heh, strangely enough I've never heard about it. Might get in touch with it as I get old enough for university :P
[23:42:58] bryanray: has joined #ruby
[23:43:15] pdoherty: has joined #ruby
[23:43:21] Authenticator: When I make 16k connections in short-order with Net::HTTP I get "Errno::EADDRNOTAVAIL: Can't assign requested address - connect(2)" errors. I'm doing req = Net::HTTP::Post.new uri ; Net::HTTP.start {|h| resp = h.request req } ...
[23:43:57] Authenticator: On OSX, if that matters.
[23:44:17] adaedra: 16k simultaneous connections?
[23:44:33] adaedra: You may be hitting some system limit.
[23:44:50] ss_much: has joined #ruby
[23:44:54] Authenticator: adaedra: They're all threaded, but I *think* I'm only making ~15 threads...
[23:45:10] adaedra: &ri Net::HTTP.start
[23:45:10] `derpy: http://www.rubydoc.info/stdlib/net/Net/HTTP#start-class_method
[23:46:23] Authenticator: It looks like, using the block version, it should take care of closing the connections automatically...?
[23:46:36] adaedra: That's what the docs says.
[23:49:48] adaedra: ???The specified address is not available on this machine.???
[23:50:07] adaedra: That's some helpful explanation here, man.
[23:52:11] rakm: has joined #ruby
[23:52:34] jhass: Authenticator: get typhoeus and use the hydra interface there
[23:52:43] al2o3-cr1: has joined #ruby
[23:54:12] hxegon: has joined #ruby
[23:56:10] duckpuppy: has joined #ruby
[23:56:52] l_tonz: has joined #ruby