« Back to channel list

#ruby - 19 June 2016

« Back 1 day Forward 1 day »
[00:01:44] nick_traveling: has joined #ruby
[00:06:38] tonmoy: has joined #ruby
[00:07:33] justbleed: has joined #ruby
[00:08:19] pawnbox: has joined #ruby
[00:09:11] ruby-lang856: has joined #ruby
[00:12:19] dcunit3d: has joined #ruby
[00:13:57] adgtl: has joined #ruby
[00:15:12] Lord_of_Life: has joined #ruby
[00:18:38] jhack: has joined #ruby
[00:19:10] tlaxkit: has joined #ruby
[00:21:49] coffeecupp: has joined #ruby
[00:22:53] jhack: has joined #ruby
[00:24:27] adgtl: has joined #ruby
[00:25:00] coffeecupp: has joined #ruby
[00:26:48] coffeecupp: has joined #ruby
[00:33:03] circ-user-AQzCn: has joined #ruby
[00:33:19] jenrzzz: has joined #ruby
[00:35:23] SilverKey: has joined #ruby
[00:37:46] Nuck: has joined #ruby
[00:38:12] roamingdog: has joined #ruby
[00:39:41] chouhoul_: has joined #ruby
[00:40:40] smathy: has joined #ruby
[00:40:42] houhoulis: has joined #ruby
[00:42:07] multi_io: has joined #ruby
[00:42:38] snath: has joined #ruby
[00:44:58] chipotle: has joined #ruby
[00:45:18] ur5us: has joined #ruby
[00:48:14] al2o3-cr: has joined #ruby
[00:49:43] tonmoy: has left #ruby: ("Konversation terminated!")
[00:51:02] evansbee: has joined #ruby
[00:51:25] yfeldblum: has joined #ruby
[00:52:50] Synthead: has joined #ruby
[00:52:59] karmatr0n: has joined #ruby
[00:54:43] aries_liuxueyang: has joined #ruby
[00:55:31] adgtl: has joined #ruby
[00:56:45] SilverKey: has joined #ruby
[00:56:52] houhoulis: has joined #ruby
[00:56:55] Yiota: has joined #ruby
[00:58:23] amclain: has joined #ruby
[01:02:18] lightt: has joined #ruby
[01:04:07] pawnbox: has joined #ruby
[01:04:14] moeabdol: has joined #ruby
[01:07:13] yfeldblum: has joined #ruby
[01:07:14] shevy: anyone hacking away at something fun?
[01:08:05] baweaver: shevy: some marvelous mahogany
[01:08:32] baweaver: Angular2 in actuallity
[01:09:01] charliesome: has joined #ruby
[01:09:03] AcidCrash: has joined #ruby
[01:12:46] jaguarmagenta: has joined #ruby
[01:14:01] adgtl: has joined #ruby
[01:15:07] seth: has joined #ruby
[01:16:06] coffeecupp: has joined #ruby
[01:18:36] aries_liuxueyang: has joined #ruby
[01:20:52] charliesome: has joined #ruby
[01:26:42] Lord_of_Life: has joined #ruby
[01:27:08] rickmasta: has joined #ruby
[01:27:19] Elvin: has joined #ruby
[01:27:49] SilverKey: has joined #ruby
[01:39:08] [ohjn]: has joined #ruby
[01:40:37] ledestin: has joined #ruby
[01:47:27] adgtl: has joined #ruby
[01:50:35] patrick-sartent: has joined #ruby
[01:53:12] Lord_of_Life: has joined #ruby
[01:56:22] c355E3B: has joined #ruby
[01:57:34] northfurr: has joined #ruby
[01:58:28] pilne: has joined #ruby
[01:59:56] hahuang62: has joined #ruby
[02:00:55] snath: has joined #ruby
[02:03:49] zacstewart: has joined #ruby
[02:10:42] Lord_of_Life: has joined #ruby
[02:12:30] terminalrecluse: has joined #ruby
[02:14:19] confounds: has joined #ruby
[02:14:39] minimalism: has joined #ruby
[02:16:42] pilne: has left #ruby: ("Leaving!")
[02:20:56] [ohjn]: has joined #ruby
[02:24:36] confounds: has joined #ruby
[02:28:17] [ohjn]: has joined #ruby
[02:28:34] Elvin: has joined #ruby
[02:28:48] jancel: has joined #ruby
[02:28:53] nankyokusei: has joined #ruby
[02:39:07] maloik: has joined #ruby
[02:42:35] pawnbox: has joined #ruby
[02:43:12] Lord_of_Life: has joined #ruby
[02:43:27] adgtl: has joined #ruby
[02:44:05] Synthead: has joined #ruby
[02:51:52] evansbee: has joined #ruby
[02:52:28] riceandbeans: what do you guys think of rubocop?
[02:54:27] adgtl: has joined #ruby
[02:57:44] MrBusiness: has joined #ruby
[02:57:59] shevy: it can be more than "just" a code checker
[02:58:04] shevy: via --autocorrect
[02:58:28] shevy: and if it is easy to customize to your own personal style or a project specific style, that is also good
[02:58:39] shevy: some parts of the default style guide is weird
[03:00:06] UnKnOwN|: has joined #ruby
[03:00:17] shevy: https://github.com/bbatsov/ruby-style-guide#lambda-multi-line
[03:00:42] hahuang62: has joined #ruby
[03:00:51] shevy: some options are not explained https://github.com/bbatsov/ruby-style-guide#proc
[03:03:21] shevy: https://github.com/bbatsov/ruby-style-guide#alias-method
[03:04:18] zacstewart: has joined #ruby
[03:07:50] jancel: has joined #ruby
[03:09:00] zacts: hello rubyists
[03:10:20] k3rn31: has joined #ruby
[03:11:12] Lord_of_Life: has joined #ruby
[03:11:23] northfurr: has joined #ruby
[03:13:31] jaguarmagenta: has joined #ruby
[03:19:05] CloCkWeRX: has joined #ruby
[03:21:21] jancel: has joined #ruby
[03:23:47] braincras: has joined #ruby
[03:24:30] agentmeerkat: has joined #ruby
[03:25:18] shevy: yo zacts the man
[03:27:42] Lord_of_Life: has joined #ruby
[03:28:07] nettoweb: has joined #ruby
[03:29:07] aibot: has joined #ruby
[03:30:12] patrick-sartent: has joined #ruby
[03:31:43] MrBusiness: has joined #ruby
[03:34:48] d0nn1e: has joined #ruby
[03:37:04] gix: has joined #ruby
[03:38:24] rueben: has joined #ruby
[03:39:12] Lord_of_Life: has joined #ruby
[03:39:57] adgtl: has joined #ruby
[03:42:11] jancel: has joined #ruby
[03:43:02] hk238: has joined #ruby
[03:44:27] tmtwd: has joined #ruby
[03:47:34] jancel: has joined #ruby
[03:54:05] karmatr0n: has joined #ruby
[03:55:19] wsewolod: has joined #ruby
[03:55:23] pilne: has joined #ruby
[03:55:31] AnoHito: has joined #ruby
[03:56:41] wsewolod: has joined #ruby
[03:59:17] bqscott: ACTION <3 Ruby
[03:59:38] AnoHito: has joined #ruby
[04:00:12] Lord_of_Life: has joined #ruby
[04:00:20] snath: has joined #ruby
[04:01:25] adam12: bqscott: :O
[04:01:40] duncannz: has joined #ruby
[04:01:42] equilibrium990: has joined #ruby
[04:05:16] zacstewart: has joined #ruby
[04:05:23] northfurr: has joined #ruby
[04:11:04] patrick-sartent: has joined #ruby
[04:14:29] SuperLag: has joined #ruby
[04:14:44] jancel: has joined #ruby
[04:15:06] pilne: has left #ruby: ("Leaving!")
[04:15:08] ur5us: has joined #ruby
[04:16:37] pawnbox: has joined #ruby
[04:22:49] madgen: has joined #ruby
[04:25:57] riceandbeans: shevy: can I get your opinion on a rubocop recommended correction on some code?
[04:28:21] riceandbeans: shevy: https://github.com/cburnette/boxr/blob/master/lib/boxr/folders.rb#L144
[04:28:39] riceandbeans: shevy: rubocop says result is useless and should be show as such be being prepended with _
[04:29:41] nankyokusei: has joined #ruby
[04:30:06] rkazak: has joined #ruby
[04:34:24] dudepare: has joined #ruby
[04:34:56] Chirimbolito: has joined #ruby
[04:34:59] MrBusiness2: has joined #ruby
[04:34:59] postmodern: has joined #ruby
[04:35:35] solocshaw1: has joined #ruby
[04:42:50] hahuang62: has joined #ruby
[04:43:57] adgtl: has joined #ruby
[04:46:58] shevy: huh? result is useless?
[04:47:01] shevy: but you return it there
[04:47:27] shevy: result, response = delete(uri)
[04:48:22] shevy: for response, there is a difference between response and _response that will be on the parser level, if you use the leading _ before response then ruby will not issue a warning about an unused local variable
[04:49:52] yfeldblum: has joined #ruby
[04:52:40] evansbee: has joined #ruby
[04:54:39] karmatr0n: has joined #ruby
[04:55:24] tildes: has joined #ruby
[04:57:16] jaguarmagenta: has joined #ruby
[04:58:12] Lord_of_Life: has joined #ruby
[04:58:14] MrBusiness3: has joined #ruby
[04:59:59] gking: has joined #ruby
[05:00:04] dionysus69: has joined #ruby
[05:00:11] gking: Hello, how can I parse a CSV URL with HTTParty?
[05:00:24] gking: I know how to parse JSON for instance, but not sure how to do CSV.
[05:00:55] gking: I know I can use CSV.parse too but I see that HTTParty has it built in already but not sure how to use it.
[05:01:53] gking: Or does it just auto detect the file type? It doesn't seem to always work in that case.
[05:05:53] stardiviner: has joined #ruby
[05:07:13] binaryplease1: has joined #ruby
[05:09:36] pawnbox: has joined #ruby
[05:09:37] roamingdog: has joined #ruby
[05:10:29] Hyuk: has joined #ruby
[05:10:32] roamingdog: has joined #ruby
[05:13:35] KnownSy2: has joined #ruby
[05:14:13] kgrz: has joined #ruby
[05:23:26] northfurr: has joined #ruby
[05:24:41] Beverage: has joined #ruby
[05:24:44] pwnd_nsfw`: has joined #ruby
[05:26:08] pawnbox: has joined #ruby
[05:29:21] rkazak: has joined #ruby
[05:31:46] Cohedrin_: has joined #ruby
[05:31:50] d0lph1n98: has joined #ruby
[05:34:08] Coldblackice: has joined #ruby
[05:34:26] riceandbeans: shevy: sorry I misread, response is useless
[05:35:27] jancel: has joined #ruby
[05:37:53] evansbee: has joined #ruby
[05:38:29] `tim`: has joined #ruby
[05:42:50] terminalrecluse: has joined #ruby
[05:43:49] shevy: yeah, this is where rubocop just does what the ruby parser does. to be honest, rather than using _, I wonder if in these cases it would not better to disable that warning altogether from the ruby parser side
[05:51:53] riceandbeans: shevy: also, missing top level documentation?
[05:52:00] riceandbeans: what's that mean?
[05:54:41] shevy: probably some docu header
[05:54:48] shevy: "This class will rescue kittens."
[05:55:40] karmatr0n: has joined #ruby
[05:58:15] riceandbeans: like line one should be # This class will rescue kittens
[05:59:57] riceandbeans: shevy: http://pastebin.com/E010dKLj
[05:59:59] ruby[bot]: riceandbeans: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/df40981118e5526b15468888999aa80c
[05:59:59] ruby[bot]: riceandbeans: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[06:00:06] riceandbeans: should I remove the references to self?
[06:00:16] riceandbeans: whatever ruby[bot]
[06:00:29] jackjackdripper: has joined #ruby
[06:01:04] riceandbeans: I mean, s/self.//g
[06:01:51] pawnbox: has joined #ruby
[06:03:00] kareeoleez: has joined #ruby
[06:05:21] jas02: has joined #ruby
[06:06:42] zacstewart: has joined #ruby
[06:08:22] Tempesta: has joined #ruby
[06:09:52] yardenbar: has joined #ruby
[06:10:52] wsewolod: has joined #ruby
[06:11:52] NSABear: has joined #ruby
[06:12:03] NSABear: Did ruby change the COC it uses or no
[06:12:44] riceandbeans: what are you talking about?
[06:12:54] NSABear: Ruby adopted a coc a while ago
[06:13:11] NSABear: There was a part about "reverse racism not existing"
[06:13:14] pwnd_nsfw: has joined #ruby
[06:13:31] NSABear: Did ruby end up adopting it
[06:14:18] MrBusiness: has joined #ruby
[06:14:20] northfurr: has joined #ruby
[06:15:10] NSABear: https://bugs.ruby-lang.org/issues/12004
[06:16:10] lightt: has joined #ruby
[06:16:11] baweaver: NSABear ...and?
[06:16:15] NSABear: Was it adopted?
[06:16:32] NSABear: I was checking Ubuntu's and remembered this with Ruby
[06:16:42] NSABear: I was wondering if this Toxic and abusive COC was adopted.
[06:16:50] baweaver: and there it is
[06:16:53] baweaver: !troll NSABear
[06:16:54] riceandbeans: what the hell does the skin color have to do with code?
[06:16:57] ruby[bot]: +bb NSABear!*@*$#ruby-banned *!*@70.51.155.199$#ruby-banned
[06:16:57] ruby[bot]: ruby[bot] kicked NSABear: is a bannable offense, see http://ruby-community.com/pages/user_rules
[06:17:11] riceandbeans: code is fucking code
[06:21:51] noodle: has joined #ruby
[06:23:59] baweaver: !unban NSAbear
[06:24:00] ruby[bot]: -bb NSABear!*@*$#ruby-banned *!*@70.51.155.199$#ruby-banned
[06:25:05] NSABear: has joined #ruby
[06:25:12] Nilium: What a strange person...
[06:25:23] NSABear: Nilium, Me?
[06:25:33] baweaver: #ruby-offtopic if you want to continue meta-talk
[06:26:08] futilegames: has joined #ruby
[06:27:34] tmtwd: has joined #ruby
[06:27:57] UnKnOwN|: has joined #ruby
[06:30:33] nankyokusei: has joined #ruby
[06:33:14] gogo_: has joined #ruby
[06:33:38] moeabdol: has joined #ruby
[06:34:04] gogo_: is it possible to memoize a script
[06:34:24] gogo_: script_run.rb -m 'voila'
[06:34:34] gogo_: memoize everytime it runs with voila
[06:35:43] baweaver: basically you need persistence beyond the scope of a script, and that's what a database is for.
[06:35:49] baweaver: either that or outputting files
[06:38:03] gogo_: baweaver: thanks
[06:38:11] Arcaire: lol contributor coc talk
[06:38:23] gogo_: baweaver: or firing a server?
[06:38:26] baweaver: Arcaire #ruby-offtopic
[06:38:35] Arcaire: baweaver: nah i'm not in there
[06:38:35] gogo_: so it always running in the same process
[06:38:40] Arcaire: oh you were saying go there
[06:38:45] gogo_: BackEndCoder: right?
[06:38:45] Arcaire: i'd rather not talk than go in there
[06:38:57] rippa: has joined #ruby
[06:40:33] roamingdog: has joined #ruby
[06:43:04] riceandbeans: gogo_: do you have a think against databases?
[06:43:22] Arcaire: I would too if it was for one script.
[06:43:32] c0mrad3: has joined #ruby
[06:43:37] hahuang62: has joined #ruby
[06:48:23] Arcaire: just use a json or yaml file
[06:48:27] Arcaire: you don't have to install anything
[06:48:51] gogo_: riceandbeans: yea. i don't want to use it
[06:49:02] Arcaire: gogo_: data in json or yaml, save to file
[06:49:30] gogo_: Arcaire: yup..thanks it was more about general education. i wont really do anything
[06:54:31] riceandbeans: is there a .to_s!
[06:54:41] riceandbeans: or do you have to say, foo = foo.to_s
[06:55:00] riceandbeans: it feels like there has to be a less ugly way of saying that
[06:55:18] MrBusiness2: has joined #ruby
[06:56:15] Arcaire: There's not a to_s!
[06:56:20] Arcaire: which is honestly probably a good thing
[06:56:24] Arcaire: muh immutable state university
[06:56:31] karmatr0n: has joined #ruby
[06:56:33] riceandbeans: is there a less ugly way to do that?
[06:56:37] Arcaire: what the hell, f.lux has decided it's sunset
[06:58:45] wsewolod: has joined #ruby
[07:02:54] edwardly: has joined #ruby
[07:02:54] edwardly: has joined #ruby
[07:03:45] Hanmac: riceandbeans: in ruby objects cant change their class (without evil doings)
[07:07:39] Hanmac: riceandbeans: if you use some delegator object like with https://gist.github.com/Hanmac/4619845 you can do it
[07:07:51] zacstewart: has joined #ruby
[07:08:16] firstdayonthejob: has joined #ruby
[07:14:23] UnKnOwN|: has joined #ruby
[07:17:05] pawnbox: has joined #ruby
[07:22:08] shortdudey123: has joined #ruby
[07:26:01] agentmeerkat: has joined #ruby
[07:26:59] the_drow: has joined #ruby
[07:28:11] k3rn31_: has joined #ruby
[07:32:41] vdamewood: has joined #ruby
[07:36:09] vdamewood: has joined #ruby
[07:38:15] solars: has joined #ruby
[07:39:28] vdamewood: has joined #ruby
[07:40:19] CloCkWeRX: has joined #ruby
[07:41:00] vuoto: has joined #ruby
[07:44:52] dionysus69: has joined #ruby
[07:46:27] mercerist: has joined #ruby
[07:46:32] multi_io: has joined #ruby
[07:53:06] pawnbox: has joined #ruby
[07:56:11] bluOxigen: has joined #ruby
[07:57:26] karmatr0n: has joined #ruby
[07:59:56] cajone: has joined #ruby
[08:02:29] conta: has joined #ruby
[08:05:52] tvw: has joined #ruby
[08:08:38] tildes: has joined #ruby
[08:09:18] zacstewart: has joined #ruby
[08:17:49] sauvin: has joined #ruby
[08:18:35] charliesome: has joined #ruby
[08:18:38] pontiki: has joined #ruby
[08:20:55] jas02: has joined #ruby
[08:21:41] moeabdol: has joined #ruby
[08:31:24] nankyokusei: has joined #ruby
[08:32:26] ethereon: has joined #ruby
[08:37:23] antgel: has joined #ruby
[08:39:25] apofis: has joined #ruby
[08:44:24] hahuang62: has joined #ruby
[08:56:30] SirOliver: has joined #ruby
[08:58:24] karmatr0n: has joined #ruby
[08:58:28] solars: has joined #ruby
[08:59:00] moeabdol: has joined #ruby
[09:01:07] SCHAAP137: has joined #ruby
[09:04:44] spider-mario: has joined #ruby
[09:07:55] arooni: has joined #ruby
[09:09:46] zacstewart: has joined #ruby
[09:10:32] jancel: has joined #ruby
[09:12:32] jas02: has joined #ruby
[09:16:25] coffeecupp: has joined #ruby
[09:17:10] charliesome: has joined #ruby
[09:17:50] kareeole_: has joined #ruby
[09:27:08] agentmeerkat: has joined #ruby
[09:32:27] Yiota: has joined #ruby
[09:35:03] futilegames: has joined #ruby
[09:36:30] jas02: has joined #ruby
[09:38:50] symm-: has joined #ruby
[09:39:42] schuuu: has joined #ruby
[09:41:02] sdothum: has joined #ruby
[09:41:24] evansbee: has joined #ruby
[09:52:19] skade: has joined #ruby
[09:53:19] SirOliver: has joined #ruby
[09:54:03] MrBusiness: has joined #ruby
[09:55:29] araujo_: has joined #ruby
[09:57:47] araujo_: has joined #ruby
[09:58:28] SCHAAP137: has joined #ruby
[09:59:18] tildes: has joined #ruby
[09:59:20] karmatr0n: has joined #ruby
[09:59:45] webus: has joined #ruby
[10:02:24] araujo_: has joined #ruby
[10:07:17] startupality: has joined #ruby
[10:11:25] zacstewart: has joined #ruby
[10:11:39] skade: has joined #ruby
[10:11:48] yeticry: has joined #ruby
[10:15:23] kirun: has joined #ruby
[10:17:19] mercerist: has joined #ruby
[10:19:26] coffeecupp: has joined #ruby
[10:25:16] chip_: has joined #ruby
[10:27:32] harfangk: has joined #ruby
[10:28:09] pawnbox: has joined #ruby
[10:30:43] phrozen77: has joined #ruby
[10:32:19] nankyokusei: has joined #ruby
[10:34:17] SirOliver: has joined #ruby
[10:36:49] jaguarmagenta: has joined #ruby
[10:38:11] bkxd: has joined #ruby
[10:45:06] hahuang62: has joined #ruby
[10:46:53] nankyokusei: has joined #ruby
[10:56:00] charliesome: has joined #ruby
[10:57:08] startupality: has joined #ruby
[10:57:44] slackbotgz: has joined #ruby
[10:58:40] jancel: has joined #ruby
[11:00:13] karmatr0n: has joined #ruby
[11:03:09] charliesome: has joined #ruby
[11:11:42] zacstewart: has joined #ruby
[11:12:23] biberu: has joined #ruby
[11:26:03] MrBusiness: has joined #ruby
[11:26:50] pwnd_nsfw`: has joined #ruby
[11:27:00] the_drow: Is GC profiling still slow on Ruby 2.2 or 2.3?
[11:27:07] the_drow: I read that it was slow in 1.9.3
[11:28:35] someish: has joined #ruby
[11:29:55] shinnya: has joined #ruby
[11:32:23] DoubleMalt: has joined #ruby
[11:33:21] marr: has joined #ruby
[11:36:29] Nuck: has joined #ruby
[11:38:08] Fernando-Basso: has joined #ruby
[11:39:19] SCHAAP137: has joined #ruby
[11:39:51] Robtop__: has joined #ruby
[11:42:08] evansbee: has joined #ruby
[11:44:39] mimtf: has joined #ruby
[11:44:54] mimtf: has joined #ruby
[11:45:52] hahuang62: has joined #ruby
[11:51:04] Hanmac: has joined #ruby
[11:55:09] mimtf: what is fast way to learn ruby?
[12:01:15] karmatr0n: has joined #ruby
[12:02:13] Yiota: has joined #ruby
[12:04:25] sdothum: has joined #ruby
[12:05:55] dcunit3d: has joined #ruby
[12:08:19] bkxd: has joined #ruby
[12:08:28] rht: has joined #ruby
[12:08:39] yardenbar: has joined #ruby
[12:11:15] the_drow: has joined #ruby
[12:11:53] d0lph1n98: has joined #ruby
[12:12:34] zacstewart: has joined #ruby
[12:14:30] c355E3B: has joined #ruby
[12:16:17] Hanmac: mimtf: depends, do you already have experimence with other programming languages?
[12:17:49] salexa: has joined #ruby
[12:21:06] rht: has joined #ruby
[12:21:22] mimtf: i don’t know other programming language yet.
[12:21:43] dcunit3d: has joined #ruby
[12:21:48] apofis: has joined #ruby
[12:23:01] Hanmac: mimtf: i think for the first look that would be useful: https://www.ruby-lang.org/en/documentation/quickstart/ or that http://tryruby.org/
[12:23:14] Hanmac: the last one is interactive and works in the browser
[12:23:22] dionysus69: has joined #ruby
[12:23:24] SirOliver: has joined #ruby
[12:23:47] marahin: Has anyone used https://github.com/JEG2/highline ? I'm wondering if it's possible to show in realtime how many characters has the user provided to the input
[12:24:05] mimtf: thanks hanmac
[12:24:17] marahin: E.g. twitter-like behavior: user fills in a post, and while typing it shows how many characters he used
[12:25:44] blaxter: has joined #ruby
[12:27:10] TomyLobo: has joined #ruby
[12:29:17] mimtf: there is a ruby lecture? hanmac
[12:30:41] Hanmac: mimtf: there are other stuff in getting started: https://www.ruby-lang.org/en/documentation/ like "Why’s (Poignant) Guide to Ruby"
[12:37:33] jaguarmagenta: has joined #ruby
[12:39:44] rkoller: has joined #ruby
[12:40:48] toretore: has joined #ruby
[12:41:27] TimXpro: has joined #ruby
[12:45:21] rht: has joined #ruby
[12:46:38] hahuang62: has joined #ruby
[12:48:31] johnny56: has joined #ruby
[12:52:20] tildes: has joined #ruby
[12:54:03] blackmesa: has joined #ruby
[12:55:40] SirOliver: has joined #ruby
[13:02:12] karmatr0n: has joined #ruby
[13:04:17] harfangk: has joined #ruby
[13:09:03] bkxd: has joined #ruby
[13:10:22] al2o3-cr: has joined #ruby
[13:11:55] mercerist: has joined #ruby
[13:11:55] Xeago: has joined #ruby
[13:13:37] zacstewart: has joined #ruby
[13:17:47] Oclair: has joined #ruby
[13:18:31] Azure: has joined #ruby
[13:20:15] craigp: has joined #ruby
[13:22:15] mercerist: has joined #ruby
[13:22:34] mercerist: has joined #ruby
[13:23:10] DoubleMalt: has joined #ruby
[13:26:59] the_drow: has joined #ruby
[13:28:29] agentmeerkat: has joined #ruby
[13:30:57] User458764: has joined #ruby
[13:31:10] nick_traveling: has joined #ruby
[13:39:34] aryaching: has joined #ruby
[13:40:49] madgen: has joined #ruby
[13:42:05] jgt: has joined #ruby
[13:42:53] evansbee: has joined #ruby
[13:43:10] mercerist: has joined #ruby
[13:43:20] mdw: has joined #ruby
[13:44:20] bttf: has joined #ruby
[13:46:03] harfangk: has joined #ruby
[13:46:27] chicken: has joined #ruby
[13:47:21] hahuang62: has joined #ruby
[13:47:38] mello: has joined #ruby
[13:48:48] sandelius: has joined #ruby
[13:50:48] codecop: has joined #ruby
[13:51:25] pawnbox: has joined #ruby
[13:55:21] mercerist: has joined #ruby
[13:56:15] blackmesa: has joined #ruby
[13:57:15] SirOliver: has joined #ruby
[13:58:38] AlexRussia: has joined #ruby
[13:59:11] apofis: has joined #ruby
[13:59:18] nankyokusei: has joined #ruby
[13:59:47] last_staff: has joined #ruby
[14:03:04] karmatr0n: has joined #ruby
[14:09:44] karmatr0n: has joined #ruby
[14:10:07] johnmilton: has joined #ruby
[14:14:25] zacstewart: has joined #ruby
[14:15:36] tsikov: has joined #ruby
[14:20:00] MrBusiness: has joined #ruby
[14:22:49] madgen: has joined #ruby
[14:24:04] imperator: has joined #ruby
[14:26:23] SirOliver: has joined #ruby
[14:29:11] blackmesa: has joined #ruby
[14:29:47] johnmilton: has joined #ruby
[14:29:54] shevy: http://moonscript.org/
[14:30:03] shevy: looks like everyone has a simple-to-self-language compiler
[14:30:26] mercerist: has joined #ruby
[14:34:57] jancel: has joined #ruby
[14:35:30] zacstewart: has joined #ruby
[14:38:19] jaguarmagenta: has joined #ruby
[14:41:58] safe: has joined #ruby
[14:42:37] bkxd: has joined #ruby
[14:43:05] DarthGandalf: has joined #ruby
[14:45:35] jas02: has joined #ruby
[14:46:02] CloCkWeRX: has joined #ruby
[14:46:17] terminalrecluse: has joined #ruby
[14:47:24] hutch34: has joined #ruby
[14:48:06] hahuang62: has joined #ruby
[14:50:36] salexa: has left #ruby: ("PART #diaspora :PART #gnu :PART #wordpress :PART #RubyOnRails :PART #fsf :QUIT :Leaving.")
[14:55:00] vuoto: has joined #ruby
[14:56:24] k3rn31: has joined #ruby
[14:56:38] GodFather: has joined #ruby
[15:01:26] jancel: has joined #ruby
[15:04:57] Meow-J: has joined #ruby
[15:06:49] harfangk: has joined #ruby
[15:08:27] jancel: has joined #ruby
[15:09:56] vuoto: has joined #ruby
[15:11:03] NSABear: has joined #ruby
[15:12:45] ferr: has joined #ruby
[15:13:41] bluOxigen: has joined #ruby
[15:17:30] futilegames: has joined #ruby
[15:19:03] manveru: looks like moonscript compiles to lua, not to self ;)
[15:20:26] mdw: has joined #ruby
[15:22:28] tildes: has joined #ruby
[15:26:06] hk238: has joined #ruby
[15:26:46] howdoi: has joined #ruby
[15:32:51] salexa: has joined #ruby
[15:34:15] ocbtec: has joined #ruby
[15:38:30] nicoulaj: has joined #ruby
[15:43:35] solocshaw: has joined #ruby
[15:43:42] evansbee: has joined #ruby
[15:44:51] fujinuma: has joined #ruby
[15:44:54] solocshaw1: has joined #ruby
[15:45:16] fujinuma: why I get uninitialized constant Person::Subscription error in this code? http://vpaste.net/flRXc
[15:47:19] fujinuma: I can't instantiate a class without constructor?
[15:47:48] jaguarmagenta: has joined #ruby
[15:48:48] schuuu: has joined #ruby
[15:48:52] hahuang62: has joined #ruby
[15:49:10] nanoz: has joined #ruby
[15:50:13] giz|work: has joined #ruby
[15:50:17] jhass: fujinuma: because class Subsription != class Subscription
[15:51:09] fujinuma: jhass: thanks
[15:51:17] DadoCe: has joined #ruby
[15:51:23] fujinuma: jhass: what a hidden typo :D
[15:51:25] d0nn1e: has joined #ruby
[15:53:40] solocshaw1: has joined #ruby
[15:57:10] dcunit3d: has joined #ruby
[15:57:45] shevy: in ruby you need good eyesight!
[15:58:48] aryaching: has joined #ruby
[16:00:24] nankyokusei: has joined #ruby
[16:00:46] al2o3-cr: has joined #ruby
[16:01:05] shevy: perhaps the did you mean gem will help there, it already has some support for it: https://github.com/yuki24/did_you_mean#displaying-a-warning-when-initialize-is-incorrectly-typed
[16:03:11] karmatr0n: has joined #ruby
[16:04:49] mimtf: Apparently all Mobile Internet Service Providers (ISP) block any kind of incoming connections. So, no matter which port I want to forward it will be blocked by the ISP. (connection requests will never reach the router).
[16:05:08] shevy: down with dictators! freedom for data!!!
[16:05:31] solocshaw1: has joined #ruby
[16:09:55] jancel: has joined #ruby
[16:12:22] fujinuma: shevy: elm has the gem feature built-in.
[16:12:35] fujinuma: shevy: that's cool.
[16:12:51] Cohedrin: has joined #ruby
[16:16:09] miqlas-H: has joined #ruby
[16:17:08] fenre: has joined #ruby
[16:18:34] riceandbeans: if you do foo = get(uri) instead of foo, response = get(uri) what would happen?
[16:19:02] aryaching: has joined #ruby
[16:20:40] shevy: the world will collapse
[16:20:59] shevy: it depends on what get() returns to you obviously
[16:21:01] shevy: so what does it return?
[16:21:08] banister: has joined #ruby
[16:21:41] jancel: has joined #ruby
[16:21:53] jhass: riceandbeans: what will happen is that if get returns an array, its first two values will end up in foo and response, if it doesn't response will always be nil
[16:21:58] shevy: if it returns an array you will get: a, *bcd = %w( a b c d ) # => ["a", "b", "c", "d"]; a # => "a"; bcd # => ["b", "c", "d"]
[16:22:06] shevy: if you use the *
[16:24:04] Gasher^: has joined #ruby
[16:25:17] jgt: has joined #ruby
[16:28:31] rueben: has joined #ruby
[16:32:59] riceandbeans: so it is sort of necessary to use it in order to keep unwanted data out of another variable
[16:33:06] jancel: has joined #ruby
[16:36:24] pwnd_nsfw: has joined #ruby
[16:36:53] jhass: it's not different from a = call; b = a[0]; c = a[1]
[16:37:57] banister: has joined #ruby
[16:38:20] smathy: has joined #ruby
[16:38:55] GodFather: has joined #ruby
[16:39:33] jhack: has joined #ruby
[16:42:34] jaguarmagenta: has joined #ruby
[16:43:05] moeabdol: has joined #ruby
[16:43:27] blaxter: has joined #ruby
[16:45:00] the_drow: has joined #ruby
[16:47:30] evansbee: has joined #ruby
[16:49:02] pwnd_nsfw`: has joined #ruby
[16:49:37] hahuang62: has joined #ruby
[16:51:17] rkazak: has joined #ruby
[16:52:36] blaxter: has joined #ruby
[16:53:00] dionysus69: has joined #ruby
[16:54:49] johnmilton: has joined #ruby
[16:58:35] DoubleMalt: has joined #ruby
[16:58:45] diegoviola: has joined #ruby
[16:59:42] jokke: hey, about rack middleware: i want to write a middleware for my sinatra app that just parses some headers and adds stuff to env. how can i do this without actually handling the whole request?
[17:01:19] jhass: what do you mean handling the whole request?
[17:02:00] pawnbox: has joined #ruby
[17:03:15] smathy: jokke, might be better to ask in #rubyonrails
[17:03:55] karmatr0n: has joined #ruby
[17:04:05] blaxter: has joined #ruby
[17:04:29] amclain: has joined #ruby
[17:05:09] jhass: not sure how rack is rails specific ...
[17:11:20] imperator: has joined #ruby
[17:11:24] romistrub: has joined #ruby
[17:11:57] llua: has left #ruby: ()
[17:11:59] llua: has joined #ruby
[17:12:24] romistrub: I have a couple of classes that are namespaced by a module (the module is included using 'require'). How should I name the files that contain, for example, Framework::WebSocket
[17:13:34] jhass: romistrub: http://guides.rubygems.org/name-your-gem/
[17:14:58] romistrub: sweet, thanks jhass
[17:16:16] Weavel: has joined #ruby
[17:16:29] romistrub: waaaaiiiit... does that mean I have to create subdirectories for each module? :|
[17:17:07] jhack: has joined #ruby
[17:17:08] shevy: riceandbeans well you are in full control of what data to use and what not; even if you don't put it all in one line, you can use methods on class Array or class Hash to .select or .reject what you want and don't want
[17:17:56] jhass: romistrub: yes
[17:18:04] jhass: well, no, only if you use it as namespace
[17:18:55] imperator: has joined #ruby
[17:19:54] riceandbeans: shevy: if you only want to keep the first element of the array is it cleaner to do arr1, arr2 = whatever, or to do arr1 = whatever and then chop off everything but the first element?
[17:20:32] adaedra: riceandbeans: use Array#shift
[17:20:34] dcunit3d: has joined #ruby
[17:21:53] jhass: arr1 = whatever.shift specifically
[17:23:56] the_drow: has joined #ruby
[17:24:08] dionysus69: has joined #ruby
[17:24:09] phoo1234567: has joined #ruby
[17:24:29] toretore: has joined #ruby
[17:25:14] spudowiar: It's weird though
[17:25:31] spudowiar: I've got this method in Jekyll, which isn't working at all
[17:26:06] shevy: riceandbeans I think using methods like the above .shift will be the best, I found that in complex setups, my brain takes longer to process so I try to go for minimal complexity and maximal elegance whenever possible
[17:27:58] spudowiar: The method is just `def obsolete_files (existing_files - new_files - new_dirs + replaced_files).to_a end`
[17:28:05] spudowiar: And all the methods it calls are fine
[17:28:15] spudowiar: But it's returning a blank array
[17:28:58] spudowiar: When I put `puts` before it, it prints the correct stuff
[17:29:36] shevy: best to put the full reproducible code onto a pastie site
[17:29:45] agentmeerkat: has joined #ruby
[17:30:14] spudowiar: It's part of a complex project
[17:30:20] spudowiar: Trying to reproduce it externally
[17:30:48] the_drow: has joined #ruby
[17:31:40] dionysus69: has joined #ruby
[17:31:42] tildes: has joined #ruby
[17:32:00] skade: has joined #ruby
[17:33:01] snath: has joined #ruby
[17:34:31] SirOliver: has joined #ruby
[17:35:17] dasher00: has joined #ruby
[17:35:20] Some-body_: has joined #ruby
[17:35:47] yfeldblum: has joined #ruby
[17:38:13] fujinuma: has joined #ruby
[17:38:37] fujinuma: setup() method only triggers when test_* methods are defined
[17:39:25] nankyokusei: has joined #ruby
[17:40:06] the_drow: has joined #ruby
[17:40:15] fujinuma: how to run setup() method without test_* methods? kind of testing if it correctly instantiates.
[17:40:31] fujinuma: ACTION means minitest framework
[17:41:18] ljarvis: fujinuma: how would you test that without first adding a test_* method?
[17:43:21] fujinuma: ljarvis: reasonably setup() should trigger without test_* methods its existence is to be instantiate class object.
[17:43:26] iCHAIT_: has joined #ruby
[17:43:55] iCHAIT_: Hello guys.
[17:44:16] iCHAIT_: CAn someone give me some pointers on how to port this python method - http://dpaste.com/0R06VW4
[17:44:28] iCHAIT_: It is using patch decorator.
[17:44:29] ljarvis: fujinuma: no, it's existence is based on triggering before a test_* method is called
[17:44:33] k3rn31: has joined #ruby
[17:44:38] jhass: someone or some guy specifically?
[17:44:49] adaedra: iCHAIT_: simple. Look at what the method does, throw away the python code, code it in Ruby.
[17:44:57] iCHAIT_: I am using the mocha library for mocking.
[17:45:13] ljarvis: iCHAIT_: Yes, what do you have so far?
[17:45:29] someish: has joined #ruby
[17:45:40] fujinuma: ljarvis: OK, I think I got it wrong. that's fair enough :)
[17:45:54] symm-: has joined #ruby
[17:46:13] iCHAIT_: http://dpaste.com/1BWSV75
[17:46:24] iCHAIT_: ljarvis: ^ this is what I have.
[17:46:42] iCHAIT_: BUt I don't think that is the correct ruby interpretation for the python code.
[17:46:46] ljarvis: iCHAIT_: ok, what's working and what's not working?
[17:46:56] ljarvis: it looks ok to me at a glance
[17:47:22] iCHAIT_: ljarvis: This particular test passes, but doesn't do what it is supposed to do.
[17:47:30] iCHAIT_: What I want to test is
[17:47:45] iCHAIT_: That create_or_update func was called with correct parameters.
[17:48:05] iCHAIT_: SO I want to know a way by which I don't have to call a func, but can still use its object.
[17:48:28] iCHAIT_: ^ That is essentially what the @patch stuff is doing in that python code.
[17:49:14] iCHAIT_: So I want to use the object of that func in my ruby code without actually making a call to it.
[17:49:24] iCHAIT_: Does that makes sense?
[17:49:33] ljarvis: are you sure this exact code passes? because I can spot a couple of issues that should mean it breaks altogether
[17:49:50] iCHAIT_: ljarvis: I can confirm that it passes :/
[17:50:02] ljarvis: weird, do you instantiate @ts somewhere else?
[17:50:06] ljarvis: because ts != @ts
[17:50:07] madgen: has joined #ruby
[17:50:13] ljarvis: so I expected @ts.create_time to blow up
[17:50:22] hahuang62: has joined #ruby
[17:50:24] iCHAIT_: ljarvis: That is a copy paste error.
[17:50:29] iCHAIT_: Please ignore that.
[17:50:32] ljarvis: so this isn't the code? :)
[17:50:34] iCHAIT_: Sorry for that.
[17:50:53] iCHAIT_: Okay, let me dpaste the exact original stuff.
[17:51:38] iCHAIT_: http://dpaste.com/1YSKDMV
[17:51:43] iCHAIT_: ^ python method
[17:51:57] aryaching_: has joined #ruby
[17:52:04] ljarvis: anyway, you can't do exactly what you want because Ruby doesn't have first-class functions/methods like Python does (which allows you to inject methods as mocks, I think)
[17:52:13] spudowiar: Can you return an array that you instantiated in a method, from a method in Ruby
[17:52:18] iCHAIT_: http://dpaste.com/1P5FEFZ
[17:52:21] iCHAIT_: ^ ruby port
[17:52:26] ljarvis: so I would probably avoid mocking this and test it fully. I don't see a reason for the mock myself
[17:52:35] jhass: ?try spudowiar
[17:52:35] ruby[bot]: spudowiar: Why don't you try it and see for yourself?
[17:52:36] ljarvis: spudowiar: did you try it?
[17:52:51] spudowiar: jhass: I'm having serious problems with some code, wondering if that's why
[17:52:59] ruby[bot]: it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
[17:53:09] spudowiar: jhass: it's not code I wrote myself, it's part of Ruby
[17:53:16] jhass: still applies
[17:53:37] spudowiar: jhass: basically, I have an array and inside the method it's fine, when I return it the caller sees an empty array
[17:53:49] ruby[bot]: We can't help you without your code, please post it to https://gist.github.com
[17:54:03] spudowiar: ljarvis: the only line of code in the method is "(existing_files - new_files - new_dirs + replaced_files).to_a"
[17:54:08] spudowiar: ljarvis: I can link to the code if you wish
[17:54:34] spudowiar: https://github.com/jekyll/jekyll/blob/master/lib/jekyll/cleaner.rb#L25
[17:54:35] ljarvis: did you manage to reproduce on a smaller scale?
[17:54:40] spudowiar: no, sadly not
[17:54:58] ljarvis: well, that code there isn't probably not broken. So I'd start looking a bit further up the chain
[17:55:08] spudowiar: it really is
[17:55:33] Sashimi: has joined #ruby
[17:55:37] spudowiar: replacing it with "a = (existing_files - new_files - new_dirs + replaced_files).to_a; puts a; return a" prints the correct stuff
[17:55:43] spudowiar: but it stills returns an empty array
[17:56:01] jhass: I'm afraid your testing is flawed
[17:56:04] dionysus70: has joined #ruby
[17:56:06] ljarvis: that's impossible, so I suspect something else is flawed
[17:56:23] jhass: you're probably not calling the method you think you are
[17:56:29] spudowiar: jhass: I am...
[17:56:32] spudowiar: it's the same method
[17:56:51] spudowiar: it's being called from https://github.com/jekyll/jekyll/blob/master/lib/jekyll/cleaner.rb#L15
[17:56:56] spudowiar: I tried `p obsolete_files`
[17:57:00] spudowiar: and that prints `[]`
[17:57:10] spudowiar: even though `p a` in obsolete_files printed `[]`
[17:57:19] spudowiar: even though `p a` in obsolete_files printed `["path/to/file"]`
[17:57:44] the_drow: has joined #ruby
[17:57:55] jhass: show the _exact code_ with 5 lines of context in each direction you used to prove that obsolete_files is empty
[17:58:23] spudowiar: ok, just a second
[17:58:48] jhass: before showing it rerun you test too to verify it does actually still reprodue
[17:59:28] rdark: has joined #ruby
[17:59:28] rdark: has joined #ruby
[17:59:37] spudowiar: I'VE BEEN MONKEY PATCHED
[18:00:01] spudowiar: I tried doing `return 1` and I got a stack trace from some other random thing :)
[18:00:32] jhass: iCHAIT_: http://gofreerange.com/mocha/docs/Mocha/Expectation.html#with-instance_method
[18:00:53] spudowiar: jhass, ljarvis: sorry for wasting your time
[18:01:02] spudowiar: I always seem to waste people's time on #ruby
[18:01:07] spudowiar: I shouldn't be on IRC :(
[18:01:13] spudowiar: I'm just a PITA
[18:01:35] jhass: no worries
[18:01:38] ljarvis: spudowiar: I'm mostly distracted by your love for hitting enter after every couple of words :)
[18:01:49] spudowiar: I'm too immature too
[18:02:08] jancel: has joined #ruby
[18:02:12] ljarvis: well, the important thing is you're learning
[18:02:28] iCHAIT_: jhass: Thanks a lot, I think that is exactly what I want.
[18:04:00] spudowiar: ljarvis: yeah, but I'm wasting everyone else's time
[18:04:14] spudowiar: And it's not fair on everyone else, just because I'm too stupid and immature :(
[18:04:31] iCHAIT_: jhass: http://dpaste.com/2DBAM71
[18:04:37] rkoller: has joined #ruby
[18:04:39] iCHAIT_: Does that looks correct?
[18:04:47] karmatr0n: has joined #ruby
[18:04:49] iCHAIT_: It passes :)
[18:04:57] iCHAIT_: ^ /cc ljarvis
[18:05:12] jhass: iCHAIT_: no
[18:05:22] jhass: weird it shouldn't pass
[18:05:22] spudowiar: iCHAIT_: but the real question is if you can make it fail!
[18:05:31] jhass: ^ try to make it fail
[18:05:37] jhass: then you'll know it's working
[18:05:48] spudowiar: Wow, I didn't say a dumb thing
[18:05:57] ljarvis: why wouldn't it fail?
[18:06:29] iCHAIT_: Okay, I tried to make it fail, and it failed.
[18:06:44] ljarvis: it looks ok to me, but absolutely pointless :)
[18:07:47] pawnbox: has joined #ruby
[18:09:02] conta: has joined #ruby
[18:09:09] Sashimi_: has joined #ruby
[18:09:41] jhass: iCHAIT_: well time is unusued now then
[18:10:04] jhass: and you only call stuff on your mock
[18:10:08] jhass: so yeah, really pointless
[18:10:58] JammyHammy: has joined #ruby
[18:11:18] yesthatallen: has joined #ruby
[18:11:21] yesthatallen: i'm still looking to speed up ruby installs.. is there a way to ./configure --without-test or the like?
[18:11:30] tmtwd: has joined #ruby
[18:12:05] yesthatallen: I got --disable-install-{doc,rdoc,capi} from my last series of searching
[18:12:08] yesthatallen: that was cool
[18:12:12] fullstack: has joined #ruby
[18:12:40] iCHAIT_: jhass: Yeah, that's what I am thinking.
[18:12:44] shevy: are there tests run?
[18:12:44] yesthatallen: but in a place where I'm compiling ruby for use to run an app, never development, I can't help but wonder what could be skipped
[18:12:51] iCHAIT_: Now create_time is left unused.
[18:13:11] ljarvis: iCHAIT_: out of curiosity, why are you using mocks?
[18:13:20] iCHAIT_: BTW, create_time implictly does that make any difference?
[18:13:52] iCHAIT_: *implictly calls create_time
[18:14:46] iCHAIT_: ljarvis: Because I just want to have an object of the function and not actually use it.
[18:14:54] ljarvis: iCHAIT_: why?
[18:15:03] the_drow: has joined #ruby
[18:15:05] ljarvis: if you're not actually using it, you're not actually testing it
[18:17:00] mimtf: has left #ruby: ()
[18:17:15] iCHAIT_: ljarvis: I just want to test the method create_or_update gets called with the correct parameters.
[18:17:35] iCHAIT_: I am not concerned if that func. returns the desired value or not.
[18:17:46] ljarvis: iCHAIT_: right, but surely you can test that by checking the object that create_or_update returns (or what it mutates)
[18:18:46] ljarvis: e.g. something like https://gist.github.com/leejarvis/619642ae94919b021a7ab83b4d3867c1
[18:19:08] ljarvis: but perhaps im missing something and don't understand
[18:19:28] Lewix: Is there something equivalent to unshift that does not modify the value in place
[18:19:29] ljarvis: also I generally dislike mocks because they're overused and they introduce misdirection
[18:20:08] ljarvis: Lewix: foo = [1] + foo
[18:20:12] jhass: Lewix: [value, *array]
[18:20:23] Lewix: so the answer is no
[18:20:41] iCHAIT_: ljarvis: Okay, that looks interesting, BTW, what you mentioned is exactly what the @patch in the python code is doing, it creates an object for the func. create_or_update, stores the result in the arg. mock_create_or_update and then asserts.
[18:21:07] Lewix: ljarvis: you can always implement anything it doesn't mean it's provided by default
[18:21:20] Dimik: has joined #ruby
[18:21:23] ljarvis: Lewix: that is provided by default, we didn't import any libraries
[18:21:28] ljarvis: Lewix: what do you want exactly?
[18:21:55] ljarvis: do you want a *method* that does something equivalent? because you didn't say that
[18:22:07] jhass: Lewix: [value, *array] is hardly any longer/verbose than array.unshift(value)
[18:22:10] iCHAIT_: ljarvis: I didn't understand this line in the gist - assert_equal "omg", time.something
[18:22:19] Lewix: there isn't a method similar to unshift in the standard library that effectively does what #unshift do but does not modify the value in place. correct?
[18:22:29] ljarvis: iCHAIT_: it just asserts that time.something == "omg"
[18:22:34] ljarvis: Lewix: correct
[18:22:57] jhass: Lewix: and the reason is that we have efficient and short syntax to do it
[18:24:07] blackmesa: has joined #ruby
[18:24:51] shinnya: has joined #ruby
[18:26:09] iCHAIT_: ljarvis: ok, so you are suggesting to do it without mocking, right?
[18:26:12] arlek: has joined #ruby
[18:26:58] ljarvis: iCHAIT_: I am, mocking is useful for some things, but nothing has yet demonstrated that it would be useful for what you're doing
[18:27:30] iCHAIT_: ljarvis: okay, thank you.
[18:27:36] ljarvis: I need to run, bbl
[18:27:55] wixad_: has joined #ruby
[18:30:30] codecop: has joined #ruby
[18:31:12] rkazak: has joined #ruby
[18:32:42] wixad_: im doing the ruby quiz LCD Numbers(#14)
[18:32:43] mercerist: has joined #ruby
[18:33:07] mtkd: has joined #ruby
[18:34:06] certainty: has joined #ruby
[18:34:22] wixad_: in Dale Martenson's solution he uses state = @@lcdStates.reverse
[18:34:52] banister: has joined #ruby
[18:34:53] wixad_: why does he use the reverse method
[18:35:18] jhass: link so we don't have to google?
[18:35:25] kareeole_: has joined #ruby
[18:36:10] wixad_: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/125869
[18:37:59] manveru: seems pretty unnecessary, he could've just written it in reverse instead
[18:38:06] Xiti: has joined #ruby
[18:38:31] manveru: as it is now, it's more of an alias to .dup
[18:38:33] JammyHammy: has joined #ruby
[18:38:33] jhass: actually he could just have used each_with_index instead
[18:39:07] manveru: well, it's 2005 style ruby :)
[18:39:17] manveru: there was no each_with_index
[18:39:27] shevy: wixad_ must be a historian
[18:39:31] pilne: has joined #ruby
[18:39:38] KnownSyntax: has joined #ruby
[18:39:38] KnownSyntax: has joined #ruby
[18:39:53] shevy: people were still excited about @@vars
[18:40:04] zacstewa1t: has joined #ruby
[18:40:41] p0p0pr37_: has joined #ruby
[18:40:46] jas02_: has joined #ruby
[18:40:47] wixad_: what is the reverse method suposed to solve
[18:40:58] flak: has joined #ruby
[18:41:01] manveru: it gives you a reversed copy of the array
[18:41:04] Regulati_: has joined #ruby
[18:41:05] dn`_: has joined #ruby
[18:41:13] manveru: so you can call pop on it
[18:41:30] manveru: otherwise you could call .dup and then use .unshift
[18:42:05] Nahra`: has joined #ruby
[18:42:21] DoubleMalt: has joined #ruby
[18:42:34] yosafbridge`: has joined #ruby
[18:42:44] ijij__: has joined #ruby
[18:42:48] jhack: has joined #ruby
[18:42:49] jpinnix________: has joined #ruby
[18:43:10] meinside_: has joined #ruby
[18:43:20] deepak__: has joined #ruby
[18:43:26] HashNuke___: has joined #ruby
[18:43:28] ec\: has joined #ruby
[18:43:46] andersh_: has joined #ruby
[18:43:55] Meow-J_: has joined #ruby
[18:43:57] charles81_: has joined #ruby
[18:44:04] bcavileer_: has joined #ruby
[18:44:32] Jamo_: has joined #ruby
[18:44:51] shiver_: has joined #ruby
[18:44:54] jzigmund_: has joined #ruby
[18:44:54] bradland: has joined #ruby
[18:44:59] darix-: has joined #ruby
[18:45:00] Drakx: has joined #ruby
[18:45:02] sunya7a: has joined #ruby
[18:45:06] tommylom1ykins: has joined #ruby
[18:45:07] galeido^: has joined #ruby
[18:45:14] Weavel_: has joined #ruby
[18:45:20] majuscul1: has joined #ruby
[18:45:24] bfrizzle_: has joined #ruby
[18:45:40] shiver_: has joined #ruby
[18:46:17] houhoulis: has joined #ruby
[18:47:13] shiver: has joined #ruby
[18:47:44] jaguarmagenta: has joined #ruby
[18:48:24] tekk: has joined #ruby
[18:48:25] spacemud_: has joined #ruby
[18:48:26] tekmaster: has joined #ruby
[18:48:27] tcrypt: has joined #ruby
[18:48:28] Arcaire_: has joined #ruby
[18:48:29] mayamai: has joined #ruby
[18:48:30] twe4ked_: has joined #ruby
[18:48:31] M-Kodo1: has joined #ruby
[18:48:33] Lightsword_: has joined #ruby
[18:48:34] jhass|off: has joined #ruby
[18:48:35] jyaworski_: has joined #ruby
[18:48:35] headius_: has joined #ruby
[18:48:39] DiabolikFreenode: has joined #ruby
[18:48:52] iooner-: has joined #ruby
[18:48:52] bgresham: has joined #ruby
[18:48:55] moufl-: has joined #ruby
[18:49:00] Mweshi: has joined #ruby
[18:49:04] RazorX-: has joined #ruby
[18:49:55] Fire-Dragon-DoL-: has joined #ruby
[18:49:56] bodie__: has joined #ruby
[18:50:20] davidmichaelkarr: has joined #ruby
[18:50:26] eggoez: has joined #ruby
[18:51:07] hahuang62: has joined #ruby
[18:51:07] Pisuke: has joined #ruby
[18:51:29] banister: has joined #ruby
[18:52:29] Log1x: has joined #ruby
[18:53:17] jhass: wixad_: so my connection dropped and most of what I said didn't come through. .dup and .shift is the most analogous technique, these days you'd use each_with_index, more alternatives are just using @@lcdStates[i] or .each and keeping a manual counter
[18:53:55] Billias: has joined #ruby
[18:54:54] wixad_: thx@jhass
[18:55:50] BTRE: has joined #ruby
[18:56:05] rapha: has joined #ruby
[18:56:22] YaknotiS: has joined #ruby
[18:56:24] bjmllr: has joined #ruby
[18:56:33] jokester: has joined #ruby
[18:56:49] k3rn31: has joined #ruby
[18:57:00] gomix: has joined #ruby
[18:57:21] edwardly: has joined #ruby
[18:57:21] edwardly: has joined #ruby
[18:57:50] elvillanorevento: has joined #ruby
[18:58:55] xxneolithicxx: has joined #ruby
[19:01:07] Mweshi: has joined #ruby
[19:02:47] yardenbar: has joined #ruby
[19:04:57] nankyokusei: has joined #ruby
[19:05:41] mweshi__: has joined #ruby
[19:05:44] karmatr0n: has joined #ruby
[19:08:15] nankyoku_: has joined #ruby
[19:08:35] DoubleMalt: has joined #ruby
[19:08:44] spudowiar: has joined #ruby
[19:09:44] whathappens: has joined #ruby
[19:10:45] jhack: has joined #ruby
[19:11:28] Sembei: has joined #ruby
[19:12:41] SilverKey: has joined #ruby
[19:12:47] yqt: has joined #ruby
[19:13:48] jas02: has joined #ruby
[19:14:43] bluOxigen: has joined #ruby
[19:15:21] minimalism: has joined #ruby
[19:17:05] futilegames: has joined #ruby
[19:17:56] nofxx: has joined #ruby
[19:21:37] Mweshi: has joined #ruby
[19:23:45] LoneHermit: has joined #ruby
[19:25:57] armyriad: has joined #ruby
[19:25:58] dcunit3d: has joined #ruby
[19:28:00] yardenbar: has joined #ruby
[19:30:14] SirOliver: has joined #ruby
[19:33:38] startupality: has joined #ruby
[19:35:01] banister: has joined #ruby
[19:36:18] snath: has joined #ruby
[19:37:58] hutch34: has joined #ruby
[19:38:50] amclain: has joined #ruby
[19:39:11] jhack: has joined #ruby
[19:40:00] jancel: has joined #ruby
[19:41:02] Uranio: has joined #ruby
[19:42:15] xlegoman: has joined #ruby
[19:42:23] futilegames: has joined #ruby
[19:43:54] nettoweb: has joined #ruby
[19:44:09] jgt: has joined #ruby
[19:44:53] tildes: has joined #ruby
[19:45:18] zapata: has joined #ruby
[19:45:44] ur5us: has joined #ruby
[19:51:52] hahuang62: has joined #ruby
[19:54:56] malconis: has joined #ruby
[19:55:59] skade: has joined #ruby
[19:56:00] GodFather: has joined #ruby
[19:56:54] nhhc: has joined #ruby
[19:58:35] GodFather: has joined #ruby
[19:59:07] nankyokusei: has joined #ruby
[20:01:25] Tony-St4rk: has joined #ruby
[20:01:42] blaxter: has joined #ruby
[20:03:45] SirOliver: has joined #ruby
[20:04:49] riceandbeans: shevy: you got a sec?
[20:06:27] SirOliver: has joined #ruby
[20:06:30] karmatr0n: has joined #ruby
[20:09:13] shevy: it is better to just ask the question
[20:09:19] shevy: I am off and on
[20:09:48] Coldblackice: has joined #ruby
[20:11:21] shevy: if it can not be asked in public, PRIVMSG won't work anyway
[20:11:59] shevy: just write it down here man
[20:12:32] chandlerbing_: has joined #ruby
[20:12:37] riceandbeans: https://gist.github.com/strangelittlemonkey/1bc72bd86f7ad0b3ccd770b8f72bb8f0
[20:12:42] riceandbeans: what is a better way to solve that
[20:13:53] shevy: so you want to put something into the third array
[20:14:08] dmr8: has joined #ruby
[20:14:38] shevy: I have not fully gotten to the part which one you specifically need, but this appears to be solvable via a .select, inside it you can use .include?
[20:14:59] shevy: you want to add non-unique entries?
[20:15:11] shevy: .uniq should do
[20:15:23] MrBusiness: has joined #ruby
[20:16:05] riceandbeans: well, the complaint was that in this manner, for larger arrays it would have to scan the last array every time and be increasingly slow
[20:18:31] circ-user-AQzCn: has joined #ruby
[20:20:34] kareeole_: has joined #ruby
[20:21:31] symm-: has joined #ruby
[20:22:34] riceandbeans: shevy: I see it as a valid complaint, but don't know how to address it
[20:23:11] Tony-St4rk: has joined #ruby
[20:23:40] riceandbeans: I mean, if it was guaranteed to be numeric, and if you did a binary search in the array each push to insert in numerical order I guess maybe it would be faster for larger arrays?
[20:24:21] SirOliver: has joined #ruby
[20:27:00] jancel: has joined #ruby
[20:28:20] rueben: has joined #ruby
[20:28:56] bluOxigen: has joined #ruby
[20:29:54] rgs: has joined #ruby
[20:30:34] SirOliver: has joined #ruby
[20:32:27] pawnbox: has joined #ruby
[20:32:36] newbie|2: has joined #ruby
[20:34:39] shevy: I don't know how you can do sub-selections within array elements without checking the rest of the array in ruby
[20:35:13] bluOxigen: has joined #ruby
[20:35:55] confounds: has joined #ruby
[20:36:07] DTZUBDUB: has joined #ruby
[20:37:55] jhass: riceandbeans: use Set
[20:37:58] al2o3-cr: riceandbeans: you can use set intersection/union
[20:39:21] ornerymoose: has joined #ruby
[20:40:43] skweek: has joined #ruby
[20:41:33] riceandbeans: jhass: al2o3-cr can you explain to me the idea in general for what you would do?
[20:42:01] jhass: http://devdocs.io/ruby~2.3/set
[20:44:08] riceandbeans: so it's just a data type that doesn't allow duplicates
[20:44:13] northfurr: has joined #ruby
[20:44:46] riceandbeans: what if you didn't have a data type that magically allowed that though?
[20:44:49] jhass: just like a mathematical set
[20:45:04] jhass: it's not magical
[20:45:24] riceandbeans: well, doesn't it have to perform the same underlying scan on the array?
[20:45:32] jhass: it uses a hashtable
[20:45:42] jhass: this implementation anyway
[20:45:42] yfeldblum: has joined #ruby
[20:45:53] agentmeerkat: has joined #ruby
[20:46:41] tAn: has joined #ruby
[20:50:43] hahuang62: has joined #ruby
[20:55:10] SilverKey: has joined #ruby
[20:56:09] banisterfiend: has joined #ruby
[20:56:35] hahuang62: has joined #ruby
[20:58:43] serbalgi: has joined #ruby
[21:00:00] roamingdog: has joined #ruby
[21:00:14] solars: has joined #ruby
[21:01:01] Sashimi: has joined #ruby
[21:01:03] jhack: has joined #ruby
[21:01:30] Rodya_: has joined #ruby
[21:02:18] symm-: has joined #ruby
[21:02:46] SirOliver: has joined #ruby
[21:03:09] Gasher: has joined #ruby
[21:03:46] pawnbox: has joined #ruby
[21:07:28] karmatr0n: has joined #ruby
[21:08:16] arooni: has joined #ruby
[21:09:13] rueben: has joined #ruby
[21:12:30] RegulationD: has joined #ruby
[21:12:58] jaguarmagenta: has joined #ruby
[21:14:36] arooni: has joined #ruby
[21:14:41] confounds: has joined #ruby
[21:15:01] marr: has joined #ruby
[21:18:11] solocshaw: has joined #ruby
[21:18:20] tAn: has joined #ruby
[21:21:08] chopin: has joined #ruby
[21:23:46] evansbee: has joined #ruby
[21:23:47] symm-: has joined #ruby
[21:24:04] xall_: has joined #ruby
[21:25:30] tAn: has joined #ruby
[21:28:16] hutch34: has joined #ruby
[21:29:19] dcunit3d: has joined #ruby
[21:32:58] xall_: has joined #ruby
[21:32:59] ur5us: has joined #ruby
[21:33:57] tAn: has joined #ruby
[21:36:52] LoneHermit: has joined #ruby
[21:37:00] jgt1: has joined #ruby
[21:40:52] GodFather: has joined #ruby
[21:41:50] northfurr: has joined #ruby
[21:48:06] tAn: has joined #ruby
[21:53:04] agentmeerkat: has joined #ruby
[21:53:18] MrBusiness: has joined #ruby
[21:53:35] Hobogrammer: has joined #ruby
[21:54:24] steve: has joined #ruby
[21:55:23] mdw: has joined #ruby
[21:57:02] mikecmpbll: has joined #ruby
[21:57:20] hahuang62: has joined #ruby
[22:00:22] pawnbox: has joined #ruby
[22:04:40] helpa: has joined #ruby
[22:06:00] flashpoint9: has joined #ruby
[22:08:25] karmatr0n: has joined #ruby
[22:11:40] leitz: has joined #ruby
[22:12:10] jancel: has joined #ruby
[22:12:37] tAn: has joined #ruby
[22:13:34] elvillanorevento: has joined #ruby
[22:15:37] startupality: has joined #ruby
[22:16:28] apofis: has joined #ruby
[22:17:01] MrBusiness2: has joined #ruby
[22:18:43] xall_: has joined #ruby
[22:20:15] xall: has joined #ruby
[22:21:21] psmmr: has joined #ruby
[22:21:23] ecksit: has joined #ruby
[22:22:34] Caelum: has joined #ruby
[22:22:56] alexherbo2: has joined #ruby
[22:25:38] xall_: has joined #ruby
[22:26:36] ornerymoose: has joined #ruby
[22:28:10] lightt: has joined #ruby
[22:28:14] davedev24: has joined #ruby
[22:28:27] tristanp_: has joined #ruby
[22:31:33] leitz: Okay, easy question. If I my_module.method(object), and the method would change the object, is the original object changed once the method ends?
[22:31:53] leitz: I thought it would be but some results suggest not.
[22:32:09] jhass: ruby is entirely pass by reference
[22:32:42] leitz: That's what I thought. Must be operator error.
[22:34:32] Radar: leitz: It is, unless the object is a number
[22:34:42] zenlot: has joined #ruby
[22:35:13] Radar: https://repl.it/C3GX/1
[22:35:17] leitz: I'm tossing hashes and objects around, so they should change.
[22:35:35] Radar: https://repl.it/C3GX/2
[22:35:39] skweek: has joined #ruby
[22:35:58] Radar: If you have some small code which can repro the issue then we can point out why it's acting that way
[22:36:31] leitz: Let me work on it. I'm right at the edge of my understanding, and trying to simplify the code.
[22:39:23] flashpoint9: has joined #ruby
[22:41:18] ornerymoose: has joined #ruby
[22:41:34] xall: has joined #ruby
[22:42:08] nankyokusei: has joined #ruby
[22:42:24] mdw: has joined #ruby
[22:45:44] Azure|dc: has joined #ruby
[22:47:30] alexherbo2: has joined #ruby
[22:49:17] Rodya_: has joined #ruby
[22:49:17] tomchapin: has joined #ruby
[22:50:10] diffy: has joined #ruby
[22:51:53] diffy: Hi! I have tried to google, no luck. Does anybody know how to store an entire array to a google drive spreadsheet? I have the google-drive gem up and running, authenticated and it is working. But I found no examples on how to do this.
[22:53:50] shevy: documentation - the old bane of ruby
[22:53:57] leitz: Module question. This line: https://github.com/LeamHall/CT_Character_Generator/blob/refactor_character/lib/CharacterTools.rb#L29
[22:54:11] leitz: Calls this line: https://github.com/LeamHall/CT_Character_Generator/blob/refactor_character/lib/Marine.rb#L35
[22:54:57] leitz: Since the second line listed is in a module called "Marine", I thought it would work if the method was defined "def self.first_term()"
[22:55:22] leitz: It does not work if I use self, but if i make it "def Marine.first_term()" it works.
[22:56:29] shevy: using self. is usually better since you don't have to change the name at any later time, if you ever rename something
[22:56:44] leitz: for the record, I happy with "you need to look at X" instead of detailed code. I learn more that way.
[22:56:45] shevy: (if you are inside of it)
[22:57:02] leitz: shevy, the code is called from outside the module.
[22:57:10] shevy: I mean the definition
[22:57:33] shevy: is this your old game?
[22:57:40] leitz: Ah. That's what I thought, but self doesn't work. If I make it "Marine.first_term", it works.
[22:57:56] leitz: shevy, yes. Refactoring with better class use.
[22:58:05] leitz: Hopefully better class use.
[22:58:06] hahuang62: has joined #ruby
[22:58:26] leitz: Eliminating the "one class to rule them all" version.
[22:58:52] pwnd_nsfw: has joined #ruby
[22:58:59] shevy: class Marine; def self.yo; puts 'I am a Marine'; end; end; Marine.yo # => I am a Marine
[22:59:25] shevy: by the way I would put all non-conditional requires right at the top of the .rb file
[23:01:06] leitz: Yeah, what's going to happen is that whatever career chosen, 'Marine', etc, shoudl get required at that point.
[23:01:21] shevy: yeah that conditional
[23:01:29] leitz: Hmm...or re-use the autoload stuff from before. So it only gets loaded if needed.
[23:01:34] orangey: has joined #ruby
[23:01:40] orangey: Hello all.
[23:01:43] shevy: the other requires appear inside a module namespace, for no real reason that I can see
[23:01:57] pawnbox: has joined #ruby
[23:02:07] leitz: You mean require 'Traveller'?
[23:02:10] pwnd_nsfw`: has joined #ruby
[23:02:18] orangey: I'm playing with Discourse (a rails app) and trying to write a plugin to replace a class MessageBuilder
[23:02:30] orangey: However, my plugin is ignored. I think I don't necessarily understand the basic concept here..
[23:02:41] orangey: Can I simply declare a class and it will replace the old class / append to it?
[23:03:29] orangey: Here's my code: https://gist.github.com/tareko/c94b7dd8a24e9845617e157ec0899e43
[23:04:00] shevy: leitz yep all these requires
[23:04:01] hutch34: has joined #ruby
[23:04:01] orangey: When I try to run the rails server, I get: "/vagrant/lib/email/message_builder.rb:20: warning: already initialized constant Email::MessageBuilder::REPLY_TO_AUTO_GENERATED_HEADER_KEY", which I gather means that it's not understanding what it should do?
[23:04:11] shevy: save for the Marine one since that you one you made conditional
[23:04:30] shevy: get rid of one word from my prior line :D
[23:05:21] leitz: Shouldn't a module that uses another module require it?
[23:05:51] shevy: you can test it when the other files will be required
[23:06:02] shevy: do some puts statement in the other .rb files that you require
[23:06:20] shevy: you will see that there will be no difference between: require 'foo'; module Bar; ... and: module Bar; require 'foo'
[23:06:26] madgen: has joined #ruby
[23:07:10] leitz: shevy, I'm not sure I get your statement.
[23:07:37] leitz: Lemme go test a bit and see if it clicks.
[23:07:40] skweek: has joined #ruby
[23:08:09] Sashimi: has joined #ruby
[23:09:23] karmatr0n: has joined #ruby
[23:10:48] rickmasta: has joined #ruby
[23:11:27] bears: has joined #ruby
[23:12:08] ledestin: has joined #ruby
[23:13:05] xall: has joined #ruby
[23:14:05] leitz: Oh, cool. using a totally different set of files. If the calling program includes Marine, and the Traveller module does not include Marine, I can still call Marine.hello from inside Traveller.
[23:15:07] leitz: So, a module question. Should it require modules it calls, or assume the program calling it will require them?
[23:15:19] tomchapin: has joined #ruby
[23:17:11] spudowiar: has joined #ruby
[23:17:17] Axsuul: has joined #ruby
[23:17:22] leitz: That is, if CharacterTools uses methods from Traveller, should it require Traveller? I'm tryng to break things up into Single use bits.
[23:17:48] m_antis: has joined #ruby
[23:21:07] GodFather: has joined #ruby
[23:21:22] orangey: Any thoughts on how to replace a class? I've posted the repo here: https://github.com/tareko/replyto-individual/ . It's the plugin.rb that should replace the MessageBuilder function but seems not to
[23:22:07] pawnbox: has joined #ruby
[23:23:19] helpa: has joined #ruby
[23:24:48] i8igmac: has joined #ruby
[23:24:55] jaiks1: has joined #ruby
[23:25:27] i8igmac: im trying to read from a binary file. remove the header, and save the rest of the binary data as file.mp3
[23:25:47] i8igmac: all my attempts to do so, turn the file into hex
[23:26:29] i8igmac: File.binread(x).index("\r\n\r\n")
[23:27:02] rickmasta: has joined #ruby
[23:27:10] jhass: File.write("file.mp3", File.binread.index("\r\n\r\n"))
[23:27:19] jhass: eh nvm but you get
[23:27:39] jhass: actually given you got ascii chars there you source is probably already "hex"
[23:27:52] jhass: multipart/mime specifically
[23:28:12] shevy: leitz always try to start with the minimum, the base of your system
[23:28:49] i8igmac: File.binread(x).split("\r\n\r\n")[1]
[23:29:03] shevy: leitz I tend to start with constant definitions usually, then module-specific methods on the namespace, like: module MyGame; def self.start
[23:29:04] i8igmac: this gives me my data.
[23:30:07] arooni: has joined #ruby
[23:31:10] i8igmac: jhass: File.write("file.mp3", File.binread.index("\r\n\r\n"))
[23:31:30] i8igmac: i have done this over and over again.
[23:31:38] shevy: leitz in general, if a file depends on code that is in another file, add a require statement
[23:31:42] i8igmac: i think this binread is the problem?
[23:31:45] jhass: upload the source file somewhere
[23:32:01] leitz: shevy, thanks! I've turned the big character class into a data storage pool with accessors. Everything else is being broken up as well.
[23:32:03] jhass: how are you even asserting that you "got hex"
[23:32:04] shevy: leitz which is why you should start with the simplest dependency train, the base
[23:32:14] i8igmac: suggest a file upload?
[23:32:58] drptbl: has joined #ruby
[23:33:19] spudowiar: has joined #ruby
[23:33:20] i8igmac: http://filebin.ca/2lFciGfm6xi1/dat
[23:34:04] i8igmac: File.write("file.mp3", File.binread("dat").split("\r\n\r\n")[1])
[23:34:23] nettoweb: has joined #ruby
[23:36:25] i8igmac: every thing i try ends up with same results
[23:36:39] jhass: File.write("foo.mp3", File.binread("dat").partition("\r\n\r\n").last)
[23:36:39] rickmasta: has joined #ruby
[23:36:43] jhass: works just fine for me
[23:36:53] jhass: I think you're misinterpreting something you're looking at
[23:37:54] jhass: but how did you end up with that anyway?
[23:38:34] i8igmac: i guess it is working, i was oping the mp3 with sublime text to see if it looks ugly binary, but auto shows hex
[23:39:08] jhass: see, misinterpreting
[23:41:12] i8igmac: that was about 45 minutes of hair pulling
[23:41:17] i8igmac: a few mistakes made
[23:41:27] i8igmac: that was the wrong source file
[23:41:38] i8igmac: so it didnt play in vlc,
[23:42:01] jhass: but seriously
[23:42:23] jhass: how do you end up with something like this in the first place
[23:42:49] i8igmac: im sniffing data from pandora
[23:43:09] ecksit: has joined #ruby
[23:43:48] jhass: ah so illegal
[23:44:52] armyriad: has joined #ruby
[23:45:17] shevy: you evil i8igmac!
[23:45:20] Axsuul: has joined #ruby
[23:45:29] Radar: tch tch tch
[23:45:33] lupine: surely sniffing files from a web service must be the worst possible option for illegally downloading media?
[23:46:01] shevy: I would not know :)
[23:46:09] rickmasta: has joined #ruby
[23:46:37] jhass: well we have to admit it's hard to detect by third parties
[23:46:37] shevy: http://bash.org/?104052
[23:46:41] lupine: personally, I have a tape recorder with a microphone I hold to my radio's speakers
[23:46:46] djbkd: has joined #ruby
[23:47:14] lupine: take that, mr policeman
[23:47:46] jhass: I think that's actually legal over here
[23:47:52] jhass: selling it isn't
[23:47:57] Radar: i8igmac: y u no just torrent the music like everyone else
[23:48:07] lupine: it's equally illegal in .uk afaik
[23:48:15] Radar: (note: not condoning that activity0
[23:48:27] lupine: enforcement, on the other hand, tends to follow profit only
[23:49:18] postmodern: has joined #ruby
[23:49:49] pawnbox: has joined #ruby
[23:49:55] i8igmac: Radar: selected play list based on genres provides a some what random play list
[23:50:15] i8igmac: "1990s rock"
[23:50:23] i8igmac: or what ever
[23:50:32] Rodya_: has joined #ruby
[23:51:14] hutch34: has joined #ruby
[23:54:36] koooge: has joined #ruby
[23:55:06] ecksit: has joined #ruby
[23:55:18] houhoulis: has joined #ruby
[23:56:19] ICantCook: has joined #ruby
[23:56:55] arlek: has joined #ruby
[23:57:14] laska: has joined #ruby
[23:57:17] weemsledeux: has joined #ruby
[23:58:50] hahuang62: has joined #ruby