« Back to channel list

#ruby - 19 October 2015

« Back 1 day Forward 1 day »
[00:01:34] Icey: has joined #ruby
[00:02:28] CanTonic: has joined #ruby
[00:04:01] salug: has left #ruby: ()
[00:04:25] Yzguy: has joined #ruby
[00:04:52] Igorshp: has joined #ruby
[00:06:14] kies^: has joined #ruby
[00:12:24] swgillespie: has joined #ruby
[00:13:19] ericjphillips: has joined #ruby
[00:14:54] Yzguy: has joined #ruby
[00:15:58] stardiviner: has joined #ruby
[00:16:04] swgillespie: has joined #ruby
[00:19:24] skweek: has joined #ruby
[00:20:20] fullofcaffeine: has joined #ruby
[00:22:24] moeabdol: has joined #ruby
[00:25:51] zenguy_pc: has joined #ruby
[00:28:51] chopin: has joined #ruby
[00:29:12] unclouded: has joined #ruby
[00:30:43] Akagi201: has joined #ruby
[00:32:23] jgpawletko: has joined #ruby
[00:33:44] Akagi201: has joined #ruby
[00:34:07] jsrn: has joined #ruby
[00:35:43] to_json: has joined #ruby
[00:35:43] to_json: has joined #ruby
[00:41:06] SuzieQueue: has joined #ruby
[00:42:30] yfeldblum: has joined #ruby
[00:47:11] towski_: has joined #ruby
[00:52:45] beauby: has joined #ruby
[00:52:49] rdavila: has joined #ruby
[00:53:40] framling: has joined #ruby
[00:58:20] kayloos: has joined #ruby
[00:58:48] dopie: has joined #ruby
[01:02:26] rdavila: has joined #ruby
[01:04:19] lessless: has joined #ruby
[01:04:28] ledestin: has joined #ruby
[01:09:29] saddad: has joined #ruby
[01:12:28] `tim`: has joined #ruby
[01:14:01] tenzan: has joined #ruby
[01:14:14] workmad3: has joined #ruby
[01:16:24] Musashi007: has joined #ruby
[01:16:28] diego1: has joined #ruby
[01:17:59] diego1: has joined #ruby
[01:18:23] jsuth: has joined #ruby
[01:20:55] K3VA: has joined #ruby
[01:20:59] shmilan: has joined #ruby
[01:22:45] stannard: has joined #ruby
[01:28:32] clebrun: has joined #ruby
[01:28:36] Rollabunna: has joined #ruby
[01:31:44] prateekp: has joined #ruby
[01:31:53] prateekp: can i change the author of rubygem
[01:32:51] havenwood: prateekp: See: gem help owner
[01:34:22] willharrison: has joined #ruby
[01:34:35] Akagi201: has joined #ruby
[01:36:00] Igorshp: has joined #ruby
[01:36:31] prateekp: should i first add a new owner and then delete the previous owner
[01:36:53] DJSpies: has joined #ruby
[01:39:25] havenwood: prateekp: for best practices specifics I'd suggest asking in the #rubygems channel
[01:39:52] freerobby: has joined #ruby
[01:39:59] favadi: has joined #ruby
[01:40:46] DJSpies: has joined #ruby
[01:41:00] havenwood: prateekp: You can change the email address in the gemspec.
[01:41:38] prateekp: ahh and then when i push it, the mail address would be changed easily, right?
[01:42:10] diegoaguilar: has joined #ruby
[01:43:08] haraoka: has joined #ruby
[01:43:09] havenwood: prateekp: Yeah, the gem reflects the latest gemspec.
[01:48:24] luckyme: has joined #ruby
[01:50:09] tvon: has joined #ruby
[01:54:04] DJSpies: has joined #ruby
[01:55:04] tkuchiki: has joined #ruby
[01:56:01] DJSpies: has joined #ruby
[01:56:19] dfinninger: has joined #ruby
[01:56:49] to_json: has joined #ruby
[01:56:49] to_json: has joined #ruby
[01:57:16] GriffinHeart: has joined #ruby
[01:58:06] yardenbar: has joined #ruby
[01:59:31] htmldrum: has joined #ruby
[02:00:20] luckyme: has joined #ruby
[02:00:38] platzhirsch: has left #ruby: ()
[02:01:14] A124: has joined #ruby
[02:01:52] platzhirsch: has joined #ruby
[02:01:56] platzhirsch: has left #ruby: ()
[02:02:34] chopin: has joined #ruby
[02:05:00] Musashi007: has joined #ruby
[02:05:18] roxtrongo: has joined #ruby
[02:07:34] GriffinHeart: has joined #ruby
[02:08:11] moeabdol: has joined #ruby
[02:08:59] rkazak: has joined #ruby
[02:09:02] fullofcaffeine: has joined #ruby
[02:09:12] nonamemks: has joined #ruby
[02:10:42] freerobby: has joined #ruby
[02:10:50] BillyJoe: has joined #ruby
[02:12:31] lessless: has joined #ruby
[02:12:43] jen_: has joined #ruby
[02:13:14] jen_: Anyone here experienced with the Google Adwords API?
[02:15:22] rdavila: has joined #ruby
[02:16:15] Asher: has joined #ruby
[02:22:23] Yzguy: has joined #ruby
[02:24:17] swgillespie: has joined #ruby
[02:26:29] zenguy_pc: has joined #ruby
[02:27:35] htmldrum: has joined #ruby
[02:28:43] tubuliferous_: has joined #ruby
[02:29:06] GriffinHeart: has joined #ruby
[02:30:57] Yzguy: has joined #ruby
[02:33:12] JJM: has joined #ruby
[02:34:30] p1k: has joined #ruby
[02:36:33] Igorshp: has joined #ruby
[02:37:30] moonman: has joined #ruby
[02:38:01] roxtrongo: has joined #ruby
[02:38:06] grekkos: has joined #ruby
[02:38:51] solocshaw: has joined #ruby
[02:39:32] nertzy: has joined #ruby
[02:39:59] astrobun_: has joined #ruby
[02:40:48] skweeke: has joined #ruby
[02:41:17] baweaver: has joined #ruby
[02:45:13] ramfjord: has joined #ruby
[02:49:11] Jayno: has joined #ruby
[02:50:41] Feyn: has joined #ruby
[02:51:35] Soda: has joined #ruby
[02:51:44] stardiviner: has joined #ruby
[02:52:14] juanca_: has joined #ruby
[02:53:33] `tim`: has joined #ruby
[02:55:30] chouhoulis: has joined #ruby
[02:58:45] favadi: has joined #ruby
[02:59:13] willharrison: has joined #ruby
[03:00:23] gener1c_: has joined #ruby
[03:00:41] GriffinHeart: has joined #ruby
[03:02:22] workmad3: has joined #ruby
[03:08:57] moeabdol: has joined #ruby
[03:10:00] braincras: has joined #ruby
[03:10:36] diego1: has joined #ruby
[03:11:15] diego1: has joined #ruby
[03:11:31] juanca_: has joined #ruby
[03:15:37] moei: has joined #ruby
[03:19:13] moeabdol: has joined #ruby
[03:19:18] arup_r: has joined #ruby
[03:22:27] Musashi007: has joined #ruby
[03:22:36] Yzguy: has joined #ruby
[03:29:27] Rollabunna: has joined #ruby
[03:33:28] BiHi: has joined #ruby
[03:38:34] gix: has joined #ruby
[03:38:36] Musashi007: has joined #ruby
[03:41:43] GriffinHeart: has joined #ruby
[03:43:29] moeabdol: has joined #ruby
[03:48:29] Ghost66: has joined #ruby
[03:50:30] swgillespie: has joined #ruby
[03:53:36] Ghost66: has left #ruby: ()
[03:56:18] chouhoulis: has joined #ruby
[03:56:43] diegoaguilar: has joined #ruby
[03:57:26] GriffinHeart: has joined #ruby
[03:57:44] trajing: has joined #ruby
[03:57:44] darkf: has joined #ruby
[04:05:28] stannard: has joined #ruby
[04:06:39] pepperbreath: has joined #ruby
[04:11:04] minimalism: has joined #ruby
[04:11:25] rickmasta: has joined #ruby
[04:12:18] kp666: has joined #ruby
[04:13:02] Pupp3tm4st3r: has joined #ruby
[04:14:13] moeabdol: has joined #ruby
[04:14:45] aryaching: has joined #ruby
[04:15:01] PsuzeannePsy: has joined #ruby
[04:15:34] Suzeanne: has joined #ruby
[04:15:52] trajing: has joined #ruby
[04:18:08] juanca_: has joined #ruby
[04:18:54] roxtrongo: has joined #ruby
[04:20:07] blue_deref: has joined #ruby
[04:20:13] arescorpio: has joined #ruby
[04:20:15] moeabdol: has joined #ruby
[04:21:45] gambl0re: has joined #ruby
[04:22:11] subscope: has joined #ruby
[04:23:19] framling: has joined #ruby
[04:25:49] braincrash: has joined #ruby
[04:25:51] faces: has joined #ruby
[04:26:08] gambl0re: has joined #ruby
[04:27:00] zenguy_pc: has joined #ruby
[04:32:00] zenguy_pc: has joined #ruby
[04:33:04] IrishGringo: has joined #ruby
[04:34:12] fullofcaffeine: has joined #ruby
[04:34:42] et09: has joined #ruby
[04:35:00] fullofcaffeine: has joined #ruby
[04:35:09] et09: with an array of objects, what is the fastest way to turn it into an object of format obj.prop => obj
[04:35:22] et09: for a unique prop of those objects
[04:37:27] Igorshp: has joined #ruby
[04:37:46] favadi: has joined #ruby
[04:38:19] bmalum: has joined #ruby
[04:38:28] rismoney1: has joined #ruby
[04:39:48] hakunin: has joined #ruby
[04:44:31] Coldblackice: has joined #ruby
[04:46:47] stardiviner: has joined #ruby
[04:48:13] agent_white: has joined #ruby
[04:48:59] gambl0re: has joined #ruby
[04:50:28] workmad3: has joined #ruby
[04:51:49] bmalum: has joined #ruby
[04:54:45] mloy: has joined #ruby
[04:55:35] agent_white: has joined #ruby
[04:55:53] clebrun: has joined #ruby
[04:56:42] roxtrongo: has joined #ruby
[04:57:01] chouhoulis: has joined #ruby
[04:57:38] andersoldahl: has joined #ruby
[04:58:04] GriffinHeart: has joined #ruby
[04:59:23] fullofcaffeine: has joined #ruby
[05:00:14] bootstrappm: has joined #ruby
[05:01:43] gambl0re: has joined #ruby
[05:03:18] jordanm: has joined #ruby
[05:04:33] musl: has joined #ruby
[05:05:01] aryaching_: has joined #ruby
[05:06:09] aryaching: has joined #ruby
[05:07:52] sanjayu: has joined #ruby
[05:08:10] fullofcaffeine: has joined #ruby
[05:08:23] fullofcaffeine: has joined #ruby
[05:08:26] gexe: has joined #ruby
[05:11:25] mloy: has joined #ruby
[05:12:13] musl: has joined #ruby
[05:12:24] Ropeney: has joined #ruby
[05:13:23] fullofcaffeine: has joined #ruby
[05:14:52] Akagi201: has joined #ruby
[05:15:57] spuk_: has joined #ruby
[05:16:33] astrobun_: has joined #ruby
[05:17:43] gix: has joined #ruby
[05:18:58] baweaver: has joined #ruby
[05:20:12] broccoli: has joined #ruby
[05:20:42] toy: has joined #ruby
[05:20:47] moeabdol: has joined #ruby
[05:22:25] rickmasta: has joined #ruby
[05:22:26] dhjondoh: has joined #ruby
[05:22:28] nemo_: has joined #ruby
[05:25:22] lubarch: has joined #ruby
[05:30:14] skcin7: has joined #ruby
[05:30:20] Rollabunna: has joined #ruby
[05:30:52] jud: has joined #ruby
[05:30:52] jud: has joined #ruby
[05:31:19] beauby: has joined #ruby
[05:31:29] lxsameer: has joined #ruby
[05:31:44] towski_: has joined #ruby
[05:32:45] chobcohobo: has joined #ruby
[05:33:15] trautwein: has joined #ruby
[05:34:39] leslie1: has joined #ruby
[05:35:15] leslie1: has left #ruby: ()
[05:38:49] djbkd: has joined #ruby
[05:39:57] djbkd: has joined #ruby
[05:40:27] Rollabunna: has joined #ruby
[05:41:57] Musashi007: has joined #ruby
[05:43:52] tenzan: has joined #ruby
[05:44:32] lessless: has joined #ruby
[05:44:38] tagrudev: has joined #ruby
[05:45:33] bmalum: has joined #ruby
[05:47:44] jas02: has joined #ruby
[05:49:25] moeabdol: has joined #ruby
[05:50:43] favadi: has joined #ruby
[05:53:10] moeabdol: has joined #ruby
[05:53:17] Feyn: has joined #ruby
[05:54:01] chrissonar: has joined #ruby
[05:55:20] houhoulis: has joined #ruby
[05:55:50] tkuchiki: has joined #ruby
[05:56:50] Pupp3tm4st3r: has joined #ruby
[05:57:48] chouhoulis: has joined #ruby
[06:00:49] aibot: has joined #ruby
[06:01:09] kies^: has joined #ruby
[06:04:34] luckyme: has joined #ruby
[06:04:36] U7se6: has joined #ruby
[06:04:49] fullofcaffeine: has joined #ruby
[06:05:45] Pupp3tm4st3r: has joined #ruby
[06:11:00] stannard: has joined #ruby
[06:12:56] symm-: has joined #ruby
[06:13:04] GriffinHeart: has joined #ruby
[06:13:25] kimegede: has joined #ruby
[06:15:52] lsmola_: has joined #ruby
[06:22:09] dhjondoh: has joined #ruby
[06:23:03] mary5030: has joined #ruby
[06:26:58] zenguy_pc: has joined #ruby
[06:27:22] yxhuvud: has joined #ruby
[06:29:22] ruurd: has joined #ruby
[06:29:49] grekkos: has joined #ruby
[06:30:56] bigkevmcd: has joined #ruby
[06:31:38] ledestin: has joined #ruby
[06:32:30] iateadonut: has joined #ruby
[06:33:11] eGGsha: has joined #ruby
[06:34:41] swgillespie: has joined #ruby
[06:35:53] krz: has joined #ruby
[06:38:32] workmad3: has joined #ruby
[06:41:25] Rollabunna: has joined #ruby
[06:47:26] ych: has joined #ruby
[06:48:01] above: has joined #ruby
[06:48:11] codecop: has joined #ruby
[06:49:42] kalusn: has joined #ruby
[06:49:57] howdoi: has joined #ruby
[06:51:18] tesuji: has joined #ruby
[06:51:41] Suzeanne: has joined #ruby
[06:52:39] adac: has joined #ruby
[06:54:22] acke: has joined #ruby
[06:54:53] rkazak: has joined #ruby
[06:55:49] roller: has joined #ruby
[06:56:14] roller: Hi is there a channel name for ruby on rails ?
[06:56:31] bmalum: join #rubyonrails roller ????
[06:56:43] roller: Great thansk
[06:57:03] bmalum: Your Welcome :)
[06:58:11] n008f4g_: has joined #ruby
[06:58:15] TomyWork: has joined #ruby
[06:58:34] Pupp3tm4_: has joined #ruby
[06:58:36] chouhoulis: has joined #ruby
[06:58:50] Cyther_: has joined #ruby
[06:59:03] hmsimha: has joined #ruby
[06:59:13] fullofcaffeine: has joined #ruby
[06:59:32] GriffinHeart: has joined #ruby
[07:03:14] solars: has joined #ruby
[07:04:30] ledestin: has joined #ruby
[07:05:00] khebbie: has joined #ruby
[07:06:28] swgillespie: has joined #ruby
[07:09:21] SCHAAP137: has joined #ruby
[07:09:25] sapslaj: has joined #ruby
[07:10:52] DEA7TH: has joined #ruby
[07:13:00] andikr: has joined #ruby
[07:14:10] kwd: has joined #ruby
[07:14:25] favadi: has joined #ruby
[07:17:19] aganov: has joined #ruby
[07:18:00] Rollabunna: has joined #ruby
[07:21:35] sundhell: has joined #ruby
[07:23:36] lamer14449848587: has joined #ruby
[07:23:57] _Cyther_: has joined #ruby
[07:24:02] symm-: has joined #ruby
[07:25:30] bayed: has joined #ruby
[07:27:09] firstdayonthejob: has joined #ruby
[07:27:27] edin: has joined #ruby
[07:29:25] techsethi: has joined #ruby
[07:31:06] XxionxX: has joined #ruby
[07:32:02] avelldiroll: has joined #ruby
[07:32:43] lessless: has joined #ruby
[07:36:47] keen_____: has joined #ruby
[07:38:01] ruurd: has joined #ruby
[07:40:44] mloy: [02:57] roller has joined #RubyOnRails
[07:40:46] mloy: true story
[07:41:35] agent_white: has joined #ruby
[07:42:48] ndrei: has joined #ruby
[07:43:37] j2FunOnly: has joined #ruby
[07:44:13] sinkensabe: has joined #ruby
[07:44:48] j2FunOnly: has left #ruby: ()
[07:49:59] nemo_: has joined #ruby
[07:50:32] ElCapitanMarklar: has joined #ruby
[07:52:03] ruurd: has joined #ruby
[07:53:32] Igorshp: has joined #ruby
[07:53:33] fullofcaffeine: has joined #ruby
[07:53:47] User458764: has joined #ruby
[07:54:24] armyriad: has joined #ruby
[07:54:46] agent_white: has joined #ruby
[07:55:02] _joes__: has joined #ruby
[07:55:37] agent_white: has left #ruby: ()
[07:55:44] atmosx_laptop: has joined #ruby
[07:58:08] yeticry: has joined #ruby
[07:59:16] chouhoulis: has joined #ruby
[07:59:51] TomyWork: has joined #ruby
[08:00:59] Hounddog: has joined #ruby
[08:01:40] framlinqp: has joined #ruby
[08:02:21] ruurd: has joined #ruby
[08:03:36] arup_r: has joined #ruby
[08:05:04] Uo9er_: has joined #ruby
[08:05:09] kalusn: has joined #ruby
[08:05:43] jgt: has joined #ruby
[08:08:46] nemo__: has joined #ruby
[08:09:38] nemo___: has joined #ruby
[08:09:55] CloCkWeRX: has joined #ruby
[08:10:42] nemo_: has joined #ruby
[08:12:19] vondruch: has joined #ruby
[08:13:07] yardenbar: has joined #ruby
[08:13:51] marr: has joined #ruby
[08:15:38] chthon: has joined #ruby
[08:16:44] deps: has joined #ruby
[08:17:36] XxionxX: has joined #ruby
[08:17:56] blackmesa: has joined #ruby
[08:19:13] dcarmich: has joined #ruby
[08:20:04] Couch: has joined #ruby
[08:23:12] unshadow: has joined #ruby
[08:23:33] Moblin: has joined #ruby
[08:23:40] haxrbyte_: has joined #ruby
[08:24:00] trosborn: has joined #ruby
[08:24:32] blaxter: has joined #ruby
[08:25:58] yfeldblum: has joined #ruby
[08:26:32] blackmesa: has joined #ruby
[08:26:36] workmad3: has joined #ruby
[08:28:23] zenguy_pc: has joined #ruby
[08:29:41] subscope: has joined #ruby
[08:30:18] Peg-leg: has joined #ruby
[08:31:29] mark2: has joined #ruby
[08:34:19] joonty: has joined #ruby
[08:35:17] ruurd: has joined #ruby
[08:37:06] sanjayu: has joined #ruby
[08:37:26] CloCkWeRX: has joined #ruby
[08:39:26] Ropeney: has joined #ruby
[08:40:44] agent_white: has joined #ruby
[08:40:59] wpp: has joined #ruby
[08:41:10] agent_white: has left #ruby: ()
[08:42:49] spider-mario: has joined #ruby
[08:43:22] SHyx0rmZ: has joined #ruby
[08:43:35] Stan: has joined #ruby
[08:44:37] karapetyan: has joined #ruby
[08:48:27] unshadow: A question to you guys, it
[08:48:59] vigintas: has joined #ruby
[08:50:01] unshadow: it's more of a general programming\security question, Is there a way to protect an object in memory from access by a local Admin\root user ? some kind of obfuscation or encryption method to allow me to store a string or another object in memory
[08:50:41] nemo_: has joined #ruby
[08:51:15] adaedra: Here we go again
[08:51:32] alcipir: has joined #ruby
[08:51:33] apeiros: short answer: no
[08:51:59] jgt: has joined #ruby
[08:52:03] unshadow: adaedra: no hahahah I promise this is a general question for an open-source project I work on
[08:52:04] senayar: has joined #ruby
[08:52:04] senayar: has joined #ruby
[08:52:36] ruby-lang606: has joined #ruby
[08:53:06] unshadow: apeiros: I see, thanks.
[08:53:14] EdwardIII: how come ruby uses -> for the anon. function in lambda syntax? why doesn't it just use a block like everything else?
[08:53:36] apeiros: EdwardIII: ->(){} is a shortcut for lambda { || }
[08:53:48] apeiros: (which is essentially a method taking a block, like everything else)
[08:53:58] EdwardIII: the keyword lambda wasn't sigitastic enough eh? hehe
[08:54:03] apeiros: though, blocks use proc semantics. lambdas don't.
[08:54:08] EdwardIII: "this looks like python! get rid of it!!"
[08:54:11] apeiros: lambda isn't a keyword.
[08:54:34] EdwardIII: ah actually it's probably worth me understanding that better
[08:54:37] EdwardIII: is it a method on Kernel?
[08:55:38] EdwardIII: apeiros: how come it doesn't show up in Kernel.instance_methods?
[08:55:45] ruby-lang606: hey everyone, quick question, I have a hash something like this: hashh => { string1: %q{ bla bla }, string2: %{bla bla 2} } and i want string one to sometimes contain different string based on a token passed to it :property, I know we can use #{} with a string but how do we implement a condition on a string, for example; string = " something here #{if somecondition puts "something else to follow" end} " I know this is wrong but anyw
[08:56:15] apeiros: EdwardIII: all of Kernel's own instance methods are private
[08:56:32] adaedra: ruby-lang606: for something short, you can use a ternary expression
[08:57:13] EdwardIII: apeiros: so what happens when i run 'irb'? a new Kernel object gets instantiated and i'm like... inheriting from that??
[08:57:13] apeiros: ruby-lang606: while most users on irc appreciate one long message over dozens of short messages, there's a limit on IRC ;-)
[08:57:17] ruby-lang606: adaedra: the actuall string is long, but I want to abend something at the end of it
[08:57:33] adaedra: use String#<< in a condition then
[08:57:42] terlar: has joined #ruby
[08:57:44] ruby-lang606: apeiros: too many rules man to keep up with, sorry next time I'll send shorter
[08:57:44] leafybas_: has joined #ruby
[08:57:51] apeiros: EdwardIII: a new `main` is instantiated, which is an instance of Object, and Object includes Kernel.
[08:58:18] EdwardIII: apeiros: if there's a doc i should be reading instead of bugging you feel free to point me in the right direction heh
[08:59:10] apeiros: EdwardIII: sure. but I'm not aware of docs explaining those things. might check Kernel and Object's class docs, though.
[08:59:19] EdwardIII: ah so in a oneliner, if i `p self` it shows me main
[08:59:23] EdwardIII: that's pretty elite
[08:59:45] nofxx: has joined #ruby
[08:59:45] nofxx: has joined #ruby
[09:00:01] chouhoulis: has joined #ruby
[09:00:37] platzhirsch: has joined #ruby
[09:01:40] EdwardIII: hrm but self.methods doesn't show lambda - maybe i'm not understanding properly? main < Object < Kernel right? so i can use, let's say, lambda or puts because main has Kernel as it's ancestor?
[09:02:01] apeiros: .methods and .instance_methods both don't show private methods by default
[09:02:03] TheHodge: has joined #ruby
[09:02:15] apeiros: .private_methods and .private_instance_methods do
[09:02:28] Spami: has joined #ruby
[09:04:26] EdwardIII: ok and when i run a script i'm actualy inside 'main', not accessing an instance of it, so i have access to private methods?
[09:06:22] sepp2k: has joined #ruby
[09:06:28] krz: has joined #ruby
[09:06:58] unshadow: apeiros: adaedra: is there something like this for ruby ? : https://msdn.microsoft.com/en-us/library/system.security.securestring.aspx?f=255&MSPPError=-2147217396
[09:07:13] apeiros: EdwardIII: main isn't a class, so you can't even have an instance of main ;-)
[09:07:27] apeiros: EdwardIII: and yes, no explicit receiver -> access to private methods
[09:08:13] freezevee: has joined #ruby
[09:08:16] EdwardIII: apeiros: hmm i'm a little confused. is there ever another case where you have no explicit receiver? or just when you're at the program entry point (i.e. myscript.rb?)
[09:08:33] EdwardIII: and if main isn't a class what is it?
[09:08:41] apeiros: unshadow: this is an OS level problem + whether you have a binding to the OS level solution.
[09:09:02] EdwardIII: in reality if you're using ruby i guess securestring wouldn't work anyway
[09:09:15] apeiros: EdwardIII: everywhere where you call methods on the same object, you can do it without an explicit receiver
[09:09:21] leat2: has joined #ruby
[09:09:23] bougyman: thre's https://github.com/paploo/secure_string
[09:09:24] last_staff: has joined #ruby
[09:09:37] bougyman: it's not at all the same as that .net implementation.
[09:09:45] mg^^: has joined #ruby
[09:09:48] bougyman: but it might accomplish what you're looking for.
[09:09:57] EdwardIII: unshadow: where's this string coming from? user input? or somewhere else?
[09:10:12] Musashi007: has joined #ruby
[09:10:34] apeiros: bougyman: this is misleading, though. there are no guarantees that your input string doesn't still reside in memory.
[09:10:49] bougyman: apeiros: that's what i'm looking at now.
[09:10:57] bougyman: this is a pretty simplistic implementation.
[09:11:02] bougyman: but it's got potential.
[09:11:21] atomical: has joined #ruby
[09:11:30] apeiros: afaik unless you have OS level support for this, you don't really have a chance
[09:11:31] tkuchiki: has joined #ruby
[09:11:38] Pisuke: has joined #ruby
[09:12:01] apeiros: not a security expert, though. only enough half-knowledge to be dangerous.
[09:12:19] EdwardIII: java have a SecureString implementation
[09:12:58] EdwardIII: i looked into this for PHP but basically if your input is coming from the web you're wasting your time, because it comes via webserver then middleware before it even hits your language. so they're floating around in memory (probably, they did in my tests) and there's nothing you can really do about it
[09:13:15] EdwardIII: except get a SecureStringWebserver and SecureStringMiddleware before you even look at your language
[09:13:23] Puffball: has joined #ruby
[09:14:05] cscheib: has joined #ruby
[09:15:09] joneshf-laptop: has joined #ruby
[09:15:22] Gnomethrower: has joined #ruby
[09:15:35] bougyman: looks like yama helps with this a bit
[09:15:50] bougyman: a few other linux security modules can help protect your ram from other users, even from the superuser.
[09:16:24] DEA7TH: has joined #ruby
[09:16:42] bougyman: but you're right, apeiros, if it's not OS level a language can only obscure, not eliminate the problem.
[09:17:48] unshadow: bougyman: What security modules in Linux you know of that can "protect your ram from other users, even from the superuser." ? This might help me too
[09:18:10] nemo__: has joined #ruby
[09:18:17] bougyman: unshadow: yama
[09:18:31] bougyman: it's not default in many distros, but it's available.
[09:18:51] bougyman: we use it by default in void, but not at its highest level (where the superuser cannot access users' ram)
[09:19:02] bougyman: I think we ship at level 2
[09:19:12] bougyman: https://www.kernel.org/doc/Documentation/security/Yama.txt
[09:19:44] matled-: has joined #ruby
[09:19:57] leafybasil: has joined #ruby
[09:20:44] bougyman: be careful with level 3 and apps which expect ptrace/dumpable to be available.
[09:21:29] Testo: has joined #ruby
[09:21:38] M-mistake: has joined #ruby
[09:21:42] bougyman: once you're in level 3 there's no way out other than a reboot (making sure it's < 3 on the rebooted kernel)
[09:22:13] unshadow: bougyman: This is really cool ! this might be great for what I want, thanks :)
[09:22:18] bougyman: no worries.
[09:22:22] chihhsin: has joined #ruby
[09:23:09] xybre: has joined #ruby
[09:23:32] programmerq: has joined #ruby
[09:23:51] Testo: bougymanfe
[09:28:04] alcipir: has joined #ruby
[09:28:17] cornerma1: has joined #ruby
[09:32:05] krisquigley: has joined #ruby
[09:32:51] htmldrum: has joined #ruby
[09:33:57] User458764: has joined #ruby
[09:35:39] Igorshp: has joined #ruby
[09:39:32] workmad3: has joined #ruby
[09:41:03] djcp: has joined #ruby
[09:41:07] khebbie: has joined #ruby
[09:42:18] fullofcaffeine: has joined #ruby
[09:45:44] rodfersou: has joined #ruby
[09:47:12] futilegames: has joined #ruby
[09:48:55] dhjondoh: has joined #ruby
[09:53:52] workmad3: has joined #ruby
[09:54:18] futilegames: has joined #ruby
[09:55:32] machan: has joined #ruby
[09:55:58] machan: Is it possible to create your own named regex character class e.g. [[:upper:]]
[09:56:40] bougyman: not without getting down to the source of oniguruma and doing it, afaik.
[09:56:58] bougyman: apeiros: i'm interested in your answer to that one. I've never considered it.
[09:56:59] machan: Ookies :) thanks
[09:58:37] roxtrongo: has joined #ruby
[09:59:59] norc: has joined #ruby
[10:00:18] norc: Is there some elegant shorthand for [].each { |e| yield(e) } ?
[10:00:50] chouhoulis: has joined #ruby
[10:01:23] rdark: has joined #ruby
[10:01:53] nisstyre: has joined #ruby
[10:02:30] Spami: has joined #ruby
[10:02:40] ddv: norc: tap
[10:03:42] Igorshp: has joined #ruby
[10:04:11] machan: why tap dat
[10:05:12] U7se6: has joined #ruby
[10:05:16] norc: Oh Im silly. I can just do [].each(&proc). :)
[10:05:20] ddv: ass.....
[10:10:26] lessless: has joined #ruby
[10:12:23] gregoriokusowski: has joined #ruby
[10:13:16] yashinbasement: has joined #ruby
[10:16:30] machan: norc: shorter, I don't know if necessarily clearer
[10:17:30] eGGsha: has joined #ruby
[10:20:27] rickmasta: has joined #ruby
[10:20:41] bruce_lee: has joined #ruby
[10:21:16] araujo_: has joined #ruby
[10:21:16] karapetyan: NameError: uninitialized constant Xs
[10:21:16] karapetyan: from (irb#1):3
[10:24:02] shredding: has joined #ruby
[10:27:22] jhass: karapetyan: is there a question?
[10:27:34] karapetyan: jhass: sorry, no.
[10:28:46] zenguy_pc: has joined #ruby
[10:29:29] caliostro: has joined #ruby
[10:29:31] EdwardIII: why would you do [].each(&proc)?
[10:29:56] EdwardIII: would that be inside something like def my_func(&proc)?
[10:32:34] gexe_: has joined #ruby
[10:32:55] solocshaw: has joined #ruby
[10:32:58] norc: EdwardIII: You dont have to explicitely name the block in the argument defition, but yeah.
[10:33:29] Ebok: What is a good ruby editor application? I've been using cloud9 for awhile, however, it's time. Windows10 or Mac, dont mind which people suggest. Preferably it'll have some color coding and be free.
[10:34:02] norc: Ebok: I use sublime under windows, and vi for osx/linux.
[10:34:03] jhass: ugh, the editor question. everybody hide!
[10:34:05] EdwardIII: heh that seems kind of confusing, "def insert_block_here"
[10:34:13] Ebok: Thankyou
[10:34:18] EdwardIII: at least in perl you'd have shift @_; heh
[10:37:15] G: has joined #ruby
[10:37:29] Gnomethrower: has joined #ruby
[10:38:06] norc: EdwardIII: What do you mean with confusing? Blocks?
[10:38:23] ldnunes: has joined #ruby
[10:39:08] EdwardIII: norc: just the callback argument being passed non-explicitly (maybe just confusing to me)
[10:39:58] weihan: has joined #ruby
[10:41:04] GriffinHeart: has joined #ruby
[10:41:15] norc: EdwardIII: You should get used to it. Proc creation can be expensive, which is why people sometimes even forego binding the block to a proc object.
[10:41:41] pawnbox: has joined #ruby
[10:41:47] norc: The yield/block_given? are your only indication that the function expects a block then. ;-)
[10:42:15] EdwardIII: binding the block to a proc object?
[10:42:20] EdwardIII: sorry i'm very new to ruby
[10:42:28] avril14th: has joined #ruby
[10:42:28] EdwardIII: what would that look like? doing and then forgoing?
[10:43:19] avril14th: Hello, does anyone around here has already managed to connect to a SQL Server on Azure using Tiny tds gem?
[10:43:34] norc: EdwardIII: https://innig.net/software/ruby/closures-in-ruby
[10:43:38] norc: Take a read there. :)
[10:43:53] EdwardIII: ACTION reads
[10:45:45] wat_: has joined #ruby
[10:46:46] ruby-lang595: has joined #ruby
[10:47:59] blackmesa: has joined #ruby
[10:49:22] patrick_f: has joined #ruby
[10:52:59] apeiros: bougyman: which one? creating your own regex char class?
[10:55:17] tno: has joined #ruby
[10:56:19] apeiros: I think the answer you've given is correct. You'd have to modify oniguruma (though, I think its name even changed by now)
[10:58:50] wat_: Hello, everyone. Recently I stumbled upon some strange behaviour of Time#parse. Here is the irb session to reproduce http://pastebin.com/fQBJER7f. So I was wondering why does Time#parse behaves like that? Is there a well-known reason for this inconsistent(IMO) behaviour? Or is it a well-known bug? Something else?
[10:58:51] ruboto: wat_, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/3e9162ca59053cd902b7
[10:58:51] ruboto: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[10:59:08] stamina: has joined #ruby
[11:01:35] chouhoulis: has joined #ruby
[11:02:14] Zai00: has joined #ruby
[11:04:06] karapetyan: has joined #ruby
[11:04:40] shmilan: has joined #ruby
[11:04:57] norc: wat_: My initial guess is that it greatly simplifies the parsing. %d matches 0..31 without regard of the month.
[11:05:05] blackmesa: has joined #ruby
[11:05:25] shevy: lol wat_ why did you pick that nick
[11:06:17] wat_: Because when I found it I was like: "Wat?".
[11:06:38] adac: has joined #ruby
[11:06:42] khebbie: has joined #ruby
[11:06:44] norc: shevy: You are such a hateful person.
[11:06:54] bryanray: has joined #ruby
[11:07:06] roxtrongo: has joined #ruby
[11:10:06] nemo_: has joined #ruby
[11:10:19] apeiros: wat_: unrelated to your problem: use strptime if you know the format, not .parse.
[11:10:46] apeiros: ACTION thinks .parse should be renamed to .guess
[11:11:37] norc: wat_: In all fairness, it beats how strptime from time.h behaves to these things.
[11:13:25] jhass: apeiros: why not throw_chicken_bones
[11:13:26] norc: (That thing will give you a 30th of February back, whether that makes any sense at all or not)
[11:14:34] Igorshp: has joined #ruby
[11:14:39] nemo_: has joined #ruby
[11:15:55] shinenelson: has joined #ruby
[11:16:30] trosborn: has joined #ruby
[11:21:41] lipoqil: has joined #ruby
[11:23:49] wpp: I hope this is not the worst question in the world, but could someone explain to me what the Garbage collector inside an MRI process is? Everything I read about the GC is just referring to it as "the GC".
[11:23:57] karapetyan: has joined #ruby
[11:24:07] doddok: has joined #ruby
[11:24:25] jhass: wpp: any background with other languages?
[11:24:59] wpp: As in is the GC a process-wide construct or is it shared between multiple ps?
[11:25:08] Pupp3tm4st3r: has joined #ruby
[11:25:12] wpp: jhass yes
[11:25:18] phutchins: has joined #ruby
[11:25:34] wpp: jhass c
[11:25:47] jhass: excellent, that makes it easier
[11:26:15] jhass: so, when you do Foo.new, or just "foo" + "bar", you create objects, those need (heap) memory, clear?
[11:26:22] wpp: jhass yep
[11:26:25] Rollabunna: has joined #ruby
[11:26:48] jhass: the GC tracks the allocations for that memory, then it regularly checks if there are still any references to those objects
[11:27:02] Suzeanne: has joined #ruby
[11:27:05] jhass: and if not, frees the memory or reuses it for new objects
[11:27:07] wpp: jhass uhh I should have prefaced, I get what the gc is doing
[11:27:23] wpp: jhass I'm just wondering what exactly it is?
[11:27:27] bkxd: has joined #ruby
[11:27:32] jhass: part of the VM
[11:27:33] shevy: wpp when did you start with ruby?
[11:28:14] jhass: it gets its time to run regularly and called when memory is needed
[11:28:27] jhass: you could see it as a sophisticated malloc implementation
[11:30:04] wpp: jhass ok so it is per process right? Every mri/rails c/ruby xyz has its own GC?
[11:30:31] jhass: it's managing a processes memory after all
[11:30:43] wpp: jhass Ok so how come when I start a new irb session and run GC.count is already at 28?
[11:30:57] jhass: because quite a few things happen if you do so
[11:31:08] jhass: readline is initialized, rubygems is loaded and what not
[11:31:20] wpp: jhass aah so just starting irb session triggers 28 GC runs
[11:31:48] mxrguspxrt: has joined #ruby
[11:32:05] senayar: has joined #ruby
[11:32:06] nemo_: has joined #ruby
[11:32:18] wpp: jhass Oh boy haha I was wondering howcome its is so high, how can I find out when the GC is invoked?
[11:32:26] wpp: jhass (thanks for explaining this to me btw)
[11:32:33] phutchins: has joined #ruby
[11:32:39] blackmesa: has joined #ruby
[11:33:04] wpp: shevy actually a while back, but never dealt with GC. howcome?
[11:33:15] jhass: wpp: it's usually not done by user code
[11:33:31] shevy: wpp Austria!
[11:33:47] wpp: shevy yes?
[11:33:52] Bellthoven: has joined #ruby
[11:34:04] dhjondoh: has joined #ruby
[11:34:41] krz: has joined #ruby
[11:34:45] wpp: wpp ok. can I just bother you a bit longer?
[11:34:53] joncol: has joined #ruby
[11:34:58] wpp: jhass ok. can I just bother you a bit longer?
[11:35:05] wpp: (I'm an idiot)
[11:35:13] HoloIRCUser: has joined #ruby
[11:35:45] joncol: How can I check if a Addrinfo object (returned by Socket.ip_address_list) is wireless or not?
[11:35:45] phutchins: has joined #ruby
[11:35:49] jhass: wpp: well, just continue asking questions to the channel, I'll answer when I have time and knowledge ;)
[11:36:36] wpp: So I'm actually debugging a memory leak and ran into this post http://samsaffron.com/archive/2015/03/31/debugging-memory-leaks-in-ruby, the author recommends running a gem called rb_trace which takes a memory dump of a running process
[11:36:45] senayar: has joined #ruby
[11:36:45] senayar: has joined #ruby
[11:36:47] wpp: * heap dump
[11:37:00] p0wn3d__: has joined #ruby
[11:37:10] phutchins: has joined #ruby
[11:37:34] wpp: With that heap dump you can have a look at GC generation and object count over the liftime of the process
[11:38:15] Rollabunna: has joined #ruby
[11:38:26] wpp: The author has at least 22 GC generations in his dump, BUT when I have a look at mine I only get generation 0.
[11:38:33] phutchins: has joined #ruby
[11:38:36] wpp: And the dump is always around the 90m mark
[11:38:39] araujo: has joined #ruby
[11:39:39] gregf: has joined #ruby
[11:40:05] jhass: that sounds like every single thing is still referenced, which seems unlikely, mh
[11:40:25] jhass: ruby version? The GC changed quite a bit with each 2.0, 2.1 and 2.2
[11:40:37] wpp: jhass 2.2.3p173
[11:41:32] jhass: I'm afraid I was myself rather unsuccessful in debugging memory leaks in Ruby, maybe someone else has more experience, stick around
[11:41:51] Rollabunna: has joined #ruby
[11:42:04] wpp: jhass I will, could you just explain how you come to the conclusion that every single thing is still referenced?
[11:42:16] Pumukel: has joined #ruby
[11:42:22] wpp: could just be that the gem only dumps the first generation?
[11:42:39] jhass: well, I never looked at the gem so I wouldn't know
[11:42:52] wpp: jhass ah ok
[11:43:17] jhass: but give https://engineering.heroku.com/blogs/2015-02-04-incremental-gc/ a look
[11:43:41] shevy: wpp I and manveru are from Austria as well; I think the author of kramdown also is
[11:43:42] akakios: has joined #ruby
[11:43:46] jhass: that's from the author of the current GC
[11:44:19] adaedra: shevy: when doing a list of persons, I is always last.
[11:44:20] wpp: jhass thanks for that!
[11:44:41] wpp: shevy manveru servus :) where exactly?
[11:45:45] manveru: wpp: i'm near kufstein atm
[11:46:17] shevy: adaedra only in baguette country
[11:46:56] adaedra: shevy: it's getting old. You don't have other words?
[11:47:14] shevy: adaedra I have plenty of words but I pick the very most fitting
[11:47:31] manveru: shevy is the embodyment of conservatism, don't expect new words from him :P
[11:47:37] adaedra: That's kind of annoying, really.
[11:47:49] Igorshp: has joined #ruby
[11:48:01] shevy: It's all good fun!
[11:48:16] manveru: damn, embodiment... embodyment is a band name :(
[11:48:41] shevy: manveru were you not working in Germany not too terribly long ago?
[11:49:07] manveru: i live in germany
[11:49:32] manveru: but it's a 10 minute walk over the border, so not much difference
[11:50:09] manveru: and i'm starting a company in austria
[11:50:20] sdothum: has joined #ruby
[11:51:08] karapetyan: has joined #ruby
[11:54:14] unreal: has joined #ruby
[11:55:10] Icey: has joined #ruby
[11:56:43] sinkensabe: has joined #ruby
[11:57:11] j416: can I rspec expect a result from a block?
[11:57:53] j416: i.e. I have a method that takes a block, and I want to verify that the result of that block is passed properly to another method
[11:58:17] khebbie: has joined #ruby
[11:58:28] manveru: you want to test whether the block was called?
[11:59:22] armyriad: has joined #ruby
[12:00:06] j416: manveru: not just that, I want to grab the result of the block and check that it is passed on properly
[12:00:22] manveru: what does that mean?
[12:00:37] j416: say I have: def foo(&block); bar(yield); end;
[12:01:02] j416: I want to say expect(Foo).to receive(:bar).with ..
[12:01:20] j416: and I want to verify that whatever I passed in gets passed on
[12:01:23] j416: maybe I do't have to
[12:01:30] j416: yes, I do hm
[12:01:36] jhass: yeah, sounds a bit like you're testing implementation
[12:01:38] j416: because I give a specific block, and it gets formatted
[12:02:09] manveru: well, you can stub temporarily
[12:02:16] AugustoCesar: has joined #ruby
[12:02:17] j416: sorry for being so abstract, I will come back with a proper example once I have time to write one, off to a meeting will be back soon with more info!
[12:02:19] chouhoulis: has joined #ruby
[12:02:19] j416: thanks so far.
[12:02:23] jhass: thing = double; expect(Foo).to receive(:bar).with(thing); Foo.foo { thing }
[12:02:44] j416: will think. thanks.
[12:03:02] AugustoCesar: has left #ruby: ()
[12:03:18] asxbr: has joined #ruby
[12:05:17] Uo9er_: has joined #ruby
[12:05:27] EdwardIII: i've not done anything significant in smallktalk, but ruby feels a bit like smalltalk, it looks like the code samples and feels like it matches up with a lot of the concept david west talks about
[12:05:40] atomical: has joined #ruby
[12:06:09] EdwardIII: plus the message passing? i think?
[12:07:02] shevy: it's like smalltalk coming into the scripting families
[12:07:19] shevy: so php perl python ruby and perhaps lua
[12:07:26] manveru: that'd be gst :)
[12:07:29] pathrocle: has joined #ruby
[12:07:30] Takumo: with Builder is it simple to put the same namespace on *all* tags?
[12:07:31] EdwardIII: one thing i remember DW saying in a talk is that main() doesn't match nicely with OO
[12:07:39] EdwardIII: i guess he thinks all the objects should be spun up... somewhere? at boot time?
[12:07:43] EdwardIII: when the VM boots i guess
[12:07:52] shevy: smalltalk is weird, you have some great stuff like Squeak which I really think is a great idea but it just does not feel as if people write a script, then distribute it simply (in smalltalk)
[12:08:12] EdwardIII: but it seems to be very, very GUI-based which doesn't suit me at all
[12:08:18] hmsimha: has joined #ruby
[12:08:25] manveru: seriously, check out gst
[12:08:31] shevy: it's like as if they tried to do a whole operating system with squeak
[12:08:45] EdwardIII: well i think that's kind of the point
[12:08:51] manveru: http://smalltalk.gnu.org/
[12:09:04] EdwardIII: i did have a little look at that
[12:09:23] shevy: EdwardIII did you also watch the old Alan Kay lecture/talks?
[12:09:29] EdwardIII: shevy: no not yet
[12:09:35] EdwardIII: got any recommendations?
[12:09:48] bougyman: gst hasn't been updated in 2 years?
[12:09:55] manveru: looks like :(
[12:09:56] ixti: has joined #ruby
[12:10:00] EdwardIII: i think object thinking is a fantastic book but also... it feels a bit like DW doesn't live in the real world
[12:10:09] manveru: haven't used it in ages either
[12:10:09] EdwardIII: like just saying "java is dumb because you have main()" isn't really helpful
[12:10:34] EdwardIII: many people have to write java every day - tell them how to make it fit in with your OO design ideas, don't just shoot it down
[12:10:52] bougyman: i'm not uncomfortable with shooting java down
[12:10:54] EdwardIII: what can the programmers do? make HSBC rewrite their online banking systems in smalltalk? not likely
[12:11:01] shevy: EdwardIII dunno... the older ones were better, he is getting a bit old these days, like the history of how they worked and built interfaces for humans. probably not any just singular lecture, just over the years what Alan said
[12:11:07] bougyman: no, but the architect can.
[12:11:16] bougyman: and programmers can buy the architect drinks.
[12:11:19] EdwardIII: he's not going to do that though is he heh
[12:11:31] hectortrope: has joined #ruby
[12:11:44] bougyman: im' doing this right now for barclays.
[12:11:46] bougyman: so it can be done.
[12:11:59] EdwardIII: i remember when the BBC migrated everything on iplayer from perl to PHP... i wonder how they feel about that decision now heh
[12:12:08] EdwardIII: bougyman: really?
[12:12:16] shevy: they really went to php?
[12:12:18] bougyman: yes really.
[12:12:21] EdwardIII: shevy: smalltalk?
[12:12:23] bougyman: no, not to php.
[12:12:25] EdwardIII: bougyman: smalltalk?
[12:12:32] bougyman: ruby and python.
[12:12:49] EdwardIII: shevy: yeah it was a while ago, they may have migrated again since. but they said it was basically because they couldn't hire perl devs, they couldn't find them
[12:13:11] EdwardIII: i went to a con where one of the main perl consultants was, he said it wasn't really like that, it was more political than anything
[12:13:29] bougyman: the problem with smalltalk for a large company is really the mindshare available.
[12:13:30] manveru: looks like bonzinip hasn't touched gst for about two years at all... and he was the only one keeping it alive
[12:13:37] EdwardIII: but to move from perl to php, that sucks heh. going through all that pain to migrate stuff & retrain, then the end result is you're in php
[12:13:44] gregoriokusowski: has joined #ruby
[12:13:46] EdwardIII: bougyman: well and 3rd party libs i guess
[12:13:47] bougyman: finding hundreds of devs who are proficient in it and willing to live in Cheshire, in barclays case.
[12:14:03] EdwardIII: i have so many questions heh
[12:14:07] EdwardIII: why ruby AND python?
[12:14:28] bougyman: python for analytics, ruby for infrastructure and web.
[12:14:29] shevy: yeah php is also annoying but strangely enough, I also went from perl to php and I was more productive in php compared to my perl days, at the very least for web-stuff. I wrote perl .cgi scripts and that was quite annoying back then
[12:14:42] EdwardIII: python for analytics because of matlib and stuff like that?
[12:14:48] bougyman: python is just much better at... yep, you said it.
[12:15:07] EdwardIII: shevy: things are a lot better now with Moose & Catalyst
[12:15:13] EdwardIII: there are some really smart people doing perl
[12:15:30] shevy: I dunno, I have a hard time wanting to do any perl after ruby
[12:15:32] bougyman: ipython makes it easy for ruby to orchestrate all of the python stuff.
[12:15:34] manveru: you tried perl6 yet?
[12:15:41] EdwardIII: shevy: well yeah heh
[12:15:50] shevy: like when you look at: http://blogs.perl.org/users/aaron_baugher/2015/10/the-old-becomes-new-again-a-gopher-server-in-perl-6.html
[12:16:12] shevy: it sorta is perl 5... but Ulti from #bioinformatics also showed this:
[12:16:24] shevy: <Ulti> "/usr/share/dict/words".IO.words.classify(*.lc.comb.sort.join).sort(-*.value)[0].say this is why I like Perl 6 :P
[12:16:27] shevy: so I am confused
[12:16:33] diegoaguilar: has joined #ruby
[12:16:35] EdwardIII: bougyman: how are you going to communicate between ruby & python? ruby stores data in a db then python+matlib+matplotlib picks it up? or purely through ipython?
[12:17:01] big|bad|wolf: has joined #ruby
[12:17:03] shevy: I didn't try perl6 yet but that syntax above is quite nice
[12:17:09] shevy: *. or so is a lambda or something
[12:17:14] EdwardIII: i dunno it's a strange one
[12:17:25] EdwardIII: a lot of the people in the perl community seem to have beef with perl6
[12:17:35] EdwardIII: like they almost prefer how esoteric perl5 is
[12:17:51] manveru: well, they're used to perl5 by now
[12:17:57] bougyman: EdwardIII: through ipython
[12:17:59] manveru: and perl6 is a totally new language basically
[12:18:00] EdwardIII: i guess they kind of fear an eternal september which they can avoid by having a langauge which, yes, is kind of strange sometimes
[12:18:31] manveru: god knows why they didn't pick a new name for it
[12:18:54] ndrei: has joined #ruby
[12:19:10] manveru: there are still people sticking to python2... and python3 is a much smaller evolution
[12:19:32] manveru: then again, we still get people in this channel using ruby 1.8.6 and the like
[12:19:37] EdwardIII: yeees that's true i suppose
[12:19:42] EdwardIII: i feel bad for the guys at twisted
[12:20:53] DEA7TH: What is a better way to write this? https://gist.github.com/VelizarHristov/a0d5da21d6bece87a36e
[12:20:59] DEA7TH: I need the first number not in nums
[12:21:24] big|bad|wolf: has joined #ruby
[12:23:13] alphaatom: has joined #ruby
[12:23:16] nemo_: has joined #ruby
[12:23:28] manveru: i = 0; while nums.include?(i); i+=1; end
[12:23:35] gagrio: has joined #ruby
[12:23:46] arup_r: has joined #ruby
[12:23:57] jhass: nums.max + 1 ?
[12:24:11] jhass: well, for some assumption about the set
[12:24:40] DEA7TH: right. forgot a simple while loop :D
[12:24:53] DEA7TH: yeah that's fine
[12:24:55] manveru: i = 0; i+=1 while nums.include?(i); return i
[12:25:18] chriscarpenter12: has joined #ruby
[12:25:23] manveru: unless your nums are always a range, then jhass has the better solution
[12:25:23] jhass: set.size.times.find {|i| !set.include?(i) }
[12:25:28] weihan_: has joined #ruby
[12:25:58] manveru: (nums.size.times.to_a - nums).first
[12:26:16] manveru: but that uses way more memory
[12:26:18] jhass: well, wanted to avoid the array
[12:26:18] chriscarpenter12: has left #ruby: ()
[12:26:43] jhass: DEA7TH: what's this for? where does the set come from?
[12:26:45] weihan: has joined #ruby
[12:26:49] chriscarpenter12: has joined #ruby
[12:26:49] manveru: yours does a linear search N*N times
[12:27:01] jhass: Set#include? is O(1)
[12:27:04] DEA7TH: jhass: it's a list of IDs
[12:27:20] manveru: oh, it's not an array?
[12:27:27] DEA7TH: I want to create the same ID, like SQL DBs do
[12:27:28] jhass: DEA7TH: I didn't ask "what's this"
[12:27:29] DEA7TH: it's an array yes
[12:27:40] chriscarpenter12: has left #ruby: ()
[12:27:41] chriscarpenter12: has joined #ruby
[12:27:43] jhass: in your gist you wrote it's a set, now what is it?
[12:27:52] chriscarpenter12: has left #ruby: ()
[12:27:53] DEA7TH: it's a Ruby set
[12:27:55] weihan: has joined #ruby
[12:27:59] manveru: so it's a hash
[12:28:07] DEA7TH: Ruby has a Set type
[12:28:21] DEA7TH: or are you asking what does the set represent?
[12:28:21] manveru: yeah, it's implemented via an hash though
[12:28:22] jhass: DEA7TH: most RDBMS just increment a counter that they store alongside
[12:28:31] jhass: that is they don't fill holes
[12:28:33] DEA7TH: I'm dealing with a file system, not a DB though
[12:28:35] DEA7TH: yeah I know
[12:28:37] jhass: so nums.max + 1
[12:28:39] DEA7TH: I prefer to fill holes though
[12:28:55] DEA7TH: since my use case is very different. DBs get huge
[12:29:05] DEA7TH: I expect to be usually at... 1 or 2
[12:29:27] zenguy_pc: has joined #ruby
[12:29:44] uber: has joined #ruby
[12:29:54] gusTester: has joined #ruby
[12:31:22] weihan: has joined #ruby
[12:32:04] Igorshp: has joined #ruby
[12:34:46] lea: has joined #ruby
[12:35:12] DEA7TH: set.size.times.find {|i| !set.include?(i) } is really nice, but doesn't work if the set doesn't have gaps, i.e. [0, 1].to_set
[12:35:35] DEA7TH: so I'll have to go with the 3-liner
[12:36:40] ndrei: has joined #ruby
[12:37:04] weihan: has joined #ruby
[12:38:16] weihan: has joined #ruby
[12:40:40] apeiros: jhass: dunno, I like Time.guess more than Time.throw_chicken_bones :)
[12:42:00] varunwachaspati: has joined #ruby
[12:42:04] jhass: DEA7TH: .find(set.size+1)
[12:43:23] kimegede: has joined #ruby
[12:43:59] Zai00_: has joined #ruby
[12:44:20] IrishGringo: has joined #ruby
[12:46:19] techsethi: has joined #ruby
[12:46:25] Guest50: has joined #ruby
[12:46:41] adac: has joined #ruby
[12:47:45] weihan: has joined #ruby
[12:49:10] tvw: has joined #ruby
[12:49:13] subscope: has joined #ruby
[12:49:26] tagrudev: has joined #ruby
[12:49:55] apeiros: hrm. writing a gem foo-bar with (of course) means it wants to be required as 'foo/bar'. add a file foo-bar.rb which requires 'foo/bar' and emits a warning - yay/nay?
[12:50:29] FastJack: has joined #ruby
[12:53:03] aufi: has joined #ruby
[12:53:37] shevy: I'd love to say that foo-bar.rb is ugly but I wrote even uglier filenames myself
[12:54:09] shevy: I even had things like CompileProgram.rb
[12:54:10] apeiros: it is ugly, and wrong. hence the warning. at the moment I tend to "nay".
[12:54:25] apeiros: shevy: I'd actually prefer the convention to be CompileProgram.rb
[12:54:28] tkuchiki: has joined #ruby
[12:54:31] pipework: has joined #ruby
[12:54:44] apeiros: or rather: Foo/BarBaz.rb for Foo::BarBaz
[12:55:37] zacts: has joined #ruby
[12:58:24] Igorshp: has joined #ruby
[13:00:02] krisquigley: has joined #ruby
[13:00:06] basiles: has joined #ruby
[13:00:41] Voxxit: has joined #ruby
[13:00:47] machan: has joined #ruby
[13:01:21] symbol: has joined #ruby
[13:01:22] krisquig_: has joined #ruby
[13:03:04] chouhoulis: has joined #ruby
[13:04:36] adaedra: There's the problem when you have BarBaz and Barbaz
[13:04:37] patrick_f: has joined #ruby
[13:05:14] daffy_duck: has joined #ruby
[13:06:19] rwilcox: has joined #ruby
[13:06:30] ebbflowgo: has joined #ruby
[13:07:13] shevy: giving things a proper name is one of the most difficult aspects of programming
[13:07:37] tvon: has joined #ruby
[13:09:32] idefine: has joined #ruby
[13:10:35] nickjj_: has joined #ruby
[13:11:40] synthroid: has joined #ruby
[13:13:23] loren: has joined #ruby
[13:15:01] but3k4: has joined #ruby
[13:16:13] sankaber: has joined #ruby
[13:16:23] cdg: has joined #ruby
[13:16:39] `tim`: has joined #ruby
[13:16:54] loren321: has joined #ruby
[13:17:59] djcp: has joined #ruby
[13:18:11] fullofcaffeine: has joined #ruby
[13:18:25] sinkensabe: has joined #ruby
[13:21:00] dorei: has joined #ruby
[13:21:10] Jardayn: has joined #ruby
[13:21:59] gagrio: has joined #ruby
[13:24:06] adac: has joined #ruby
[13:24:43] alphaatom: has joined #ruby
[13:26:00] saddad: has joined #ruby
[13:26:11] whippythellama: has joined #ruby
[13:28:17] anisha: has joined #ruby
[13:29:59] pusewicz: has joined #ruby
[13:31:47] machan: has joined #ruby
[13:32:47] eGGsha: has joined #ruby
[13:33:46] voker57: has joined #ruby
[13:33:52] Igorshp: has joined #ruby
[13:34:21] tvon: has joined #ruby
[13:34:21] Bellthoven: has joined #ruby
[13:35:11] loren321: has left #ruby: ("Leaving")
[13:37:44] IrishGringo: has joined #ruby
[13:38:21] sgambino: has joined #ruby
[13:39:12] ndrei: has joined #ruby
[13:40:15] anisha: has joined #ruby
[13:40:36] anisha: has joined #ruby
[13:41:15] trautwein: has joined #ruby
[13:42:27] haylon: has joined #ruby
[13:42:29] bmalum: has joined #ruby
[13:46:13] troulouliou_div2: has joined #ruby
[13:49:56] podman: has joined #ruby
[13:55:21] rkazak: has joined #ruby
[13:56:17] tubuliferous_: has joined #ruby
[13:59:13] mag42c: has joined #ruby
[14:00:54] dvxam_: has joined #ruby
[14:03:31] mary5030: has joined #ruby
[14:04:11] renanoronfle: has joined #ruby
[14:04:14] machan: has joined #ruby
[14:05:21] mary5030: has joined #ruby
[14:05:25] U7se6: has joined #ruby
[14:05:29] pandaant: has joined #ruby
[14:06:19] apeiros: adaedra: you have the same problem with current ruby convention (but not with the rails convention)
[14:06:22] spew: has joined #ruby
[14:06:38] apeiros: adaedra: also IMO a non-issue because that should not happen anyway.
[14:06:45] adaedra: yeah, right
[14:07:02] wpp: has joined #ruby
[14:07:03] adaedra: but shouldn't it be barbaz.rb and bar_baz.rb?
[14:07:24] agent_white: has joined #ruby
[14:07:50] agent_white: Happy Monday everyone! DO THE THING. https://www.youtube.com/watch?v=YneYiO1r0Ow
[14:08:55] Emmanuel_Chanel: has joined #ruby
[14:09:14] Cyther: has joined #ruby
[14:10:59] null_ref: has joined #ruby
[14:11:18] unshadow: has joined #ruby
[14:11:56] purplexed^: has joined #ruby
[14:12:39] fullofcaffeine: has joined #ruby
[14:12:59] jgpawletko: has joined #ruby
[14:14:20] Guest50: has joined #ruby
[14:14:56] Igorshp: has joined #ruby
[14:15:46] ngscheurich: has joined #ruby
[14:17:22] skweek: has joined #ruby
[14:18:07] hal_9000_: has joined #ruby
[14:18:53] tubuliferous_: has joined #ruby
[14:19:36] unshadow: Hi Guys, Just wanted to share my SSL Cipher Scanner --> https://github.com/bararchy/ruby-SSLscanner , If anyone would like to contribute and help out that would be awsome :)
[14:21:02] apeiros: unshadow: um, you should read the gem guide with regards to naming. also top-level "Scanner" class is IMO not a good idea.
[14:21:33] apeiros: but I guess you didn't build it as a gem anyway :)
[14:22:34] shinenelson: has joined #ruby
[14:23:39] unshadow: apeiros: Yeha, maybe I should create it as a gem so people could "gem install ssl-scanner" or something, I'm sure it will be easier, thanks for the idea :)
[14:24:36] NeverDie: has joined #ruby
[14:24:56] jokester: has joined #ruby
[14:26:14] leafybas_: has joined #ruby
[14:26:48] prefixed: has joined #ruby
[14:27:26] vigintas: has joined #ruby
[14:27:38] freerobby: has joined #ruby
[14:27:56] idefine: has joined #ruby
[14:28:01] apeiros: unshadow: IMO yes
[14:28:16] Voxxit: has joined #ruby
[14:29:11] baweaver: has joined #ruby
[14:29:29] beauby: has joined #ruby
[14:29:49] zenguy_pc: has joined #ruby
[14:30:04] NeverDie: has joined #ruby
[14:31:06] achamian: has joined #ruby
[14:32:33] caliostro: what is te preferred testing framework for ruby?
[14:32:46] apeiros: caliostro: minitest, rspec
[14:32:53] treehug88: has joined #ruby
[14:32:53] apeiros: ?toolbox caliostro
[14:32:53] ruboto: caliostro, https://www.ruby-toolbox.com is a website which lists lots of gems, topically organized
[14:33:13] apeiros: ^ and there you can find a list of (almost) all available options
[14:33:35] dfinninger: has joined #ruby
[14:33:44] balazs_: has joined #ruby
[14:33:51] caliostro: interesting
[14:36:38] kies^: has joined #ruby
[14:36:55] tenderlove: has joined #ruby
[14:37:35] weihan: has joined #ruby
[14:38:47] chouhoulis: has joined #ruby
[14:39:38] banister: has joined #ruby
[14:41:18] weihan: has joined #ruby
[14:42:21] dopamean_: has joined #ruby
[14:42:37] to_json: has joined #ruby
[14:42:37] to_json: has joined #ruby
[14:43:20] agent_wh1te: has joined #ruby
[14:43:57] gigetoo: has joined #ruby
[14:44:02] achamian: has joined #ruby
[14:44:21] freeze: has joined #ruby
[14:45:24] ismaelga: has joined #ruby
[14:45:34] idefine: has joined #ruby
[14:46:32] idefine: has joined #ruby
[14:46:44] atmosx: has joined #ruby
[14:47:00] agent_white: has joined #ruby
[14:47:28] umgrosscol: has joined #ruby
[14:48:08] loc22: has joined #ruby
[14:48:13] krz: has joined #ruby
[14:48:16] polishdub: has joined #ruby
[14:48:22] arthurix: has joined #ruby
[14:49:07] i: has joined #ruby
[14:50:03] rippa: has joined #ruby
[14:51:17] aryaching: has joined #ruby
[14:51:34] Gnomethrower: has joined #ruby
[14:52:26] ismaelga: has joined #ruby
[14:52:44] GriffinHeart: has joined #ruby
[14:53:22] _blizzy_: has joined #ruby
[14:53:23] astrobun_: has joined #ruby
[14:53:29] solocshaw: has joined #ruby
[14:54:23] mondayrain: has joined #ruby
[14:55:22] idefine: has joined #ruby
[14:55:51] cwong_on_irc: has joined #ruby
[14:56:54] cwong_on_irc: has joined #ruby
[14:57:48] inteq: has joined #ruby
[14:58:41] idefine: has joined #ruby
[14:59:25] HoloIRCUser: has joined #ruby
[15:00:29] nemo_: has joined #ruby
[15:01:15] fullofcaffeine: has joined #ruby
[15:01:27] Asher: has joined #ruby
[15:02:02] dfinninger: has joined #ruby
[15:02:22] devdazed: has joined #ruby
[15:02:24] hagabaka: has joined #ruby
[15:02:36] chopin: has joined #ruby
[15:03:29] _mak: has joined #ruby
[15:04:02] ndrei: has joined #ruby
[15:04:33] `tim`: has joined #ruby
[15:04:52] Alina-malina: has joined #ruby
[15:05:57] idefine: has joined #ruby
[15:06:38] blackmesa: has joined #ruby
[15:06:43] to_json: has left #ruby: ()
[15:07:00] wldcordeiro: has joined #ruby
[15:07:36] tenderlove: has joined #ruby
[15:08:19] gnarld_: has joined #ruby
[15:08:23] slawrence00: has joined #ruby
[15:09:31] ruby-lang132: has joined #ruby
[15:10:53] ruby-lang132: Anyone knows why I am not receiving a response from a server through TCP sockets? My question is posted here http://stackoverflow.com/questions/33213209/ruby-tcpsocket-request-not-getting-response
[15:11:50] codecop: has joined #ruby
[15:11:58] arthurix_: has joined #ruby
[15:13:21] diegoaguilar: has joined #ruby
[15:13:28] idefine: has joined #ruby
[15:13:56] stannard: has joined #ruby
[15:14:23] treehug88: ruby-lang132: server probably thinks you're not done with your request and hasn't started sending response. Just a guess, I'm not familiar with that protocol
[15:15:43] fullofcaffeine: has joined #ruby
[15:15:45] davedev24: has joined #ruby
[15:16:53] ruby-lang132: I added EOT at the end, so the request should be finished.
[15:17:21] treehug88: it may be seeking a different "EOT" marker, or something after it. Post info about the spec if you want more assistance
[15:18:39] tenderlove: has joined #ruby
[15:19:00] chopin: has joined #ruby
[15:19:38] birett: has joined #ruby
[15:19:41] relix: has joined #ruby
[15:20:23] jhass: ruby-lang132: so you get your connection immediately closed after the connection attempt?
[15:21:09] anisha: has joined #ruby
[15:21:36] karapetyan: has joined #ruby
[15:22:01] hagabaka: has joined #ruby
[15:22:53] rickmasta: has joined #ruby
[15:23:04] jhass: ruby-lang132: first of all .puts appends a "\n"
[15:23:28] firstdayonthejob: has joined #ruby
[15:24:06] jhass: ruby-lang132: next that server responds with "ok\04", .gets waits for a "\n"
[15:24:14] jhass: (by default)
[15:24:58] _mak: has joined #ruby
[15:26:02] rcvalle: has joined #ruby
[15:27:48] jhass: ruby-lang132: still there?
[15:29:10] jhass: ruby-lang132: http://cloud.aeshna.de/u/mrzyx/screenshots/screenshot_20151019_172849.png
[15:29:13] ruby-lang132: Treehug88, heres the full api docs. I am using the EOT as specified by the developer vndb.org/d11
[15:29:40] jhass: mmh, that upload went wrong I guess
[15:30:03] jhass: ruby-lang132: http://cloud.aeshna.de/u/mrzyx/screenshots/screenshot_20151019_172637.png
[15:30:38] dopie: has joined #ruby
[15:31:02] Gnomethrower: has joined #ruby
[15:31:24] step1step2_: has joined #ruby
[15:31:56] treehug88: ruby-lang132: sorry, cant help any more today. Looks like you're on the right track with jhass
[15:31:59] step1step2_: has joined #ruby
[15:32:53] machan: has joined #ruby
[15:33:43] step1step2_: has joined #ruby
[15:33:48] symbol: has joined #ruby
[15:34:22] tenderlove: has joined #ruby
[15:34:50] fullofcaffeine: has joined #ruby
[15:35:03] step1step2_: has joined #ruby
[15:35:23] Bellthoven: has joined #ruby
[15:36:10] Motoservo: has joined #ruby
[15:36:49] rcvalle: has joined #ruby
[15:38:13] roxtrongo: has joined #ruby
[15:38:58] ivanskie: has joined #ruby
[15:39:45] rcvalle: has joined #ruby
[15:40:30] khebbie: has joined #ruby
[15:41:23] shevy: but he ignored jhass :(
[15:41:59] baroquebobcat: has joined #ruby
[15:44:06] moeabdol: has joined #ruby
[15:45:06] decoponio: has joined #ruby
[15:45:42] baroquebobcat: has joined #ruby
[15:45:47] arthurix: has joined #ruby
[15:46:43] spider-mario: has joined #ruby
[15:46:47] tenderlove: has joined #ruby
[15:47:20] karapetyan: has joined #ruby
[15:47:20] idefine: has joined #ruby
[15:49:20] treehug88: you can lead a horse to water, but you can't make it accept your recommendations :)
[15:49:54] idefine: has joined #ruby
[15:50:24] ndrei: has joined #ruby
[15:51:14] imperator: has joined #ruby
[15:51:18] imperator: good morning
[15:51:40] imperator: has left #ruby: ("Leaving")
[15:52:19] Igorshp: has joined #ruby
[15:53:33] shevy: speaking of horses... the horse imperator was here!
[15:54:29] unreal_: has joined #ruby
[15:55:41] idefine: has joined #ruby
[15:57:09] pietr0: has joined #ruby
[15:57:42] CodyStringham: has joined #ruby
[15:58:57] karapetyan: has joined #ruby
[15:59:37] freerobby: has joined #ruby
[15:59:43] jpfuentes2: has joined #ruby
[16:00:08] baroquebobcat_: has joined #ruby
[16:00:40] bmalum: has joined #ruby
[16:01:18] SuzieQueue: has joined #ruby
[16:03:40] symm-: has joined #ruby
[16:03:58] absolutejam: has joined #ruby
[16:04:07] achamian: has joined #ruby
[16:04:58] krz: has joined #ruby
[16:05:03] idefine: has joined #ruby
[16:05:31] Uo9er_: has joined #ruby
[16:07:05] Akagi201: has joined #ruby
[16:08:17] symm-_: has joined #ruby
[16:08:25] nofxx: has joined #ruby
[16:08:25] nofxx: has joined #ruby
[16:08:40] sinkensabe: has joined #ruby
[16:09:09] machan: has left #ruby: ()
[16:09:21] amclain: has joined #ruby
[16:11:53] alcipir: has joined #ruby
[16:13:22] romain_t: has joined #ruby
[16:13:38] mordocai: has joined #ruby
[16:14:46] ruurd: has joined #ruby
[16:15:36] SCHAAP137: has joined #ruby
[16:15:37] SCHAAP137: has joined #ruby
[16:16:10] tenderlove: has joined #ruby
[16:17:41] fullofcaffeine: has joined #ruby
[16:17:55] mleung: has joined #ruby
[16:18:13] sinkensabe: has joined #ruby
[16:19:35] blackmesa: has joined #ruby
[16:23:09] symm-: has joined #ruby
[16:23:13] baweaver: has joined #ruby
[16:25:06] cschneid_: has joined #ruby
[16:26:02] armyriad2: has joined #ruby
[16:26:04] cschneid_: what's a good command line arg parser that does git/rails style sub commands. `mycommand new thing` `mycommand help` `mycommand delete thing -f`
[16:26:23] Motoservo_: has joined #ruby
[16:26:24] jhass: doesn't rails use thor?
[16:26:24] armyriad2: has joined #ruby
[16:26:49] chouhoul_: has joined #ruby
[16:26:59] hakunin: has left #ruby: ()
[16:27:01] nateberkopec: has joined #ruby
[16:27:12] stacybird: I like thor, but I think there may be issues with multi-level commands. too much nesting seems to be an issue
[16:27:19] NeverDie: has joined #ruby
[16:27:24] towski_: has joined #ruby
[16:27:26] stacybird: ACTION just started using is not too long ago
[16:27:48] tenderlove: has joined #ruby
[16:27:50] jackjackdripper: has joined #ruby
[16:27:51] khebbie: has joined #ruby
[16:28:14] eregon: has joined #ruby
[16:28:24] m4rCsi_: has joined #ruby
[16:29:08] riotjones: has joined #ruby
[16:29:24] zenspider: has joined #ruby
[16:29:27] diegok: has joined #ruby
[16:29:59] zenguy_pc: has joined #ruby
[16:29:59] XxionxX: has joined #ruby
[16:30:03] Maletor: has joined #ruby
[16:30:03] DEA7TH: has joined #ruby
[16:30:07] freeze: has joined #ruby
[16:30:08] hinbody: has joined #ruby
[16:30:09] iDavid: has joined #ruby
[16:30:14] tubuliferous: has joined #ruby
[16:30:18] borkdude: has joined #ruby
[16:30:19] PaulePanter: has joined #ruby
[16:30:20] shadeslayer: has joined #ruby
[16:30:22] yie: has joined #ruby
[16:30:22] corpsicle: has joined #ruby
[16:30:31] rdark: has joined #ruby
[16:30:31] rdark: has joined #ruby
[16:30:37] sts_: has joined #ruby
[16:30:37] cout: has joined #ruby
[16:30:42] Drakevr: has joined #ruby
[16:30:49] crankharder: has joined #ruby
[16:30:50] genpaku: has joined #ruby
[16:30:55] orion: has joined #ruby
[16:31:00] pabs: has joined #ruby
[16:31:00] spew: has joined #ruby
[16:31:11] idefine_: has joined #ruby
[16:31:12] orion: In Ruby, is "if obj" semantically equal to "if obj.nil?" ?
[16:31:17] valeri_ufo: has joined #ruby
[16:31:28] armyriad: has joined #ruby
[16:31:34] adaedra: not at all
[16:31:35] eam: orion: no, obj could be false
[16:31:59] eam: >> false.nil?
[16:32:01] ruboto: eam # => false (https://eval.in/453468)
[16:32:01] synthroid: has joined #ruby
[16:32:48] orion: I see, thanks!
[16:33:23] j4cknewt: has joined #ruby
[16:33:57] riotjones: has joined #ruby
[16:33:59] Biohazard: has joined #ruby
[16:34:04] chridal: has joined #ruby
[16:34:13] aryaching: has joined #ruby
[16:34:25] ekem: has joined #ruby
[16:34:46] p0wn3d__: has joined #ruby
[16:35:15] naftilos76: has joined #ruby
[16:35:40] varesa: has joined #ruby
[16:35:43] tenderlove: has joined #ruby
[16:36:00] jackjackdripper: has joined #ruby
[16:37:05] _djbkd: has joined #ruby
[16:37:10] grekkos: has joined #ruby
[16:37:23] Soda: has joined #ruby
[16:37:47] ThatGuy: has joined #ruby
[16:37:54] eam: >> class AlwaysFalse; def == x; false; end; end; a = AlwaysFalse.new; a == a
[16:37:55] ruboto: eam # => false (https://eval.in/453469)
[16:38:51] krz: has joined #ruby
[16:38:55] sugardrunk: has joined #ruby
[16:38:58] inteq: has joined #ruby
[16:39:01] cfloare: has joined #ruby
[16:40:02] CloCkWeRX: has joined #ruby
[16:40:45] polishdub: has joined #ruby
[16:40:48] akkad: has joined #ruby
[16:41:08] drew2_: has joined #ruby
[16:41:10] leat2: has joined #ruby
[16:41:23] nw: has joined #ruby
[16:41:30] async_prince: has joined #ruby
[16:41:31] Emmanuel_Chanel: has joined #ruby
[16:41:45] worstcase: has joined #ruby
[16:41:49] xet7: has joined #ruby
[16:41:57] Scroff: has joined #ruby
[16:42:03] doddok: has joined #ruby
[16:42:09] hectortrope: has joined #ruby
[16:42:35] oddmunds: has joined #ruby
[16:42:42] Caelum: has joined #ruby
[16:42:45] ismaelga: has joined #ruby
[16:42:50] dfockler: has joined #ruby
[16:42:50] ozzloy: has joined #ruby
[16:42:50] ozzloy: has joined #ruby
[16:42:56] armyriad: has joined #ruby
[16:43:11] sepp2k: has joined #ruby
[16:43:12] towler: has joined #ruby
[16:43:21] Hanmac: has joined #ruby
[16:43:27] Spami: has joined #ruby
[16:43:35] dasher00: has joined #ruby
[16:43:54] fullofcaffeine: has joined #ruby
[16:44:23] zayaman: has joined #ruby
[16:44:54] kriskropd_: has joined #ruby
[16:45:21] _blizzy_: has joined #ruby
[16:46:07] cajone: has joined #ruby
[16:46:31] tenderlove: has joined #ruby
[16:47:17] joast: has joined #ruby
[16:48:19] PsuzeannePsy: has joined #ruby
[16:48:35] ericjphillips: has joined #ruby
[16:49:42] skcin7: has joined #ruby
[16:50:14] sinkensabe: has joined #ruby
[16:50:17] big|bad|wolf: has joined #ruby
[16:50:33] petricore: has joined #ruby
[16:51:24] romain_t: has joined #ruby
[16:52:56] leafybasil: has joined #ruby
[16:53:14] pdoherty: has joined #ruby
[16:53:57] _blizzy_: has joined #ruby
[16:55:07] achamian: has joined #ruby
[16:56:28] mg^^: Scrolling back, I wonder how many things break if you make false.nil? be true...
[16:56:57] vigintas: has joined #ruby
[16:57:06] skweek: has joined #ruby
[16:57:57] adaedra: I kept a pryrc that inversed true and false on inspect
[16:58:00] lkba: has joined #ruby
[16:58:06] adaedra: Could have ended so badly.
[16:58:09] shevy: you naughty boy
[16:58:17] vigintas1: has joined #ruby
[16:59:35] mg^^: I just monkey patched it in Pry, nothing bad has happened so far
[17:00:00] tenderlove: has joined #ruby
[17:00:05] aryaching: has joined #ruby
[17:00:33] bruno-: has joined #ruby
[17:00:43] eam: >> class Fixnum; def == x; true; end; end; 1 == 2
[17:00:44] ruboto: eam # => true (https://eval.in/453491)
[17:00:49] mg^^: I expect that since use of nil? is usually discouraged that it breaks not many things, but the things it does break probably break badly
[17:00:50] fullofcaffeine: has joined #ruby
[17:01:00] karapetyan: has joined #ruby
[17:01:33] mg^^: adaedra: that is totally evil and I'm going to do that to a coworker now :-)
[17:01:54] fullofcaffeine: has joined #ruby
[17:06:06] paulcsmith: has joined #ruby
[17:06:28] EminenceHC: has joined #ruby
[17:07:41] idefine: has joined #ruby
[17:08:03] eam: unable to convert "\xD0" from ASCII-8BIT to UTF-8 for lib/redcarpet.so, skipping
[17:08:13] eam: you'd think ri would know better than to try to parse shared objects
[17:10:46] basiles: has joined #ruby
[17:10:52] Ebok: I have a dumb question: https://eval.in/453493 <=== I linked an error code I'm getting while following a tutorial. Its their code that's prompting the error, but Im not entirely sure what it means. If someone can glance at it and confirm what might be going wrong?
[17:11:36] EminenceHC: has joined #ruby
[17:11:54] Ebok: My guess is the require "specific ruby gem file" is not calling the listed gem file--but Im not entirely certain how to look up a correct reference if thats the case.
[17:12:02] eam: Ebok: it means the file "event_manager.rb" on line 6 attempted to require "sunlight/congress" and ruby couldn't find it installed anywhere
[17:12:16] alcipir: has joined #ruby
[17:12:19] tenderlove: has joined #ruby
[17:12:26] nemo_: has joined #ruby
[17:12:34] eam: if you open up "/home/ubuntu/workspace/event_manager/lib/event_manager.rb" you should see the require() on line 6
[17:12:43] Ebok: I see where
[17:12:49] Ebok: Its how to fix it xD
[17:12:57] wallerdev: has joined #ruby
[17:12:58] Ebok: 'I assume that means I need to download the file somewhere?
[17:13:04] Ebok: And then reference it?
[17:13:14] eam: probably gem install <something>
[17:13:40] eam: Ebok: looks like you need this: https://github.com/steveklabnik/sunlight-congress
[17:13:57] idefine: has joined #ruby
[17:14:03] Ebok: Yeah thats the one.
[17:14:25] eam: when you require "something" ruby looks through a series of paths to find "something.rb"
[17:14:52] Ebok: so gem 'sunlight-congress' instead would trigger the correct code?
[17:15:34] Ebok: Oh Gemfile
[17:15:48] Ebok: This tutorial skipped some steps
[17:16:05] Ebok: I've got enough to work with however, thanks
[17:16:22] eam: ah, if it's in your gemfile then "bundle"
[17:16:59] glundgren: has joined #ruby
[17:17:09] glundgren: hey guys, good afternoon :)
[17:17:14] anisha: has joined #ruby
[17:17:26] Ebok: I've never written a gemfile, but I have seen them. I was considering test out writing one from scratch (need to learn it anyway)
[17:18:20] shevy: eam ri emerged out of the 2000 era!
[17:18:54] agentmeerkat: has joined #ruby
[17:18:58] glundgren: [1,2,2,3,3,5] i want to reject the array sum up to a specific number, for example, reject up to 3, then the array will be [2,3,3,5]
[17:19:02] glundgren: is it possible?
[17:19:20] agentmeerkat: Does anyone know of a Ruby Gem for capturing video from a webcam?
[17:19:35] bougyman: [1,2,2,3,3,5][2..-1]
[17:19:37] glundgren: i tried play with inject, but not very lucky
[17:20:00] bougyman: [1,2,2,3,3,5][2..-1]
[17:20:00] bougyman: => [2, 3, 3, 5]
[17:20:03] big|bad|wolf: has joined #ruby
[17:20:22] glundgren: bougy, let me try
[17:20:39] chouhoulis: has joined #ruby
[17:20:57] glundgren: bougy, sorry, its not this :)
[17:21:10] glundgren: i mean, i want to reject up to the sum of the array
[17:21:19] bougyman: it's the result set you asked for.
[17:21:25] _kfpratt: has joined #ruby
[17:21:26] dfinninger: has joined #ruby
[17:21:56] glundgren: for example: [1,2,3,4] i want to reject the numbers that sums is equal or less than 3, for example
[17:22:07] glundgren: the result should be [3,4]
[17:22:13] glundgren: because 1+2 = 3
[17:22:41] glundgren: i tried inject, but i didnt get it very well
[17:23:00] glundgren: how to reject inside an inject
[17:23:39] roxtrongo: has joined #ruby
[17:23:51] tenderlove: has joined #ruby
[17:24:33] mary5030: has joined #ruby
[17:25:03] Ebok: Instead of kicking out what you dont want, just select what you do?
[17:26:18] glundgren: Ebok: can i say the real problem of what im trying to achieve?
[17:26:34] Ebok: I dont know? can you?
[17:26:53] dfinninger: has joined #ruby
[17:26:55] kalusn: has joined #ruby
[17:27:37] glundgren: i have a software where i have a table called transactions
[17:27:48] glundgren: in this transactions, i have debits and credits
[17:28:03] glundgren: they both have start and end date
[17:28:33] khebbie: has joined #ruby
[17:28:45] glundgren: for the debits, it generates a value, its the consumed hours in the transaction (like a checkin/checkout system)
[17:28:58] glundgren: in the credits, i have the start date, and ends date
[17:29:35] glundgren: after the ends date, i have to calculate what was used, to make a debit to make the balance of the account go zero
[17:29:56] Guest50: has joined #ruby
[17:30:08] glundgren: for example, i bough 2 hours, consumed 1 hour, theres 1 hour left, so after the credit ends, i have to debit the 1 hour rest
[17:30:15] benhuda: has joined #ruby
[17:30:31] glundgren: man, it will get really big, i dont know if i should continue hehe
[17:30:57] glundgren: this sounds simple, but you have to think another cases of use, for example
[17:31:04] synthroid: has joined #ruby
[17:31:11] saddad: has joined #ruby
[17:31:18] glundgren: someone consumed more than the hours bought, then i have to debit 0
[17:31:22] jaequery: has joined #ruby
[17:31:30] kimegede: has joined #ruby
[17:31:31] QORRiE: has joined #ruby
[17:31:32] QORRiE: has joined #ruby
[17:31:36] subscope: has joined #ruby
[17:31:55] glundgren: man, sorry, its a really big problem, im not use your time
[17:32:08] Ebok: It doesnt sound that big
[17:32:19] glundgren: its because theres a lot of another cases
[17:32:33] glundgren: like when a bough overlaps another bought
[17:32:37] n008f4g_: has joined #ruby
[17:32:47] jaequery: is it just me or is ruby community seem to be ... losing steam?
[17:32:48] glundgren: if we have another bought that is valid
[17:33:26] jaequery: has joined #ruby
[17:33:28] arup_r: has joined #ruby
[17:33:38] glundgren: jaequery: realize that theres different levels of wisdom
[17:33:39] ndrei: has joined #ruby
[17:33:57] glundgren: mine is very basic, is it ok for you?
[17:34:14] Ebok: basically you have an array of transactions, and two reference points stored in another. start...end seems like a range to me. Can you just call a method whenever your end date happens, to scan the transactions that occured over that period, total them, and then return whatever you need to?
[17:34:14] cookiez: has joined #ruby
[17:34:17] glundgren: every time i try to get help here theres irony
[17:34:53] Ebok: I'm teaching myself this language mindyou, and do not have it mastered by any stretch. I'd take anyone elses word here over mine, but. >_>
[17:34:56] fullofcaffeine: has joined #ruby
[17:34:57] deps: has joined #ruby
[17:35:00] glundgren: Ebok: yes, i already do that, but i need to mark the specific ones
[17:35:08] PlasmaStar: has joined #ruby
[17:35:12] Ebok: mark the start and end?
[17:35:15] glundgren: that was used up to the sum, or the
[17:35:21] glundgren: no, the transaction
[17:35:36] glundgren: so i need to reject or select
[17:35:40] glundgren: up to a sum
[17:36:16] Ebok: Alright so if you have an array that lists: 2223451 and your sum is 3, the new array needs to be 345
[17:36:41] Ebok: or does it need to be 22345
[17:38:31] mag42c_: has joined #ruby
[17:40:10] lee-jon: has joined #ruby
[17:40:13] yosiat: has joined #ruby
[17:40:36] glundgren: Ebok: i just need to know how to do it
[17:40:42] glundgren: then i will see what i really need :P
[17:40:51] Ebok: I just need to know how your logic needs to flow
[17:40:59] khebbie: has joined #ruby
[17:41:15] cball: has joined #ruby
[17:41:19] luckyme: has joined #ruby
[17:41:36] Ebok: I gave an either or above, they'd be handled differently
[17:41:42] glundgren: ok, i need to reject up to a number, then i will use these other numbers to sum a number that i will use to adjust the debit
[17:42:27] hal_9000_: has joined #ruby
[17:42:56] Ebok: array.select{|n| n>sum}
[17:43:22] tesuji_: has joined #ruby
[17:43:24] Ebok: any number n which is greater then whatever variable you have set for sum, will not be part of the array
[17:43:37] EminenceHC: has joined #ruby
[17:43:42] glundgren: Ebok: ok, thats cool
[17:44:28] karapetyan: has joined #ruby
[17:44:43] glundgren: Ebok: but if i have [1,2,3,4,5].select{|n| s> sum}
[17:44:53] glundgren: it will give me [4,5]
[17:45:01] glundgren: the sum of [1,2,3] = 6
[17:45:06] glundgren: i mean, sum = 3
[17:45:13] orion: has left #ruby: ()
[17:45:16] glundgren: let me rephrase
[17:45:21] Ebok: Yeah please do
[17:45:45] glundgren: Ebok: but if i have [1,2,3,4,5].select{|n| n>3} it will give me [4,5], but the sum of [1,2,3] = 6
[17:46:08] glundgren: the expected result should be [3,4,5]
[17:46:27] Ebok: This is why I asked you that either or question
[17:46:40] glundgren: sorry, english is not my native language
[17:47:37] Ebok: Alright so I am clear: if you have the array [1,2,2,3,4,5,5,5] and you want to remove numbers up to 7. what should your array look like?
[17:48:10] glundgren: [3,4,5,5,5]
[17:48:41] Ebok: 1,2,2 adds up to 5 not 7 though
[17:48:46] pocketprotector-: has joined #ruby
[17:48:54] Ebok: is the array always sorted?
[17:49:02] glundgren: i can sort it
[17:49:06] jenrzzz: has joined #ruby
[17:49:18] Ebok: Alright, and so we always want to remove the smallest fixnums first?
[17:49:40] snockerton: has joined #ruby
[17:49:45] fullofcaffeine: has joined #ruby
[17:50:07] last_staff: has joined #ruby
[17:50:18] leafybas_: has joined #ruby
[17:51:17] bonhoeffer: has joined #ruby
[17:51:21] lee-jon: has left #ruby: ()
[17:51:27] khebbie: has joined #ruby
[17:53:17] basiles: has joined #ruby
[17:53:17] solars: has joined #ruby
[17:53:29] Ebok: I would probably make an method
[17:53:41] Ebok: that reads through an array and adds up variables
[17:53:52] basiles: has joined #ruby
[17:53:58] glundgren: Ebok: cool, that's what i was trying to understand
[17:53:59] Ebok: and counts the number of variables being added
[17:54:13] glundgren: if we had something that does it in a ruby way
[17:54:20] arup_r: has joined #ruby
[17:54:23] st1gma: has joined #ruby
[17:54:31] glundgren: Ebok: thank you very much for your help Ebok
[17:54:31] Ebok: You can make one.
[17:54:46] idefine: has joined #ruby
[17:54:49] basiles: has joined #ruby
[17:55:05] glundgren: Ebok: yes, thankss
[17:55:19] cdg_: has joined #ruby
[17:55:20] bruno-: has joined #ruby
[17:55:46] last_staff: has joined #ruby
[17:56:24] hfp_work: has joined #ruby
[17:56:25] bonhoeffer: has joined #ruby
[17:56:39] symbole: has joined #ruby
[17:56:47] skweek: has joined #ruby
[17:56:53] achamian: has joined #ruby
[17:57:42] codecop: has joined #ruby
[17:57:45] zotherstupidguy: has joined #ruby
[17:58:00] jhass: >> sum = 0; [1,2,2,3,4,5,5,5].drop_while {|i| (sum += i) < 7 }
[17:58:01] ruboto: jhass # => [3, 4, 5, 5, 5] (https://eval.in/453504)
[17:58:17] gexe_: has joined #ruby
[17:58:37] alexherbo2: has joined #ruby
[17:58:45] Ebok: See, peeps know this much better then I do ^^
[17:58:47] mary5030: has joined #ruby
[17:59:26] Ebok: I was in the process of writing the drop_while method xD
[17:59:52] troyready: has joined #ruby
[17:59:52] mary5030: has joined #ruby
[18:00:05] Renich: has joined #ruby
[18:00:09] roxtrongo: has joined #ruby
[18:00:37] mary5030: has joined #ruby
[18:00:52] tjohnson: has joined #ruby
[18:00:52] Ebok: glundgren ^^ jhass gave you wnat you needed
[18:01:03] adac: has joined #ruby
[18:01:10] jhass: it's fine, I'm ignored today
[18:01:17] glundgren: thanks man!
[18:01:28] Ebok: I justed his name to prompt him ^^
[18:01:33] glundgren: the limehcat was minimized
[18:01:42] Ebok: Yeah figured :P
[18:02:04] mary5030: has joined #ruby
[18:02:52] _djbkd: has joined #ruby
[18:03:05] glundgren: awesome, thank you very much guys
[18:03:26] jhass: ?guys glundgren
[18:03:26] ruboto: glundgren, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
[18:03:53] glundgren: jhass, are you girl?
[18:04:05] jhass: would it matter?
[18:04:11] glundgren: no, but you said
[18:04:27] glundgren: to not call you a guy
[18:04:39] jhass: read again, that's not what it says
[18:04:47] Ebok: glundgren, he's prompting consideratory political correctness
[18:05:01] glundgren: i will not even talk about it anymore
[18:05:16] glundgren: i appreciate the help, and that will be it
[18:05:19] ModusPwnens: has joined #ruby
[18:05:37] gusrub: has joined #ruby
[18:05:46] Ebok: lol the fact that ruboto has that scripted is funny to me
[18:05:51] doritostains: has joined #ruby
[18:06:36] ModusPwnens: I'm trying to add access control using user roles to my site. There are a few different possible roles and role-based checks will have to be done in various controllers. Given this, is it a problem to have floating symbol checks everywhere (e.g. current_user.role == :admin)?
[18:06:42] chouhoulis: has joined #ruby
[18:07:28] U7se6: has joined #ruby
[18:07:28] davispuh: has joined #ruby
[18:07:45] agentmeerkat: has joined #ruby
[18:08:05] jhass: #RubyOnRails will likely have better tips for you
[18:08:06] jxl180: has joined #ruby
[18:08:33] heftig: has joined #ruby
[18:10:36] sepp2k: has joined #ruby
[18:11:30] S_Walker: has joined #ruby
[18:12:24] droidburgundy: has joined #ruby
[18:12:40] Renich: has joined #ruby
[18:13:20] khebbie: has joined #ruby
[18:13:56] EminenceHC: has joined #ruby
[18:14:33] yitsushi: has joined #ruby
[18:15:28] freerobby: has joined #ruby
[18:15:56] hfp_work: has joined #ruby
[18:17:11] EminenceHC: has joined #ruby
[18:18:30] cwong_on_irc: has joined #ruby
[18:18:42] idefine: has joined #ruby
[18:19:03] cwong_on_irc: has joined #ruby
[18:19:36] synthroid: has joined #ruby
[18:20:02] riotjones: has joined #ruby
[18:20:19] fullofcaffeine: has joined #ruby
[18:20:37] prefixed: has joined #ruby
[18:21:22] IrishGringo: has joined #ruby
[18:22:25] pdoherty: has joined #ruby
[18:22:53] purplexed^: what is the correct way to structure a module, with classes... I saw I am supposed to but the module.rb in the /lib/ folder, and then have folder named (module_name), and then the the classes in it... does that sound correct ?
[18:23:05] hfp__work: has joined #ruby
[18:23:13] karapetyan: has joined #ruby
[18:23:43] pocketprotector-: has joined #ruby
[18:24:10] purplexed^: and, why is this room so quiet... do ruby developers not speak to each other ?
[18:24:28] baroquebobcat: has joined #ruby
[18:24:39] jxl180: Sounds correct to me, this may help
[18:24:46] jxl180: https://github.com/bbatsov/ruby-style-guide
[18:25:01] nemo_: has joined #ruby
[18:25:39] purplexed^: jxl180: thanks alot
[18:25:44] kadoppe: has joined #ruby
[18:26:07] Jackneill: has joined #ruby
[18:26:31] purplexed^: jxl180: can you also answer why nobody is speaking in this room... :D
[18:27:05] purplexed^: jxl180: C# is plenty busy.. so I wonder why this room seems completely dead.
[18:27:20] pocketprotector-: has joined #ruby
[18:28:05] Ebok: lots of people come here to ask questions, they get their answers, and then they leave
[18:28:05] Steve_Jobs: has joined #ruby
[18:28:16] jhass: purplexed^: we tend to redirect OT talk to #ruby-offtopic ;)
[18:29:06] shevy: purplexed^ usually there will be one top-level constant, most often a module, which should be the name of your project/gem
[18:29:21] yfeldblum: has joined #ruby
[18:30:06] dorei: if i have [:a, :b, :c], how can i get [[],[:a], [:b], [:c], [:a, :b], [:a, :c], [:b, :c], [:a, :b, :c]] ? (i guess order is not important)
[18:30:13] shevy: purplexed^ most usually the layout will be determined by the name of the class, and then the most common rule to have "one class per file". like if you have module Foo; class Bar, class Bar should reside in the file bar.rb
[18:31:27] jxl180: purplexed^: Again, I highly recommend reading the style guide linked above, they discuss file naming and the "one class per file"
[18:31:44] zenguy_pc: has joined #ruby
[18:31:45] baweaver: has joined #ruby
[18:31:57] jokester: has joined #ruby
[18:32:14] nemo_: Hi all. I have a question. Will the object get created if the initialize method is written inside private
[18:32:41] shevy: rubocop can even auto-correct!
[18:32:42] naftilos76: has joined #ruby
[18:33:04] jxl180: purplexed^: usually, I will have the module as the folder/project name, and the classes below
[18:34:04] shevy: nemo_ sure
[18:34:21] jhass: dorei: that's called the power set, google should yield you a couple of solutions
[18:34:36] nemo_: how will u access dat method?
[18:34:42] shevy: nemo_ initialize is already private
[18:34:49] dorei: power set, thanx :)
[18:35:06] craysiii: has joined #ruby
[18:35:10] shevy: you don't normally access it, you use .new
[18:35:15] loc22: has joined #ruby
[18:36:01] jhass: nemo_: ^ initialize is marked private by default can called by .new for you
[18:36:03] nemo_: ok any details about it. I feel its more related to Encapsulation
[18:36:16] p0wn3d: has joined #ruby
[18:36:17] BSaboia: has joined #ruby
[18:36:30] jhass: there's not much more to it, it's called by .new after it called .allocate and before it returns the new object
[18:36:48] postmodern: has joined #ruby
[18:36:51] shevy: nemo_ look at the ~4th answer or so with 45 upvotes http://stackoverflow.com/questions/10383535/in-ruby-whats-the-relationship-between-new-and-initialize-how-to-return-n
[18:37:04] EmeraldExplorer: has joined #ruby
[18:37:11] shevy: the comment there is funny :)
[18:37:12] jhass: shevy: you can link a specific answer by using the share link below it
[18:37:14] shevy: '# actually, this is obj.send(:initialize, ?) because initialize is private
[18:37:23] shevy: let me try that...
[18:37:43] shevy: this is the first time I notice the "share" link :)
[18:38:17] inhwcwa: has joined #ruby
[18:38:26] inhwcwa: What is the runtime of arr.max and arr.min?
[18:38:29] nemo_: writing initialize inside private makes no sense ??
[18:38:30] inhwcwa: is it O(n)?
[18:39:06] skade: has joined #ruby
[18:39:55] jhass: inhwcwa: yup
[18:39:57] tercenya: has joined #ruby
[18:40:29] jhass: nemo_: it makes no difference, initialize is private by default unless you mark it as public or protected explicitly
[18:40:32] bonhoeffer: has joined #ruby
[18:40:42] inhwcwa: well shit i came up with a horrible solution for a hackerrank problem for an internship app then lol
[18:41:09] nemo_: thanks jhass :)
[18:41:53] diegoaguilar: has joined #ruby
[18:42:01] blackmesa: has joined #ruby
[18:42:03] nemo_: any good blog to implement OOPS with ruby?
[18:42:20] karapetyan: can i create object based on something.class.new ?
[18:42:47] karapetyan: if something.is_a? String it works fine. But if Integer - not.
[18:43:12] jhass: karapetyan: which value would that integer have anyway?
[18:43:27] karapetyan: cause Integer.new don't works.
[18:43:43] karapetyan: jhass: 0 if integer
[18:44:16] shevy: you could try Integer("0") perhaps
[18:44:25] jhass: karapetyan: what's this for?
[18:45:26] karapetyan: jhass: i want to check first element in array. Get class of that object and create object based on this class
[18:45:48] karapetyan: *create empty object
[18:46:49] Sheperson: has joined #ruby
[18:47:01] opensource_ninja: has joined #ruby
[18:47:08] j4cknewt: has joined #ruby
[18:47:19] karapetyan: well i try to find another way
[18:47:57] Sheperson: it is possible to inlcude a variable in the array literal %w()?
[18:48:00] karapetyan: has joined #ruby
[18:48:03] fullofcaffeine: has joined #ruby
[18:48:07] nemo_: declare an array, array[0].class.new is going to create a new object of expected class
[18:48:40] sdothum: has joined #ruby
[18:48:44] Sheperson: for example if name=???john???, then %w(name) would be [???john???]
[18:48:49] jhass: sheperson: ^ that allows #{interpolation}
[18:49:14] nemo_: %W() allows variables %w dis doesnot
[18:49:30] Sheperson: nemo_: Thanks
[18:49:35] Sheperson: Works like a charm
[18:49:39] jhass: well #{} allows almost any ruby expression
[18:49:52] ericjphillips: has joined #ruby
[18:50:55] dagda1_: has joined #ruby
[18:51:04] tenderlove: has joined #ruby
[18:52:45] heftig: has joined #ruby
[18:52:56] vigintas: has joined #ruby
[18:54:11] baroquebobcat: has joined #ruby
[18:54:25] agent_white: has joined #ruby
[18:55:02] step1step2: has joined #ruby
[18:55:55] ngscheurich: has joined #ruby
[18:56:31] `tim`: has joined #ruby
[18:56:45] tenderlove: has joined #ruby
[18:58:03] sdothum: has joined #ruby
[18:58:26] ta: has joined #ruby
[18:58:53] khebbie: has joined #ruby
[18:58:54] Akagi201: has joined #ruby
[18:59:40] choke: has joined #ruby
[18:59:42] diegoaguilar: has joined #ruby
[18:59:46] nfk: has joined #ruby
[19:02:20] _djbkd: has joined #ruby
[19:02:58] leat: has joined #ruby
[19:02:59] swgillespie: has joined #ruby
[19:04:56] dikaio: has joined #ruby
[19:05:42] jenrzzz: has joined #ruby
[19:05:59] baroquebobcat_: has joined #ruby
[19:07:05] purplexed^: It seems like this channel would benefit from not having an off-topic channel, since this channel is so boring :)
[19:08:35] momomomomo: has joined #ruby
[19:08:39] platzhirsch: has left #ruby: ()
[19:09:04] ngscheur1: has joined #ruby
[19:09:08] shevy: purplexed^ the ruby off-topic is much more boring, they plan non-stop unicode hangman there!
[19:09:17] acke: has joined #ruby
[19:09:36] tenderlove: has joined #ruby
[19:09:54] adaedra: ???non-stop???
[19:10:19] jhass: shevy: how do you know? you're never there
[19:11:47] agent_white: We could code ruby battlebots?
[19:12:10] niftylettuce: has joined #ruby
[19:13:40] shevy: jhass I was there two times \o/
[19:13:50] jhass: for what? 30sec?
[19:14:10] shevy: not enough ruby discussion there
[19:14:18] topolinux: has joined #ruby
[19:15:13] jessemcgilallen: has joined #ruby
[19:15:32] bryanray: has joined #ruby
[19:16:02] jackjackdripper: has joined #ruby
[19:18:19] jenrzzz: has joined #ruby
[19:18:25] topolinux_: has joined #ruby
[19:18:48] finisherr: has joined #ruby
[19:18:53] monq: has joined #ruby
[19:20:20] karapetyan: has joined #ruby
[19:22:17] spuk: has joined #ruby
[19:22:25] kinduff: has joined #ruby
[19:22:34] momomomomo: has joined #ruby
[19:23:25] bonhoeffer: has joined #ruby
[19:23:52] tenderlove: has joined #ruby
[19:24:37] alcipir: has joined #ruby
[19:24:43] arthurix_: has joined #ruby
[19:26:03] purplexed^: shevy: I'm sorry, I've just been here for 6-8 hours, and nothing happens here. I'm wondering if maybe the off-topic channel might be unneeded ;)
[19:26:20] bafbomb: has joined #ruby
[19:27:17] jxl180: Maybe #ruby is unneeded, and it should only be #ruby-offtopic. Code discussion not allowed
[19:28:06] purplexed^: jxl180: same question applies :) ..
[19:28:19] chandlerbing: has joined #ruby
[19:28:54] haylon: Is there a decent read on how to use and write RSpec, and UnitTests? I see a bunch of examples, but they're not really explaining what each expect does, or what the [test|spec]_helper.rb does or is for.
[19:29:47] purplexed^: i'm sorry, I've just rarely met a development chat room that so dead as this one
[19:30:00] haylon: lol, depends on the topic purplexed^
[19:30:17] haylon: I've seen it get pretty lively, but some people say take it to the #ruby-community channel
[19:30:20] purplexed^: what topics are interesting then ? :D
[19:31:07] haylon: Most of the stuff I've ranted on was off-topic from Ruby
[19:31:11] purplexed^: where can I see that I should go to "ruby-community" for interesting talk ?
[19:31:48] jhass: #ruby-community is for development of the website and related stuff, #ruby-offtopic is the offtopic channel
[19:31:49] purplexed^: hey, I know i'm being the devils advocate
[19:32:16] jhass: we had ruby related questions buried in offtopic talk in the past, separating makes it easier for everyone
[19:32:26] tenderlove: has joined #ruby
[19:32:47] haylon: I'll bookmark that one too.
[19:32:54] purplexed^: interesting... because I barely see ruby questions in there :)
[19:32:55] jhass: makes it a lot easier to watch the channel for people not interested in the offtopic talk
[19:33:13] DoubleMalt: has joined #ruby
[19:33:16] jhass: maybe ruby is just so easy that questions are rare? ;P
[19:33:18] ruurd: has joined #ruby
[19:33:31] purplexed^: jhass: I doubt that is true :D
[19:33:37] haylon: LOL jhass.
[19:33:48] workmad3: has joined #ruby
[19:34:04] d10n-work: has joined #ruby
[19:34:10] shevy: purplexed^ ruby is so good that nobody has any questions, save newcomers!
[19:34:17] jhass: tbf today's a quiet day indeed
[19:34:21] polishdub: has joined #ruby
[19:34:21] haylon: So, about that RSpec and MiniTest reading. Do you have an ebook, or a link I could look at? I haven't seen one that really went into detail
[19:34:44] haylon: or newbs, shevy, like me
[19:34:49] purplexed^: alright, let's say it's a quiet day... I'll hang around, and we can talk tomorrow :D
[19:34:54] sinkensabe: has joined #ruby
[19:35:39] shevy: #python has more traffic, unfortunately when I try to talk about ruby there the snakes beat me up :(
[19:35:54] purplexed^: come to C#, it's more fun there
[19:36:52] haylon: #go-nuts is pretty fun too
[19:36:57] craysiii: C# is..... bad lol
[19:37:04] craysiii: the channel, not the language :)
[19:37:15] purplexed^: shevy: The room is more fun, I didn't say you had to enjoy the language :D
[19:37:24] _el_fer_: has joined #ruby
[19:38:02] mustmodify: has joined #ruby
[19:38:08] tenderlove: has joined #ruby
[19:38:32] purplexed^: I just started writing Ruby as a C# dev of 10-15 years...it's lots of fun... but the community so far is sucking :O
[19:38:53] jhass: craysiii: some say so, some say the other way around I guess :P
[19:39:09] heftig: has joined #ruby
[19:39:12] craysiii: purplexed that is exactly my point
[19:39:20] purplexed^: and I might sound like a major asshole saying that, but honestly... every time I go to a Ruby anything, nothing is going on
[19:39:20] craysiii: dont ever go to #csharp looking for help
[19:39:45] purplexed^: craysiii: why ?
[19:39:51] jhass: we're sucking for being focused on helping?
[19:40:01] haylon: I also wouldn't judge the community by this chat room either purplexed^
[19:40:05] adaedra: who's sucking?
[19:40:13] chouhoulis: has joined #ruby
[19:40:15] craysiii: they themselves claim to not be a help channel, they want to argue semantics and which libraries are better than the others
[19:40:18] purplexed^: haylon: no, I'm not just judging by this chat room :)
[19:40:26] Ebok: this community answers pretty much every question anyone asks given 30 minutes or so.
[19:40:31] adaedra: jhass: that's not really nice.
[19:40:32] shevy: 95% of the people here are idling!
[19:40:45] purplexed^: craysiii: so by saying they are not a help channel, does that make you understand it's not a help channel ? :D
[19:40:54] haylon: yeah, tis be true. I hangout in here to see wha tpeople talk about and try to learn stuff by osmosis
[19:40:59] jhass: adaedra: yeah, you should stop it
[19:41:11] shevy: lol ... "osmosis learning"... did you coin that word haylon?
[19:41:24] shevy: aha was jhass mean to adaedra?
[19:41:27] ruboto: don't be mean to adaedra
[19:41:34] craysiii: well once, i understood once i was berated for asking a question. they don't mention it in the MOTD or anything though
[19:41:37] bmn: has joined #ruby
[19:41:40] nateberkopec: has joined #ruby
[19:41:49] Ebok: Ruboto has lots of interesting commands
[19:41:50] purplexed^: I'm sure there are loads of people who are helpful here... but it's not like it's attracting people by it being dead all the time
[19:41:56] haylon: shevy: Naw, i just osmated that as well.
[19:42:02] shevy: craysiii btw a similar story happened to me when I went to a german c# channel... they hated ruby, one guy went totally amok about "monkeypatching" ruining projects
[19:42:02] Ebok: purplexed, stop trolling
[19:42:11] purplexed^: Ebok: I'm not trolling.
[19:42:12] adaedra: purplexed^: we don't speak when there is nothing to say.
[19:42:15] Ebok: yeah you are
[19:42:17] haylon: Ebok, I knew he was doing that from the get go, lol
[19:42:22] adaedra: Pretty much like every other channel I know.
[19:42:23] purplexed^: Ebok: Sir, I am not.
[19:42:28] jhass: purplexed^: most rooms are like this, you might be mistaking Freenode for another network
[19:42:30] Ebok: ACTION rests his case
[19:42:36] shevy: because big projects will apparently be destroyed if c# would allow modification of core classes
[19:42:46] pathrocle: has joined #ruby
[19:42:49] heftig: has joined #ruby
[19:42:51] shmilan: has joined #ruby
[19:43:02] craysiii: shevy i feel your pain
[19:43:06] mustmodify: has left #ruby: ()
[19:43:08] haylon: So, my original question. RSpec, and MiniTest
[19:43:12] haylon: any indepth reading I can do
[19:43:16] haylon: besides code examples?
[19:43:34] havenwood: haylon: In modern Minitest there's no capital T anymore.
[19:43:38] shevy: I found reading about testing fairly boring... it may be better to just read the code
[19:44:01] havenwood: haylon: Maybe take a look at Minitest's own tests.
[19:44:02] haylon: I can udnerstand now to make tests, but I don't understand what the test_helper, or spec_helper do
[19:44:09] shevy: like the fiddler's approach... tweak it spank it change it beat it into submission until it performs how you want it to perform
[19:44:31] rickmasta: has joined #ruby
[19:44:31] haylon: shevy, is that the technical phrase for that?
[19:44:40] havenwood: haylon: When there's a snippet of helper code you need for multiple tests you can extract it out to a common file that is required by multiple tests.
[19:44:53] shevy: haylon dunno... perhaps tinker programmers
[19:44:57] purplexed^: [9:44:20 PM] Ran Sun Lyng: honey, I know you are developing ruby, felling like a ganster and all
[19:45:10] haylon: bam, thank you havenwood. That's way better than any of the pages i was finding when I googled. Thank you
[19:45:14] shevy: there are also people who can read official specifications, these are the patient people
[19:45:16] purplexed^: I'm seriously trying to learn ruby... and my wife knows!!
[19:45:18] choke: has joined #ruby
[19:45:43] havenwood: shevy: to the docs!
[19:45:48] shevy: let your wife learn it, stay with C# purplexed^
[19:45:50] haylon: purplexed^ I'm sure you know, reading and doing small projects makes it easy to learn
[19:47:25] Ebok: if you have questions ask, if you need resources, ask.
[19:47:42] Ebok: if you wanna complain about anything else, meh.
[19:47:48] EminenceHC: has joined #ruby
[19:47:56] haylon: lol. I'll be down to help with a cursory google search
[19:47:59] purplexed^: well, complaining livened up the room :p
[19:48:06] haylon: womp womp.
[19:48:14] Ebok: persistent trolling does that yeah
[19:48:26] shevy: don't worry, the 5% non-idlers may soon go back to idling mode again
[19:48:38] Ebok: ACTION idles
[19:48:41] haylon: yeah, I'm in a knowledge class/transfer thing at work
[19:48:59] haylon: So I glance back and forth, through 8 different channels
[19:49:19] shevy: yeah like TV zapping
[19:49:23] shevy: there just isn't any good content!!!
[19:49:25] purplexed^: I watched Ruby Fundamentals on pluralsight, so I know something
[19:49:48] shevy: did you write a game in ruby yet purplexed^ ?
[19:49:51] purplexed^: I'm trying to write an agent based platform for monitoring servers infrastructure and platform state
[19:50:04] haylon: Man, I continuously hitup Learn Ruby The Hard Way, Tutorialspoint, CodeAcademy, and a few other pages just to keep up
[19:50:18] purplexed^: like checking out if ports are open, ping time, cpu load, memory use
[19:50:23] haylon: purplexed^ #zabbix ?
[19:50:25] shevy: don't forget answer people on stackoverflow haylon
[19:50:28] shevy: *answering
[19:50:35] purplexed^: nah, zabbix looks like crap to be honest :/
[19:50:41] haylon: its what I use
[19:50:43] haylon: and love it
[19:50:46] shevy: write purplexix!
[19:50:54] haylon: Just got "Professionally Certified" last week
[19:51:01] purplexed^: haylon: why is it good.... ?
[19:51:22] neilnorthrop: has joined #ruby
[19:51:23] purplexed^: I get confused looking at the documentation
[19:51:26] haylon: Open Source, and Free, so if you have a problem, submit code fixes, or enhancements. Then also, you can extend it considerablly
[19:51:28] neilnorthrop: has left #ruby: ()
[19:51:29] craysiii: purplexed i wrote something like that in python for an internship, was a pretty cool project
[19:51:30] purplexed^: it seems.... weird
[19:51:41] purplexed^: craysiii: cool
[19:51:50] haylon: Zabbix to me is easy to read
[19:52:01] purplexed^: what is Zabbix written in ?
[19:52:12] haylon: C. However, you can extend it with Ruby, or whatever language you want
[19:52:18] haylon: but preferred C
[19:52:32] purplexed^: I looked at Zabbix actually
[19:52:39] purplexed^: I kinda didn't like it
[19:52:42] haylon: I write all sorts of Ruby scripts and have Zabbix run them to do some extereme monitoring
[19:53:04] haylon: Make sure you use a supported version. 2.2, or 2.4. 3.* is coming soon, but its still in Alpha
[19:53:11] haylon: and 3.0 is way better than the other ones
[19:53:11] purplexed^: haylon: does it require you to install anything ?
[19:53:27] haylon: yeah, you'll need a DB, SQLite, MariaDB, or PostgreSQL
[19:53:38] haylon: then the server daemon, agents and they have proxies and such
[19:53:39] purplexed^: haylon: how about on clients ?
[19:53:45] haylon: yeah, you'll need a clients
[19:53:54] purplexed^: mhm... they don't need db's right
[19:53:56] haylon: unless youre skilled with WinRM, and SSH scripts
[19:54:02] shevy: as havenwood would say - install all the things http://tech.simplybusiness.co.uk/content/images/2013/Feb/things.png
[19:54:10] haylon: The agents don't need a DB
[19:54:21] haylon: just the server and proxies
[19:54:32] purplexed^: maybe I'll try to not be so angry at zabbix then
[19:54:40] haylon: lol, I'm also on the #zabbix channel
[19:54:43] purplexed^: it just looked so shabby
[19:54:44] haylon: so if you need help, post in there
[19:54:51] haylon: its been updated a lot in 3.0
[19:54:54] haylon: but its still in Alpha
[19:55:10] haylon: its a pure C back end, and the API and Web front end use the same point this time
[19:55:18] purplexed^: okay, that's fair enough... I guess what I write will be in alpha too ;)
[19:55:38] haylon: isn't that the way now a days with games and such?
[19:55:44] haylon: I digress.
[19:55:51] shevy: there are not enough ruby games!!!
[19:55:57] haylon: True that shevy
[19:56:00] jackjackdripper1: has joined #ruby
[19:56:01] haylon: we should try to make one
[19:56:14] haylon: However, picking a UI toolkit is where I usually get hung up
[19:56:16] bonhoeffer: has joined #ruby
[19:56:21] sinkensabe: has joined #ruby
[19:56:21] shevy: I am trying!!!!! but I found writing games to be one of the hardest thing in ruby, it's like a neverending time sink
[19:56:32] haylon: What's your UI of choice?
[19:56:59] purplexed^: haylon: I got hooked on Ruby because it's a dynamic language, and that it seems like I can ship code to it for execution, and that's nice for a scenario with agents
[19:57:40] Sembei: has joined #ruby
[19:57:44] haylon: what do you mean ship code to it for execution? Just installing the Gem, and then sending data to a "server" process?
[19:57:51] haylon: I kindof do that with some Sinatra apps
[19:57:53] atomical_: has joined #ruby
[19:58:12] purplexed^: haylon: I need my agents to execute "tasks", like Octopus Deploy
[19:58:14] gusTester: has joined #ruby
[19:58:43] shevy: haylon mostly still ruby-gtk due to my laziness and inertia
[19:59:07] purplexed^: haylon: do you know Octopus Deploy ?
[19:59:24] cdg: has joined #ruby
[19:59:26] haylon: I've seen it, but only thought of it for C# purplexed^
[19:59:37] Akagi201: has joined #ruby
[19:59:52] haylon: shevy, yeah, I keep looking for a toolkit that has a lot of functions, and minimal effort to install for newbs, or non-techie's
[19:59:53] unreal: has joined #ruby
[20:00:01] purplexed^: haylon: well, it has agents... just like I need... and i can ship Powershell to it, and have it execute, and then report back what happened
[20:00:20] purplexed^: haylon: that's what I am trying to do with ruby now
[20:00:34] purplexed^: because ruby doesn't need Java, .NET framework or something like that
[20:00:49] slawrence00: has joined #ruby
[20:00:57] haylon: Still need to install Ruby though
[20:01:05] jhass: purplexed^: mmh, eval'ing network submitted code? be sure to ping back when you're done and my free servers are ready
[20:01:12] haylon: and then that's where it comes down to, do I use this 3rd party hipster language, or the native shell language
[20:01:23] craysiii: hipster language o.O lol
[20:01:33] haylon: that's what my co-workers call it
[20:01:38] haylon: the plebians they are
[20:01:41] freerobby: has joined #ruby
[20:01:49] jhass: the hipsters are currently moving to node & go
[20:02:00] bonhoeffer: has joined #ruby
[20:02:08] haylon: I want to learn go
[20:02:18] jhass: don't. Learn Crystal :P
[20:02:21] haylon: It just doesn't stick, and I keep falling back to Ruby, or C
[20:02:30] haylon: I also started looking into Haskell and Erlang
[20:02:40] EminenceHC: has joined #ruby
[20:02:41] haylon: just to add to my toolbelt of languages
[20:02:49] purplexed^: It seems like a dynamic language like ruby is excellent for having an agent on a server... and then I ship it some code, which it executes, and then sends back a response, or the response is sent to a logging server
[20:03:12] haylon: Yeah, you can totally do that purplexed^
[20:03:18] jhass: dynamic doesn't mean bulletproof sandboxed purplexed^
[20:03:25] purplexed^: I understand that
[20:03:40] purplexed^: by it seems New Relic is using Ruby for agents too
[20:03:41] jhass: so make really sure to no fuck up authentication
[20:03:47] jhass: deploy TLS
[20:03:56] haylon: jhass, definitely
[20:04:07] haylon: another task, learn how to implement TLS, SSL, and RSA keys
[20:04:15] jhass: else it's not just your metrics leaked, it's the whole box lost easily
[20:04:15] purplexed^: I'm sure New Relic spent some time considering which language was best for agents
[20:04:19] haylon: I would say that Chef Server would be a good example
[20:04:44] jhass: haylon: TLS is SSL, well, TLS 1.0 is
[20:05:01] jhass: SSL is deprecated, we actually should start to no longer use that term
[20:05:15] haylon: Huh. Really?
[20:05:25] ngscheur1: has joined #ruby
[20:05:25] jhass: SSLv3 is considered insecure
[20:05:29] haylon: plus, whatever happened to the openssl howto pages?
[20:06:28] haylon: I found a "cookbook" epub for it, but the plain text documents I found, are no longer existing.
[20:06:54] haylon: Oh well. jhass, are there any premade gems to help assist with authentication like that using TLS/SSL?
[20:07:00] haylon: or using RSA keys
[20:07:16] blackmesa: has joined #ruby
[20:07:21] jhass: TLS encrypts the connection, it does not provide authentication
[20:07:27] pdoherty: has joined #ruby
[20:07:30] jhass: authentication is then done over the encrypted connection
[20:07:53] jhass: ruby stdlib has a quite comprehensive openssl binding
[20:07:57] Igorshp: has joined #ruby
[20:08:15] jhass: depending on the authentication scheme you want to implement it might help with that too, in particular for challenge response type stuff
[20:08:16] haylon: I saw that. I just need to fiddle fart with it and learn to use it
[20:08:22] lkba_: has joined #ruby
[20:09:13] jhass: well, unless you do client certs I guess, but that's usually quite finicky and few people really do it
[20:09:23] dfockler: has joined #ruby
[20:09:42] alcipir: has joined #ruby
[20:10:35] purplexed^: so, if I have a ruby application running on a client server, and I want to ship some code to it, to perform a check to see if a port if open to some other server. What is the best way to do that ?
[20:11:07] K1MOS: has joined #ruby
[20:11:39] atomical_: attempt to connect and set a timeout?
[20:11:57] yardenbar: has joined #ruby
[20:12:54] diegoaguilar: has joined #ruby
[20:13:06] jhass: I probably wouldn't do it really, there are just too many things that can go wrong with that approach
[20:13:43] n008f4g_: has joined #ruby
[20:13:49] tenderlove: has joined #ruby
[20:13:54] purplexed^: atomical_: no, I have a master server (A), and an agent server (B), and I want to ship code from server A to B, to try and connect to server (C)
[20:13:54] haylon: I kind of made a gem for that recently
[20:13:56] jhass: maybe provide generic commands and just sent the parameters in from the server
[20:13:59] haylon: gem search port_scanner
[20:14:55] tenderlove: has joined #ruby
[20:15:09] jhass: {"command": "port_check", "port": 1234, "proto": "tcp", "interface": "*"}
[20:15:31] jhass: or {"command": "port_check", "options": {"port": 1234, "proto": "tcp", "interface": "*"}} rather
[20:15:34] EminenceHC: has joined #ruby
[20:15:40] adac: has joined #ruby
[20:16:22] ngscheurich: has joined #ruby
[20:16:51] purplexed^: jhass: sorry, are you speaking to me ? :)
[20:17:08] jhass: nobody else is talking?
[20:17:19] purplexed^: then I guess you are talking to me
[20:17:49] purplexed^: the problem with that is that the client needs to know the commands I am sending
[20:18:06] purplexed^: It should be ignorant of the commands... it should just be able to execute them
[20:18:28] purplexed^: otherwise, if I create new commands, then I need to update the clients
[20:18:33] jhass: and I'm saying that's a bad idea
[20:18:48] jhass: it's something malware authors do
[20:19:02] blackmesa: has joined #ruby
[20:19:17] jhass: it's something other malware authors subsequently exploit to take over infected boxes
[20:19:29] purplexed^: it's internal software
[20:19:40] purplexed^: and it's being passed over secure lines
[20:19:45] jhass: until something is misconfigured
[20:19:49] tenderlove: has joined #ruby
[20:20:03] yitsushi: has joined #ruby
[20:20:41] jhass: or somebody discovers it without realizing these implications and deploys it somewhere else because "neat" or "it's what we always do"
[20:20:50] relix: has joined #ruby
[20:20:58] haylon: or someone takes it off the secure network
[20:21:02] riotjones: has joined #ruby
[20:21:26] purplexed^: jhass: it's being sent over SSL, so it's not something that can be discovered
[20:22:22] but3k4: has joined #ruby
[20:22:23] jhass: followed the news last year? how many issues we found in SSL and TLS implementations?
[20:22:26] haylon: When you say secure lines, I imagine like secret network with steel piping, and 3ft separation, and no one allowed in the uilding.
[20:22:52] jhass: TLS doesn't prevent scanning at all
[20:23:09] duderonomy: has joined #ruby
[20:23:11] purplexed^: why are you concerned with the security.. ? .. I'll take care of that :)
[20:23:21] bkxd: has joined #ruby
[20:23:57] jhass: I'm just outlining why I think that you have a very bad idea
[20:24:17] purplexed^: that's great, .. but I've got that under control... but I appreciate the effort
[20:24:39] haylon: don't need another linux.wifatch going around
[20:24:58] acke: has joined #ruby
[20:25:28] purplexed^: i've been doing coding for 20 years, can we please skip the security talk ?
[20:25:57] tenderlove: has joined #ruby
[20:26:01] purplexed^: But Ruby is new to me
[20:26:29] shinnya: has joined #ruby
[20:26:49] jhass: &ri Kernel#eval
[20:26:49] `derpy: http://www.rubydoc.info/stdlib/core/Kernel#eval-instance_method
[20:26:57] jhass: there's your pumping, happy shooting yourself
[20:27:11] phutchins: has joined #ruby
[20:27:28] zenguy_pc: has joined #ruby
[20:27:31] purplexed^: jhass: why do you have to go to extremes ?
[20:27:39] purplexed^: we are just talking.
[20:28:07] haylon: Damn, my tests are running, but I'm not seeing any runs.
[20:30:35] purplexed^: So, I'd just like to know what a good way would be to have a ruby application receive some code for execution, and then let it pass it's result to either a logging platform, or back to the passing server
[20:31:15] purplexed^: i'm not worried about security
[20:31:27] karapetyan: why (1..5).to_a works fine. But (5..1).to_a #=> [] ?
[20:31:29] VeryBewitching: has joined #ruby
[20:31:31] colintherobot: has joined #ruby
[20:31:56] jhass: karapetyan: because Ranges call #succ, not #pred
[20:32:24] colintherobot: has joined #ruby
[20:32:24] haylon: purplexed^ you should be able to just send a JSON message to a socket server and then have the receiving end parse it
[20:33:00] purplexed^: haylon: no, that again means the client would need to understand the implementation. And I don't want that... it should be ignorant of the command I send it :)
[20:33:31] purplexed^: haylon: otherwise, I will need to update the client everytime I have a new command
[20:33:47] purplexed^: haylon: it should understand commands, but not their implementation
[20:34:21] purplexed^: haylon: with JSON it needs to be parse, and be understood on the client
[20:34:50] haylon: Then I'm not sure how you'd make a client that would just be a relay
[20:34:56] chandlerbing: has joined #ruby
[20:35:06] haylon: to the Kernel functions
[20:35:25] baroquebobcat: has joined #ruby
[20:35:51] purplexed^: haylon: If it follows a convention, then I'm sure Ruby somehow could parse it correctly... it would be similar to passing an object in C# that adheres to an interface
[20:35:53] haylon: the client would need to read some sort of stream, whether it be a socket stream, or JSON message, then decode it so it can read what command needs to be ran, hten executed by kernel#exec
[20:36:45] purplexed^: haylon: if I passed something that had, say, a class that had a method "Execute", then it could probably execute "Execute"
[20:36:47] haylon: jhass, I'm having issues with my Minitest test.
[20:37:07] jhass: ACTION is part of the rspec crowd
[20:37:14] haylon: I have it setup, and create an object, assert_equal true, @object.do_stuff
[20:37:20] alcipir: has joined #ruby
[20:37:25] haylon: well, I'll get there in a bit
[20:37:31] haylon: learning both minitest and rspec
[20:38:02] weaksauce: haylon you can gist the test and output and I will look at it
[20:38:17] haylon: Ight, one sec. Let me get my changes committed.
[20:38:21] purplexed^: like, If I passed it: "ping 127.0.0.1", I could pass that to `ping 127.0.0.1` and send that back
[20:38:25] idefine: has joined #ruby
[20:38:43] haylon: some flaws in that already, unless your specifically runningon Windows, purplexed^
[20:38:44] purplexed^: but if it's more complex, like I need to resolve a hostname, before I ping
[20:38:50] jhass: >> (eval "class BadIdea; def idea_idea; puts 'This is still a bad idea'; end; end;").new.bad_idea
[20:38:51] ruboto: jhass # => undefined method `new' for :idea_idea:Symbol (NoMethodError) ...check link for more (https://eval.in/453523)
[20:38:58] weaksauce: so you want to execute arbitrary shell commands from clients?
[20:39:02] jhass: >> (eval "class BadIdea; def idea_idea; puts 'This is still a bad idea'; end; end; BadIdea").new.bad_idea
[20:39:03] ruboto: jhass # => undefined method `bad_idea' for #<BadIdea:0x4244fdf8> (NoMethodError) ...check link for more (https://eval.in/453524)
[20:39:10] yfeldblum: has joined #ruby
[20:39:11] jhass: >> (eval "class BadIdea; def bad_idea; puts 'This is still a bad idea'; end; end; BadIdea").new.bad_idea
[20:39:12] ruboto: jhass # => This is still a bad idea ...check link for more (https://eval.in/453525)
[20:39:26] chandlerbing: has joined #ruby
[20:39:40] jhass: weaksauce: scroll up, been through everything they're ignorant on the concerns
[20:39:54] adaedra: eval/exec with remote-provided input? can it be more a bad idea?
[20:40:15] jhass: well, I'll retreat and get popcorn have your fun!
[20:40:20] weaksauce: i see. I echo that it's a bad idea.
[20:40:31] purplexed^: but do you understand what I am trying to do... I want to pass 'any' code to my agent, and have it pass back the results
[20:40:47] haylon: I understand
[20:40:51] haylon: its still a bad idea
[20:40:52] adaedra: jhass: share the popcorn
[20:40:55] jhass: we all understand
[20:41:01] purplexed^: okay, I respect your concern
[20:41:07] QORRiE: has joined #ruby
[20:41:08] QORRiE: has joined #ruby
[20:41:08] ruboto: I don't know anything about popcorn
[20:41:18] haylon: weaksauce: here's the repo, I'm getting the gist posted
[20:41:20] haylon: https://github.com/predatorian3/port_scanner
[20:41:24] jhass: ?popcorn=It's popcorn time! ????????????
[20:41:24] ruboto: I don't know anything about popcorn
[20:41:37] jhass: !fact mk popcorn It's popcorn time! ????????????
[20:41:39] ruboto: jhass, I will remember that popcorn is It's popcorn time! ????????????
[20:42:01] purplexed^: I'm not so worried about concern... I'm trying to understand how, if I pass some code to a second application, how I get the result back to the application who sent it
[20:42:14] pocketprotector-: +1-<area code-popcorn
[20:42:18] jhass: >> (eval "class BadIdea; def bad_idea; puts 'This is still a bad idea'; end; end; BadIdea").new.bad_idea # then start with stopping to ignore this
[20:42:19] ruboto: jhass # => This is still a bad idea ...check link for more (https://eval.in/453526)
[20:42:27] haylon: weaksauce: https://gist.github.com/predatorian3/bd76c3c5a4e4e69252e3
[20:42:28] axl_: has joined #ruby
[20:43:04] purplexed^: perhaps the client needs some mechanism built in to send it back ?
[20:43:17] purplexed^: perhaps I just send it to a log from the client
[20:43:21] haylon: Read about the kernel#exec libraries part of the stdlib in ruby
[20:43:22] purplexed^: both are fine
[20:43:32] idefine: has joined #ruby
[20:43:58] momomomomo_: has joined #ruby
[20:44:28] purplexed^: haylon: have you read the article: https://devver.wordpress.com/2009/06/30/a-dozen-or-so-ways-to-start-sub-processes-in-ruby-part-1/
[20:44:35] Xiti: has joined #ruby
[20:45:02] purplexed^: so, you are experienced ruby devs probably. So I'm asking you what a good way to do what I need is.
[20:45:17] weaksauce: purplexed^ there are many ways to execute shell commands http://tech.natemurray.com/2007/03/ruby-shell-commands.html
[20:45:25] haylon: seen it before
[20:45:28] pdoherty: has joined #ruby
[20:46:05] weaksauce: haylon it didn't test anything.
[20:46:05] haylon: I actually like the Open3#popen3
[20:46:25] greenride: has joined #ruby
[20:46:27] haylon: weaksauce, I figured. I'm not sure why its not picking up my tests though
[20:46:50] jokke: any ideas what may be a good channel to ask about WebSocket stuff?
[20:47:28] jokke: i try to implement a ddp client in crystal but i fail to establish a connection
[20:47:48] jokke: i tried the ruby gem metybur and it works
[20:47:49] jhass: there's #websocket-rails with 9 users :P
[20:47:55] jokke: jhass: \o/
[20:48:09] chandlerbing: has joined #ruby
[20:48:40] jokke: and i even sniffed the loopback interface for websocket frames with wireshark
[20:48:45] symm-: has joined #ruby
[20:48:46] jhass: /msg alis help btw
[20:49:02] jhass: (there's a #meteor too)
[20:49:09] jokke: jhass: they have no clue
[20:49:13] nhmain: has joined #ruby
[20:49:24] nhmain: is there a place to find free pair programming?
[20:49:25] adaedra: Time to call Sherlock
[20:50:03] jokke: nhmain: yes. just over the rainbow
[20:50:08] rfi_: the mythical pair programming or the kind where a more a senior guy dolls out tasks to a jr?
[20:50:14] zcreative: has joined #ruby
[20:50:27] purplexed^: thanks weaksauce
[20:50:33] zcreative: has joined #ruby
[20:50:43] jokke: jhass: i'm getting desperate tbh
[20:50:51] zcreative_: has joined #ruby
[20:51:07] jhass: I still don't know this stuff at all though, sorry
[20:51:24] jokke: there's virtually no difference in the messages i send over ws with my ddp client to those of metybur
[20:51:39] jhass: "virtually" :P
[20:51:44] gregf: has joined #ruby
[20:51:59] _blizzy_: has joined #ruby
[20:52:00] jokke: jhass: yeah well there's always difference since client messages are masked with a random key
[20:52:19] jokke: apart from that there's no difference
[20:52:35] jokke: very frustrating
[20:52:41] ta: has joined #ruby
[20:52:45] danman: has joined #ruby
[20:52:54] jhass: but the remote does just close the connection?
[20:53:07] jhass: you've seen the corresponding TCP packets in wireshark?
[20:53:11] nhmain: rfi_: the kind where a more senior helps out the jr get unstuck by helping him understand how code works so he can be on his way to complete the project
[20:53:15] jokke: i'm not sure _what_ it does. I see a weird packet on the wire
[20:53:21] haxrbyte: has joined #ruby
[20:53:27] tAn: has joined #ruby
[20:53:29] jokke: unknown opcode
[20:53:37] rfi_: so not really pair programming, just mentoring
[20:54:21] kaleido: has joined #ruby
[20:54:23] bkxd: has joined #ruby
[20:55:04] bonhoeffer: has joined #ruby
[20:55:16] nhmain: rfi_: yes a bit of mentoring where can i find free mentors online?
[20:55:32] DEA7TH: has joined #ruby
[20:57:34] jokke: jhass: i'm not sure how those packets should look like..
[20:57:44] rfi_: well this channel for one
[20:57:52] hal_9000__: has joined #ruby
[20:57:57] zcreative_: what is the best way to sort an array of objects into an order specified by an array of strings? ['QB', 'WR', 'TE']
[20:57:59] rfi_: i mean people here probably wont walk you through everything, but if youre stuck on something
[20:58:26] nhmain: does ruby have closures?
[20:58:28] zcreative_: i have an array of objects with a position property. i need to sort objects by the array
[20:58:35] jhass: jokke: fin, ack+fin, ack
[20:59:19] cloaked1_: has joined #ruby
[20:59:22] jokke: fin+ack, ack, fin+ack, ack
[20:59:23] shevy: ack ack dolfin!
[20:59:41] shevy: purplexed^ you complained about no activity, now look at what the two entertainers do there ^^^
[20:59:43] mloy: nhmain, https://innig.net/software/ruby/closures-in-ruby
[20:59:51] jhass: jokke: well, who's sending the first fin? that's kinda what we're looking for
[21:00:10] _blizzy_: has joined #ruby
[21:00:19] purplexed^: shevy: hey, I can come back to activate you guys once in a while if you want ;)
[21:00:26] jokke: after my connect message the server sends the first fin+ack
[21:00:41] havenwood: purplexed^: Monday morning is dead-time.
[21:00:41] shevy: what do you guys have with all those fins ...
[21:00:49] jhass: jokke: then it's closing the connection, probably because it thinks it's malformed
[21:00:52] purplexed^: havenwood: I'll keep that in mind
[21:00:53] symm-_: has joined #ruby
[21:01:09] jokke: jhass: :(
[21:01:15] jhass: shevy: do you want to hear a TCP joke?
[21:01:23] purplexed^: I have been here quite a few times I can tell you... and it's been nothing but in and outs :D
[21:01:30] idefine: has joined #ruby
[21:01:36] adaedra: havenwood: sunday is more dead imo.
[21:01:53] purplexed^: okay okay, I'll accept that I might have been wrong :)
[21:02:33] shevy: jhass hmm ... is it a bad one?
[21:02:46] jhass: shevy: here comes a TCP joke
[21:02:53] nofxx: has joined #ruby
[21:02:55] shevy: purplexed^ in and outs? disable those messages!
[21:02:56] purplexed^: just don't call me a troll mmmkay
[21:03:49] shevy: where is the joke! oh jokke
[21:03:58] diegoaguilar: has joined #ruby
[21:04:00] jhass: shevy: this was a TCP joke
[21:04:06] purplexed^: Ebok seemed very sure I was a troll
[21:04:22] shevy: ok no more TCP jokes for the rest of my life
[21:04:32] purplexed^: i'm a C#'er trying to learn Ruby... it's tough man
[21:04:43] shevy: python joke: http://bash.org/?400459
[21:04:44] adaedra: shevy: I have an UDP joke, but you may not get it.
[21:04:47] jhass: purplexed^: well, coming into a community and telling it how bad it is, who would welcome that
[21:04:51] havenwood: adaedra: ha
[21:04:57] platzhirsch: has joined #ruby
[21:04:58] purplexed^: jhass: I don't mind that
[21:05:08] jokke: https://p.jreinert.com/jAKpae/
[21:05:08] shevy: I like purplexed^ - he is so without conventions :)
[21:05:15] havenwood: purplexed^: If it quacks like a troll...
[21:05:19] jhass: purplexed^: then I guess you lack some empathy tbh
[21:05:21] purplexed^: jhass: if a community is upset for me mentioning how quiet it is........
[21:05:24] jokke: left is the accepted metybur connect message
[21:05:32] jokke: right the one from my ddp client
[21:05:37] jhass: purplexed^: you didn't just "mention" it though
[21:05:42] purplexed^: jhass: I don't understand empathy :)
[21:06:09] purplexed^: it's genetic I'm afraid
[21:07:23] purplexed^: havenwood: then you have probably been on the internet for too long
[21:07:27] jhass: jokke: well ... (can't believe I'm suggesting this) ... did you try ordering the attributes the same?
[21:07:58] purplexed^: havenwood: I understand you though.
[21:08:00] jokke: jhass: well, (can't believe i did) ... but yes i have
[21:08:45] purplexed^: I'm not a troll... I spent 3 days watching a Ruby fundamentals course... I'm trying to learn the language.. and I was appalled by the lack of activity here
[21:08:49] Maletor: has joined #ruby
[21:09:24] havenwood: purplexed^: This discussion is painfully meta offtopic. If you'd like to discuss how you're not a troll at length let's do it in #ruby-offtopic.
[21:09:35] shevy: purplexed^ eh you are married so you must have more empathy than solo hackers
[21:10:21] purplexed^: havenwood: I'm not so interested in discussing something I'm not. I didn't bring it up. so.
[21:10:25] jhass: jokke: mmh, what's the extra byte of the frame of the left message?
[21:10:50] purplexed^: havenwood: you could discuss it at length with other members of this room
[21:10:53] jokke: jhass: i think it's because the message on the right is split in two tcp packets
[21:11:16] EminenceHC: has joined #ruby
[21:11:30] jokke: (see the "2 reassembled TCP Packets")
[21:11:45] jhass: so the TCP packets have the same length? (left is not visible)
[21:11:46] jokke: *Segments
[21:12:08] Akagi201: has joined #ruby
[21:12:22] jokke: yeah left the tcp packet has len 53
[21:12:40] chandlerbing: has joined #ruby
[21:12:45] jhass: well, that's weird
[21:12:46] jokke: and right they have a combined length of 53
[21:12:49] alcipir: has joined #ruby
[21:12:50] purplexed^: havenwood: Ebok is a good candidate for that talk. Since he was the one who called me a troll to begin with.
[21:13:01] purplexed^: ACTION shurgs
[21:13:04] jhass: jokke: I guess you'd have to throw a debugger into the server now :/
[21:13:18] shevy: purplexed^ don't shurg like that
[21:13:22] jokke: jhass: D:
[21:13:34] vF3hNGxc47h8: has joined #ruby
[21:13:40] ivanskie: has joined #ruby
[21:13:40] purplexed^: hey, I got hit by shrapnel in vietnam...
[21:13:57] ivanskie: has joined #ruby
[21:13:58] weaksauce: purplexed^ well a major use case of ruby is rails and that channel is quite active
[21:14:14] shevy: we can be active too!
[21:14:24] haylon: Well, I'm out brodies/brodets
[21:14:25] purplexed^: I need not rails
[21:14:39] haylon: take it easy folks
[21:15:13] htmldrum: has joined #ruby
[21:15:35] jhass: jokke: I was going to suggest the masking goes wrong, but then wireshark seems to have no trouble with it, idk
[21:15:45] jokke: jhass: yeah
[21:15:52] purplexed^: I'm new here, ... sorry I was whining... I was just pointing out how quiet it is here.
[21:15:55] jokke: jhass: i also tried sending the msg unmasked
[21:16:04] purplexed^: it seems it has livened up since
[21:16:06] gusTester: has left #ruby: ()
[21:16:31] dagda1_: has joined #ruby
[21:16:32] jokke: jhass: i've pretty much tried everything humanly possible. except for sacrificing virgins. I'll have to wait for the next full moon.
[21:17:04] glennt: has joined #ruby
[21:17:17] glennt: Goodevening
[21:17:22] workmad3: has joined #ruby
[21:17:40] glundgren: someone knows if i can say here about a new channel i created?
[21:17:54] jhass: is it related to Ruby?
[21:18:01] havenwood: glundgren: Then yes.
[21:18:11] glundgren: i got banned from RubyOnRails, then i created ruby_on_rails
[21:18:18] glundgren: to be a free place to chat
[21:18:32] purplexed^: that makes me so happy
[21:18:33] apeiros: I think #railsbridge exists for a similar reason
[21:18:36] glennt: Does anyone know what the best way is to unit test that a password confirmation has to be matched?
[21:18:52] glundgren: apeiros: theres rules on it?
[21:19:07] purplexed^: ruby_on_arrogance
[21:19:22] glennt: I tried the assert_equal ["confirmation doesn't match"]
[21:19:28] daed: why did you get banned glundgren ?
[21:19:35] apeiros: and since I don't know what you got banned for in rails, no idea whether you'd get banned there too
[21:19:41] glundgren: daed: Radar doens't seem to like me
[21:19:59] glundgren: daed: because i make fun of the excessive rules
[21:20:01] jhass: daed: http://logs.ryanbigg.com/p/glundgren
[21:20:08] jokke: jhass: it seems it's always splitted into two tcp segments...
[21:20:10] apeiros: radar usually has a good reason when he doesn't like people
[21:20:16] craysiii: Radar rules with a heavy hand, but i can understand where he is coming from.
[21:20:25] agent_white: Today I think I realized I'm an awful programmer. Does that mean today is a good day? :)
[21:20:31] jokke: jhass: always one with 1 byte and the other with the rest..
[21:20:45] jhass: jokke: mmh
[21:20:47] jokke: not sure why
[21:20:57] purplexed^: agent_white: what makes you think you are an aweful programmer ?
[21:21:17] jhass: agent_white: yes
[21:21:32] daed: jhass: what channel is that from? #rubyonrails?
[21:21:35] weaksauce: agent_white naw good days are when you can delete code... knowing that you are an awful programmer is just a constant
[21:21:50] jhass: daed: all channels helpa is in combined, click on a message to get the specifics
[21:22:05] leafybasil: has joined #ruby
[21:22:07] daed: ahh interesting
[21:22:14] purplexed^: weaksauce: no man, aweful programmer is the first step to becoming a great programmer
[21:22:20] glennt: has left #ruby: ()
[21:22:24] alcipir: has joined #ruby
[21:23:06] sdothum: has joined #ruby
[21:25:22] freerobby: has joined #ruby
[21:25:48] workmad3: has joined #ruby
[21:26:30] ellisTAA: has joined #ruby
[21:26:48] momomomomo: has joined #ruby
[21:28:53] Radar: daed: apeiros: glundgren seems to rant+rave about feminazis and I think it's disruptive to the channel... so they're banned.
[21:29:24] mloy: I think he enjoys the attention
[21:29:43] jhass: Radar: you don't need to justify about it, especially here ;)
[21:29:45] choke: has joined #ruby
[21:30:00] agent_white: Too late for popcorn? :(
[21:30:13] purplexed^: what is with this channel and popcorn
[21:30:15] jhass: agent_white: you can have some log popcorn above
[21:30:31] apeiros: +1 @ no need to justify :)
[21:30:45] agent_white: ACTION nomonomnom
[21:30:59] purplexed^: I'm assuming popcorn mean, "can I watch"
[21:31:06] glundgren: Radar: you cant ban me from a channel because we have different opinions about an offtopic dude, i use rails to make a living
[21:31:12] glundgren: not to rant
[21:31:26] jhass: glundgren: wrong place, take it elsewhere or you're gone from here too
[21:31:27] glundgren: but i will not bite your trap
[21:31:35] glundgren: jhass: sorry
[21:31:42] agent_white: We had a saying in the restaurant industry. "Leave it at the door."
[21:32:03] purplexed^: agent_white: did that mean you couldn't bring your pet rat to work ?
[21:32:33] agent_white: purplexed^: Oh no, there was a few revisions to it. -- "If it fits in your pocket..." being one.
[21:33:01] purplexed^: that's a good rule
[21:33:07] agent_white: Pet rocks are OK as long as they don't poop on the carpet.,
[21:33:58] craysiii: glundgren i think the point is that you should only talk about things on-topic in a topic-driven channel. if you want to rant about things do it in #offtopic or somewhere else. #RoR is not the place to tout your ideology or opinions about things not related to RoR
[21:34:29] glundgren: i will not say anything you guys won
[21:34:38] agent_white: There is no winner. Just, leave it at the door.
[21:34:43] mloy: don't make yourself the victim
[21:34:59] glundgren: mloy: if i respond im picking a fight
[21:35:04] glundgren: if i dont, i play the victim
[21:35:10] tenderlove: has joined #ruby
[21:35:14] purplexed^: please, more champions stomping the loser
[21:35:17] jhass: this stops now, next one that says anything related is gone for the next hour
[21:35:29] alcipir: has joined #ruby
[21:35:45] Rollabunna: has joined #ruby
[21:35:46] purplexed^: be nice to people. please.
[21:36:37] chopin_: has joined #ruby
[21:36:58] yitsushi: has joined #ruby
[21:37:19] jessemcgilallen: has joined #ruby
[21:38:14] bollullera: has joined #ruby
[21:38:35] craysiii: has anyone else felt that using RoR has weakened their ruby knowledge? after writing RoR controllers, models, and such, i try to write something in pure ruby and its just awful.
[21:38:35] ivanskie: has joined #ruby
[21:38:48] agent_white: http://rails5countdown.com/ -- I clicked on "How does this work?" expecting to see "After the timer reaches 0, Rails 5 is here!"
[21:38:59] craysiii: or maybe i just never understood ruby to begin with..
[21:39:28] Radar: agent_white: https://github.com/platzhirsch/rails5countdown/blob/master/server.go this is how it works
[21:39:29] CloCkWeRX: has joined #ruby
[21:39:37] purplexed^: I'm too stupid to understand RoR
[21:39:40] jhass: craysiii: I kinda have that in reverse, the stronger my Ruby gets the worse is my RoR
[21:39:51] craysiii: interesting
[21:40:07] jokke: jhass: aha now it gets interesting... i just updated nodejs and meteor
[21:40:08] purplexed^: but I'm pretty good at C*#
[21:40:12] adaedra: I'll jave a Rails job
[21:40:13] agent_white: Radar: Awww :( That's works too! Thought it would be funny for it to say that :)
[21:40:16] pwnd_nfsw: has joined #ruby
[21:40:16] platzhirsch: agent_white: where did you get that link from
[21:40:17] jokke: instead of just closing the connection i get
[21:40:20] adaedra: I'll see how it plays on my Ruby
[21:40:50] agent_white: platzhirsch: Reading through logs :) Nice site you put up there!
[21:40:52] jokke: i get an actual websocket close frame with this payload: Unrecognized frame opcode: 13
[21:41:16] platzhirsch: agent_white: just wanted to do something cheeky, you're rigt the link should directly jump to the function which does the calculation
[21:41:20] purplexed^: how are your guys experience with the Ruby community... is it open... is it easy to get information ?
[21:41:31] purplexed^: sorry if my english is incorrect
[21:41:50] Radar: purplexed^: very easy to get information
[21:42:00] Radar: there are a lot of good guides and helpful people in the Ruby community
[21:42:16] jhass: jokke: maybe the reassembling really goes wrong in node, somehow. But for all I know it shouldn't even be able to recognize it was fragmented...
[21:42:30] agent_white: It's terrible, godawful. You ask a question here, and people actually take the time to respond and help you out. Outragious if I do say so myself. They sometimes even remember you the next day, and ask how you've been!
[21:42:41] Radar: agent_white: and they do it all for free!
[21:42:50] agent_white: Radar: THE NERVE!
[21:42:52] Radar: They _rarely_ get paid to supply help
[21:43:00] Radar: I mean, do we live in a capitalist society or not?
[21:43:03] mostlybadfly: has joined #ruby
[21:43:23] adaedra: Stop that crazy talk
[21:43:34] agent_white: Amen! What happened to the good 'ole days, when advice cost you at LEAST a buck.
[21:43:42] purplexed^: I'm trying to understand it from other communities perspective... perhaps you have an opinion...
[21:43:47] baweaver: has joined #ruby
[21:43:49] jenrzzz: has joined #ruby
[21:44:06] yfeldblum: has joined #ruby
[21:44:50] purplexed^: an important aspect of open source these days seems to be on the openness of open source communities
[21:45:30] purplexed^: some communities seem to have an arrogant approach, and others are very friendly, and more lighthearted to mistakes of new-comers
[21:45:47] weaksauce: ruby is open. not sure how hard it is to contribute to ruby core though. Is the main correspondence done in english or japanese?
[21:45:50] purplexed^: where do ruby-people feel they fit in
[21:45:59] Radar: purplexed^: I run some OSS projects. They have contributing guidelines. Follow the guidelines, and we will be friends. Do not follow the guidelines, and I will be your harshest critic :)
[21:46:22] Radar: For instance: https://github.com/radar/forem/blob/rails4/CONTRIBUTING.md#filing-an-issue
[21:46:30] Radar: If you file an issue on Forem without that information, I will close it outright.
[21:46:43] Radar: If you file an issue on Forem WITH that information, I will investigate it when I get a moment.
[21:46:53] Radar: weaksauce: a mix of both from what I've seen.
[21:46:56] beauby: has joined #ruby
[21:47:07] weaksauce: purplexed^ ruby and RoR is very welcoming to newcomers at first. but if the newcomer shows a pattern of willful ignorance and not wanting to put the time into learning it then they are less likely to help
[21:47:07] purplexed^: Radar: that sounds really good... what if someone asks a question to the wrong place?
[21:47:17] Radar: purplexed^: Other communities go further and they have a code of conduct: http://rubyonrails.org/conduct/
[21:47:38] regreg: has joined #ruby
[21:49:24] jokke: jhass: mmh yeah
[21:49:40] IrishGringo: has joined #ruby
[21:50:14] Azure: has joined #ruby
[21:50:42] tomchapin: has joined #ruby
[21:50:49] agent_white: purplexed^: The community is rad. People around here are amazing and very friendly. Very creative bunch. I wouldn't be here if it weren't for many of the folks here.
[21:50:56] Radar: purplexed^: I _like_ the Rails Code of Conduct because it starts that "Rails is committed to fostering a welcoming community."
[21:51:14] Radar: I think without that welcoming community, Ruby and Rails would've been doomed a long time ago.
[21:51:24] purplexed^: agent_white: cool. It actually feels like people are nice here.
[21:51:47] weaksauce: also, matz is nice so we are nice
[21:51:58] workmad3: agent_white: your promoters cash is in the mail ;)
[21:51:59] weaksauce: he seems like a nice guy
[21:52:16] purplexed^: I admit to be provoking in the start... but as the talk has continued, people seem really nice.
[21:52:36] purplexed^: but I will never admit to being a troll :)
[21:53:03] jhass: then don't bring it up again all the time
[21:53:07] platzhirsch: Ruby will die if everyone stays so nice, we need some harsh measures, more German
[21:53:11] workmad3: purplexed^: do you have a strange desire to live under bridges and jump out at passing goats?
[21:53:15] zotherstupidguy: has joined #ruby
[21:53:19] tenderlove: has joined #ruby
[21:53:25] purplexed^: jhass: I'll remind you, that I was called one, ... not that I was one.
[21:53:52] adaedra: purplexed^: weren't you told already to move that to -offtopic?
[21:53:57] hackerdude: has joined #ruby
[21:53:59] purplexed^: workmad3: well... people have strange desires.
[21:54:02] Radar: purplexed^: the channel isn't active 100% of the time
[21:54:15] Radar: There are dead zones, like my late afternoon (about 6 hours from now)
[21:54:32] purplexed^: adaedra: it's a meta-discussion
[21:54:58] Radar: It's on-topic for #ruby im
[21:55:11] tobyx: has joined #ruby
[21:55:53] platzhirsch: I have the feeling that generally there are more people in IRC lately
[21:56:06] platzhirsch: also other channels, seems to grow, IRC feels strongest than ever
[21:56:12] purplexed^: platzhirsch: agree
[21:56:13] agent_white: purplexed^: What weaksauce said is actually the ruby community's motto, if you didn't know about it before. I think there's a reason you won't find another community that shares it.
[21:56:27] agent_white: Woop. Lag spike there. That might've been late.
[21:56:37] platzhirsch: hah, I thought weaksauce.. is this an insult?
[21:57:06] purplexed^: what is the motto again ? :)
[21:57:09] Radar: platzhirsch: The #ruby and #ruby-lang channels merged a couple of months back. Maybe that's it :)
[21:57:11] petricore: has joined #ruby
[21:57:25] platzhirsch: Write bad code and we will electrocute you
[21:57:25] agent_white: MINASWAN - matz is nice to white always naughty!
[21:57:33] ql6wlld: has joined #ruby
[21:57:34] jhass: https://en.wikipedia.org/wiki/MINASWAN it got its own wikipedia page!
[21:57:39] Radar: purplexed^: MINASWAN: Matz is nice always, So we are nice.
[21:57:54] Radar: Oh, it's "And". I always get it wrong
[21:57:57] purplexed^: We have a saying at my company: Whenever you have to deal with OPS... start by kicking them in the balls... just to get attention
[21:58:00] Radar: Probably why I am not a nice person 100% of the time.
[21:58:08] Radar: and if they don't have any?
[21:58:18] platzhirsch: That's a very fair point
[21:58:21] purplexed^: We assume they do :D
[21:58:27] Radar: How sexist ;)
[21:58:28] purplexed^: but yes, fair point
[21:58:43] workmad3: Radar: you follow 'MINASWANS' - 'Matz is nice always, so we are nice sometimes'?
[21:58:45] purplexed^: balls/or vagina
[21:58:54] craysiii: guys can have no balls too! :(
[21:58:55] agent_white: Hahah workmad3
[21:58:58] Radar: purplexed^: and that's where we stop talking about it :)
[21:59:03] Radar: workmad3: I'm fine with being nice as long as instructions are followed.
[21:59:20] Radar: workmad3: If you are not following instructions, I'm assuming you're doing it wilfully and with the intent to annoy me.
[21:59:26] purplexed^: balls, or vagina, or the place where a scrotum sorta thing would be
[21:59:27] Radar: That's how I manage #rubyonrails, anyway.
[21:59:29] alcipir: has joined #ruby
[21:59:32] agent_white: We are nice so long as you are nice.
[21:59:32] Radar: purplexed^: aaand you're stopping now?
[21:59:41] VeryBewitching: follow :minaswan unless rules_violated!
[22:00:02] shevy: purplexed^ perhaps Ebok was right :D :D :D
[22:00:12] purplexed^: it's hard in this multi-sexual world eh
[22:00:13] jhass: VeryBewitching: rules_violated? in that instance though
[22:00:20] Ropeney: has joined #ruby
[22:00:35] VeryBewitching: jhass: Was just thinking that, also maybe: follow! :minaswan unless rules_violated?
[22:00:55] jhass: well, following it is not dangerous
[22:01:10] shevy: unless you walk down a cliff
[22:01:26] purplexed^: walking down a cliff..
[22:01:26] workmad3: VeryBewitching: more accurately - is there a non-dangerous form of `follow`?
[22:01:34] VeryBewitching: workmad3: Touche
[22:01:36] faras: has joined #ruby
[22:01:38] Junkie: has joined #ruby
[22:02:13] tenderlo_: has joined #ruby
[22:02:16] faras: Hi I'm having problems installing the mahoro gem
[22:02:27] DEA7TH: has joined #ruby
[22:02:44] faras: the error message is not very explicit: mahoro.c:10:19: fatal error: magic.h: Not such file
[22:02:55] arthurix: has joined #ruby
[22:02:57] faras: it seems to be missing some headers
[22:02:58] mehp: has joined #ruby
[22:03:02] shevy: imagemagick?
[22:03:06] faras: any idea what could it be?
[22:03:22] shevy: yeah include/ImageMagick-6/magick/magic.h
[22:03:25] faras: is it? I hate that library
[22:03:34] shevy: just install the part where .h is
[22:03:35] agent_white: But... magick. :(
[22:03:52] faras: what part is that?
[22:04:01] platzhirsch: ImageMagick is great
[22:04:03] shevy: dunno, depends on your OS
[22:04:08] adaedra: given the gem, it's more likely linked to libmagic
[22:04:22] jhass: http://p.jhass.eu/5.txt that's the packages I got that provide a magic.h
[22:04:23] faras: it's a PITA to install, it's always been for me
[22:04:25] purplexed^: ACTION wanders off
[22:04:32] purplexed^: have a good evening all
[22:04:35] platzhirsch: faras: you'll find many StackOverflow questions on that topic which should give you canonical answers, I always run into these
[22:04:45] Junkie: purplexed^: get outta here
[22:04:46] shevy: cool, libmagic also has magic.h https://github.com/threatstack/libmagic/blob/master/src/magic.h
[22:05:21] shevy: https://rubygems.org/gems/mahoro/versions/0.4 "An interface to libmagic to determine file types using "magic" numbers." yep adaedra wins the lottery there
[22:05:22] weaksauce: shevy yeah it's probably that one
[22:05:25] faras: platzhirsch: I did't find any about mahoro, now that I know it's imagemagick I can continue my predictable suffering
[22:05:46] shevy: you only have to read the gem description!
[22:05:48] platzhirsch: love that sentence
[22:05:59] Junkie: you only have to read the gem description!
[22:06:11] jhass: faras: read the scrollback again, most people here think it's libmagic not imagemagick
[22:06:33] purplexed^: ACTION writes down the catch-phrase
[22:06:33] riceandbeans: has joined #ruby
[22:06:34] faras: jhass: I just read shevy, it seems it's not
[22:06:49] riceandbeans: what does no implicit conversion of Fixnum into String mean?
[22:06:53] glundgren: Radar: pm you, can we talk there?
[22:06:54] shevy: you only have to read the gem description but you never will
[22:07:03] jhass: riceandbeans: that can have multiple reasons
[22:07:04] riceandbeans: the value of the first variable is 8.2
[22:07:07] jhass: >> 1 + "foo"
[22:07:08] ruboto: jhass # => String can't be coerced into Fixnum (TypeError) ...check link for more (https://eval.in/453584)
[22:07:11] adaedra: file-devel provides /usr/include/magic.h for me, sounds like the one
[22:07:16] jhass: >> "foo" + 1
[22:07:17] ruboto: jhass # => no implicit conversion of Fixnum into String (TypeError) ...check link for more (https://eval.in/453585)
[22:07:23] jhass: riceandbeans: ^ that's just one
[22:07:24] riceandbeans: I told it (8.2+1).floor
[22:07:31] riceandbeans: I mean, once interpolated
[22:07:35] ruboto: We can't help you without your code, please post it to https://gist.github.com
[22:07:43] dfockler: has joined #ruby
[22:07:45] riceandbeans: I said, foo = 8.2
[22:07:52] riceandbeans: bar = (foo + 1).floor
[22:08:01] lourkeur: has joined #ruby
[22:08:06] adaedra: so foo.ceil?
[22:08:08] jhass: well, that's not your real code because that wouldn't error
[22:08:30] riceandbeans: it is though...unless...wait...
[22:08:30] purplexed^: it's a business secret
[22:08:35] K1MOS: has joined #ruby
[22:08:47] riceandbeans: maybe even though the function returns 8.2, it's returning 8.2 as a string
[22:08:55] adaedra: yep, in reality it's not 8.2
[22:08:57] FernandoBasso: has joined #ruby
[22:09:05] adaedra: we've been lied to.
[22:09:11] platzhirsch: '8.000000000000002'
[22:09:14] purplexed^: ACTION scoffs
[22:09:21] riceandbeans: I mean, if I do foo.to_i it should work, right?
[22:09:32] bruno-: has joined #ruby
[22:09:44] adaedra: to_i gives an integer
[22:09:59] purplexed^: that I know is correct adaedra
[22:10:08] riceandbeans: actually, I mispoke
[22:10:16] riceandbeans: that's what's being returned to it from the function
[22:10:18] lourkeur: It seems like Kernel::gsub is missing altho it's in the docs... U mind just typing gsub in your REPL to check if I'm crazy ?
[22:10:30] adaedra: >> method(:gsub)
[22:10:31] ruboto: adaedra # => undefined method `gsub' for class `Object' (NameError) ...check link for more (https://eval.in/453586)
[22:10:33] purplexed^: <- is here for moral support
[22:10:33] riceandbeans: so, there's a function baz that returns '8'
[22:10:51] riceandbeans: so it's like, foo = (baz + 1).floor
[22:10:53] lourkeur: >> method(:sub)
[22:10:54] ruboto: lourkeur # => undefined method `sub' for class `Object' (NameError) ...check link for more (https://eval.in/453587)
[22:10:55] jhass: riceandbeans: so why do you return a string if you want a number?
[22:11:00] adaedra: &ri Kernel#gsub
[22:11:00] `derpy: No results
[22:11:03] tenderlove: has joined #ruby
[22:11:08] riceandbeans: can I take off the quotes and have it returned as a number?
[22:11:13] adaedra: What method are you talking about, lourkeur?
[22:11:16] riceandbeans: I thought I had to quote it
[22:11:18] havenwood: lourkeur: Link to where you see it in the docs?
[22:11:28] jhass: riceandbeans: nope, just drop the quotes
[22:11:34] adaedra: riceandbeans: between quotes is always a string.
[22:11:41] lourkeur: http://ruby-doc.org/core-2.2.3/Kernel.html#method-i-gsub
[22:11:47] adaedra: and, unlike some languages, it won't turn into a number mahically.
[22:11:54] lourkeur: should be available almost everywhere right?
[22:12:27] havenwood: lourkeur: "Available only when -p/-n command line option specified."
[22:12:28] adaedra: ???Available only when -p/-n command line option specified.???
[22:13:06] faras: Thanks to this @channel for helping me :)
[22:13:17] havenwood: lourkeur: no prob, that is a bit confusing!
[22:13:19] platzhirsch: You're welcome Sir
[22:13:39] eam: oh man, I had no idea that kernel defined gsub when -p/-n -- that's fantastic
[22:13:53] adaedra: we all learn everyday
[22:14:13] riceandbeans: I don't understand that
[22:14:18] lourkeur: I was wondering why no one's sed one-liner broke at some point XD
[22:14:37] lourkeur: so everything is in order
[22:14:38] adaedra: good night
[22:15:05] eam: riceandbeans: so you can ruby -p -e'gsub /foo/, "bar"' instead of ruby -pe'$_.gsub /foo/, "bar"'
[22:15:13] Akagi201: has joined #ruby
[22:15:32] lourkeur: But it would be nice to do
[22:15:46] lourkeur: gets(somewhere_stupid)
[22:15:58] lourkeur: puts(somewhereelse)
[22:16:04] lourkeur: in a non one-liner
[22:16:20] lourkeur: I'll just use $_.gsub
[22:18:00] EdwardIII: doesn't seem to be a huge amount of love for debuggers in ruby heh
[22:18:21] programmerq: EdwardIII: how so? I know I've done step-through debugging in ruby before.
[22:18:41] programmerq: granted, I generally use the integrated debugger in rubymine, and that isn't exactl a foss option.
[22:19:00] s00pcan: has joined #ruby
[22:19:11] riceandbeans: never heard of rubymine
[22:19:19] riceandbeans: also, for one liners I sed
[22:19:33] riceandbeans: I should probably perl, but I sed
[22:19:42] eam: I make a point to never sed/awk in favor of perl
[22:19:50] EdwardIII: well python has pdb, php has debug, ruby has 'throw' and pry as the most popular options from what i see?
[22:19:56] riceandbeans: I never learned perl one liners
[22:20:00] riceandbeans: I know sed and awk though
[22:20:04] eam: it's basically the same
[22:20:08] riceandbeans: but I wrote a lot in perl
[22:20:12] EdwardIII: you can do oneliners in ruby, no?
[22:20:12] eam: perl -pe's///' is sed
[22:20:26] eam: perl -ane'print for @F' is awk
[22:20:29] riceandbeans: I know the perl debugger relatively well now too
[22:20:34] eam: (same for ruby too, for the most part)
[22:20:46] riceandbeans: I wonder if there's python one liners too
[22:20:51] riceandbeans: or if they're too good for that
[22:20:54] eam: I don't ever want to deal with non-PCRE
[22:21:14] riceandbeans: I work with some people that shit on PCRE because it's not POSIX
[22:21:23] eam: posix RE is awful
[22:21:35] riceandbeans: I told them PCRE is the gold standard, that's why like...everything uses it
[22:21:39] eam: if they know anything about posix they should know the #1 truism: it's inadequate
[22:21:41] riotjones: has joined #ruby
[22:21:47] riceandbeans: they were like, no POSIX is the gold standard
[22:22:06] eam: well it is -- for a container upon whcih actually useful cross-platform software like libpcre can be built
[22:22:12] riceandbeans: eam: would you care to guess their programming of choice?
[22:22:27] jessemcgilallen: has joined #ruby
[22:23:01] musl: has joined #ruby
[22:23:07] but3k4: has joined #ruby
[22:23:13] EdwardIII: actually pry looks good
[22:23:19] tariqc: has joined #ruby
[22:23:21] eam: "why shouldn't you write shell scripts" is an interview question I like to ask
[22:23:32] tariqc: What's the answer to that question?
[22:23:44] riceandbeans: sounds familiar
[22:23:50] eam: Tariq_: because of how variable interpolation works -- it's super dangerous
[22:24:05] mary5030: has joined #ruby
[22:24:17] eam: referencing a variable means you interpolate it into the current string and evaluate it as shell code
[22:24:29] eam: the quoting rules are extremely complex
[22:24:46] cndiv: has joined #ruby
[22:24:49] tariqc: So you could replace a programmer with a shell script but it's too risky
[22:24:56] eam: better use a ruby script ;)
[22:24:58] riceandbeans: but you can embed binary!!!
[22:25:04] EdwardIII: riceandbeans: improved irb & debugging tool
[22:25:33] tariqc: I am dealing with a non-RoR problem
[22:25:38] tariqc: it's a Sinatra problem, with HTML5
[22:25:55] mary5030: has joined #ruby
[22:25:58] riceandbeans: the problem is you're not using RoR?
[22:26:16] tariqc: No, I just thought RoR is too heavy for this specific problem
[22:27:20] xet7: Hi, I got error "Encoding::CompatibilityError: incompatible encoding regexp match (Windows-31J regexp with UTF-8 string)", how do I fix it? It's in this code http://ward.vandewege.net/blog/wp-content/uploads/2011/11/migrate_from_moinmoin.rake
[22:27:51] xet7: I'm trying to migrate moinmoin wiki to Redmine
[22:28:01] tariqc: The problem I have is that it's giving me an Invalid URI Error
[22:28:02] musl: has joined #ruby
[22:28:22] tariqc: even though all I'm doing is taking a file uploaded using HTML5 <file>
[22:28:30] VeryBewitching: Tariq_: #sinatra
[22:28:42] Musashi007: has joined #ruby
[22:28:49] tariqc: There's a chatroom for just sinatra?
[22:29:05] VeryBewitching: I don't know, I work with Rails
[22:29:10] VeryBewitching: But there's a good chance yes
[22:29:11] mordocai: There's one for everything, so probably
[22:29:28] mordocai: Apparently per their topic they prefer slack
[22:29:46] Zarthus: still has 60 users in the channel though
[22:29:51] mordocai: Or are we hipsters?
[22:29:53] mordocai: ACTION ponders
[22:30:01] EdwardIII: slack...ware?
[22:30:10] eam: mordocai: I don't know about you but I'm too old to be a hipster
[22:30:34] mordocai: eam: I'm young enough, but i've been on IRC since middle school and I like it damnit
[22:30:43] mordocai: Maybe it was early high school
[22:30:44] mordocai: ACTION shrugs
[22:30:45] yashinbasement: has joined #ruby
[22:30:48] tariqc: This is going to be annoying
[22:30:55] tariqc: I don't really even know how to phrase my question
[22:30:59] VeryBewitching: IRC has been around longer than all of the glittery web crap.
[22:31:05] EminenceHC: has joined #ruby
[22:31:12] tariqc: In a manner that can lead to me googling for the right answer
[22:31:14] tariqc: even though I tried.
[22:31:32] mordocai: Tariq_: Sounds like a routing issue to me, but I don't do sinatra
[22:31:39] VeryBewitching: Tariq_: Google for "sinatra" "Invalid URI Error"
[22:32:11] VeryBewitching: When all you have is a little information, there's only so many search terms.
[22:32:34] shevy: bery vewitching is so right
[22:32:36] phutchins: has joined #ruby
[22:32:54] VeryBewitching: BerryBewitching ?
[22:32:57] zenguy_pc: has joined #ruby
[22:33:00] tariqc: I mean, I suspect it has nothing to do with Sinatra itself
[22:33:08] tariqc: It has everything to do with the spaces in the file that I'm uploading
[22:33:18] tariqc: I don't know why that is the case
[22:33:30] VeryBewitching: If you don't have proof of it, don't speculate.
[22:33:57] shevy: I once had a weird error with sinatra
[22:34:26] shevy: I was using some other gem that was defining some top-level method which then interferred with sinatra
[22:34:48] trosborn: has joined #ruby
[22:34:49] VeryBewitching: shevy: gem reorder?
[22:34:52] bonhoeffer: has joined #ruby
[22:35:53] VeryBewitching: shevy: Just curious as to how you fixed that.
[22:36:04] shevy: ah yes, I found it; doing something like "def body"
[22:36:25] shevy: I removed the method before I was subclassing from sinatra
[22:36:32] shevy: (from that other gem's module namespace)
[22:36:49] shevy: I only required like 2% of that gem anyway
[22:37:15] BrunoSaboia: has joined #ruby
[22:37:17] shevy: and I kept on thinking that sinatra was buggy
[22:37:42] VeryBewitching: It's amusing that namespacing was likely intended to fix problems like that.
[22:37:57] Yzguy: has joined #ruby
[22:38:01] edwinvdgraaf: has joined #ruby
[22:38:36] VeryBewitching: Everything in Ruby is so maleable though, one of the things I enjoy about it.
[22:38:37] tariqc: Nobody in the Sinatra chat
[22:38:51] tariqc: both IRC and in the Slack
[22:38:55] shevy: yeah but it's always a problem with modules, when you wish to include them, and different modules define the same named method
[22:39:25] purplexed^: that's normal... ruby people like to segregate people into groups, and then realize that the groups don't actually work. Go on
[22:39:28] tariqc: VeryBewitching: I really have to try and see how to use bare words
[22:39:33] shevy: or you just don't include anything ever :D
[22:39:47] shevy: purplexed^ have you finally started to write any ruby code?
[22:39:48] VeryBewitching: shevy: Where's the fun in that? ;)
[22:39:51] tariqc: purplexed^: As in...go on in what?
[22:40:06] tariqc: Go on and ask the question here, in violation of the rules of the #ruby chatroom?
[22:40:48] mary5030: has joined #ruby
[22:41:19] hahuang65: has joined #ruby
[22:41:47] EdwardIII: what is this slack?
[22:41:59] purplexed^: it's a communication hub
[22:42:07] EminenceHC: has joined #ruby
[22:42:07] eam: EdwardIII: IRC as a service targeting corporate middware space
[22:42:15] purplexed^: like IRC, but with integration points
[22:42:20] EdwardIII: ah i've heard of platforms like this yes
[22:42:23] eam: essentially exchange / lotus notes / etc
[22:42:37] eam: but this time it's cool, not your dad's collab tools!
[22:42:43] purplexed^: yeah... you should try lotus notes... it's rerally good
[22:42:47] skweek: has joined #ruby
[22:43:35] purplexed^: as good as my wireless keyboard running out of battery
[22:43:55] purplexed^: it almost works
[22:44:01] EdwardIII: you should see my dad's collab notes
[22:44:03] EdwardIII: they're cray
[22:45:05] eam: pre or post SGI era
[22:45:10] balazs: has joined #ruby
[22:45:43] roxtrongo: has joined #ruby
[22:45:46] rdavila: has joined #ruby
[22:46:55] podman: has joined #ruby
[22:47:23] s00pcan: has joined #ruby
[22:48:40] uber: has joined #ruby
[22:50:54] tariqc: Alright, I proved that it has something to do with the spaces
[22:50:59] tariqc: Uploading a file with no spaces was a success
[22:51:02] tariqc: It's those stupid spaces
[22:51:42] lea: has joined #ruby
[22:52:58] symbol: has joined #ruby
[22:53:22] ivanskie: has joined #ruby
[22:53:50] choke: has joined #ruby
[22:55:17] jhass: well, spaces are not valid in an URI
[22:55:30] tomchapin: has joined #ruby
[22:56:15] tariqc: So I need to handle that invalid URI somehow
[22:56:28] jhass: URI.escape does some guessing I think
[22:56:37] s00pcan_: has joined #ruby
[22:56:50] tariqc: But I need to find this URI that is being invalid here
[22:57:07] tariqc: https://gist.github.com/tra38/9b7a3732527017cfd183
[22:57:17] jhass: >> require "uri"; URI("http://example.org/foo bar/baz")
[22:57:20] tariqc: Like, in that gist, the error message of the bad URI does not at all match the URIs
[22:57:22] tariqc: in the hash
[22:57:23] ruboto: jhass # => bad URI(is not URI?): http://example.org/foo bar/baz (URI::InvalidURIError) ...check link for more (https://eval.in/453592)
[22:57:24] tariqc: that it's reading from
[22:57:35] jhass: >> require "uri"; URI(URI.escape("http://example.org/foo bar/baz"))
[22:57:36] ruboto: jhass # => #<URI::HTTP http://example.org/foo%20bar/baz> (https://eval.in/453593)
[22:58:22] tariqc: So I need to find the malformed URI request
[22:58:29] GnuYawk: has joined #ruby
[22:58:54] roxtrongo: has joined #ruby
[22:59:56] EminenceHC: has joined #ruby
[23:00:05] karapetyan: has joined #ruby
[23:00:18] kies: has joined #ruby
[23:00:54] karapetyan: has joined #ruby
[23:01:58] tariqc: I am just going to use Binding.pry
[23:02:03] tariqc: and see what's actually going on
[23:02:12] tariqc: because for some reason, Sinatra won't let me put stuff to the console
[23:03:16] tenderlove: has joined #ruby
[23:04:11] kies^: has joined #ruby
[23:04:13] purplexed^: has left #ruby: ()
[23:05:06] tariqc: And Binding.pry fails to work
[23:09:12] jhass: Tariq_: time for pry-remote I guess
[23:09:29] tariqc: What i am guessing is that wherever I placed binding.pry it happened after the bad URI
[23:09:33] tariqc: so I am going to place it a little above it
[23:09:41] tariqc: and see whether I can narrow down the error message
[23:09:42] linduxed: has joined #ruby
[23:10:05] jhass: you don't get a backtrace?
[23:10:24] shinnya: has joined #ruby
[23:10:47] tariqc: I do but it's hard to read through all of it and figure out which ones are my errors
[23:10:50] tubuliferous_: has joined #ruby
[23:10:57] tariqc: and which ones is the Sinatra backend doing its thing
[23:11:10] jhass: well, just Ctrl+F for your filename
[23:12:46] tariqc: The only thing with my filename is hte error message (Invalid Parse)
[23:13:03] jhass: the :nn is the line number
[23:13:30] tenderlove: has joined #ruby
[23:13:36] tariqc: It doesn't show line number with that
[23:14:02] tariqc: InvalidURIError: bad URI(is not URI?)
[23:14:17] jhass: that's the error message, not the backtrace
[23:14:25] tariqc: Then it's not in the backtrace period
[23:14:38] tariqc: The backtrace appears to start AFTER that message
[23:14:48] jhass: post the entire thing to a gist?
[23:14:52] alcipir: has joined #ruby
[23:15:23] tariqc: https://gist.github.com/tra38/9b7a3732527017cfd183
[23:15:37] tariqc: Do you want me to edit in the long backtrace?
[23:15:39] symm-: has joined #ruby
[23:16:03] jhass: btw gist can have multiple files
[23:16:36] tariqc: I thought a gist only make sense as one file
[23:16:46] cndiv_: has joined #ruby
[23:16:54] jhass: it's good to separate things
[23:16:54] tariqc: edited in the backtrace
[23:17:02] jhass: can have syntax highlighting for code stuff
[23:17:04] bryanray: has joined #ruby
[23:17:23] tariqc: How would I be able to create seperate files then
[23:17:58] jhass: "Add file" or so, big button at the bottom
[23:18:11] jhass: anyway, /Users/tariqali/Documents/content_management_system/app/controllers/walks.rb:86:in `block in <top (required)>' is your code for sure
[23:19:25] idefine: has joined #ruby
[23:19:33] tariqc: So the problem is with saving the file
[23:19:50] tariqc: When I save it, it freaks out
[23:20:04] mrsolow: has joined #ruby
[23:21:02] tariqc: Thanks jhass for finding that
[23:21:10] tariqc: Er, am I a help vampire by any chance?
[23:21:17] tariqc: A person who asks for help needlessly?
[23:21:23] tariqc: Or is this the right type of asking for help?
[23:21:31] jhass: all is fine
[23:21:35] shmilan: has joined #ruby
[23:21:36] Yzguy: has joined #ruby
[23:21:44] jhass: we'll call you out if anything's wrong, no worries
[23:21:52] jhass: (or you'll just get ignored ;) )
[23:21:53] andersoldahl: has joined #ruby
[23:22:06] jhass: https://github.com/adelevie/parse-ruby-client/blob/master/lib/parse/datatypes.rb#L332
[23:22:20] jhass: so it's trying to build a file URI
[23:22:32] jhass: but doesn't escape the local filename properly apparently
[23:22:39] jhass: could be argued as a bug of the lib
[23:22:58] tenderlo_: has joined #ruby
[23:23:16] ledestin: has joined #ruby
[23:23:19] jhass: but you might be able to workaround with :local_filename => URI.escape(params["walk"]["audioFile"][:filename])
[23:23:22] houhoulis: has joined #ruby
[23:23:34] tariqc: Alright, let's try that
[23:24:17] jgpawletko: has joined #ruby
[23:24:33] tariqc: It works.
[23:24:36] tariqc: Thank you jhass
[23:25:11] doddok: has joined #ruby
[23:25:13] jhass: what you have learned today: include all information you have into your question, even if it looks like gibberish to you ;)
[23:25:49] Akagi201: has joined #ruby
[23:25:55] tariqc: Fair enough.
[23:26:46] tariqc: I will keep that lesson near and dear to my heart
[23:28:02] dfinninger: has joined #ruby
[23:28:48] stannard: has joined #ruby
[23:30:29] idefine: has joined #ruby
[23:30:40] idefine: has joined #ruby
[23:31:50] yfeldblum: has joined #ruby
[23:32:01] cdg: has joined #ruby
[23:32:31] tenderlove: has joined #ruby
[23:33:39] balazs: has joined #ruby
[23:34:44] hmsimha: has joined #ruby
[23:41:36] haylon: has joined #ruby
[23:42:44] tenderlove: has joined #ruby
[23:43:02] arthurix_: has joined #ruby
[23:45:14] CooloutAC: has joined #ruby
[23:45:52] CooloutAC: hello all I'm a computer noob learning ruby, I'm having trouble trying to convert strings in an array to symbols
[23:46:16] havenwood: CooloutAC: Why do you want Symbols?
[23:46:23] CooloutAC: its a lesson
[23:47:26] havenwood: &ri Array#map
[23:47:26] `derpy: http://www.rubydoc.info/stdlib/core/Array#map-instance_method
[23:47:28] CooloutAC: here is my code not sure what i'm forgetting
[23:47:44] CooloutAC: http://dpaste.com/1DYBFD0
[23:48:27] havenwood: CooloutAC: Seems `sybols` is a typo.
[23:48:56] CooloutAC: oh sorry, ya thats not the issue though I just retyped it my fault
[23:49:12] CooloutAC: its just printing the strings, but not converting them to symbols
[23:49:16] havenwood: CooloutAC: For debugging use `p` instead of `print` or `puts` so #to_s doesn't get called one whatever you're looking at.
[23:49:34] havenwood: CooloutAC: p symbols
[23:49:51] swgillespie: has joined #ruby
[23:50:36] tenzan: has joined #ruby
[23:50:39] iateadonut: has joined #ruby
[23:50:51] CooloutAC: I don't think the s.to_sym is doing anything
[23:51:17] bryanray: has joined #ruby
[23:51:28] mary5030: has joined #ruby
[23:51:38] tkuchiki: has joined #ruby
[23:51:55] tenderlo_: has joined #ruby
[23:51:56] ngscheurich: has joined #ruby
[23:52:47] CooloutAC: ya doesn't even matter if i have it there or not
[23:53:28] beauby: CooloutAC: s.to_sym is returning a symbol representation of s, it does not modify s
[23:53:58] beauby: you could do strings.map(&:to_sym)
[23:54:10] wldcordeiro: has joined #ruby
[23:54:45] CooloutAC: oh i see what I did wrong
[23:54:53] CooloutAC: its supposed to be s = s.to_sym
[23:55:18] CooloutAC: otherwise it was just totally getting ignored
[23:58:03] CooloutAC: beauby: or ya symbols.push(s.to_sym) works also
[23:58:14] haylon: Is jhass still on?
[23:59:42] jhass: who cares, I know I don't