« Back to channel list

#ruby - 21 October 2015

« Back 1 day Forward 1 day »
[00:01:25] Dairenn_: Haha! It's an outstanding pull request since 2014: https://github.com/schacon/ruby-git/pull/168
[00:01:41] Dairenn_: Well that's a bummer.
[00:04:33] Ox0dea: Dairenn_: Time to switch to Rugged?
[00:04:48] Dairenn_: I literally just noticed that seems to be the one people are using instead.
[00:05:12] Dairenn_: But it seems to require libgit2?
[00:05:16] trosborn: has joined #ruby
[00:06:52] ICantCook: has joined #ruby
[00:07:22] zenguy_pc: has joined #ruby
[00:09:53] ramfjord_: has joined #ruby
[00:12:07] bryanray: has joined #ruby
[00:12:35] jhass: Dairenn_: doesn't it vendor that in even? like nokogiri libxml2 these days?
[00:12:56] Cyther: has joined #ruby
[00:13:08] Dairenn_: Yeah it might; it's just that what I'm writing had to work on kind of an older, "frozen" version of Linux so I'm trying to have to worry about too many dependencies.
[00:16:09] tomchapin: has joined #ruby
[00:18:32] David27: has joined #ruby
[00:18:37] shmilan: has joined #ruby
[00:18:42] blt: has joined #ruby
[00:18:50] mondayrain: has joined #ruby
[00:25:33] workmad3: has joined #ruby
[00:26:58] stardiviner: has joined #ruby
[00:28:26] Rollabunna: has joined #ruby
[00:28:56] nettoweb: has joined #ruby
[00:29:44] karapetyan: has joined #ruby
[00:30:11] faras: has joined #ruby
[00:31:48] _blizzy_: has joined #ruby
[00:33:44] dopie: has joined #ruby
[00:36:29] Cyther_: has joined #ruby
[00:40:44] Musashi007: has joined #ruby
[00:40:52] _blizzy_: has joined #ruby
[00:42:25] ledestin: has joined #ruby
[00:44:48] tkuchiki: has joined #ruby
[00:45:07] spot_: has joined #ruby
[00:45:34] jessemcgilallen: has joined #ruby
[00:45:35] pocketprotector-: has joined #ruby
[00:46:27] Asher: has joined #ruby
[00:46:45] blackoperat: has joined #ruby
[00:48:04] nateberkopec: has joined #ruby
[00:48:59] tomchapin: has joined #ruby
[00:49:12] diegoaguilar: has joined #ruby
[00:49:26] chop1n: has joined #ruby
[00:52:04] yitsushi: has joined #ruby
[00:55:40] j4cknewt_: has joined #ruby
[00:56:41] GriffinHeart: has joined #ruby
[01:00:46] trosborn: has joined #ruby
[01:01:04] |ifei5g00d: has joined #ruby
[01:04:31] j4cknewt: has joined #ruby
[01:05:04] trosborn: has joined #ruby
[01:05:35] IrishGringo: has joined #ruby
[01:06:28] riotjones: has joined #ruby
[01:08:37] dfockler: has joined #ruby
[01:08:56] tomchapin: has joined #ruby
[01:09:47] trosborn: has joined #ruby
[01:10:37] bonhoeffer: has joined #ruby
[01:11:46] d34th4ck3r: has joined #ruby
[01:13:24] unreal: has joined #ruby
[01:14:03] luckyme: has joined #ruby
[01:14:53] cndiv: has joined #ruby
[01:15:00] dikaio: has joined #ruby
[01:15:04] v4n_: has joined #ruby
[01:16:05] v4n: has joined #ruby
[01:16:40] ellisTAA: has joined #ruby
[01:22:36] GriffinHeart: has joined #ruby
[01:23:00] blackoperat: has joined #ruby
[01:26:15] hfp_work: has joined #ruby
[01:29:05] brook: has joined #ruby
[01:30:54] tjbiddle: has joined #ruby
[01:32:46] hfp_work: has joined #ruby
[01:32:49] tjr_: has joined #ruby
[01:33:11] freerobby: has joined #ruby
[01:33:13] trosborn: has joined #ruby
[01:36:37] EminenceHC: has joined #ruby
[01:37:02] freerobby: has joined #ruby
[01:37:40] rbowlby: has joined #ruby
[01:42:46] GnuYawk: has joined #ruby
[01:43:37] chouhoulis: has joined #ruby
[01:44:20] dopamean_: has joined #ruby
[01:44:43] `tim`: has joined #ruby
[01:45:35] GriffinHeart: has joined #ruby
[01:46:05] tkuchiki: has joined #ruby
[01:46:21] chop1n: has joined #ruby
[01:46:29] freerobby: has joined #ruby
[01:49:20] allcentury: has joined #ruby
[01:52:40] freerobby: has joined #ruby
[01:53:24] haraoka: has joined #ruby
[01:55:56] trosborn: has joined #ruby
[01:57:14] [1]brook: has joined #ruby
[01:59:19] freerobby: has joined #ruby
[02:01:11] faras: has joined #ruby
[02:06:03] bonhoeffer_: has joined #ruby
[02:06:27] |ifei5g00d: has joined #ruby
[02:06:44] mbff: has joined #ruby
[02:07:19] riotjones: has joined #ruby
[02:07:57] mbff: Hello! I am creating a class that uses another class. Can I avoid writing out all of those getters and setters? https://gist.github.com/marshallford/0af11a74f5ecef1116b3
[02:08:34] lzx: has joined #ruby
[02:08:34] zenguy_pc: has joined #ruby
[02:10:55] BraddPitt: yep, look at attr_accessor, attr_read and attr_writer, mbff
[02:11:05] freerobby: has joined #ruby
[02:11:17] Ox0dea: BraddPitt: Stop that.
[02:12:02] nemo_: has joined #ruby
[02:12:23] mbff: BraddPitt, can I use those shortcuts with a class inside a class?
[02:13:07] tjohnson: mbff: consider `attr_reader :address`, then `my_person.address.city = 'Portland'` and similar
[02:13:20] BraddPitt: what do you mean "class inside a class"?
[02:13:42] Ox0dea: mbff: You are being given bad advice. :<
[02:13:43] workmad3: has joined #ruby
[02:13:50] Ox0dea: You want Forwardable.
[02:13:51] tjohnson: mbff: what you seem to want to do is a Law of Demeter violation and broadly considered bad practice in OO design: https://en.wikipedia.org/wiki/Law_of_Demeter
[02:14:10] nemo_: has joined #ruby
[02:14:11] idefine: has joined #ruby
[02:15:28] BraddPitt: oh I see what you're trying to do
[02:15:45] BraddPitt: why not create the address and then pass that to the Person constructor
[02:15:57] BraddPitt: then you can do a.address.state or whatever
[02:16:10] BraddPitt: the way you have it setup breaks OO convention as stated before
[02:16:39] tjbiddle: has joined #ruby
[02:16:56] swgillespie: has joined #ruby
[02:18:16] idefine: has joined #ruby
[02:19:15] Ox0dea: mbff: Did you find Forwardable?
[02:19:21] britt_: has joined #ruby
[02:20:07] nemo_: has joined #ruby
[02:20:25] mbff: Ox0dea, I cannot use gems, it is for school.
[02:20:33] Ox0dea: mbff: Forwardable is in the standard library.
[02:20:39] Ox0dea: &ri Forwardable
[02:20:40] `derpy: http://www.rubydoc.info/stdlib/forwardable/Forwardable
[02:20:44] mbff: Ox0dea, hmmm alright
[02:21:31] Ox0dea: mbff: Person.extend(Forwardable) and def_delegators(:@address, :street, :city, ...)
[02:23:41] araujo_: has joined #ruby
[02:23:46] trosborn: has joined #ruby
[02:25:33] nemo_: has joined #ruby
[02:25:51] Ox0dea: mbff: For even more fun, put Address first so you can delegate programmatically: https://eval.in/454423
[02:26:32] mbff: Ox0dea, wow that's actually pretty cool
[02:27:47] Melpaws: has joined #ruby
[02:29:00] Rollabunna: has joined #ruby
[02:29:28] nemo_: has joined #ruby
[02:30:54] chouhoulis: has joined #ruby
[02:31:10] danman: has joined #ruby
[02:31:43] freerobby: has joined #ruby
[02:32:25] hmsimha: has joined #ruby
[02:33:05] pathrocle: has joined #ruby
[02:34:09] nemo_: has joined #ruby
[02:35:09] cndiv: has joined #ruby
[02:37:01] faras: has left #ruby: ()
[02:37:02] idefine: has joined #ruby
[02:40:50] moeabdol: has joined #ruby
[02:41:30] Maletor: has joined #ruby
[02:42:59] p0wn3d: has joined #ruby
[02:43:20] atomical: has joined #ruby
[02:43:21] nemo_: has joined #ruby
[02:44:24] yitsushi: has joined #ruby
[02:45:36] gambl0re: has joined #ruby
[02:46:59] willharrison: has joined #ruby
[02:48:22] nemo_: has joined #ruby
[02:48:38] shmilan: has joined #ruby
[02:50:11] tubuliferous_: has joined #ruby
[02:50:46] JJM: has joined #ruby
[02:51:09] tubuliferous_: has joined #ruby
[02:51:42] mois3x: has joined #ruby
[02:52:14] `tim`: has joined #ruby
[02:52:27] nemo_: has joined #ruby
[02:52:31] tjbiddle: has joined #ruby
[02:53:53] trosborn: has joined #ruby
[02:55:10] GriffinHeart: has joined #ruby
[02:58:19] idefine: has joined #ruby
[02:59:14] lkba: has joined #ruby
[02:59:20] baweaver: has joined #ruby
[03:00:24] towski_: has joined #ruby
[03:01:10] gener1c_: has joined #ruby
[03:01:16] favadi: has joined #ruby
[03:01:51] mrtomme: has joined #ruby
[03:02:04] Cache_Money: has joined #ruby
[03:03:55] sdothum: has joined #ruby
[03:04:17] ramfjord: has joined #ruby
[03:04:58] djbkd: has joined #ruby
[03:04:59] darkf: has joined #ruby
[03:05:51] djbkd: has joined #ruby
[03:06:12] rdavila: has joined #ruby
[03:07:27] bruno-: has joined #ruby
[03:07:29] ibouvousaime: has joined #ruby
[03:08:09] ibouvousaime: Hello I have a question for linux users here, what IDE do you use ?
[03:08:54] shevy: has joined #ruby
[03:08:56] ledestin: has joined #ruby
[03:09:30] braincrash: has joined #ruby
[03:09:38] tmtwd: has joined #ruby
[03:09:51] AlexRussia: has joined #ruby
[03:10:00] trosborn: has joined #ruby
[03:10:06] arthurnn: has joined #ruby
[03:11:46] gambl0re: has joined #ruby
[03:14:48] Ox0dea: ibouvousaime: This is #ruby.
[03:15:41] ibouvousaime: IDE for ruby I mean
[03:16:08] arescorpio: has joined #ruby
[03:17:14] ibouvousaime: I thought I didnt have to precice since were already on a ruby room
[03:19:30] ICantCook: has joined #ruby
[03:20:01] shevy: good morning #vietnam!
[03:20:03] shevy: I mean... #ruby
[03:20:55] bmurt: has joined #ruby
[03:21:59] Ox0dea: ibouvousaime: Very few people use full-blown IDEs to write Ruby.
[03:23:29] Eiam_: has joined #ruby
[03:24:10] chopin: has joined #ruby
[03:24:29] dnewkerk: has joined #ruby
[03:24:43] duderonomy: has joined #ruby
[03:24:43] shevy: ruby is so simple that you don't need an IDE!
[03:25:10] ibouvousaime: Im very new to it lol
[03:25:36] Nilium: I use Ruby to write CLI tools that I don't care about being slow, so I can't imagine an IDE ever being useful there.
[03:25:39] dnewkerk: ibouvousaime: sublime text for me
[03:26:07] ibouvousaime: cool Iwill get that one
[03:27:49] chopin: has joined #ruby
[03:29:11] Ox0dea: ibouvousaime: Why not just use WINE to run Notepad?
[03:29:36] Ox0dea: --notepad;
[03:35:08] gambl0re: has joined #ruby
[03:35:58] gix: has joined #ruby
[03:36:00] dnewkerk: has joined #ruby
[03:36:00] idefine: has joined #ruby
[03:36:07] Motoservo: has joined #ruby
[03:37:21] shevy: notepad++ is ok but really, all you need to have are sharp eyes
[03:37:54] dnewkerk: has joined #ruby
[03:38:37] dnewkerk: has joined #ruby
[03:40:02] shmilan: has joined #ruby
[03:40:10] trosborn: has joined #ruby
[03:40:41] Ox0dea: I read that as "shar pies".
[03:40:43] Ox0dea: https://en.wikipedia.org/wiki/Shar
[03:41:11] iateadonut: has joined #ruby
[03:41:22] shevy: you are drunk again
[03:41:39] shevy: there are no harpies here
[03:41:49] inteq: has joined #ruby
[03:42:24] dnewkerk: has joined #ruby
[03:42:36] leat: has joined #ruby
[03:43:12] dnewkerk: has joined #ruby
[03:44:08] Ox0dea: Under the assumption that you posited my inebriation on account of my suggesting that a computer program might make for a delicious snack: http://www.mike-worth.com/2013/03/31/baking-a-hello-world-cake/
[03:44:22] psye: has joined #ruby
[03:45:45] speakingcode: has joined #ruby
[03:45:53] Ox0dea: > Program recipes should not only generate valid output, but be easy to prepare and delicious.
[03:46:10] Ox0dea: David Morgan-Mar is much more interested in "programmer happiness" than matz ever was.
[03:47:25] idefine: has joined #ruby
[03:47:52] opensource_ninja: has joined #ruby
[03:48:12] brook: has joined #ruby
[03:48:22] arthurnn: has joined #ruby
[03:48:58] XxionxX: has joined #ruby
[03:50:47] idefine: has joined #ruby
[03:51:07] doll: has joined #ruby
[03:51:41] doll: what's the syntax for doing multiple .gsub in one line?
[03:51:42] shevy: he seems to be more interested in cooking and eating
[03:52:01] shevy: doll you could chain them together :)=
[03:52:13] doll: yeah i'm derping on it :D
[03:52:26] GriffinHeart: has joined #ruby
[03:52:34] doll: just .gsub(blah).gusb(blah)?
[03:52:40] ruboto: Why don't you try it and see for yourself?
[03:56:56] nertzy: has joined #ruby
[03:58:33] doll: it just feels ghetto i guess
[03:58:52] shevy: doll well that would it be
[03:59:02] shevy: but don't use .gusb() use .gsub() :)
[03:59:05] blackoperat: has joined #ruby
[03:59:21] Ox0dea: doll: What exactly feels "ghetto", method chaining?
[03:59:42] Ox0dea: Or chaining calls to #gsub because your regex-fu is lacking?
[03:59:50] freerobby: has joined #ruby
[03:59:58] doll: my lack of regex-fu
[04:00:10] Ox0dea: Well, let's not go blaming the tool for that, eh?
[04:00:24] doll: i didn't say the tool feels ghetto, i said "it" :P
[04:00:42] idefine: has joined #ruby
[04:01:01] postmodern: has joined #ruby
[04:01:06] Ox0dea: Are you able to share the specifics of the replacements you're trying to perform?
[04:01:19] juanca_: has joined #ruby
[04:01:54] workmad3: has joined #ruby
[04:02:50] araujo: has joined #ruby
[04:02:50] araujo: has joined #ruby
[04:04:12] rbowlby: has joined #ruby
[04:04:26] jenrzzz: has joined #ruby
[04:05:33] idefine: has joined #ruby
[04:06:14] Rollabunna: has joined #ruby
[04:06:21] karapetyan: has joined #ruby
[04:07:21] ramfjord: has joined #ruby
[04:08:05] riotjones: has joined #ruby
[04:08:13] bruno-: has joined #ruby
[04:08:43] zenguy_pc: has joined #ruby
[04:09:32] Ox0dea: >> 'A. Dumbledore'.downcase.delete('^a-z').bytes.reduce(0) { |s, b| s + b - 96 }
[04:09:33] ruboto: Ox0dea # => 100 (https://eval.in/454445)
[04:10:24] idefine: has joined #ruby
[04:15:43] mistermocha: has joined #ruby
[04:17:34] ishikawa91: has joined #ruby
[04:18:01] whippythellama: has joined #ruby
[04:21:03] _djbkd: has joined #ruby
[04:24:20] Gnomethrower: has joined #ruby
[04:26:03] trosborn: has joined #ruby
[04:29:14] `based_pdev`: has joined #ruby
[04:32:43] yfeldblum: has joined #ruby
[04:36:57] jenrzzz: has joined #ruby
[04:37:44] JJM: has joined #ruby
[04:38:34] bastion: has joined #ruby
[04:45:06] bastion: has joined #ruby
[04:46:03] xxneolithicxx: https://savecrypto.org/
[04:46:27] cwong_on_irc: has joined #ruby
[04:46:54] cwong_on_irc: has joined #ruby
[04:47:22] tkuchiki: has joined #ruby
[04:47:25] Chaoborid: has joined #ruby
[04:47:43] nemo_: has joined #ruby
[04:48:42] GriffinHeart: has joined #ruby
[04:51:09] gexe__: has joined #ruby
[04:51:33] XxionxX: has joined #ruby
[04:52:53] Bellthoven: has joined #ruby
[04:54:00] arup_r: has joined #ruby
[04:57:48] sanjayu: has joined #ruby
[05:03:08] moeabdol: has joined #ruby
[05:03:41] GriffinHeart: has joined #ruby
[05:03:42] toy: has joined #ruby
[05:05:51] haxrbyte_: has joined #ruby
[05:05:55] nemo_: has joined #ruby
[05:07:41] gexe__: has joined #ruby
[05:09:14] bruno-: has joined #ruby
[05:12:56] bluOxigen: has joined #ruby
[05:15:06] swgillespie: has joined #ruby
[05:15:14] mistermocha: has joined #ruby
[05:17:05] devbug: has joined #ruby
[05:18:16] astrobun_: has joined #ruby
[05:18:18] balazs: has joined #ruby
[05:18:40] d34th4ck3r: has joined #ruby
[05:20:10] devbug_: has joined #ruby
[05:20:25] dhjondoh: has joined #ruby
[05:20:57] ohaibbq: has joined #ruby
[05:21:12] chrissonar: has joined #ruby
[05:22:07] favadi: has joined #ruby
[05:22:11] bigmac_: x=9999999999999999
[05:22:40] bigmac_: Math.sqrt(x*x)=>1000000000000000
[05:22:52] bigmac_: buffer over flow i guess
[05:23:20] Ox0dea: bigmac_: http://floating-point-gui.de/
[05:23:24] bigmac_: i would like to perform math with huge numbers, with precision
[05:23:41] Ox0dea: bigmac_: require 'bigdecimal'
[05:23:43] duncannz: has joined #ruby
[05:23:58] bigmac_: i think i understand the reason why this is inaccurate
[05:24:09] bigmac_: Bigdecimal, i think im doing it wrong
[05:24:19] shevy: bigmac is working with bigdecimal
[05:24:40] bigmac_: BigDecimal.new(9999999999999999).sqrt(16)=>1000000000000000
[05:24:56] duncannz: has joined #ruby
[05:25:00] bigmac_: um wait, 1.E16 or something
[05:25:01] chouhoulis: has joined #ruby
[05:25:17] bigmac_: how do i find sqrt properly with BigDecimal
[05:27:12] bigmac_: BigDecimal.new(999*999).sqrt(16)=>.999E3
[05:27:37] bigmac_: im not sure what (16) is for
[05:27:55] GriffinHeart: has joined #ruby
[05:28:04] Ox0dea: &ri BigDecimal#sqrt
[05:28:04] `derpy: http://www.rubydoc.info/stdlib/bigdecimal/BigDecimal#sqrt-instance_method
[05:30:01] bigmac_: BigDecimal.new(999*999).sqrt(16)=>.999E3
[05:30:02] bigmac_: Math.sqrt(999*999)=>999
[05:30:18] skade: has joined #ruby
[05:31:58] bigmac_: when the input number is larger then 15, then the inaccurate results happen. even with BigDecimal
[05:32:42] Ox0dea: bigmac_: You're misreading the BigDecimal representation.
[05:33:09] riotjones: has joined #ruby
[05:33:10] bigmac_: well, is it possible to process numbers larger then 15 in length?
[05:33:14] Ox0dea: Of course it is.
[05:33:39] Gustavo: has joined #ruby
[05:35:30] Ox0dea: bigmac_: Could you show an example of what you think to be an inaccurate BigDecimal result?
[05:35:30] duderonomy: has joined #ruby
[05:36:24] rbowlby: has joined #ruby
[05:36:34] trautwein: has joined #ruby
[05:37:05] aganov: has joined #ruby
[05:38:05] skcin7: has joined #ruby
[05:40:07] _blizzy_: has joined #ruby
[05:41:02] opensource_ninja: has joined #ruby
[05:43:29] ruurd: has joined #ruby
[05:46:02] rdavila: has joined #ruby
[05:46:26] lxsameer: has joined #ruby
[05:46:26] lxsameer: has joined #ruby
[05:46:30] claw: has joined #ruby
[05:47:45] tagrudev: has joined #ruby
[05:49:00] _blizzy_: has joined #ruby
[05:49:05] Rollabunna: has joined #ruby
[05:50:02] workmad3: has joined #ruby
[05:50:49] soosfarm: has joined #ruby
[05:51:22] krz: has joined #ruby
[05:52:43] bigmac_: Ox0dea: well, i know the awnser to my examples, as im dealing with sqrt
[05:52:50] bigmac_: 15 in length
[05:54:29] bigmac_: 16 in lenght x=9999999999999999
[05:54:48] bigmac_: puts BigDecimal(x*x).sqrt(16) =>0.9999999999999999E16
[05:55:09] Ox0dea: bigmac_: Do you understand that output?
[05:55:10] bigmac_: that looks about right, but how do i convert to a whole number
[05:55:18] bigmac_: 16 decimal places?
[05:55:33] Ox0dea: It's "scientific" notation.
[05:55:36] Ox0dea: >> 0.999e3
[05:55:37] ruboto: Ox0dea # => 999.0 (https://eval.in/454486)
[05:55:58] bigmac_: puts "%d" % (BigDecimal(x*x).sqrt(16))
[05:56:01] bigmac_: is this proper?
[05:57:14] GriffinHeart: has joined #ruby
[05:57:34] michael_mbp: has joined #ruby
[05:57:49] moeabdol: has joined #ruby
[05:59:01] firstdayonthejob: has joined #ruby
[05:59:02] bigmac_: how do you convert .99e3 properly?
[05:59:12] Pupp3tm4st3r: has joined #ruby
[05:59:51] Ox0dea: You asked how to convert it to a whole number and then showed your attempt to convert it to a string; which do you actually want?
[06:00:41] bigmac_: well, i guess, to_i would have done the trick
[06:00:49] Ox0dea: That it would've.
[06:00:52] workmad3: has joined #ruby
[06:01:10] bigmac_: weird, i thought i tried this. over and over again
[06:01:21] bigmac_: seems to be working just fine now lol
[06:03:34] khebbie_: has joined #ruby
[06:03:43] khebbie: has joined #ruby
[06:05:09] Asher: has joined #ruby
[06:08:18] yardenbar: has joined #ruby
[06:08:35] krz: has joined #ruby
[06:09:52] acke: has joined #ruby
[06:10:01] zenguy_pc: has joined #ruby
[06:10:20] bruno-: has joined #ruby
[06:13:39] mistermocha: has joined #ruby
[06:13:50] jessemcgilallen: has joined #ruby
[06:15:21] nemo__: has joined #ruby
[06:16:21] unshadow_: has joined #ruby
[06:16:27] ramfjord: has joined #ruby
[06:21:43] arup_r: Ox0dea: o/
[06:21:47] arup_r: certainty: \o
[06:22:23] Ox0dea: Did you just high-five yourself for us?
[06:25:23] bluOxigen: has left #ruby: ()
[06:27:07] gettalong: has joined #ruby
[06:28:22] nemo_: has joined #ruby
[06:28:45] arup_r: no.. I did to you experts!!!
[06:28:54] arup_r: You guys made ruby Rock!!
[06:29:14] bastion: has joined #ruby
[06:29:20] artmann: has joined #ruby
[06:29:51] norc: has joined #ruby
[06:30:57] norc: Hi, I have written a proof of concept library that interfaces with various network interfaces for statistics aggregation and provisioning.
[06:31:15] papercode: has joined #ruby
[06:31:43] norc: Since I want to develop the real thing, I would like to start off with rspec early on. Obviously I will need to mock/stub a lot of these interfaces (since they would require hardware on the other hand for testing)
[06:31:56] idefine: has joined #ruby
[06:32:06] kp666: has joined #ruby
[06:32:51] norc: So Im looking for some resource that guides me through the process of mocking/stubbing these interfaces in the early development phase.
[06:33:04] kp666: has joined #ruby
[06:34:37] Shoutsid: has joined #ruby
[06:34:43] ellisTAA: has joined #ruby
[06:35:55] GriffinHeart: has joined #ruby
[06:36:27] dopie: has joined #ruby
[06:37:29] n008f4g_: has joined #ruby
[06:45:15] certainty: norc: add an abstraction barrier that you own, which you can then mock.
[06:46:25] lsmola_: has joined #ruby
[06:47:42] TomyWork: has joined #ruby
[06:48:27] norc: certainty: I just cannot figure out how to do this design wise.
[06:48:39] last_staff: has joined #ruby
[06:48:52] mdih: has joined #ruby
[06:49:38] certainty: norc: you certainly know which messages your interfaces will need to respond to, no?
[06:49:59] yfeldblum: has joined #ruby
[06:50:14] skade: has joined #ruby
[06:51:08] nfk|laptop: has joined #ruby
[06:52:11] bmalum: has joined #ruby
[06:52:23] norc: certainty: Sure. I could simply record the responses from a hardware device to specific commands for my stubs
[06:54:02] krz: has joined #ruby
[06:54:07] diegoviola: has joined #ruby
[06:56:06] ruurd: has joined #ruby
[06:58:09] andikr: has joined #ruby
[06:58:56] certainty: norc: yeah then categorize them and build tests for each category. be sure to include failure scenarios
[06:59:33] dnewkerk: norc: might help??? http://www.justinweiss.com/articles/testing-network-services-in-ruby/
[07:01:41] skade: has joined #ruby
[07:02:46] v4n: has joined #ruby
[07:02:58] SCHAAP137: has joined #ruby
[07:04:01] futilegames: has joined #ruby
[07:04:44] solars: has joined #ruby
[07:05:04] nemo_: how do we give a flash message in model
[07:05:40] v4n: has joined #ruby
[07:05:44] v4n: join #elixir
[07:07:19] inteq: has joined #ruby
[07:08:30] ruurd: has joined #ruby
[07:08:56] jas02: has joined #ruby
[07:10:09] tkuchiki: has joined #ruby
[07:10:16] v4n: oops. meant to type a command...
[07:10:19] CloCkWeRX: has joined #ruby
[07:10:55] alienaut: has joined #ruby
[07:12:34] terlar: has joined #ruby
[07:12:37] Ox0dea: I'm gonna roll; all Strings means you're an #elixir sockpuppet.
[07:12:39] Ox0dea: >> [*ObjectSpace.each_object].sample 3
[07:12:40] ruboto: Ox0dea # => ["@ri_dir", "'", "mon_enter_for_cond"] (https://eval.in/454537)
[07:12:47] eGGsha: has joined #ruby
[07:17:33] bruno-: has joined #ruby
[07:18:05] adac: has joined #ruby
[07:19:09] mloy: has joined #ruby
[07:19:26] uber: has joined #ruby
[07:19:56] lea: has joined #ruby
[07:20:29] v4n: Me an my coworker wasted a lot of time debugging a memory leak in our rails app. It was being caused by zipruby. He has has created a list of Gems we are aware that leak memory: https://github.com/ASoftCo/leaky-gems
[07:20:29] v4n: Might come handy!
[07:20:44] tubuliferous_: has joined #ruby
[07:21:24] lolmaus: has joined #ruby
[07:21:33] mloy: v4n, nice
[07:21:46] mloy: v4n, have you submitted bug reports for any?
[07:22:59] v4n: mloy: the gem links in the readme file links to the bug reports
[07:23:20] Stan: has joined #ruby
[07:23:31] mloy: v4n, oh awesome. I didn't check where the links pointed.
[07:23:41] mloy: v4n, kudos to you and your coworker!
[07:25:28] yardenbar: has joined #ruby
[07:27:43] solocshaw: has joined #ruby
[07:28:18] futilegames: has left #ruby: ()
[07:28:19] kimegede: has joined #ruby
[07:28:30] ncopa: has joined #ruby
[07:28:51] ncopa: does anybody know if CVE-2015-4020 fix is included in ruby 2.2.3?
[07:29:33] ncopa: CVE-2015-4020 was introduced by the fix for CVE-2015-3900
[07:30:29] Gustavo: has joined #ruby
[07:31:15] tubuliferous_: has joined #ruby
[07:33:17] Shoutsid: has joined #ruby
[07:34:50] Ox0dea: ncopa: Are you not allowed to `gem up --sys`?
[07:35:16] xcesariox: has joined #ruby
[07:35:33] ta: has joined #ruby
[07:35:48] aufi: has joined #ruby
[07:36:43] aryaching: has joined #ruby
[07:36:47] ndrei: has joined #ruby
[07:38:08] lea: has joined #ruby
[07:38:24] jxs_: has joined #ruby
[07:38:45] shai123bn: has joined #ruby
[07:39:38] shai123bn: Hi :) Can someone please point me to the documentation on Ruby 1.8.7 for the method 'first' of a hash object? Like: a.first
[07:39:50] ncopa: Ox0dea: i am packaging ruby for alpine linux
[07:39:50] keen______: has joined #ruby
[07:40:22] Ox0dea: shai123bn: Using 1.8.7 is illegal.
[07:40:35] shai123bn: Ox0dea: lol
[07:40:40] apeiros: &ri Enumerable#first @shai123bn
[07:40:40] `derpy: shai123bn: http://www.rubydoc.info/stdlib/core/Enumerable#first-instance_method
[07:41:04] Igorshp: has joined #ruby
[07:41:27] ncopa: Ox0dea: it is not possible to run `gem <anything>` unless you already have ruby installed
[07:42:34] karapetyan: has joined #ruby
[07:43:50] rdark: has joined #ruby
[07:43:50] rdark: has joined #ruby
[07:44:01] diego1: has joined #ruby
[07:44:05] diego1: has joined #ruby
[07:44:36] marr: has joined #ruby
[07:45:09] galeido: has joined #ruby
[07:45:13] shai123bn: `derpy: thank you!
[07:45:16] rdark: has joined #ruby
[07:45:23] shai123bn: apeiros: thank you :)
[07:47:15] uber: has joined #ruby
[07:48:02] Igorshp_: has joined #ruby
[07:48:10] doublemalt_: has joined #ruby
[07:49:16] krz: has joined #ruby
[07:51:40] astrobun_: has joined #ruby
[07:52:50] ncopa: fwiw, ruby-2.2.3 does include the fix for CVE-2015-4020, even if the release notes doe not say anything about it
[07:53:55] joonty: has joined #ruby
[07:56:19] adac: has joined #ruby
[07:57:08] senayar: has joined #ruby
[07:58:01] acke_: has joined #ruby
[07:58:13] norc: certainty, dnewkerk. Mmm, Ill take your tips - and just start. :)
[08:00:07] kalusn: has joined #ruby
[08:00:14] tomaz_b: has joined #ruby
[08:00:26] akem: has joined #ruby
[08:00:33] kalusn: has joined #ruby
[08:00:44] Hounddog: has joined #ruby
[08:00:59] diego1: has joined #ruby
[08:01:14] acke: has joined #ruby
[08:01:21] curses: has joined #ruby
[08:01:56] mikecmpbll: has joined #ruby
[08:02:13] diego1: has joined #ruby
[08:03:35] workmad3: has joined #ruby
[08:04:18] Gnomethrower: has joined #ruby
[08:05:10] rdark: has joined #ruby
[08:05:11] rdark: has joined #ruby
[08:06:01] diego1: has joined #ruby
[08:06:08] deps: has left #ruby: ()
[08:06:45] diego1: has joined #ruby
[08:07:53] contradictioned: has joined #ruby
[08:08:21] codecop: has joined #ruby
[08:08:24] karapetyan: has joined #ruby
[08:10:39] zenguy_pc: has joined #ruby
[08:11:47] blaxter: has joined #ruby
[08:13:21] aryaching: has joined #ruby
[08:16:58] tAn: has joined #ruby
[08:17:43] jxs_: has joined #ruby
[08:18:13] tvw: has joined #ruby
[08:18:20] bruno-: has joined #ruby
[08:19:18] ahmetkapikiran: has joined #ruby
[08:21:41] aryaching_: has joined #ruby
[08:23:19] dhjondoh: has joined #ruby
[08:23:33] bmalum: has joined #ruby
[08:25:27] skade: has joined #ruby
[08:25:52] Pumukel: has joined #ruby
[08:26:15] htmldrum: has joined #ruby
[08:27:11] sonne: has joined #ruby
[08:29:32] diegok: has joined #ruby
[08:30:07] mark2: has joined #ruby
[08:31:21] uber: has joined #ruby
[08:31:51] lea: has joined #ruby
[08:31:59] certainty: norc: alright, have fun
[08:32:04] workmad3: has joined #ruby
[08:35:55] nemo_: has joined #ruby
[08:36:16] SenpaiSilver: has joined #ruby
[08:38:16] jxs_: has joined #ruby
[08:38:41] jds: has joined #ruby
[08:40:40] nemo__: has joined #ruby
[08:43:09] diego1: has joined #ruby
[08:43:24] diego1: has joined #ruby
[08:43:50] diegoaguilar: has joined #ruby
[08:43:59] mordocai: has joined #ruby
[08:47:11] nettoweb: has joined #ruby
[08:47:51] ibouvousaime: has joined #ruby
[08:48:19] dANO-: has joined #ruby
[08:48:32] SOLDIERz: has joined #ruby
[08:48:37] shevy: knock knock
[08:48:57] teclator: has joined #ruby
[08:50:07] lkba: has joined #ruby
[08:50:21] lkba_: has joined #ruby
[08:51:10] certainty: shevy: who's this?
[08:52:00] shevy: your daddy!
[08:52:18] certainty: shevy: my daddy, who?
[08:53:31] ramfjord: has joined #ruby
[08:53:46] Pumukel: has joined #ruby
[08:53:54] c0m0: has joined #ruby
[08:54:04] Some-body_: has joined #ruby
[08:54:07] Bellthoven: has joined #ruby
[08:57:22] diego1: has joined #ruby
[08:58:29] matp: has joined #ruby
[08:59:33] apeiros: certainty: daddy cool!
[09:01:48] zotherstupidguy: has joined #ruby
[09:03:39] ahmetkapikiran: has joined #ruby
[09:03:46] krz: has joined #ruby
[09:05:41] blackmesa: has joined #ruby
[09:08:00] vigintas: has joined #ruby
[09:08:52] akem: has joined #ruby
[09:09:31] certainty: apeiros: at least you know how to roll these jokes :)
[09:10:52] nfk|laptop: has joined #ruby
[09:11:19] lee-jon: has joined #ruby
[09:11:24] soc42: has joined #ruby
[09:11:31] vigintas: has joined #ruby
[09:11:33] dhjondoh1: has joined #ruby
[09:11:39] shevy: rolling your daddy!
[09:12:07] apeiros: I was curious where shevy's joke would lead. I'm slightly disappointed. iocus interruptus???
[09:12:12] lolmaus: has joined #ruby
[09:12:37] Rollabunna: has joined #ruby
[09:13:52] shevy: daddy apeiros!
[09:14:35] shevy: I am rewriting old ruby code and it's not a lot of fun :(
[09:14:51] certainty: shevy: aren't you always rewriting old code?
[09:15:31] certainty: oh wait no. You're old, writing code. That was it :D
[09:15:47] shevy: certainty sorta
[09:15:58] workmad3: has joined #ruby
[09:16:13] shevy: usually when I get annoyed at some API or how to use something
[09:18:08] shevy: or when documentation is missing!
[09:18:33] astrobun_: has joined #ruby
[09:19:02] c0m0: has joined #ruby
[09:19:19] bruno-: has joined #ruby
[09:20:44] sgambino: has joined #ruby
[09:20:57] GriffinHeart: has joined #ruby
[09:21:30] aryaching: has joined #ruby
[09:22:10] lee-jon: has joined #ruby
[09:24:34] karapetyan: has joined #ruby
[09:26:00] Peg-leg: has joined #ruby
[09:26:27] diegoviola: has joined #ruby
[09:26:50] DEA7TH: has joined #ruby
[09:27:51] lee-jon: has left #ruby: ()
[09:28:43] Igorshp: has joined #ruby
[09:29:01] vigintas: has joined #ruby
[09:29:08] uber: has joined #ruby
[09:29:38] lea: has joined #ruby
[09:30:27] herbst: has joined #ruby
[09:30:40] c0m0: has joined #ruby
[09:32:06] idefine: has joined #ruby
[09:33:06] skade: has joined #ruby
[09:33:12] leafybasil: has joined #ruby
[09:33:35] livcd: has joined #ruby
[09:33:40] `based_pdev`: has joined #ruby
[09:33:43] nemo_: has joined #ruby
[09:33:46] bruno-: has joined #ruby
[09:34:13] livcd: what do you guys think of codewars ?
[09:35:27] nemo___: has joined #ruby
[09:36:00] leafybasil: has joined #ruby
[09:36:01] c0m0: has joined #ruby
[09:36:19] `based_pdev`: has joined #ruby
[09:37:27] Alina-malina: has joined #ruby
[09:37:58] nemo__: has joined #ruby
[09:39:05] faces: has joined #ruby
[09:39:06] zotherst1: has joined #ruby
[09:39:12] nemo_: has joined #ruby
[09:39:12] bruno-: has joined #ruby
[09:40:19] nemo_: has joined #ruby
[09:41:40] speaking1ode: has joined #ruby
[09:42:01] Synthead: has joined #ruby
[09:42:52] shevy: what is it good for?
[09:43:48] AxonetBE: has joined #ruby
[09:43:51] mdih: has joined #ruby
[09:44:07] AxonetBE: if I write a csv file like this : https://gist.github.com/bigbentobox/6b90ac44e4efa7572020 how can I enclose the values of the second row by double qoutes?
[09:44:17] kaspergrubbe: has joined #ruby
[09:44:28] bruno-: has joined #ruby
[09:44:49] apeiros: AxonetBE: why'd you care? the csv gem ensures the data is valid csv.
[09:45:38] apeiros: a value would be double quoted if it contains one of the seperators
[09:45:52] AxonetBE: for example, I work with phone numbers and the values are 0321752520 for example and when importing into excel he doesn't import the leading 0
[09:45:55] apeiros: it might also be possible to force the csv gem to just quote all values. check the options.
[09:46:29] AxonetBE: apeiros: yes force_quotes let's quote all the values, that is good but my 3rd party doesn't want to have quoted the header row
[09:46:52] apeiros: AxonetBE: I doubt that'll change by quoting it. as far as I remember excel, you tell it that it's a text column, not a number column.
[09:46:57] apeiros: ACTION afk
[09:49:17] unreal_: has joined #ruby
[09:51:17] khebbie_: has joined #ruby
[09:52:48] shevy: certainty why does clojure look so weird? http://vgel.me/posts/cracking-online-textbook/
[09:54:37] karapetyan: has joined #ruby
[09:56:48] yashinbasement: has joined #ruby
[09:56:50] workmad3: looks like a lisp to me
[09:56:54] GriffinHeart: has joined #ruby
[09:58:26] GriffinHeart: has joined #ruby
[10:00:51] cwong_on_irc: has joined #ruby
[10:01:15] cwong_on_irc: has joined #ruby
[10:01:36] dmolina: has joined #ruby
[10:01:46] cwong_on_irc: has joined #ruby
[10:03:37] rodfersou: has joined #ruby
[10:06:27] ndrei: has joined #ruby
[10:07:20] lea: has joined #ruby
[10:07:33] khebbie: has joined #ruby
[10:07:56] mary5030: has joined #ruby
[10:08:42] jenrzzz: has joined #ruby
[10:09:40] cornerma1: has joined #ruby
[10:10:56] zenguy_pc: has joined #ruby
[10:11:22] uber: has joined #ruby
[10:11:49] blaxter: has joined #ruby
[10:15:32] stamina: has joined #ruby
[10:15:43] kraljev11: has joined #ruby
[10:15:49] mdih: has joined #ruby
[10:16:48] dviola: has joined #ruby
[10:17:12] GriffinHeart: has joined #ruby
[10:19:00] platzhirsch: has joined #ruby
[10:20:13] Gustavo: has joined #ruby
[10:20:34] rickmasta: has joined #ruby
[10:22:17] pathrocle: has joined #ruby
[10:23:15] trosborn: has joined #ruby
[10:28:53] pwnd_nsfw: has joined #ruby
[10:29:27] Igorshp: has joined #ruby
[10:30:43] bnagy: has joined #ruby
[10:33:36] ldnunes: has joined #ruby
[10:35:12] ahmetkapikiran: has joined #ruby
[10:35:14] Cyther: has joined #ruby
[10:37:52] bruce_lee: has joined #ruby
[10:38:07] doddok: has joined #ruby
[10:38:12] Akagi201: has joined #ruby
[10:38:22] diego1: has joined #ruby
[10:38:30] diego1: has joined #ruby
[10:43:04] apeiros: AxonetBE: solved your issue?
[10:43:21] AxonetBE: apeiros: not really
[10:43:30] lubarch: has joined #ruby
[10:43:34] apeiros: you can try adding a leading ' to the value
[10:43:52] apeiros: within excel, that's an indicator to treat it as a string value and the ' itself is not shown
[10:44:00] apeiros: maybe it behaves that way too when importing
[10:45:40] raphagodoi: has joined #ruby
[10:45:49] zacts: has joined #ruby
[10:46:07] raphagodoi: has left #ruby: ()
[10:47:27] allcentury: has joined #ruby
[10:48:28] spider-mario: has joined #ruby
[10:50:28] but3k4: has joined #ruby
[10:51:07] karapetyan: has joined #ruby
[10:52:41] CooloutAC: has joined #ruby
[10:55:40] ruurd: has joined #ruby
[10:56:04] trautwein: has joined #ruby
[10:56:50] hectortrope: has joined #ruby
[11:00:28] ruisantos: has joined #ruby
[11:00:52] nemo__: has joined #ruby
[11:02:11] _blizzy_: has joined #ruby
[11:02:38] lipoqil: has joined #ruby
[11:03:03] CooloutAC: has joined #ruby
[11:04:16] pathrocle: has joined #ruby
[11:04:24] ruisantos: has joined #ruby
[11:05:50] dhjondoh1: has joined #ruby
[11:05:55] decoponio: has joined #ruby
[11:06:59] skade: has joined #ruby
[11:08:13] Fredrich_: has joined #ruby
[11:08:26] mordocai: has joined #ruby
[11:10:07] _blizzy_: has joined #ruby
[11:12:55] karapetyan: has joined #ruby
[11:13:27] Rollabunna: has joined #ruby
[11:13:28] ramfjord: has joined #ruby
[11:13:36] shevy: ruby ruby ruby ruby
[11:13:52] bryanray: has joined #ruby
[11:14:14] lee-jon: has joined #ruby
[11:15:08] baroquebobcat: has joined #ruby
[11:15:57] vigintas: has joined #ruby
[11:17:21] Hanmac: has joined #ruby
[11:18:02] sdothum: has joined #ruby
[11:18:48] Pupp3tm4st3r: has joined #ruby
[11:23:45] jhass: ruby: No such file or directory -- ruby (LoadError)
[11:24:13] Gustavo: has joined #ruby
[11:27:55] GriffinHeart: has joined #ruby
[11:31:27] voker57: has joined #ruby
[11:33:19] lee-jon: has joined #ruby
[11:33:25] akem: has joined #ruby
[11:37:55] certainty: shevy: what's weired about that?
[11:38:03] jgt: has joined #ruby
[11:39:31] certainty: also note that this is probably not the best resource for what clojure is about. Due to the interop with awt. That's why there are so many (doto)
[11:39:53] wpp: has joined #ruby
[11:40:20] RandyT_: has joined #ruby
[11:41:12] RandyT-: has joined #ruby
[11:43:20] RandyT|: has joined #ruby
[11:44:02] vigintas: has joined #ruby
[11:44:11] bkxd: has joined #ruby
[11:44:11] RandyT: has joined #ruby
[11:44:52] RandyT^: has joined #ruby
[11:45:48] RandyT_: has joined #ruby
[11:46:24] RandyT-: has joined #ruby
[11:47:07] RandyTa: has joined #ruby
[11:48:18] Pumukel: has joined #ruby
[11:48:41] joonty: has joined #ruby
[11:49:52] RandyT|: has joined #ruby
[11:50:42] RandyT: has joined #ruby
[11:51:08] Icey: has joined #ruby
[11:51:51] prestorium: has joined #ruby
[11:51:51] RandyT_: has joined #ruby
[11:52:22] atomical: has joined #ruby
[11:52:41] _joes__: has joined #ruby
[11:52:58] RandyT-: has joined #ruby
[11:54:20] RandyT^: has joined #ruby
[11:54:27] Alina-malina: has joined #ruby
[11:54:54] RandyTa: has joined #ruby
[11:55:23] RandyT: has joined #ruby
[11:55:30] ahmetkapikiran: has joined #ruby
[11:56:00] RandyT|: has joined #ruby
[11:57:03] [BNC]WizJin: has joined #ruby
[11:57:09] RandyT_: has joined #ruby
[11:58:08] dhjondoh: has joined #ruby
[11:58:18] RandyT-: has joined #ruby
[11:58:46] dhjondoh: has joined #ruby
[11:58:58] RandyTb: has joined #ruby
[11:59:07] idefine: has joined #ruby
[11:59:50] RandyT^: has joined #ruby
[11:59:53] nateberkopec: has joined #ruby
[12:00:20] RandyT: has joined #ruby
[12:02:01] RandyT_: has joined #ruby
[12:02:46] synthroid: has joined #ruby
[12:02:49] ushbkk: has joined #ruby
[12:02:52] RandyT|: has joined #ruby
[12:03:30] RandyT-: has joined #ruby
[12:03:31] stamina: has joined #ruby
[12:03:44] kraljev11: has joined #ruby
[12:04:37] WizJin: has joined #ruby
[12:05:33] RandyT: has joined #ruby
[12:06:13] Rollabunna: has joined #ruby
[12:06:15] RandyT^: has joined #ruby
[12:07:16] diegobiavati: has joined #ruby
[12:08:21] RandyT_: has joined #ruby
[12:08:59] RandyT-: has joined #ruby
[12:09:38] RandyT|: has joined #ruby
[12:10:31] RandyT: has joined #ruby
[12:10:55] Icey: so welcoming in here today ;-)
[12:11:07] RandyTa: has joined #ruby
[12:11:41] RandyT^: has joined #ruby
[12:13:06] nemo_: has joined #ruby
[12:13:35] darkhex: has joined #ruby
[12:13:47] RandyT_: has joined #ruby
[12:14:29] jenrzzz: has joined #ruby
[12:15:33] khebbie: has joined #ruby
[12:15:38] gusTester: has joined #ruby
[12:15:42] khebbie_: has joined #ruby
[12:15:49] dnewkerk: has joined #ruby
[12:15:57] `tim`: has joined #ruby
[12:16:19] Igorshp: has joined #ruby
[12:16:50] RandyT: has joined #ruby
[12:17:42] zotherstupidguy: has joined #ruby
[12:18:25] lkba: has joined #ruby
[12:18:55] RandyT_: has joined #ruby
[12:19:05] apeiros: +b *!~RandyT@*$#ruby-fix-your-connection
[12:19:07] diegoviola: has joined #ruby
[12:19:12] apeiros: -o apeiros
[12:23:03] haylon: has joined #ruby
[12:23:22] mbeasley: has left #ruby: ("WeeChat 0.4.2")
[12:24:19] Ropeney: has joined #ruby
[12:25:03] kraljev11: has joined #ruby
[12:27:47] skade: has joined #ruby
[12:29:26] Gustavo: has joined #ruby
[12:31:02] gregf: has joined #ruby
[12:32:01] diegoaguilar: has joined #ruby
[12:32:21] karapetyan: has joined #ruby
[12:34:08] aryaching: has joined #ruby
[12:36:42] karapetyan: has joined #ruby
[12:37:36] dviola: has joined #ruby
[12:37:57] norc: Hi, I want to read from a couple hundred devices simultaneously, while pushing the results (slightly transformed) to our REST API.
[12:38:25] matp: has joined #ruby
[12:38:25] sgambino: has joined #ruby
[12:38:32] norc: For now I use thread pool from the gem 'thread'
[12:38:32] jhass: "devices"?
[12:39:04] norc: jhass: Things on our network. Its all behind my libraries.
[12:39:24] norc: As for my question:
[12:39:27] GriffinHeart: has joined #ruby
[12:39:33] gusTester: has left #ruby: ()
[12:40:25] norc: Given that, I was thinking of maintaining two thread pools, one to aggregate data from those devices, pushing the results into a worker queue
[12:40:41] khebbie_: has joined #ruby
[12:40:49] norc: with a second thread pool continuously clearing that queue into the API
[12:41:10] n008f4g_: has joined #ruby
[12:41:18] norc: (The read speed greatly exceeds the rate at which I can write to my REST API)
[12:41:37] norc: Is this so far a bad concept?
[12:42:48] jhass: so this is all HTTP or ...?
[12:43:31] norc: The devices use their own protocol - but I have that implemented already.
[12:43:39] norc: The REST API is HTTP however.
[12:44:02] pathrocle: has joined #ruby
[12:44:09] jhass: well, you can probably get away with a single consumer that pushes things to a typhoeus hydra
[12:44:27] jhass: that thing has an astonishing performance
[12:44:47] toy_: has joined #ruby
[12:44:53] zenguy_pc: has joined #ruby
[12:46:16] norc: My API might not appreciate being bombarded with HTTP requests. I have already successfully DoS'ed the server (even SSH failed) with HTTP. ;-)
[12:46:26] jhass: if you're not on +100% CPU already having a separate queue for each producer and the consumer iterating over these without blocking on them might help (or not and that busy loop makes everything worse actually, that's the thing with concurrency applications, you need to try out a few concepts)
[12:46:54] jhass: well, you asked about scaling out the consumer side..
[12:48:29] big|bad|wolf: has joined #ruby
[12:48:34] rwilcox_: has joined #ruby
[12:49:29] jhass: so you're already capable of exhausting the targets resources
[12:49:34] norc: jhass: Well, actually I already have something implemented, I just struggle with some basic concepts how to resolve exiting everything
[12:49:37] jhass: what exactly do you seek to improve?
[12:49:52] norc: jhass: That remark was actually about hydra in particular.
[12:50:14] jhass: I don't follow how it's not relevant in general though
[12:50:19] krz: has joined #ruby
[12:50:37] norc: You have a good point.
[12:50:48] norc: A single consumer would greatly simplify things.
[12:52:17] demonlove: has joined #ruby
[12:53:12] mag42c: has joined #ruby
[12:53:55] treehug88: has joined #ruby
[12:54:51] symbol: has joined #ruby
[12:55:48] toy: has joined #ruby
[12:55:52] yitsushi: has joined #ruby
[12:57:19] JDiPierro: has joined #ruby
[12:57:44] Gustavo: has joined #ruby
[12:57:52] khebbie: has joined #ruby
[12:57:59] ahmetkapikiran: has joined #ruby
[12:58:17] toy: has joined #ruby
[12:58:51] Guest50: has joined #ruby
[12:59:10] symbol: Anyone know of up to date auth gems that can be used with Sinatra?
[13:00:14] symbol: Ah, just found sinatra-warden.
[13:01:56] allcentury: has joined #ruby
[13:02:54] dmolina: has joined #ruby
[13:04:41] _blizzy_: has joined #ruby
[13:05:48] haylon: What's Sinatra Warden?
[13:07:14] big|bad|wolf: has joined #ruby
[13:07:20] adaedra: I suppose a way to integrate warden into sinatra
[13:07:31] symbol: Just a wrapper around warden for sinatra
[13:08:36] JJM: has joined #ruby
[13:09:11] haylon: Nifty. I'll have to check it out
[13:09:43] symbol: I was hoping for a devise-like solution to save time but sinatra-authentication (which is semi deviseish) is really out of date.
[13:10:13] big|bad|wolf: has joined #ruby
[13:10:45] danman: has joined #ruby
[13:11:43] cdg: has joined #ruby
[13:12:18] Igorshp: has joined #ruby
[13:13:04] _blizzy_: has joined #ruby
[13:13:19] sdwrage: has joined #ruby
[13:13:32] Nicola-1980: has joined #ruby
[13:14:16] wpp: has joined #ruby
[13:14:37] diegoaguilar: has joined #ruby
[13:15:11] unshadow: has joined #ruby
[13:15:46] kraljev11: has joined #ruby
[13:16:45] ndrei: has joined #ruby
[13:17:20] O47m341: has joined #ruby
[13:18:13] TPBallbag: has joined #ruby
[13:18:15] sanjayu: has joined #ruby
[13:19:05] sankaber: has joined #ruby
[13:19:17] unshadow: Is there a way for me to format a string into byte sequnse ? like in [0x03, 0x00].pack('C*')
[13:19:41] bonhoeffer: has joined #ruby
[13:20:01] nemo_: has joined #ruby
[13:20:15] apeiros: unshadow: what's wrong with pack then?
[13:20:41] bmalum: has joined #ruby
[13:20:43] krz: has joined #ruby
[13:20:49] unshadow: Nothing wrong, just can't find the way to do it :/
[13:21:03] unshadow: >> "Testing".pack('C*')
[13:21:04] ruboto: unshadow # => undefined method `pack' for "Testing":String (NoMethodError) ...check link for more (https://eval.in/454744)
[13:21:25] freerobby: has joined #ruby
[13:21:32] roshanavand: has joined #ruby
[13:21:59] lee-jon: has joined #ruby
[13:22:46] unshadow: is pack only for Array ?
[13:23:09] apeiros: I don't get what you want then.
[13:23:21] adaedra: yes, because the goal is to pack multiple variables (so an Array)
[13:23:39] unshadow: I want to take a string, for example: "testing" and have a byte sequence in the end
[13:23:50] apeiros: unshadow: a string already is a byte sequence
[13:23:57] apeiros: you'll have to elaborate.
[13:24:56] treehug88: has joined #ruby
[13:25:20] unshadow: I want to print out, a byte representaion of the string I take from the user, like "testing" and print out \30d \sde4 \e4dd etc...
[13:25:31] bigmac_: has joined #ruby
[13:25:52] O47m341: has joined #ruby
[13:25:54] apeiros: that's quite a different thing than what you've asked before :-p
[13:26:19] unshadow: apeiros: Sorry, I'm having hard time explainig my self sometimes XD
[13:26:31] apeiros: >> "testing".unpack("H*").first.gsub(/../, '\x\0')
[13:26:32] yxhuvud: has joined #ruby
[13:26:32] ruboto: apeiros # => "\\x74\\x65\\x73\\x74\\x69\\x6e\\x67" (https://eval.in/454747)
[13:26:36] blackoperat: has joined #ruby
[13:26:40] apeiros: unshadow: you know, examples go a long way.
[13:27:10] moei: has joined #ruby
[13:27:12] apeiros: though, honestly, "\30d" makes no sense
[13:27:21] apeiros: (even less so \sde4)
[13:27:29] unshadow: hahah I know, just wanted to show what I ment XD
[13:27:43] apeiros: yes, and you made it harder to understand than necessary.
[13:27:49] blackoperat: has joined #ruby
[13:27:57] unshadow: ok.... any way thanks
[13:28:44] bryanray: has joined #ruby
[13:28:58] sankaber: has joined #ruby
[13:29:53] devdazed: has joined #ruby
[13:31:31] big|bad|wolf: has joined #ruby
[13:31:36] Gnomethrower: has joined #ruby
[13:32:37] teclator: has joined #ruby
[13:33:28] chrislotix: has joined #ruby
[13:34:26] roshanavand: has joined #ruby
[13:34:30] TheMoonMaster: has joined #ruby
[13:35:18] sepp2k: has joined #ruby
[13:35:41] linuxboytoo: has joined #ruby
[13:36:54] idefine: has joined #ruby
[13:37:44] lee-jon: has joined #ruby
[13:37:44] hmsimha: has joined #ruby
[13:39:04] bigmac_: can i take a number and round up to the nearest sqrt?
[13:39:37] bigmac_: i can do this with a loop
[13:39:57] bigmac_: num+=1 until sqrt==% 1 !=0
[13:40:15] jgt: has joined #ruby
[13:40:19] bigmac_: but this can take loads of time
[13:40:23] aryaching: has joined #ruby
[13:40:48] canton7: are you sure about that 'sqrt==%'?
[13:40:59] bigmac_: well, that is improper
[13:41:39] bigmac_: i have a loop that checks the sqrt, if its a proper whole number... no remaining decimals...
[13:41:40] marr: has joined #ruby
[13:41:43] monoprotic: what is "nearest square root"
[13:42:37] canton7: yeah, I'm failing to understand the question. some terms are unclear, and the equivalent code sample doesn't run
[13:43:21] subscope: has joined #ruby
[13:43:28] monoprotic: i think s/he is trying to get the least square of an integer which is equal to or greater than a given number
[13:43:55] apeiros: bigmac_: Math.sqrt(num).ceil**2
[13:44:31] lee-jon: has joined #ruby
[13:45:00] Rollabunna: has joined #ruby
[13:45:09] nurbson: has joined #ruby
[13:45:15] bigmac_: oh thank you
[13:45:53] jenrzzz: has joined #ruby
[13:46:00] bigmac_: math is so much fun lol
[13:46:40] David27: has joined #ruby
[13:47:04] apeiros: wait until you have to understand floats/doubles.
[13:47:26] apeiros: immediate evaporation of all fun.
[13:47:50] big|bad|wolf: has joined #ruby
[13:49:35] apeiros: wife studies maths and has to learn C++. now I have to re-learn all those nasty details like how subnormals work.
[13:49:48] hornairs: has joined #ruby
[13:49:55] zwdr: for me cl macros are filled with that kind of fun
[13:50:01] jhass: monoprotic: http://en.wikipedia.org/wiki/Singular_they ;)
[13:50:04] apeiros: or why 0.2*5 == 1.0 (that's actually one I still want to work out, though I have an idea why it might work out)
[13:50:12] hornairs: has left #ruby: ()
[13:50:29] caliostro: has joined #ruby
[13:50:40] jhass: apeiros: could be worse, could be fortran :P
[13:50:46] monoprotic: jhass same amount of characters :P
[13:50:59] jhass: monoprotic: only one more reason!
[13:51:09] Rodya_: has joined #ruby
[13:51:33] apeiros: jhass: true. even though fortran is only worse because it offers less "other world value" (or how ever you want to call it)
[13:51:40] certainty: s/he is still limiting to two options, whereas they is completely neutral as I understand it
[13:52:25] jhass: certainty: I'd follow that
[13:52:31] bigmac_: thank you again...
[13:52:40] `tim`: has joined #ruby
[13:52:43] monoprotic: what does s/he exclude?
[13:52:54] apeiros: monoprotic: gender isn't binary ;-)
[13:53:04] monoprotic: i mean what pronouns
[13:53:25] apeiros: afaik there's no proper pronouns besides they for non-binary genders.
[13:53:27] jhass: monoprotic: http://www.sarahmei.com/blog/2010/11/26/disalienation/
[13:53:48] monoprotic: could someone assert that 'they' does not properly describe them?
[13:54:23] zwdr: they sounds and reads a lot better as well
[13:54:30] monoprotic: so what makes it completely neutral
[13:54:37] ericjphillips: has joined #ruby
[13:54:42] apeiros: that it's commonly accepted as neutral.
[13:54:59] monoprotic: well thats fuzzy
[13:55:01] apeiros: language isn't an absolute
[13:55:09] monoprotic: anyway point taken, old habits die hard :)
[13:55:24] apeiros: heh, totally.
[13:55:41] apeiros: I still wonder how often I don't even notice.
[13:55:47] monoprotic: no one would have blinked if i said 'he'
[13:55:50] rwilcox: has joined #ruby
[13:55:51] Nicola-1980: has joined #ruby
[13:56:55] K1MOS: has joined #ruby
[13:57:11] britt_: has joined #ruby
[13:57:24] monoprotic: not particularly :)
[13:58:40] bigmac_: num=BigDecimal.new(1000)
[13:58:41] mghaig: has joined #ruby
[13:58:51] Cyther: has joined #ruby
[13:58:58] bigmac_: ("%d" %num).ti_i
[13:59:16] microx: has joined #ruby
[13:59:23] balazs: has joined #ruby
[13:59:27] microx: Are local variables stored in self or the default definee?
[13:59:39] apeiros: microx: neither. they're local to the lexical context.
[13:59:42] bigmac_: is there a BigDecimal way to convert the number
[13:59:53] apeiros: bigmac_: BigDecimal(1000).to_i
[14:00:05] apeiros: same roundtrip as your code.
[14:00:42] bigmac_: oh i feel dumb... i would have made that mistake hundreds of times
[14:00:47] bffff_: has joined #ruby
[14:00:50] microx: apeiros: https://eval.in/454755
[14:02:14] apeiros: microx: #local_variables does not work that way.
[14:02:27] microx: apeiros: How does it work then?
[14:02:47] Alayde: has joined #ruby
[14:03:06] bigmac_: apeiros: if you had one look all my projects, you could turn 3000 lines into 3...
[14:03:09] apeiros: microx: it does not make sense to call it on a receiver. no matter on what object you call it, it will always return the same.
[14:03:18] microx: apeiros: What's the lexical context at the top level? Isn't it the Object class?
[14:03:20] joonty: has joined #ruby
[14:03:24] apeiros: microx: you could do `x = "hi"; "whatever".send(:local_variables)`
[14:03:37] apeiros: as said, the lexical context is relevant, not the receiver.
[14:03:38] khebbie: has joined #ruby
[14:03:51] apeiros: microx: no, lexical context is orthogonal to objects.
[14:03:52] khebbie_: has joined #ruby
[14:03:59] apeiros: or is it? hm???
[14:04:46] apeiros: microx: anyway, only some things start a new lexical context. examples: `class`, `module`, `def`. to a degree blocks do too. being closures, they're a bit special, though.
[14:05:11] apeiros: so *until* your code reaches one of those keywords, your lexical scope won't change.
[14:05:44] apeiros: so your lvars are not related to an object, but to a place in the code.
[14:05:46] yitsushi: has joined #ruby
[14:06:09] apeiros: caliostro: hi there too :)
[14:06:15] karapetyan: has joined #ruby
[14:06:24] dravine_: has joined #ruby
[14:07:52] shmilan: has joined #ruby
[14:09:47] roshanav_: has joined #ruby
[14:09:51] vkey1: has joined #ruby
[14:10:39] demonlove: has joined #ruby
[14:11:13] bjaX: has joined #ruby
[14:11:22] droidburgundy: has joined #ruby
[14:11:25] rezas: has joined #ruby
[14:12:30] rezas: anybody knows a service to analyzie Gemfiles and gives report about Gems compatibility after a ruby or rails update ?
[14:13:26] rezas: ex. version x of foo gem is not supported in y version of ruby or rails , latest compatible version is m
[14:13:41] jhass: well, that's hard to assess automatically
[14:13:48] umgrosscol: has joined #ruby
[14:13:53] idefine: has joined #ruby
[14:13:55] jhass: if not impossible
[14:14:31] doublemalt__: has joined #ruby
[14:14:33] mary5030: has joined #ruby
[14:14:38] rezas: dependency handeling?
[14:15:02] apeiros: as far as it is written in the gemspec itself, bundler will already tell you
[14:15:26] mary5030: has joined #ruby
[14:16:02] rezas: any ideas about using rubygems.org API for doing this ?
[14:17:10] mary5030: has joined #ruby
[14:17:25] tvon: has joined #ruby
[14:18:16] balazs: has joined #ruby
[14:18:38] chouhoulis: has joined #ruby
[14:18:41] rezas: has left #ruby: ()
[14:20:52] psye: has joined #ruby
[14:21:04] Gustavo: has joined #ruby
[14:22:10] big|bad|wolf: has joined #ruby
[14:22:55] troulouliou_div2: has joined #ruby
[14:23:06] kies^: has joined #ruby
[14:23:16] k3asd`: has joined #ruby
[14:24:12] v4n: has joined #ruby
[14:24:38] chouhoulis: has joined #ruby
[14:24:39] tylersmith: has joined #ruby
[14:25:02] EmeraldExplorer: has joined #ruby
[14:25:32] IrishGringo: has joined #ruby
[14:26:07] The_Phoenix: has joined #ruby
[14:26:20] rickmasta: has joined #ruby
[14:27:08] sdothum: has joined #ruby
[14:27:11] The_Phoenix: has joined #ruby
[14:27:32] mag42c_: has joined #ruby
[14:27:40] null__: has joined #ruby
[14:27:40] null__: has joined #ruby
[14:28:59] tenderlove: has joined #ruby
[14:29:02] The_Phoenix: has joined #ruby
[14:30:17] dopamean_: has joined #ruby
[14:30:26] The_Phoenix: has joined #ruby
[14:30:47] blackmesa: has joined #ruby
[14:31:40] SamGerber: has joined #ruby
[14:31:46] Sam_Gerber: has joined #ruby
[14:31:47] skade: has joined #ruby
[14:32:15] Channel6: has joined #ruby
[14:32:45] p0wn3d: has joined #ruby
[14:34:49] rodfersou: has joined #ruby
[14:35:10] null__: has joined #ruby
[14:35:10] null__: has joined #ruby
[14:35:43] pathrocle: has joined #ruby
[14:35:48] rcs: has joined #ruby
[14:40:23] jason^: has joined #ruby
[14:40:24] tenderlove: has joined #ruby
[14:40:35] GriffinHeart: has joined #ruby
[14:41:15] jason^: can anyone recommend a graphing gem?
[14:41:47] null__: has joined #ruby
[14:41:47] null__: has joined #ruby
[14:43:18] The_Phoenix: has joined #ruby
[14:43:18] treehug88: has joined #ruby
[14:44:42] e1senhorn: has joined #ruby
[14:45:44] relix: has joined #ruby
[14:46:06] chouhoulis: has joined #ruby
[14:46:07] kaleido: has joined #ruby
[14:48:58] caliostro: can you please suggest me , for a ruby smb client for linux ?
[14:49:39] null__: has joined #ruby
[14:49:40] null__: has joined #ruby
[14:49:48] The_Phoenix: has joined #ruby
[14:50:00] bkxd: has joined #ruby
[14:50:11] agentmeerkat: caliostro maybe sambal: https://github.com/johnae/sambal
[14:50:36] agentmeerkat: jason what kind of graphing are you trying to do?
[14:51:06] The_Phoenix: has joined #ruby
[14:51:35] slawrence00: has joined #ruby
[14:52:12] ruurd: has joined #ruby
[14:52:15] sdothum: has joined #ruby
[14:52:34] agentmeerkat: Here's a list of different graphing gems: https://www.ruby-toolbox.com/categories/graphing
[14:53:41] pwnd_nsfw: has joined #ruby
[14:54:10] bryanray: has joined #ruby
[14:57:12] diegoaguilar: has joined #ruby
[14:58:04] chopin: has joined #ruby
[14:58:32] tenderlove: has joined #ruby
[14:58:34] nhhagen: has joined #ruby
[14:59:30] rippa: has joined #ruby
[14:59:41] pwnd_nfsw: has joined #ruby
[15:00:11] ericjphillips: has joined #ruby
[15:03:39] podman: has joined #ruby
[15:05:32] vigintas: has joined #ruby
[15:05:54] jgpawletko: has joined #ruby
[15:06:33] m8: has joined #ruby
[15:10:08] null__: has joined #ruby
[15:10:08] null__: has joined #ruby
[15:10:20] shmilan: has joined #ruby
[15:12:40] blaxter: has joined #ruby
[15:13:31] davedev24: has joined #ruby
[15:14:25] Coldblackice: has joined #ruby
[15:14:29] tjohnson: has joined #ruby
[15:14:46] teclator: has joined #ruby
[15:15:01] ramfjord: has joined #ruby
[15:15:10] ndrei: has joined #ruby
[15:15:14] axl_: has joined #ruby
[15:16:03] tenderlove: has joined #ruby
[15:16:03] skade: has joined #ruby
[15:16:58] akahn: I want to start a webrick server in a thread and then wait until the server is listening before making requests to it in my main thread. how would I go about doing that?
[15:17:17] roshanavand: has joined #ruby
[15:19:10] syath: has joined #ruby
[15:19:16] retornam: has joined #ruby
[15:19:24] agentmeerkat: This describes how to programatically interact with the webrick server: http://ruby-doc.org/stdlib-2.0.0/libdoc/webrick/rdoc/WEBrick.html
[15:21:25] chouhoul_: has joined #ruby
[15:25:14] nettoweb: has joined #ruby
[15:25:28] nemo_: has joined #ruby
[15:25:51] akahn: agentmeerkat: thanks, I've been reading that, but it doesn't describe how to do what I need to do. I think I need a ConditionVariable
[15:25:58] akahn: to wait and signal between the two threads
[15:26:30] kraljev11: has joined #ruby
[15:27:23] tenderlove: has joined #ruby
[15:28:11] agentmeerkat: I haven't actually done threading with Ruby, this looks like a good read about it though: https://blog.engineyard.com/2013/ruby-concurrency
[15:28:39] ahmetkapikiran: has joined #ruby
[15:28:49] finisherr: has joined #ruby
[15:29:08] The_Phoenix: has joined #ruby
[15:29:46] agentmeerkat: One thing that clojure excells at is concurrent programming: http://clojure.org/concurrent_programming
[15:30:07] zwdr: I've written an IRCbot, and it took only around 5 lines to make it multithreaded
[15:30:25] agentmeerkat: zwdr is that code on github?
[15:30:36] zwdr: might not be a realistic case for bigger apps, but the base is simple
[15:30:40] zwdr: yea agentmeerkat, sec
[15:31:18] tubbo: yeah i've been experimenting with multi-threading with this midi sequencer dsl i built in ruby
[15:31:23] zwdr: agentmeerkat: https://github.com/2-3/imouto/blob/master/lib/imouto.rb
[15:31:45] step1step2_: has joined #ruby
[15:31:48] zwdr: it has a read-thread, write-thread and spawns an additional thread for handling replies
[15:31:48] atmosx: has joined #ruby
[15:32:01] havenwood: akahn: Threading rules: 1) Don't do it, 2) Don't share data, 3) Don't share mutable data, 4) Synchronize access to shared mutable data.
[15:32:30] ReK2: has joined #ruby
[15:32:30] ReK2: has joined #ruby
[15:32:45] havenwood: akahn: The earliest rule you can comply with the better.
[15:33:08] roshanavand: has joined #ruby
[15:34:03] kraljev11: has joined #ruby
[15:34:10] Cache_Money: has joined #ruby
[15:34:27] akahn: havenwood: given the problem I described, do you see a solution that doesn't use threads?
[15:35:12] britt_: has joined #ruby
[15:35:22] aldodelgado: has joined #ruby
[15:35:22] riotjones: has joined #ruby
[15:35:34] havenwood: akahn: Maybe modify WEBrick so it notifies you when status changes to :Start, dunno. I'm not sure I quite get what you're doing.
[15:35:44] havenwood: akahn: Here's a great concurrency gem for Ruby: https://github.com/ruby-concurrency/concurrent-ruby#readme
[15:35:52] tubbo: there's also celluloid..
[15:36:06] tubbo: but that's more for building concurrent applications
[15:36:13] akahn: good point, I can just poll the server's state
[15:36:24] akahn: kinda wanna figure out this ConditionVariable way though :D
[15:36:33] centrx: has joined #ruby
[15:36:34] riotjones: has joined #ruby
[15:36:56] havenwood: akahn: Maybe looking at futures will give you ideas?: http://ruby-concurrency.github.io/concurrent-ruby/Concurrent/Edge/FutureShortcuts.html
[15:37:29] dfinninger: has joined #ruby
[15:38:18] agentmeerkat: Futures looks neat, but it also looks very alpha, not even beta - "Edge features are under active development and may change frequently."
[15:39:06] chouhoulis: has joined #ruby
[15:39:42] havenwood: agentmeerkat: I just point there since I'm not sure what akahn wants exactly and the new edge futures combines concepts from Promise, IVar, Probe, etc.
[15:40:23] havenwood: Maybe just a Promise?: http://ruby-concurrency.github.io/concurrent-ruby/Concurrent/Promise.html
[15:40:41] agentmeerkat: havenwood that's fair
[15:41:22] cschneid_: has joined #ruby
[15:41:54] tenderlove: has joined #ruby
[15:42:09] d10n-work: has joined #ruby
[15:42:23] htmldrum: has joined #ruby
[15:42:41] sphex: has joined #ruby
[15:42:47] havenwood: http://ruby-concurrency.github.io/concurrent-ruby/Concurrent/Event.html
[15:42:48] K1MOS: has joined #ruby
[15:42:49] Gnomethrower: has joined #ruby
[15:43:00] bmurt: has joined #ruby
[15:43:06] step1step2: has joined #ruby
[15:43:14] kraljev11: has joined #ruby
[15:43:37] cwong_on_irc: has joined #ruby
[15:44:57] EminenceHC: has joined #ruby
[15:46:00] blaxter: has joined #ruby
[15:46:11] rbennacer: has joined #ruby
[15:46:38] soc42: has joined #ruby
[15:46:58] jenrzzz: has joined #ruby
[15:47:24] Asher: has joined #ruby
[15:48:05] blackmesa: has joined #ruby
[15:50:25] `tim`: has joined #ruby
[15:50:55] NeverDie: has joined #ruby
[15:52:32] rewzn: has joined #ruby
[15:52:32] bmalum: has joined #ruby
[15:52:52] bruno-: has joined #ruby
[15:53:25] arup_r: has joined #ruby
[15:56:04] britt_: has joined #ruby
[15:56:05] symm-: has joined #ruby
[15:56:37] ruurd: has joined #ruby
[15:57:12] Rennex: er, how do i apply map() to an enumerator and receive another enumerator?
[15:58:04] havenwood: >> [0, 1].cycle.lazy.map { |n| n + 42 }
[15:58:06] ruboto: havenwood # => #<Enumerator::Lazy: #<Enumerator::Lazy: #<Enumerator: [0, 1]:cycle>>:map> (https://eval.in/454883)
[15:58:17] bruno-: has joined #ruby
[15:58:26] havenwood: Rennex: lazy is one option
[15:58:31] microx: has joined #ruby
[15:58:57] Rennex: havenwood: ok... is there a 1.9.3-compatible option?
[15:59:00] atomical: has joined #ruby
[15:59:05] Soda: has joined #ruby
[15:59:09] havenwood: 1.9 is dead, long live 2.2!
[15:59:13] tenderlove: has joined #ruby
[15:59:13] microx: Why is the first value false? https://eval.in/454884
[15:59:20] Rennex: havenwood: i wish it were so...
[15:59:29] havenwood: Rennex: mmm :)
[15:59:44] zwdr: well, I have to work with PHP 5. It's a struggle I tell you!
[16:01:08] havenwood: micro, left already? Anyways, :is_a != :is_a?
[16:01:17] Ox0dea: Rennex: Are you sure you need another Enumerator?
[16:01:31] Motoservo: has joined #ruby
[16:02:21] rbowlby: has joined #ruby
[16:02:54] SCHAAP137: has joined #ruby
[16:02:55] SCHAAP137: has joined #ruby
[16:03:12] Rennex: Ox0dea: yes, unless i change the method that takes an enumerator and processes stuff coming out of it
[16:03:30] The_Phoenix1: has joined #ruby
[16:03:38] bruno-: has joined #ruby
[16:04:37] ferr: has joined #ruby
[16:05:10] shmilan: has joined #ruby
[16:05:33] Pupeno: has joined #ruby
[16:06:40] iceden: has joined #ruby
[16:06:51] mrtomme: has joined #ruby
[16:06:58] wldcordeiro: has joined #ruby
[16:07:28] aryaching: has joined #ruby
[16:08:03] amclain: has joined #ruby
[16:08:14] purplexed^: has joined #ruby
[16:08:25] pdoherty: has joined #ruby
[16:08:55] bruno-_: has joined #ruby
[16:10:10] towski_: has joined #ruby
[16:10:40] purplexed^: hi. I'm having trouble with http://pastebin.com/1Ax2cAPQ ... on line 17 I am setting a variable to a value from a class. But for some reason the program doesn't do anything after that line. If I remove it, it runs normally.. You can see the class at the bottom. Anyone know what I am doing wrong ?
[16:10:40] ruboto: purplexed^, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/ced6d69764f71bc7f9f6
[16:10:41] ruboto: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[16:11:31] kraljev11: has joined #ruby
[16:11:34] jhass: purplexed^: could you elaborate on "doesn't do anything"? sit there? exit?
[16:12:02] Ox0dea: Rennex: Well, Array#to_enum exists in 1.9, but methinks your thing should quack a little louder.
[16:12:06] purplexed^: it doesn't crash... it just doesn't seem to move beyond that point... anything I send through the wire seems to be ignored
[16:12:21] krzkrz: has joined #ruby
[16:12:26] purplexed^: I'm very new to ruby... can I debug this some way, ... I'm using rubymine
[16:12:40] jhass: purplexed^: are you sure you send a \n over the wire?
[16:13:39] Rennex: Ox0dea: i think Enumerator.new works fine
[16:14:01] purplexed^: jhass: actually that's not so important, since it doesn't even output what is on line 18
[16:14:16] ruurd: has joined #ruby
[16:14:16] Ox0dea: > warning: Enumerator.new without a block is deprecated; use Object#to_enum
[16:14:21] Ox0dea: Rennex: ^ Just something to bear in mind.
[16:14:35] Ox0dea: Using Enumerator where you mean Array is wasteful and silly.
[16:14:43] jhass: purplexed^: that seems quite unlikely. Are you sure you're actually running the code you're looking at?
[16:14:48] purplexed^: jhass: but if I remove the "state" stuff everything works
[16:14:59] purplexed^: jhass: yes, I am running the code
[16:15:01] vollov_: has joined #ruby
[16:15:09] purplexed^: and I can connect to it
[16:15:35] purplexed^: and if I add a line in the loop to echo what is sent to it... it responds
[16:15:40] jhass: and you do see the "... connected" puts?
[16:15:49] tenderlove: has joined #ruby
[16:16:04] purplexed^: lemme run it again
[16:16:14] Rennex: Ox0dea: yeah, i mean Enumerator.new {|y| my_code and y << my_result }
[16:16:46] purplexed^: Welcome to PingBuddy v0.0.1
[16:16:46] purplexed^: 127.0.0.1:34012 is connected
[16:16:49] bonhoeffer: has joined #ruby
[16:17:03] purplexed^: it works until that line
[16:17:06] mark2: has left #ruby: ("PART #RubyOnRails :PART #jquery :PART #reactjs :PART ##javascript :PART #elixir-lang :PART #debian :PART #zsh :PART #nethunter :PONG :card.freenode.net")
[16:17:14] Ox0dea: Rennex: Sure, that'd do; I thought you still intended to #map before converting to an Enumerator.
[16:17:45] Shoutsid: has joined #ruby
[16:17:49] jackjackdripper: has joined #ruby
[16:19:30] purplexed^: i'm just setting a variable to a string.. its pretty weird :)
[16:19:52] purplexed^: is my class declaration wrong?
[16:20:26] purplexed^: I guess I can't retrieve a value, when it's just declared like that, can I...
[16:20:46] ramfjord: has joined #ruby
[16:21:34] purplexed^: http://www.rubyfleebie.com/enumerations-and-ruby/ does the same thing though, so I guess it's alright
[16:22:15] ruurd: has joined #ruby
[16:23:04] Rennex: Ox0dea: well the only reason i wanted map() was to filter incoming values from an enumerator
[16:23:04] ndrei: has joined #ruby
[16:23:19] rcvalle: has joined #ruby
[16:23:48] jhass: purplexed^: ah, I see what's going on. Please add Thread.abort_on_exception = true at the top of your script
[16:24:50] idefine: has joined #ruby
[16:25:13] purplexed^: hmmm, interesting. Now it kills the connection right away
[16:25:17] Rennex: Ox0dea: also... my method read_receipts() takes an enumerator (of lines of text) and finds receipts in it. Now, since it takes a parameter, it can't "return enum_for(:read_receipts) unless block_given?" :P
[16:25:25] p0wn3d: has joined #ruby
[16:25:42] jhass: purplexed^: read the output of where you run your script
[16:26:21] tubuliferous_: has joined #ruby
[16:26:23] Rennex: Ox0dea: so i have to call it with a block, or put the function in class Enumerator so that i can call linesource.read_receipts.whatever
[16:26:39] EminenceHC: has joined #ruby
[16:26:52] skade: has joined #ruby
[16:26:59] purplexed^: cool, now I get an actual error... thanks alot
[16:27:00] purplexed^: PingBuddy/main.rb:19:in `block (2 levels) in <top (required)>': uninitialized constant ConsoleState (NameError)
[16:27:08] purplexed^: I can work with it from here. Cheers
[16:27:35] tenderlove: has joined #ruby
[16:27:40] Rennex: it'd be great if a method could return, you know, "itself" as an enum, instead of relying on Kernel.enum_for to call it and thus lose the ability to take arguments
[16:28:09] jason^: agentmeerkat: graphing library would be good to throw random dates/times and temperatures on a graph
[16:28:44] NeverDie: has joined #ruby
[16:29:31] purplexed^: jhass: does it make sense that I should use class level variables, instead of what I am doing ?
[16:29:48] linduxed: has joined #ruby
[16:30:01] purplexed^: i mean prefix HELO, and CONSOLE with @@
[16:30:10] jhass: not at all
[16:30:30] jhass: the valid usecases for class variables are very very rare
[16:30:48] purplexed^: so, the class definition looks correct ?
[16:31:37] Ebok: has joined #ruby
[16:31:58] bryanray: has joined #ruby
[16:32:53] purplexed^: the class isn't defined yet, because it's below the other code
[16:33:14] Jardayn: has joined #ruby
[16:33:37] purplexed^: yes, now it works
[16:33:41] mistermocha: has joined #ruby
[16:33:45] purplexed^: thanks again
[16:34:26] aRaym: has joined #ruby
[16:34:29] purplexed^: i should go learn how to include other classes now, so it's not just one file
[16:34:37] yitsushi: has joined #ruby
[16:35:28] aRaym: has left #ruby: ()
[16:36:32] aRaym: has joined #ruby
[16:36:54] Contigi: has joined #ruby
[16:39:08] spastorino: has joined #ruby
[16:39:26] Sou|cutter: has joined #ruby
[16:39:39] agentmeerkat: jason^ try taking a look at chartkick: http://www.rubydoc.info/gems/chartkick/1.4.1
[16:42:38] pipework: jhass: I haven't seen a really good use of class variables before. I've only seen silly shortcuts taken to not extract an object to share and then you're suddenly using inheritance to use the shortcut.
[16:42:55] pipework: Do you know of any really good use cases for a class variable? I can't even find one on the internets.
[16:43:18] jhass: no, but I can't prove non-existence
[16:44:39] apeiros: if class variables were only shared across a class and its instances. that'd be jolly nice :-/
[16:44:57] synthroid: has joined #ruby
[16:45:05] jhass: apeiros: you mean like it is in Crystal? :P
[16:45:08] Ox0dea: pipework: "Module variables" do occasionally prove useful, and they're really just class variables, so there's that.
[16:45:12] roshanavand: has joined #ruby
[16:45:15] sarlalian: has joined #ruby
[16:45:24] apeiros: jhass: you could write a generator for that
[16:45:31] pipework: Ox0dea: I'm looking for a use case that really says that I need a class variable for it.
[16:45:44] apeiros: ACTION says something he doesn't like about ruby, generator says "that's been done better in crystal!"
[16:45:48] Icey: has joined #ruby
[16:45:54] mistermocha: has joined #ruby
[16:46:07] tenderlove: has joined #ruby
[16:46:26] pipework: Maybe tenderlove has had a use case that demanded a class variable and all its behaviour!
[16:46:42] Ox0dea: gems $ ag @@ | wc -l
[16:46:50] Ox0dea: pipework: ^ Maybe do some exploring of that variety.
[16:46:58] jhass: apeiros: tbf it doesn't have class level instance vars, so it would really suck if it were otherwise
[16:47:11] pipework: Ox0dea: Hm, might not be a bad idea there.
[16:48:11] Ox0dea: pipework: https://eval.in/454905
[16:48:17] pietr0: has joined #ruby
[16:48:39] jobewan: has joined #ruby
[16:48:43] Ox0dea: That's a silly thing, of course, but module variables were the right choice.
[16:49:22] dfockler: has joined #ruby
[16:51:34] blackmesa: has joined #ruby
[16:51:47] ruurd: has joined #ruby
[16:52:59] aRaym: has left #ruby: ()
[16:53:39] skade: has joined #ruby
[16:55:21] K3VA: has joined #ruby
[16:55:57] iceden: has joined #ruby
[16:56:10] ngscheurich: has joined #ruby
[16:59:04] blackmesa: has joined #ruby
[17:00:24] blaxter: has joined #ruby
[17:00:34] EminenceHC: has joined #ruby
[17:00:36] roshanavand: has joined #ruby
[17:01:25] DroidBur_: has joined #ruby
[17:01:27] ibouvousaime: Hello Im a rub newb can someone help me know where I made a mistake on this code http://pastebin.com/ri5PZUbn
[17:01:27] ruboto: ibouvousaime, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/fc064938c6aa67850014
[17:01:27] ruboto: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[17:01:35] firstdayonthejob: has joined #ruby
[17:01:52] bmurt: has joined #ruby
[17:02:29] centrx: You seem to believe you made a mistake?
[17:02:37] ibouvousaime: sorting.rb:9:in `block in <main>': undefined method `+' for nil:NilClass (NoMethodError)
[17:02:37] ibouvousaime: from sorting.rb:9:in `each'
[17:02:37] ibouvousaime: from sorting.rb:9:in `<main>'
[17:02:54] ibouvousaime: thats the error I get :(
[17:02:57] tobiasvl: ibouvousaime: what's "frequency"?
[17:03:06] Ox0dea: ibouvousaime: In your code, `numberoftimes[word]` is always nil, and you can't add to `nil`.
[17:03:11] DroidBur_: has joined #ruby
[17:03:46] finisherr_: has joined #ruby
[17:03:57] ibouvousaime: tobiasvl, sorry wrong link http://pastebin.com/F2c6ZiQs
[17:03:58] ruboto: ibouvousaime, as I told you already, please use https://gist.github.com
[17:04:41] tenderlove: has joined #ruby
[17:04:43] gizmore: has joined #ruby
[17:05:14] tobiasvl: ibouvousaime: http://ruby-doc.org/core-2.2.0/Hash.html#method-c-new
[17:05:28] tobiasvl: ibouvousaime: specifically, Hash.new(0) will use 0 as the default value instead of nil
[17:05:29] ibouvousaime: Ox0dea, so how could I fix it, Im on my first day on ruby tbh
[17:05:40] Ox0dea: ibouvousaime: But you were here yesterday?
[17:05:57] ibouvousaime: I was about to start
[17:06:09] `tim`: has joined #ruby
[17:06:13] ibouvousaime: so I was asking on the IDEs
[17:06:17] tobiasvl: I gave you the solution above
[17:06:23] ibouvousaime: before going to bed
[17:07:15] ibouvousaime: I wrote frequence my mistake instead of numberoftimes, I fixed that but it wasnt the main problem apparently
[17:07:24] ruurd: has joined #ruby
[17:07:45] blueOxigen: has joined #ruby
[17:08:15] Ox0dea: ibouvousaime: `foo += bar` is "syntactic sugar" for `foo = foo + bar`.
[17:09:13] Ox0dea: Keying into a Hash with a nonexistent key returns `nil`, so `foo[bar] += baz` invokes `foo[bar] = foo[bar] + baz`, and since `bar` isn't a valid key into `foo`, that becomes `nil + baz` and you get a NoMethodError.
[17:09:31] karapetyan: has joined #ruby
[17:09:32] Ox0dea: >> nil.to_respond_to? :+
[17:09:33] ruboto: Ox0dea # => undefined method `to_respond_to?' for nil:NilClass (NoMethodError) ...check link for more (https://eval.in/454916)
[17:09:39] Ox0dea: >> nil.respond_to? :+ # Derp.
[17:09:40] ruboto: Ox0dea # => false (https://eval.in/454917)
[17:10:10] skade: has joined #ruby
[17:10:11] ibouvousaime: I think I get it ...
[17:10:29] JJM: has joined #ruby
[17:10:41] miah: has joined #ruby
[17:11:12] mblagden: has joined #ruby
[17:11:31] lapide_viridi: has joined #ruby
[17:12:05] wallerdev: has joined #ruby
[17:12:42] jessemcgilallen: has joined #ruby
[17:12:52] skcin7: has joined #ruby
[17:13:05] Ebok: is there a shorthand for writing if x == abc || y == abc || z == abc ?
[17:13:22] Shoutsid: has joined #ruby
[17:13:26] wpp: has joined #ruby
[17:13:34] yosiat: has joined #ruby
[17:13:46] Ox0dea: Ebok: `if [x, y, z].include?(abc)`.
[17:14:05] Ox0dea: You miss out on short-circuit evaluation, though.
[17:14:10] Ebok: Hm. ugly but fairenough
[17:14:22] Ox0dea: Why "ugly"?
[17:14:22] Ebok: short-circuit?
[17:14:26] eam: does include? not short-circuit?
[17:14:31] Ebok: Oh you mean if true stop looking at the rest
[17:14:42] Ox0dea: eam: Well, yeah, but you've got to construct the Array first.
[17:14:46] Ox0dea: Ebok: Yes, that.
[17:14:55] eam: yeah, definitely more expensive
[17:15:21] roshanavand: has joined #ruby
[17:15:55] miah_: has joined #ruby
[17:16:20] Ox0dea: ibouvousaime: As tobiasvl suggested, you want to create a Hash with a default value.
[17:17:09] blackmesa: has joined #ruby
[17:17:23] ibouvousaime: by having numberoftimes= Hash.new(0) instead of numberoftimes= Hash.new
[17:17:43] adac: has joined #ruby
[17:18:05] mikecmpbll: has joined #ruby
[17:19:56] tenderlove: has joined #ruby
[17:20:49] Shoutsid: has joined #ruby
[17:20:59] mary5030: has joined #ruby
[17:21:23] shinnya: has joined #ruby
[17:22:45] mary5030: has joined #ruby
[17:23:52] Maletor: has joined #ruby
[17:24:19] mary5030: has joined #ruby
[17:24:48] ruurd: has joined #ruby
[17:25:29] kellabyte_: has joined #ruby
[17:26:29] ahuman: has joined #ruby
[17:26:34] lea: has joined #ruby
[17:27:14] ht__: has joined #ruby
[17:27:22] AdamMeghji: has joined #ruby
[17:28:04] pmarreck: has joined #ruby
[17:28:05] Nuck: has joined #ruby
[17:28:13] sonOfRa_: has joined #ruby
[17:28:38] manveru: has joined #ruby
[17:28:58] livcd: has joined #ruby
[17:29:09] lele: has joined #ruby
[17:29:31] cscheib_: has joined #ruby
[17:29:35] inteq: has joined #ruby
[17:29:48] _joes__: has joined #ruby
[17:29:49] silverdust: has joined #ruby
[17:30:21] tobiasvl: yes, like I suggested
[17:30:28] Olipro: has joined #ruby
[17:30:38] tjohnson: has joined #ruby
[17:30:38] lele: has joined #ruby
[17:31:23] PhilK: has joined #ruby
[17:31:25] JDiPierro: has joined #ruby
[17:32:15] jamo: has joined #ruby
[17:33:27] diego2: has joined #ruby
[17:33:35] soloone: has joined #ruby
[17:34:13] machty: has joined #ruby
[17:34:51] ggherdov: has joined #ruby
[17:35:27] freerobby: has joined #ruby
[17:35:40] Shoutsid: has joined #ruby
[17:36:12] nemo_: has joined #ruby
[17:36:14] roshanav_: has joined #ruby
[17:36:50] ledestin: has joined #ruby
[17:38:34] blue_deref: has joined #ruby
[17:38:36] riotjones: has joined #ruby
[17:39:02] d5sx43: has joined #ruby
[17:39:04] SuzieQueue: has joined #ruby
[17:39:23] tenderlove: has joined #ruby
[17:41:46] based_pdev_: has joined #ruby
[17:42:03] sharkman: whats the name of the ruby rails channel?
[17:42:27] ruurd: #rubyonrails
[17:42:38] rehat: has joined #ruby
[17:43:32] Puffball: has joined #ruby
[17:44:20] haylon: shevy, or jhass, isn't there one of those << or ? commands that says that same thing?
[17:44:27] ramfjord: has joined #ruby
[17:44:36] Cyther: has joined #ruby
[17:44:43] jhass: haylon: not sure I get what you're asking
[17:45:05] haylon: Like when you guys get ruboto to say where to go for rails, or the other channels for regular banter
[17:45:06] platzhirsch: has left #ruby: ()
[17:45:14] jhass: haylon: also http://ruby-community.com/pages/user_rules#rule_2_7
[17:45:18] DenSchub: has joined #ruby
[17:45:25] jhass: ?rails haylon
[17:45:26] ruboto: haylon, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[17:45:29] tkuchiki: has joined #ruby
[17:45:39] nw: has joined #ruby
[17:45:41] tenderlove: has joined #ruby
[17:46:06] haylon: My apologies about that. I just remembered that you seemed to know most of those tricks
[17:46:25] adaedra: jhass knows everything.
[17:48:13] jenrzzz: has joined #ruby
[17:49:35] danman: has joined #ruby
[17:50:05] dotrb: has joined #ruby
[17:51:50] moeabdol: has joined #ruby
[17:52:00] britt_: has joined #ruby
[17:52:03] tenderlove: has joined #ruby
[17:52:47] dotrb: this loop breaks whenever i try to use string interpolation within it. why? http://pastie.org/private/0koi6pojarzrpmffbwiobw
[17:53:06] s2013: has joined #ruby
[17:53:24] dotrb: for the life of me i cant seem to build a string out of two variables within this loop in irb, lol
[17:54:07] bmalum: has joined #ruby
[17:54:16] diego2: has joined #ruby
[17:54:22] weaksauce: has joined #ruby
[17:54:23] diego2: has joined #ruby
[17:54:31] kirun: has joined #ruby
[17:54:50] dotrb: what did i do wrong in there
[17:55:00] aspiers: has joined #ruby
[17:55:09] tenderlove: has joined #ruby
[17:55:17] whippythellama: has joined #ruby
[17:55:26] diegoviola: has joined #ruby
[17:55:48] dotrb: whoops.. irl the loop doestnt have a trailing slash within the single quotes
[17:56:19] tenderlove: has joined #ruby
[17:56:45] tenderlove: has joined #ruby
[17:57:09] tenderlove: has joined #ruby
[17:57:44] jhass: >> (0..255).each {|i| v = i.to_s(16); print "\\x#{v}" } # probably not the output you're expecting, but...
[17:57:45] ruboto: jhass # => \x0\x1\x2\x3\x4\x5\x6\x7\x8\x9\xa\xb\xc\xd\xe\xf\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c ...check link for more (https://eval.in/454929)
[17:58:19] Shoutsid: has joined #ruby
[17:58:19] tenderlove: has joined #ruby
[17:58:22] dotrb: jhass: you rock.
[17:58:34] dotrb: jhass: thank you
[17:58:45] dotrb: exactly the output i want :)
[17:59:21] dotrb: oh, escaping the escape chars, lol
[17:59:27] jhass: >> (0..255).each {|i| print "\\x#{i.to_s(16)}" } # could condense it a little
[17:59:28] ruboto: jhass # => \x0\x1\x2\x3\x4\x5\x6\x7\x8\x9\xa\xb\xc\xd\xe\xf\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c ...check link for more (https://eval.in/454930)
[17:59:34] tenderlove: has joined #ruby
[17:59:49] dotrb: whoah, that was rad
[17:59:53] symbole: has joined #ruby
[18:00:16] adaedra: >> (0..255).each do { |i| print("\\x%x" % i) }
[18:00:17] ruboto: adaedra # => /tmp/execpad-323584f6b23f/source-323584f6b23f:2: syntax error, unexpected '|', expecting '}' ...check link for more (https://eval.in/454931)
[18:00:26] adaedra: >> (0..255).each { |i| print("\\x%x" % i) }
[18:00:27] ruboto: adaedra # => \x0\x1\x2\x3\x4\x5\x6\x7\x8\x9\xa\xb\xc\xd\xe\xf\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c ...check link for more (https://eval.in/454932)
[18:00:50] dotrb: adaedra: thanks!
[18:00:52] jhass: >> 255.times {|i| print "\\x%x" % i }
[18:00:53] ruboto: jhass # => \x0\x1\x2\x3\x4\x5\x6\x7\x8\x9\xa\xb\xc\xd\xe\xf\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c ...check link for more (https://eval.in/454933)
[18:01:15] dotrb: i need to find a good ruby text book
[18:03:07] tenderlove: has joined #ruby
[18:03:15] gustav__: has joined #ruby
[18:03:33] hooper: has joined #ruby
[18:03:33] tenderlove: has joined #ruby
[18:03:59] hooper: has joined #ruby
[18:04:23] hooper: has joined #ruby
[18:04:49] hooper: has joined #ruby
[18:05:13] hooper: has joined #ruby
[18:05:39] hooper: has joined #ruby
[18:06:35] kalusn: has joined #ruby
[18:08:19] bluOxigen: has joined #ruby
[18:08:40] bb010g: has joined #ruby
[18:09:11] idefine: has joined #ruby
[18:09:36] BraddPitt: dotrb for basics or something specific?
[18:10:07] d5sx43: has joined #ruby
[18:11:12] paulcsmith: has joined #ruby
[18:11:41] dotrb: BraddPitt: to take me from basic to advanced, thoroughly in depth coverage of the language
[18:11:51] ruboto: You can find a list of recommended books at http://ruby-community.com/pages/links
[18:11:53] karapetyan: has joined #ruby
[18:11:55] kidoz: has joined #ruby
[18:12:30] baweaver: has joined #ruby
[18:12:53] bryanray: has joined #ruby
[18:13:36] Shoutsid: has joined #ruby
[18:13:37] BraddPitt: there are a lot of books missing from there adaedra
[18:13:55] uber: has joined #ruby
[18:14:00] adaedra: BraddPitt: do a pull request, I'm sure apeiros will be happy to have this input
[18:14:03] BraddPitt: POODR, Eloquent Ruby, Well Grounded Rubyist
[18:14:05] BraddPitt: cool, will do
[18:14:35] tenderlove: has joined #ruby
[18:14:35] tenderlove: has joined #ruby
[18:15:09] KensoDev: has joined #ruby
[18:15:15] idefine: has joined #ruby
[18:15:28] but3k4: has joined #ruby
[18:16:45] stannard_: has joined #ruby
[18:16:49] swgillespie: has joined #ruby
[18:16:55] BraddPitt: its in the repo
[18:17:03] BraddPitt: latest build isnt deployed?
[18:17:06] BraddPitt: https://github.com/apeiros/ruby-community/blob/master/app/views/pages/_links.html.slim
[18:17:31] adaedra: apeiros: ^
[18:17:35] BraddPitt: apeiros fix please :<
[18:17:47] shevy: apeiros fixes all the things
[18:17:53] adaedra: It is indeed some versions old
[18:18:11] purplexed^: has left #ruby: ()
[18:18:41] apeiros: yes, I'm behind. part of the plan is to get to a system until end of year where more people than just me can deploy. removing me as a bottleneck.
[18:19:50] adaedra: yay, more bottlenecks
[18:20:19] diegoaguilar: has joined #ruby
[18:20:38] karapetyan: has joined #ruby
[18:20:52] adaedra: apeiros: btw, I've been re-working on `derpy's rubydoc code. Once this will be done, it will be, I think, easier to stuff it into ruboto.
[18:21:31] Ox0dea: apeiros: And also increasing the bus factor to >1.
[18:21:31] baweaver: has joined #ruby
[18:21:37] fsociety: has joined #ruby
[18:21:47] fsociety: Is super a language keyword or a method?
[18:21:47] apeiros: Ox0dea: hm?
[18:21:53] apeiros: fsociety: keyword
[18:22:36] Ox0dea: apeiros: https://en.wikipedia.org/wiki/Bus_factor
[18:22:53] tenderlove: has joined #ruby
[18:22:59] Ox0dea: fsociety_: The #method method lets you ask that question of the interpreter itself, for reference.
[18:23:06] apeiros: Ox0dea: that has already happened
[18:23:43] apeiros: ruboto's source is available to the ops, and ruby-community's code is public. all it'd need is a new server if I were gone.
[18:24:33] choke: has joined #ruby
[18:25:21] momomomomo: has joined #ruby
[18:26:42] cdg_: has joined #ruby
[18:27:27] cdg: has joined #ruby
[18:27:28] pdoherty: has joined #ruby
[18:27:50] bhegel: has joined #ruby
[18:28:10] baroquebobcat: has joined #ruby
[18:28:20] shevy: apeiros is a bottleneck!!!
[18:28:54] eam: man, what's with the personal attacks on appearance
[18:28:58] shevy: Ox0dea is #method a method?
[18:29:27] d5sx43: has joined #ruby
[18:29:33] jhass: >> method(:method)
[18:29:34] ruboto: jhass # => #<Method: Object(Kernel)#method> (https://eval.in/454941)
[18:30:32] shevy: an Object#method
[18:30:33] adaedra: &ri Obect#method
[18:30:33] `derpy: No results
[18:30:38] adaedra: &ri Object#method
[18:30:39] `derpy: http://www.rubydoc.info/stdlib/core/Object#method-instance_method
[18:30:43] adaedra: You could correct, `derpy
[18:30:53] shevy: method instance method
[18:31:28] shevy: ah... a "Method object" not a "method object". A method that is an object which is a method.
[18:32:00] blackoperat: has joined #ruby
[18:32:20] _aeris_: has joined #ruby
[18:32:31] tenderlove: has joined #ruby
[18:33:20] NeverDie: has joined #ruby
[18:34:09] jhass: >> method(:method).call(:method)
[18:34:10] ruboto: jhass # => #<Method: Object(Kernel)#method> (https://eval.in/454945)
[18:34:28] skade: has joined #ruby
[18:34:42] fsr9: has joined #ruby
[18:34:48] aibot: has joined #ruby
[18:35:40] rehat: is there a git gem to connect to a private github server?
[18:36:07] jhass: rehat: you mean an github api gem?
[18:36:20] lifeonmars: has joined #ruby
[18:36:44] jhass: I would expect octokit to be configurable in that regard, let's see
[18:37:20] jessemcgilallen: has joined #ruby
[18:37:35] mag42c: has joined #ruby
[18:38:11] rehat: ahh octokit looks nice, just wondering if I can configure it so connect to a private github server that my company has
[18:38:23] jhass: http://www.rubydoc.info/gems/octokit/Octokit/Configurable#api_endpoint-instance_method
[18:38:54] rehat: jhass: nice! thanks dude
[18:39:58] riotjones: has joined #ruby
[18:40:59] roshanavand: has joined #ruby
[18:41:01] techsethi: has joined #ruby
[18:41:39] iateadonut: has left #ruby: ()
[18:42:49] kies^: has joined #ruby
[18:42:57] tenderlove: has joined #ruby
[18:43:28] ahmetkapikiran: has joined #ruby
[18:43:48] eikood: has joined #ruby
[18:44:27] hahuang65: has joined #ruby
[18:45:51] bmalum: has joined #ruby
[18:46:27] bklane: has joined #ruby
[18:47:20] NeverDie: has joined #ruby
[18:48:07] dfinninger: has joined #ruby
[18:49:50] dfinninger: has joined #ruby
[18:52:32] tenderlove: has joined #ruby
[18:53:14] idefine: has joined #ruby
[18:54:15] centrx: has joined #ruby
[18:55:42] d5sx43: has joined #ruby
[18:58:16] Ox0dea: shevy: Methods are not objects, but Methods are.
[18:58:30] Ox0dea: Who knew capitalization could be so confusing?
[18:58:38] diegoaguilar: has joined #ruby
[18:59:34] yosiat: has joined #ruby
[19:00:02] tenderlove: has joined #ruby
[19:03:06] Shoutsid: has joined #ruby
[19:05:17] d5sx43: has joined #ruby
[19:06:06] Taha_The_Hacker: has joined #ruby
[19:06:18] Taha_The_Hacker: has left #ruby: ()
[19:06:50] Ox0dea: > untrusted pickles can execute arbitrary Python code
[19:07:33] Taha_The_Hacker: has joined #ruby
[19:09:17] choke: has joined #ruby
[19:10:15] tenderlove: has joined #ruby
[19:10:47] ruby616: has joined #ruby
[19:11:00] skcin7: has joined #ruby
[19:11:39] baweaver: has joined #ruby
[19:12:32] drocsid: has joined #ruby
[19:13:06] s2013: has joined #ruby
[19:13:18] c33s: has joined #ruby
[19:13:50] pdoherty: has joined #ruby
[19:14:57] Shoutsid: has joined #ruby
[19:15:25] c33s: hello. is it possible in ruby to simply require/include another ruby file, where the contents of the file will simply be inserted at the include position (same as the php include/require)? i am trying to move the code which i want to reuse out of a Vagrantfile without building modules or overdo things.
[19:15:52] Guest50: has joined #ruby
[19:17:06] tenderlove: has joined #ruby
[19:17:50] Ox0dea: &Kernel#load @ c33s
[19:17:54] Ox0dea: &ri Kernel#load @ c33s
[19:17:55] `derpy: : http://www.rubydoc.info/stdlib/core/Kernel#load-instance_method
[19:17:55] v4n: has joined #ruby
[19:18:03] but3k4_: has joined #ruby
[19:18:07] ruurd: has joined #ruby
[19:18:14] DairennL: has joined #ruby
[19:18:34] Ox0dea: Be advised that #load doesn't do deduplication like #require does.
[19:18:51] drocsid: anybody know if there is a way to use sudo privligies while copying a file with netscp to a privleged path on a remote server?
[19:19:05] |ifei5g00d: has joined #ruby
[19:21:53] ruby616: Getting issue deploying to Linux a Gemfile.lock generated on Windows, the Gemfile.lock has windows specific version
[19:23:18] adac: has joined #ruby
[19:23:36] dasher00: has joined #ruby
[19:24:56] tenderlove: has joined #ruby
[19:25:41] VeryBewitching: has joined #ruby
[19:26:08] loc22: has joined #ruby
[19:26:13] jsrn: has joined #ruby
[19:27:41] haylon: has joined #ruby
[19:28:12] opensource_ninja: has joined #ruby
[19:28:30] skade: has joined #ruby
[19:28:43] bonhoeffer: has joined #ruby
[19:29:19] neohunter: has joined #ruby
[19:29:33] neohunter: How I can control what is the ouput of just calling an instance?
[19:29:44] neohunter: for example a = MyThing.new
[19:29:50] neohunter: i want to simulate an array
[19:30:10] neohunter: so instead of ouput #<MyThing:0x109cc8aa8> i want to output a collection
[19:30:38] shevy: the # is just a display
[19:30:47] shevy: you can reformat it for your class
[19:30:56] neohunter: ok, i dont want a string output
[19:30:59] aryaching_: has joined #ruby
[19:31:01] neohunter: i want an Enumerator output
[19:31:04] neohunter: so i can do things like
[19:31:12] shevy: but the above is a string output!
[19:31:21] neohunter: my_object # [1,2,3]
[19:31:26] neohunter: my_object.some_method
[19:31:55] drocsid: has joined #ruby
[19:33:21] drocsid: maybe I'l 2-step it. Use net/scp to copy to /tmp, then use net/ssh to exec sudo copy command.
[19:33:28] tenderlove: has joined #ruby
[19:33:33] tenderlove: has joined #ruby
[19:33:58] Ox0dea: >> [1,2,3].inspect.class # neohunter
[19:33:59] ruboto: Ox0dea # => String (https://eval.in/454958)
[19:34:05] baweaver: has joined #ruby
[19:34:56] shevy: neohunter define a custom #inspect
[19:34:59] shevy: >> class Foo; def inspect; [1,2,3]; end; end; foo = Foo.new
[19:35:00] ruboto: shevy # => [1, 2, 3] (https://eval.in/454960)
[19:35:10] ahmetkapikiran: has joined #ruby
[19:35:26] neohunter: how rails 2.3 used to do model.relationship returns an array of results, and model.relatiopnship.find exists
[19:35:32] neohunter: inspect, ok lets test with that
[19:35:40] shevy: rails does a lot of atrocities
[19:35:42] Galas: has joined #ruby
[19:36:05] c33s: @Ox0dea i tried around a little, but i don't get it to work. having a Vagrantfile in which i define the variable boxes and then loading my test.rb file results in test.rb:59:in `block in <top (required)>': undefined local variable or method `boxes'
[19:36:05] c33s: i load the test.rb with: load File.expand_path("../../test.rb", __FILE__)
[19:36:12] shevy: Ox0dea more magic!!! -> https://github.com/ruby/ruby/blob/trunk/ChangeLog#L3
[19:36:24] willharrison: has joined #ruby
[19:36:50] shevy: I'd wish the xmas release would happen at the beginning of december, then I could update my gems before the end of the year is there :D
[19:37:03] drocsid: hmm looks like I can try passing a shell...
[19:37:13] drocsid: https://github.com/net-ssh/net-scp/pull/4
[19:37:35] Ox0dea: c33s: Right, sorry; #load does not "import" locals.
[19:38:11] finisherr_: has joined #ruby
[19:38:13] moli: has joined #ruby
[19:38:25] Ox0dea: Nor does #eval, so there's no native way to just "drop" a file in.
[19:38:46] postmodern: has joined #ruby
[19:39:03] shevy: not even with wicked black magic evil.rb?
[19:39:22] Ox0dea: I mean, binding_of_caller would suffice.
[19:39:35] relix: has joined #ruby
[19:39:39] shevy: atrocities here we come
[19:39:48] Ox0dea: As would properly structuring the thing, likely as not.
[19:39:52] c33s: Ox0dea: thanks anyway.
[19:40:15] Ox0dea: c33s: Sure thing. Maybe consider sticking your stuff on a singleton of some kind?
[19:40:48] riotjones: has joined #ruby
[19:41:09] Ox0dea: You could also just use `@boxes` instead of `boxes`, but `main` probably shouldn't have instance variables.
[19:41:57] tenderlove: has joined #ruby
[19:42:11] idefine: has joined #ruby
[19:42:53] troulouliou_dev: has joined #ruby
[19:43:31] c33s: Ox0dea: it worked now having $boxes
[19:43:42] hadees: has joined #ruby
[19:43:50] c33s: quite unflexible :)
[19:43:56] hadees: is there a way to use ||= in a send method?
[19:44:14] Ox0dea: c33s: But that's a global.
[19:44:16] Shoutsid: has joined #ruby
[19:44:17] hadees: i have attribute_name which is the name of the attribute on the object i'm trying to use ||= on
[19:44:26] Ox0dea: c33s: The authorities are probably already on their way.
[19:44:31] ruby-lang293: has joined #ruby
[19:44:38] anisha: has joined #ruby
[19:44:46] c33s: hehe :) but it works @ hasn't worked
[19:45:08] Ox0dea: Oh, then you're not accessing `@boxes` at the top level of the file into which it's being imported?
[19:45:28] c33s: oh, i see. also works
[19:45:50] Ox0dea: hadees: https://bugs.ruby-lang.org/issues/11361
[19:46:08] Ox0dea: #instance_variable_get_or_set is the method you want, but it doesn't exist and likely won't.
[19:46:58] hadees: Ox0dea: ugh, yeah I guess that is ugly, i can work around it, thanks
[19:47:25] Ox0dea: hadees: ||= is a compound assignment, but the semantics are essentially the same as for regular assignment, which can't be emulated by #send in most cases.
[19:47:55] Ox0dea: Given `foo = 1`, what message could you send to `foo` to turn it into 2, you know?
[19:48:16] synthroid: has joined #ruby
[19:49:20] ndrei: has joined #ruby
[19:49:37] skade: has joined #ruby
[19:49:53] benaiah: has joined #ruby
[19:49:57] jenrzzz: has joined #ruby
[19:50:12] tenderlo_: has joined #ruby
[19:50:29] idefine: has joined #ruby
[19:50:41] kraljev11: has joined #ruby
[19:51:58] hadees: Ox0dea: it makes sense but I still wish there was a nicer way to do what I want.
[19:54:29] SamGerber: has joined #ruby
[19:54:47] DairennL: Cipher cannot be inferred: must specify it as an argument when I use pass = crypted_pass.decrypt using the encrypted_strings gem - I'm not clear on how to include the additional argument here. I believe that argument should be the secret key (I'm using symmetric encryption).
[19:54:49] Sam_Gerber: has joined #ruby
[19:55:06] Ox0dea: hadees: You... wish #= were a method?
[19:55:12] Ox0dea: Even in Lisp, `define` is a special form.
[19:55:40] Ox0dea: You're asking for utter madness, and Ruby does you a kindness by not obliging.
[19:56:41] nettoweb: has joined #ruby
[19:57:21] MinasMazar: has joined #ruby
[19:57:24] hadees: Ox0dea: no i just wish there was a nicer looking way to run ||= on a generated variable name. For example ruby could just know if you do send("foo||=") you really want to use ||= and not that you are looking for a method called ||=
[19:57:28] Jackneill: has joined #ruby
[19:57:56] Ox0dea: It couldn't, though.
[19:58:04] niftylettuce: has joined #ruby
[19:58:21] rgb-one: has joined #ruby
[19:58:24] Ox0dea: You've simply rephrased your wish to have assignment be a method.
[19:58:24] cdg: has joined #ruby
[19:58:30] jackjackdripper: has joined #ruby
[19:58:33] Ox0dea: rgb-one: Hiya!
[19:59:07] rgb-one: Ox0dea: Hey bro/sis, hows it going :)
[19:59:20] Ox0dea: Well enough, to be sure. And for yourself?
[19:59:31] Ox0dea: Good, good.
[19:59:44] tenderlove: has joined #ruby
[19:59:57] hadees: Ox0dea: I don't see it that way, maybe send is the wrong method, I guess I could use eval...
[20:00:13] Ox0dea: hadees: If we could say `foo.send(:||=)`, then we could also say `foo.send(:=)`, which is just bonkers.
[20:00:50] hadees: Ox0dea: maybe it shouldn't be send then
[20:01:12] cwong_on_irc: has joined #ruby
[20:01:18] Ox0dea: What's so bad about `foo = foo.send(bar) unless foo`?
[20:01:49] Ox0dea: Well, #instance_variable_set/get, in your particular case, but the question stands.
[20:02:01] rgb-one: How do I reference a string entered as a parameter on the command line?
[20:02:11] Ox0dea: rgb-one: The command-line arguments live in ARGV.
[20:02:12] hadees: Ox0dea: this is what I ended up doing
[20:02:13] hadees: default_value = object.send(attribute_name) || collection.first.send(value_method)
[20:02:14] hadees: object.send("#{attribute_name}=", default_value)
[20:02:20] hadees: it just looks ugly to me
[20:02:29] jackjackdripper: has joined #ruby
[20:02:33] hadees: if you have a nicer way to write it let me know
[20:03:52] Shoutsid: has joined #ruby
[20:04:23] hadees: i guess I should have really used instance_variable_set
[20:04:37] mondayrain: has joined #ruby
[20:04:42] sdothum: has joined #ruby
[20:04:59] Ox0dea: And #instance_variable_get instead of the first #send.
[20:05:05] rgb-one: What am I doing wrong here: abort_with_note("#{ARGV[1]} doesn't exist in this directory.")
[20:05:06] jhass: DairennL: open an issue with the gem's author
[20:05:32] Ox0dea: rgb-one: Looks fine?
[20:05:41] idefine: has joined #ruby
[20:06:09] hadees: Ox0dea: anyway thanks for the help, it works so i'm just going to move on
[20:06:41] rgb-one: Ox0dea: abort_with_note will print to stderr if a note is passed to it as a parameter which it is in this case, however, that part of ARGV[1] part doesnt return anything.
[20:07:29] tenderlove: has joined #ruby
[20:07:30] Ox0dea: hadees: Sure thing. I do concede that metaprogramming in Ruby is a little verbose, but it's for the better.
[20:07:55] stannard: has joined #ruby
[20:08:03] Ox0dea: rgb-one: Ruby's ARGV is not like C's.
[20:08:07] mondayrain: has joined #ruby
[20:08:31] Ox0dea: The program name is in $0, so it doesn't need to be (and isn't) in ARGV.
[20:09:18] SegFaultAX: has joined #ruby
[20:09:38] Drakevr: has joined #ruby
[20:09:41] rgb-one: Ox0dea: Ah so its like bash in that respect.
[20:09:54] rgb-one: so $1 will be the first parameter.
[20:10:13] Ox0dea: No, ARGV[0] will be.
[20:10:15] MinasMazar: $1 will be used in regular expression
[20:10:43] MinasMazar: as alias for MatchData[1]
[20:10:51] Ox0dea: rgb-one: $0 is something of an anomaly; as minasmazar points out, all of the other numeric globals contain match captures.
[20:10:53] howdoicomputer: has joined #ruby
[20:10:59] Drakevr: has joined #ruby
[20:11:20] milkohol: has joined #ruby
[20:11:26] eam: ruby is like perl in that respect
[20:11:30] Ox0dea: Ruby's ancestry is all over the place.
[20:12:34] hahuang65: has joined #ruby
[20:12:49] milkohol: has joined #ruby
[20:13:32] Ox0dea: >> [$-9, (begin; eval '$-10'; rescue SyntaxError; 'wtf'; end)]
[20:13:33] ruboto: Ox0dea # => [nil, "wtf"] (https://eval.in/454993)
[20:14:26] Ox0dea: What is $-1?
[20:14:36] Shoutsid: has joined #ruby
[20:17:11] tenderlove: has joined #ruby
[20:17:20] Shoutsid: has joined #ruby
[20:17:23] MinasMazar: Ox0dea: don't know but $-0 in a pry session is "\n" xD
[20:17:58] stannard_: has joined #ruby
[20:18:11] Ox0dea: minasmazar: English doesn't alias them. :<
[20:19:10] KnownSyntax: has joined #ruby
[20:19:10] KnownSyntax: has joined #ruby
[20:20:18] Ox0dea: $-0 == $INPUT_RECORD_SEPARATOR
[20:20:42] Ox0dea: I wonder if $-1 and friends are related to the shell's PS1 and such.
[20:20:48] EminenceHC: has joined #ruby
[20:21:05] k3asd`: has joined #ruby
[20:22:11] DairennL: has joined #ruby
[20:22:40] idefine: has joined #ruby
[20:23:15] Shoutsid: has joined #ruby
[20:23:35] Ebok: Whats the command the take [[ [1][2] ][3][4][5][ [6] ] ] and output [[1][2][3][4][5][6]] ?
[20:23:41] Ox0dea: shevy: Are you seeing this?
[20:23:54] Ebok: I know I've read it before...
[20:24:09] Ox0dea: Ebok: Are you thinking of #flatten?
[20:24:26] mistermocha: has joined #ruby
[20:24:54] MinasMazar: ahahah Ruby is incredible weird. Love for that
[20:25:13] Ox0dea: I suspect you have no idea. :P
[20:25:29] MinasMazar: Ebok: .flatten!.map {|i| [i] } maybe
[20:25:36] Maletor: has joined #ruby
[20:25:44] Ox0dea: minasmazar: Nah, Ebok just provided a slightly confusing representation.
[20:25:52] Ebok: Yeah, sorry.
[20:26:04] Ox0dea: minasmazar: Did you know that Ruby is Turing-complete even if you're not allowed to use any letters or numbers?
[20:26:08] Ebok: [1,2,3,4,5,6] works too. I just wanted to level the info
[20:26:10] tenderlove: has joined #ruby
[20:26:38] slash_quit: here goes Ox0dea with those crazy cool one liners again
[20:27:16] Ox0dea: The *amount* of code and its arrangement is immaterial; it's just nuts that you could theoretically write any program in Ruby with only symbols.
[20:27:37] mbeasley: has joined #ruby
[20:27:39] Ox0dea: Of course, the `mov` assembly instruction is TC, so it's not that bewildering.
[20:28:09] MinasMazar: Ox0dea: no i did not
[20:28:18] Ox0dea: Welp, it totally is.
[20:28:27] Ox0dea: >> _=$$/$$;__=_-_;@_=_+_;$_=@_+_;$__=@_+$_;$-_=$__*$_;@__=''<<$-_*($__+$_)+@_;$___=''<<$-_*$__-$__<<$-_*($__+@_)<<@__<<@__;@___=''<<$-_*$__-$_*$_<<$-_*($__+$_)-$_<<@__<<@__;(___=->____{$.+=_;____<<($.%$-_==__ ?$___+@___:$.%$_==__ ?$___:$.%$__==__ ?@___:$.);$.<($__*@_)**@_?___[____]:____})[[]]
[20:28:27] ruboto: Ox0dea # => [1, 2, "Fizz", 4, "Buzz", "Fizz", 7, 8, "Fizz", "Buzz", 11, "Fizz", 13, 14, "FizzBuzz", 16, 17, "Fiz ...check link for more (https://eval.in/454998)
[20:28:37] Ox0dea: There's FizzBuzz, and I've got a brainfuck interpreter around here somewhere.
[20:28:52] mordocai: has joined #ruby
[20:28:58] skade: has joined #ruby
[20:29:11] swgillespie: has joined #ruby
[20:29:12] MinasMazar: ahahahah fantastic
[20:29:17] slash_quit: ACTION would love to bust that out in an interview
[20:29:36] slash_quit: might not get the job, but that's an epic fizzbuzz
[20:29:43] mag42c: is this the best channel for rails specific questions?
[20:29:52] shevy: Ox0dea dunno, my eye tends to ignore $ whenever that is possible
[20:29:53] slash_quit: mag42c: #rubyonrails
[20:30:15] mag42c: slash_quit: Thanks!
[20:30:15] slash_quit: shevy: vow of poverty?
[20:30:24] Ox0dea: slash_quit: Check your privilege?
[20:30:25] shevy: slash_quit vow of simplicity!!!
[20:30:30] shevy: and elegance
[20:30:32] adaedra: slash_quit: he's european, he prefers ???
[20:30:32] karapetyan: has joined #ruby
[20:30:47] shevy: is that french unicode again
[20:30:50] eam: if they euro keeps falling he'll prefer $ again
[20:30:58] adaedra: shevy: that's the Euro symbol
[20:31:00] Ox0dea: minasmazar: https://eval.in/455001
[20:31:12] Ox0dea: Since brainfuck is TC, so too must be non-alphanumeric Ruby if it's able to simulate it.
[20:31:14] shevy: damn... I can't see the euro key on my keyboard anymore :(
[20:31:32] baweaver: has joined #ruby
[20:31:41] shevy: I am typing half blind because half of my keys are no longer readable
[20:31:47] karapetyan: has joined #ruby
[20:32:07] adaedra: You can search for you keyboard layout on google images.
[20:32:27] shevy: this is so insane
[20:32:47] adaedra: Welcome to the 21st century.
[20:33:31] slash_quit: shevy: my top row is poiuytrewq... it's funny to watch people do the reach for my keyboard like "let me just type it --- whoa, whoa, how?" thing
[20:33:45] shevy: what the ... is poiuytrewq
[20:33:54] slash_quit: shevy: qwertyuiop, reversed
[20:33:56] adaedra: I have an US keyboard. It's enough to mess up with people here, slash_quit.
[20:34:03] slash_quit: i now know who in my office types by sight
[20:34:07] shevy: I have qwertz
[20:34:12] Qantourisc: has joined #ruby
[20:34:16] tenderlove: has joined #ruby
[20:34:16] spuk: has joined #ruby
[20:34:20] Qantourisc: "/usr/lib64/ruby/gems/2.0.0/gems/bundler-1.10.6/lib/bundler/spec_set.rb:92:in `block in materialize': Could not find rake-10.1.1 in any of the sources (Bundler::GemNotFound)"
[20:34:26] pikajude: has joined #ruby
[20:34:27] slash_quit: shevy: what keyboard do you use?
[20:34:36] nettoweb: has joined #ruby
[20:34:36] shevy: slash_quit a german microsoft keyboard!
[20:34:40] pikajude: hi, is there an equivalent of "scan" that can return positions as well, like match would be able to?
[20:34:46] Qantourisc: Can't quite find what causes ruby to look for THAT specific version of rake
[20:34:49] shevy: they can't do software but they have good keyboards
[20:35:07] adaedra: Qantourisc: Gemfile.lock
[20:35:13] slash_quit: or automobiles? re: VW
[20:35:15] beauby: has joined #ruby
[20:35:22] rgtk: has joined #ruby
[20:35:23] Ox0dea: pikajude: No. :<
[20:35:30] shevy: I think my fingers must be acidic, the keys that are used the most by the index fingers are those that have decayed the most
[20:35:55] pikajude: Ox0dea: I've found a "workaround" on stackoverflow, given as "foo".to_enum(:scan, /pat/).map { Regexp.last_match }
[20:35:58] pikajude: and i'm all like, wtf is that
[20:36:13] Ox0dea: Well, that's actually kinda neat.
[20:36:22] slash_quit: shevy: boogers
[20:36:50] rgtk: Is it possible to access constant defined "above" module inside this module if name is the same? For example I want to access Ruby's Set inside Module that have defined Set constant.
[20:36:53] Qantourisc: adaedra: thanks, but that file lists rake (10.4.2) and rake (>= 0.8.7)
[20:37:18] Ox0dea: rgtk: ::Set
[20:37:34] shevy: slash_quit nah they reside under the table
[20:37:57] slash_quit: shevy: but how do they get there? index finger.
[20:38:12] shevy: hmm interesting theory
[20:38:38] rgtk: Ox0dea: Thank you
[20:38:52] MinasMazar: i prefer !??? :D
[20:39:14] slash_quit: shevy: my nostrils are larger, so i go with the thumb myself... but the space-bar is already blank, so nothing to rub off... i can't personally test this theory, not without using an undersized finger for my nose picking.
[20:39:30] slash_quit: and that'd feel wrong.
[20:40:00] Qantourisc: ACTION dislikes ruby for the dependency mess
[20:40:23] havenwood: Qantourisc: Use fewer dependencies?
[20:40:39] Qantourisc: havenwood: not a developer, system installer
[20:40:48] Ox0dea: >> 'foobarbaz'.to_enum(:scan, /[aeiou]/).map { $~.begin 0 } # pikajude
[20:40:49] ruboto: Ox0dea # => [1, 2, 4, 7] (https://eval.in/455005)
[20:40:50] tenderlove: has joined #ruby
[20:40:58] havenwood: Qantourisc: Aha.
[20:40:59] Ox0dea: Kinda wonky, though.
[20:41:10] shevy: slash_quit strangely enough, I am right handed, but it's the left area of the keyboard that has more blank keys
[20:41:13] havenwood: Qantourisc: No up-to-date package on your distro/OS?
[20:41:36] riotjones: has joined #ruby
[20:41:43] Qantourisc: havenwood: not sure, not if the package-package, suppose I could manualy install
[20:41:51] karapetyan: has joined #ruby
[20:42:08] havenwood: Qantourisc: What distro?
[20:42:17] Qantourisc: havenwood: ok have a usefull error message atm "rails (= 3.2.13) "
[20:42:24] Qantourisc: havenwood: gentoo, and it's redmine app
[20:42:30] Qantourisc: the version provided is
[20:42:50] Qantourisc: release date:
[20:43:38] nw1: has joined #ruby
[20:43:39] slash_quit: shevy: maybe the boogers aren't the cause... maybe the boogers form some protective barrier
[20:44:03] shevy: slash_quit this keyboard has helped write hundres of .rb files! I can't let it go...
[20:44:15] swgillespie: has joined #ruby
[20:44:32] c33s: has left #ruby: ()
[20:44:49] Ox0dea: >> [].tap { |i| 'foobarbaz'.gsub(/[aeiou]/) { i << $~.begin(0) } }
[20:44:50] ruboto: Ox0dea # => [1, 2, 4, 7] (https://eval.in/455010)
[20:44:59] Ox0dea: pikajude: That one'll go over better in a review.
[20:45:03] roshanavand: has joined #ruby
[20:45:07] pikajude: got that right
[20:45:33] rickmasta: has joined #ruby
[20:45:45] Ox0dea: Still, #to_enum is a pretty nifty method; I forgot it could take more than just the method to enumerate by.
[20:46:38] dfinninger: has joined #ruby
[20:47:15] tenderlove: has joined #ruby
[20:47:20] swgillespie: has joined #ruby
[20:47:35] drocsid: has left #ruby: ()
[20:47:48] rgb-one: has joined #ruby
[20:48:39] Musashi007: has joined #ruby
[20:50:04] Ox0dea: So, ${>9} don't get to be with the others in #global_variables, and ${<-9} are syntax errors.
[20:50:18] Gustavo: has joined #ruby
[20:51:26] bollullera: has joined #ruby
[20:51:28] yardenbar: has joined #ruby
[20:51:35] EminenceHC: has joined #ruby
[20:51:56] Ox0dea: It's a moral outrage, a failure of common decency, an embrace of the tyrannical unfairness that code is heir to.
[20:52:01] yashinbasement: has joined #ruby
[20:54:03] rwilcox: pretty sure the left side is going to wear faster than the right side, because QWERTY. At least in my experience
[20:54:29] rwilcox: if you look at a longtime Dvorak user you'll see their home row all worn out like that too
[20:55:27] yfeldblum: has joined #ruby
[20:55:32] cwong_on_irc: has joined #ruby
[20:56:08] Igorshp: has joined #ruby
[20:58:07] mr_am: has joined #ruby
[20:58:39] Qantourisc: havenwood: thanks for upgrade idea, just slapped on some gems, now works just fine
[20:58:44] roshanavand: has joined #ruby
[20:59:24] Ox0dea: rwilcox: I appreciate the subtlety of that burn.
[21:00:17] jobewan: has joined #ruby
[21:00:29] vigintas: has joined #ruby
[21:01:49] GriffinHeart: has joined #ruby
[21:02:27] _djbkd: has joined #ruby
[21:02:33] Ox0dea: >> $-????
[21:02:34] ruboto: Ox0dea # => nil (https://eval.in/455043)
[21:02:53] pikajude: has left #ruby: ("bye")
[21:03:09] arthurix: has joined #ruby
[21:03:24] Ox0dea: $-9 to $-1 are only incidentally valid, it seems.
[21:03:28] drbrain: Ox0dea: ???? to_enum and enum_for
[21:03:43] Ox0dea: They're the same.
[21:04:09] mr_am: I'm reading about "executing loaded code" in the book "The Ruby Programming Language" by the creator of Ruby... can someone explain these two points please? http://ctrlv.it/txt/2695/520925891
[21:04:20] Ox0dea: But it's true that one or the other is contextually more intention-revealing.
[21:04:47] Shoutsid: has joined #ruby
[21:04:52] shevy: mr_am you simply need to keep track of the scope
[21:05:02] bryanray: has joined #ruby
[21:06:02] anisha: has joined #ruby
[21:06:07] rgb-one: has joined #ruby
[21:06:12] Ebok: mr_am what about those two points are confusing to you?
[21:06:28] mr_am: Ebok: I can't seem to understand them...
[21:06:37] Ox0dea: mr_am: Just a second.
[21:06:59] Ox0dea: mr_am: https://gist.github.com/0x0dea/87f706155310dccb0b68
[21:07:03] Ox0dea: That should help clarify.
[21:07:05] Ebok: The first point basically means that loading gems or files doesnt highlight/change_selection of the ruby object
[21:07:35] pdoherty: has joined #ruby
[21:07:42] paulcsmith: has joined #ruby
[21:07:52] Ebok: If his examples are clear to you I'mma save my typing
[21:08:21] Gustavo: has joined #ruby
[21:08:21] jonnyro: has joined #ruby
[21:08:29] EminenceHC: has joined #ruby
[21:08:32] mistermocha: has joined #ruby
[21:09:50] Ox0dea: mr_am: Replace `load` with `eval File.read` to see how #load *doesn't* behave.
[21:10:18] Musashi007: has joined #ruby
[21:10:28] bmurt: has joined #ruby
[21:11:02] kadoppe: has joined #ruby
[21:11:43] mr_am: Ox0dea: What does this sentence mean in simple terms? "That is, invoking load or require within a method invocation does not propagate the receiver object to the loaded file."
[21:12:08] Ox0dea: mr_am: It means `self` is always `main` at the start of a load.
[21:12:20] Scient: has joined #ruby
[21:12:20] momomomomo: has joined #ruby
[21:12:20] yardenbar: has joined #ruby
[21:13:13] mr_am: Ox0dea: So it basically means loaded files are executed with self as main?
[21:13:59] Senjai: has joined #ruby
[21:14:12] Ox0dea: If you *want* the loaded file to inherit the current `self`, you have to use #eval directly.
[21:14:33] choke: has joined #ruby
[21:14:40] yardenbar: has joined #ruby
[21:14:48] mr_am: Ox0dea: Loaded files are also executed in a different scope?
[21:15:39] tenderlove: has joined #ruby
[21:15:49] Ox0dea: mr_am: You've only rephrased your previous question.
[21:15:50] blackmesa: has joined #ruby
[21:16:47] mr_am: Ox0dea: Why don't I have access to local variables in the required file?
[21:17:01] konrath: has joined #ruby
[21:17:22] Ox0dea: Because you don't actually want that.
[21:17:40] mr_am: Ox0dea: Yeah I know but where does ruby execute loaded files? In what scope?
[21:17:41] paulcsmith: has joined #ruby
[21:17:52] Ox0dea: A brand-new one with `self` set to `main`.
[21:17:56] rgb-one: Alright, say I have an argument --output which outputs content to a file. Using optparse, how would I set the --output function to perform the task of writing to a file? The file could be named anything. Would I use the gets method to read the output filename entered by the user? eg. progname infile.txt -o outfile.txt.
[21:17:57] Encapsulation: has joined #ruby
[21:18:19] Outlastsheep: has joined #ruby
[21:18:32] Ox0dea: mr_am: If loaded files brought their locals, top-level locals would be equivalent to globals, which would be very silly.
[21:18:34] rgb-one: progname infile.txt --output outfile.txt*
[21:18:35] mr_am: Ox0dea: And since self is set to main, all constants defined in the loaded file become constants of the Object class?
[21:18:40] Maletor: has joined #ruby
[21:19:24] Ox0dea: mr_am: That's not immediately relevant to `main`; it's just that top-level constants go on Object.
[21:19:58] Nicola-1_: has joined #ruby
[21:20:55] ruby-lang504: has joined #ruby
[21:20:56] Ox0dea: >> Foo = 1; Object.constants.include?(:Foo)
[21:20:57] ruboto: Ox0dea # => true (https://eval.in/455044)
[21:21:19] imperator: has joined #ruby
[21:22:02] Ox0dea: ArgumentError: wrong number of arguments (0 for 2..3)
[21:22:52] drbrain: rgb-one: in the option body you would store it into, say, a Hash
[21:23:20] rgb-one: drbrain: option["--option"] right?
[21:23:36] dikaio: has joined #ruby
[21:23:53] drbrain: rgb-one: here's an example doing something similar: https://github.com/drbrain/drbdump/blob/master/lib/drbdump.rb#L289-L295
[21:24:10] mr_am: Ox0dea: Okay, one last question. How does ruby have access to constants defined in a required file if it's executed in a different scope?
[21:24:28] Ox0dea: mr_am: Because they're being placed on Object, which is available in any scope.
[21:24:29] Maletor: has joined #ruby
[21:25:15] Ox0dea: Constant resolution is hierarchical, with Object at the top of the tree.
[21:25:51] mr_am: Ox0dea: Alright got it. Thanks!
[21:25:55] Ox0dea: Happy to help.
[21:26:26] rgb-one: drbrain: I think I understand. option[:output] = file would perform the task of registering the users input.
[21:27:03] RobertBirnie: has joined #ruby
[21:27:03] drbrain: rgb-one: here I set defaults: https://github.com/drbrain/drbdump/blob/master/lib/drbdump.rb#L264-L271
[21:27:12] sharkman: why is i that i started up an instance on amazon of a server and with ubuntu, apt-get install ruby got me ruby1.9. and when it was debian, apt-get install ruby got me ruby2.1?
[21:27:34] drbrain: rgb-one: then I pass the options to the library part that does what I want: https://github.com/drbrain/drbdump/blob/master/lib/drbdump.rb#L361
[21:27:50] freerobby: has joined #ruby
[21:27:57] tubuliferous_: has joined #ruby
[21:28:02] Shoutsid: has joined #ruby
[21:29:28] rgb-one: drbrain: Interesting
[21:29:31] imperator: there a way to force an ostruct to override an existing method? OpenStruct.new(:foo => 1, :tap => 2).tap # get a a block error, want 2
[21:30:01] jimmmmy: has joined #ruby
[21:30:30] Ox0dea: >> require 'ostruct'; OpenStruct.new(:foo => 1, :tap => 2)[:tap] # imperator
[21:30:31] ruboto: Ox0dea # => 2 (https://eval.in/455045)
[21:30:33] Coldblackice: has joined #ruby
[21:30:47] drbrain: rgb-one: I separate options-parsing from implementation that way so the library can work standalone
[21:30:54] idefine: has joined #ruby
[21:31:36] nateberkopec: has joined #ruby
[21:31:40] but3k4: has joined #ruby
[21:31:43] tenderlove: has joined #ruby
[21:32:23] mary5030: has joined #ruby
[21:32:42] NeverDie: has joined #ruby
[21:32:43] karapetyan: has joined #ruby
[21:32:57] chrisja: has joined #ruby
[21:33:40] ankhers: has joined #ruby
[21:34:00] rgb-one: drbrain: That is a useful approach. I was thinking of doing the same for an upcoming project but didn't know how to.
[21:34:20] petricore: has joined #ruby
[21:34:45] drbrain: rgb-one: it also make it easier to test options parsing: https://github.com/drbrain/drbdump/blob/master/test/test_drbdump.rb#L5-L13
[21:35:37] Xeago: has joined #ruby
[21:36:05] haxrbyte: has joined #ruby
[21:36:20] QualityAddict: has joined #ruby
[21:36:27] Xeago: My dear rubyists, if I may be allowed to go offtopic: given 81^(1/m)=9^n, what is m*n?
[21:36:35] swgillespie: has joined #ruby
[21:36:59] stamina: has joined #ruby
[21:37:08] duderonomy: has joined #ruby
[21:37:20] Ox0dea: Xeago: Sounds like you want #prolog.
[21:37:45] tenderlove: has joined #ruby
[21:38:00] minimalism: has joined #ruby
[21:38:03] Xeago: Would that be after division by 9, 9^(1/m)=1^n, thus 9^(1/m)=1
[21:38:03] NeverDie: has joined #ruby
[21:38:12] EminenceHC: has joined #ruby
[21:38:56] arthurnn: has joined #ruby
[21:39:10] Xeago: which would mean that 9^(1/m) should divide by 0? :S
[21:39:55] solocshaw1: has joined #ruby
[21:39:58] Xeago: I'm probably not allowed to divide the base
[21:40:16] Ox0dea: >> [[1, 2], [2, 1], [4, 0.5]].all? { |m, n| 81 ** (1.0/m) == 9 ** n }
[21:40:17] ruboto: Ox0dea # => true (https://eval.in/455046)
[21:40:35] Ox0dea: Do you perceive a pattern?
[21:40:49] Ox0dea: Yay, numbers!
[21:41:51] Ox0dea: Xeago: How many solutions are there?
[21:42:46] Xeago: Ox0dea: given that you had no calculator, or ruby at your hand
[21:42:51] Xeago: how would you approach this?
[21:43:04] Ox0dea: The Ruby was only for demonstration purposes?
[21:43:15] Xeago: given that I now know the solution, I still feel powerless to explain it to my gf, other than just wing it with a number (which is usually fine for 2 unknown variable computations)
[21:44:31] Shoutsid: has joined #ruby
[21:44:47] Ox0dea: The number of resources available to you isn't quite so many as the number of solutions to that equation, but it's close.
[21:45:25] Ox0dea: (I'm not so great at explaining math in ways that'll "stick".)
[21:45:28] tenderlo_: has joined #ruby
[21:45:47] Xeago: try on me - I'm not exalting at math, but better than my gf for sure
[21:46:37] Xeago: So I got stuck at trying to think of either m or n of being 0
[21:46:47] Xeago: thinking of them of being 1 a solution is trivial
[21:47:22] chouhoul_: has joined #ruby
[21:47:22] Ox0dea: But 1 is the multiplicative identity, so it's the ideal place to start?
[21:47:51] sdwrage: has joined #ruby
[21:48:29] skade: has joined #ruby
[21:48:38] Xeago: raising it 0 would mean that you nullify the exponentiation
[21:49:04] Xeago: and perhaps consider it to be a more easy equation - in this case, no
[21:49:32] kobain: has joined #ruby
[21:49:53] rgb-one: atr_accessor = setter right?
[21:49:57] Ox0dea: rgb-one: Both.
[21:50:10] Radar: rgb-one: attr_writer is the setter.
[21:50:14] Radar: attr_reader is the getter.
[21:50:28] chouhoul_: has joined #ruby
[21:50:41] rgb-one: attr_accessor is the same as attr_setter?
[21:50:49] rgb-one: attr_accessor is the same as attr_writer?*
[21:50:57] jenrzzz: has joined #ruby
[21:51:01] Radar: You're not paying attention.
[21:51:12] Radar: attr_accessor is both reader + writer.
[21:51:23] rgb-one: Radar: I see.
[21:52:03] rickmasta: has joined #ruby
[21:53:53] ss_much: has joined #ruby
[21:54:52] skcin7: has joined #ruby
[21:54:56] jessemcgilallen: has joined #ruby
[21:55:14] roshanavand: has joined #ruby
[21:55:22] tenderlove: has joined #ruby
[21:55:28] benjito: has joined #ruby
[21:58:46] mistermocha: has joined #ruby
[21:58:54] jessemcgilallen: has joined #ruby
[21:59:06] bryanray: has joined #ruby
[21:59:29] rcvalle: has joined #ruby
[21:59:55] Shoutsid: has joined #ruby
[22:00:08] rcvalle: has joined #ruby
[22:00:34] jobewan: has joined #ruby
[22:00:40] karapetyan: has joined #ruby
[22:02:51] tenderlove: has joined #ruby
[22:03:01] chipotle: has joined #ruby
[22:03:22] asxbr: has joined #ruby
[22:03:39] baweaver: has joined #ruby
[22:03:59] Musashi007: has joined #ruby
[22:04:01] Azure: has joined #ruby
[22:05:28] sdwrage: has joined #ruby
[22:05:34] mag42c_: has joined #ruby
[22:06:14] Asher: has joined #ruby
[22:06:19] yfeldblum: has joined #ruby
[22:07:13] rickmasta: has joined #ruby
[22:09:07] Gustavo: has joined #ruby
[22:10:04] spider-mario: has joined #ruby
[22:11:35] jessemcgilallen: has joined #ruby
[22:11:52] d5sx43: has joined #ruby
[22:13:17] sankaber: has joined #ruby
[22:13:59] imperator: Ox0dea, and if I want to forcibly redefine it?
[22:14:09] sankaber: has joined #ruby
[22:14:45] imperator: i guess just o.class.send(:undef_method, :tap)
[22:14:47] ericjphillips: has joined #ruby
[22:16:16] Xeago: has joined #ruby
[22:16:19] Ox0dea: There are only two hard things in computer science.
[22:17:34] RegulationD: has joined #ruby
[22:18:47] leafybasil: has joined #ruby
[22:18:55] imperator: caching and bitcoins?
[22:19:45] sepp2k: has joined #ruby
[22:20:18] beauby: has joined #ruby
[22:20:31] Ropeney: has joined #ruby
[22:20:33] nateberkopec: has joined #ruby
[22:20:35] pipework: Ox0dea: Other people and people who aren't me?
[22:20:49] nertzy: has joined #ruby
[22:21:07] Ox0dea: Cache invalidation, naming things, off-by-one errors, and cache invalidation.
[22:21:39] trosborn: has joined #ruby
[22:24:14] Ox0dea: http://git.io/vWs6h
[22:24:14] tenderlove: has joined #ruby
[22:24:30] d5sx43: has joined #ruby
[22:24:31] Ox0dea: I think that was a bad decision.
[22:24:49] rgb-one: With optparse, when i use the opts.version provided it doesn't display in the help message. I use `opts; exit` for the --help message.
[22:24:56] Trynemjoel: has joined #ruby
[22:25:47] rgb-one: Is there any way to show the -v, --version message in the help output?
[22:26:16] ericjphillips: has joined #ruby
[22:27:23] gabi_300: has joined #ruby
[22:27:59] EminenceHC: has joined #ruby
[22:28:56] Musashi007: has joined #ruby
[22:29:15] adaedra: Just call your version method just before calling opts
[22:30:31] jpfuentes2: has joined #ruby
[22:32:08] bonhoeffer: has joined #ruby
[22:33:10] Pupeno: has joined #ruby
[22:33:10] Pupeno: has joined #ruby
[22:33:39] baweaver: has joined #ruby
[22:34:01] Xeago: Ox0dea: got a moment for another question? Given a square ABCD, there is an equal-sided triangle inside ABE. What's the angle of E in the triangle CED?
[22:34:27] Qantourisc: has joined #ruby
[22:34:31] Xeago: I can go elsewhere if I am disturbing the fine folks of #ruby - these are just the nicest people I know :>
[22:35:23] trosborn: has joined #ruby
[22:35:52] pipework: Xeago: There are math channels on IRC that aren't too bad.
[22:35:56] pipework: Err, freenode.
[22:36:52] Xeago: a drawing if it helps: https://gist.github.com/Xeago/4e58c40edbc0b459dd5c
[22:37:00] Xeago: pipework: ok, I'll look for em
[22:39:42] willharrison: has joined #ruby
[22:39:59] _wldcordeiro: has joined #ruby
[22:40:37] tenderlove: has joined #ruby
[22:42:24] riotjones: has joined #ruby
[22:42:42] tubuliferous_: has joined #ruby
[22:43:05] Salve: has joined #ruby
[22:43:29] beauby: has joined #ruby
[22:44:32] Musashi007: has joined #ruby
[22:44:40] ericjphillips: has joined #ruby
[22:45:04] bmurt: has joined #ruby
[22:45:10] rodfersou: has joined #ruby
[22:46:39] dorei: has joined #ruby
[22:46:44] jgt: has joined #ruby
[22:49:35] CloCkWeRX: has joined #ruby
[22:50:42] mistermo_: has joined #ruby
[22:56:12] tenderlove: has joined #ruby
[22:58:41] molly: has joined #ruby
[23:01:01] wildlander: has joined #ruby
[23:01:40] wildlander: has joined #ruby
[23:01:43] nertzy: has joined #ruby
[23:05:32] jessemcgilallen: has joined #ruby
[23:05:45] yfeldblum: has joined #ruby
[23:05:45] Maletor: has joined #ruby
[23:06:12] chouhoulis: has joined #ruby
[23:06:40] dopamean_: has joined #ruby
[23:07:06] hadees: has joined #ruby
[23:08:14] hooper: has joined #ruby
[23:08:14] bonhoeffer: has joined #ruby
[23:10:17] yfeldblum: has joined #ruby
[23:11:07] tenderlove: has joined #ruby
[23:11:34] baweaver: has joined #ruby
[23:12:33] hahuang65: has joined #ruby
[23:14:05] GeissT: has joined #ruby
[23:15:36] jgpawletko: has joined #ruby
[23:18:39] Azure: has joined #ruby
[23:21:26] barhum2013: has joined #ruby
[23:22:52] rehat: has joined #ruby
[23:23:19] EminenceHC: has joined #ruby
[23:24:37] s00pcan: has joined #ruby
[23:28:05] tenderlove: has joined #ruby
[23:29:42] JuanIbiapina: has joined #ruby
[23:30:07] Qantourisc: has joined #ruby
[23:30:24] |ifei5g00d: has joined #ruby
[23:30:38] JuanIbiapina: has left #ruby: ()
[23:32:10] n_blownapart: has joined #ruby
[23:35:51] haxrbyte: has joined #ruby
[23:37:22] murilo: has joined #ruby
[23:37:37] Xiti: has joined #ruby
[23:38:01] stardiviner: has joined #ruby
[23:38:35] arthurix_: has joined #ruby
[23:39:48] tenderlove: has joined #ruby
[23:42:53] JJM: has joined #ruby
[23:43:48] |ifei5g00d: has joined #ruby
[23:46:31] mistermocha: has joined #ruby
[23:46:42] cdg: has joined #ruby
[23:46:43] murilo: has left #ruby: ()
[23:47:57] swgillespie: has joined #ruby
[23:49:34] RegulationD: has joined #ruby
[23:49:35] |ifei5g00d: has joined #ruby
[23:50:03] JJM: has joined #ruby
[23:50:29] rbennacer: has joined #ruby
[23:51:07] tenderlove: has joined #ruby
[23:51:15] tubuliferous_: has joined #ruby
[23:51:23] e1senhorn: has joined #ruby
[23:52:16] iateadonut: has joined #ruby
[23:52:55] paulcsmith: has joined #ruby
[23:53:04] blackjid: has joined #ruby
[23:53:18] Qantourisc: has joined #ruby
[23:54:29] ishikawa91: has joined #ruby
[23:54:48] mistermocha: has joined #ruby
[23:55:30] chopin: Would anyone familiar with the ruby google api client mind taking a look at this SO post?
[23:55:31] chopin: http://stackoverflow.com/questions/33270102/send-gmail-messages-with-google-api-ruby-client-0-9-pre3
[23:56:19] bryanray: has joined #ruby
[23:57:23] mistermocha: has joined #ruby
[23:57:53] Gustavo: has joined #ruby
[23:57:54] VeryBewitching: chopin: Could you make a gist of your code, including an initializer if you have one?
[23:59:16] nettoweb: has joined #ruby