« Back to channel list

#ruby - 21 March 2016

« Back 1 day Forward 1 day »
[00:02:06] blandflakes: has joined #ruby
[00:02:06] Ropeney: has joined #ruby
[00:02:51] minimalism: has joined #ruby
[00:03:35] uglybandersnatch: has joined #ruby
[00:04:11] Ox0dea: riceandbeans: https://eval.in/539510
[00:08:40] jaequery_: has joined #ruby
[00:09:40] lessless: has joined #ruby
[00:11:41] shevy: riceandbeans comment on it :)
[00:12:59] dmnd: has joined #ruby
[00:15:04] CloCkWeRX: has joined #ruby
[00:15:47] dmnd: How do I use a helper method to define a constant? https://gist.github.com/dmnd/6acdcf00410d67ab1206
[00:16:10] dmnd: If I run that, I end up with `NoMethodError`
[00:18:17] jdawgaz: has joined #ruby
[00:18:37] dmnd: In Python or Javascript, I'd just make `helper` a bare function at toplevel, but I guess I don't understand how to do that in Ruby.
[00:21:39] uglybandersnatch: has joined #ruby
[00:22:12] wilbert: has joined #ruby
[00:24:07] shiver: has joined #ruby
[00:24:07] shiver: has joined #ruby
[00:24:21] Ox0dea: dmnd: You need to define #helper on Foo itself. That is, it needs to be a singleton method rather than an instance method.
[00:24:43] Ox0dea: There are many ways to do that: https://eval.in/539515
[00:25:20] shiver: has joined #ruby
[00:25:20] shiver: has joined #ruby
[00:25:24] dmnd: thanks Ox0dea
[00:25:26] Ox0dea: Sure thing.
[00:26:53] dmnd: Is that constant an instance variable too?
[00:27:04] jpfuentes2: has joined #ruby
[00:27:43] graffix: has joined #ruby
[00:27:56] Anderson69s_Deb: has joined #ruby
[00:32:49] mjuszczak: has joined #ruby
[00:34:03] chouhoulis: has joined #ruby
[00:38:05] millerti: has joined #ruby
[00:38:51] fullofcaffeine: has joined #ruby
[00:40:23] pestilence: has left #ruby: ()
[00:45:17] awasum: has joined #ruby
[00:50:20] Yzguy: has joined #ruby
[00:50:26] bezhermoso: has joined #ruby
[00:53:49] mleung: has joined #ruby
[00:55:32] htmldrum_: has joined #ruby
[00:57:05] sneakerhax: has joined #ruby
[00:58:28] Vingador: has joined #ruby
[00:59:02] baweaver: has joined #ruby
[01:04:54] baweaver: has joined #ruby
[01:07:27] ekinmur: has joined #ruby
[01:08:24] mbff: has joined #ruby
[01:08:39] speakingcode: has joined #ruby
[01:09:37] mbff: Hello! I am trying to follow this guide: http://blog.sourcing.io/structuring-sinatra However I want all the routes to share the same configuration.
[01:09:54] mbff: And I want to register routes inside a namespace
[01:11:27] mbff: Something like this: https://gist.github.com/marshallford/d6b84d3970a4e083d770
[01:11:36] JoshGlzB_: has joined #ruby
[01:11:37] mbff: I have spent way to much time this weekend trying to get Sinatra structured the way I want
[01:12:25] Suntzu: has joined #ruby
[01:15:18] bricker: has joined #ruby
[01:20:36] mistermocha: has joined #ruby
[01:21:26] shevy: tried #sinatra yet? most people here probably don't know sinatra
[01:21:45] benzrf: i know some sinatra
[01:23:00] riceandbeans: I'm not using sinatra like that at the moment
[01:23:07] riceandbeans: course I may be doing it wrongtoo
[01:23:17] riceandbeans: I'm using sinatra as a prototype for the moment
[01:23:33] riceandbeans: I'm ultimately doing my API in Rust with Iron
[01:23:42] BtcBen: has joined #ruby
[01:25:48] CloCkWeRX: has left #ruby: ()
[01:32:51] _blizzy_: has joined #ruby
[01:34:31] chouhoulis: has joined #ruby
[01:34:49] Thomas-0725: has joined #ruby
[01:36:52] lianj: has joined #ruby
[01:36:53] tomatoes: has joined #ruby
[01:45:11] chipotle: has joined #ruby
[01:46:08] Guest34101: has joined #ruby
[01:46:39] stannard: has joined #ruby
[01:49:06] Spami: has joined #ruby
[01:57:05] halfamind: has joined #ruby
[02:04:40] LoneHerm_: has joined #ruby
[02:06:58] wilbert: has joined #ruby
[02:10:43] NightMonkey: has joined #ruby
[02:14:46] uglybandersnatch: has joined #ruby
[02:14:47] sysodaff: has joined #ruby
[02:18:17] awasum_: has joined #ruby
[02:20:58] diegoviola: has joined #ruby
[02:24:38] bezhermoso: has joined #ruby
[02:26:13] kam270: has joined #ruby
[02:26:34] fedexo: has joined #ruby
[02:30:21] stannard: has joined #ruby
[02:32:00] mistermocha: has joined #ruby
[02:34:11] baweaver: has joined #ruby
[02:35:27] chouhoulis: has joined #ruby
[02:38:06] chagel: has joined #ruby
[02:40:18] halfamind: has joined #ruby
[02:41:04] bronson: has joined #ruby
[02:45:33] mistermocha: has joined #ruby
[02:45:57] blackmesa: has joined #ruby
[02:46:41] uglybandersnatch: has joined #ruby
[02:48:45] jdawgaz: has joined #ruby
[02:48:59] tjbiddle: has joined #ruby
[02:54:33] wilbert: has joined #ruby
[02:54:49] arescorpio: has joined #ruby
[02:58:38] JoshGlzBrk: has joined #ruby
[03:00:11] mistermocha: has joined #ruby
[03:00:56] Thomas-0725: has joined #ruby
[03:05:07] sucks: has joined #ruby
[03:05:11] A124: has joined #ruby
[03:05:35] baweaver: has joined #ruby
[03:06:26] marcdel_: has joined #ruby
[03:08:28] Thomas-0725: has joined #ruby
[03:10:44] terminalrecluse: has joined #ruby
[03:10:45] tjbiddle: has joined #ruby
[03:11:16] JJM: has joined #ruby
[03:14:44] shadeslayer: has joined #ruby
[03:16:19] clorisu: has joined #ruby
[03:17:10] uglybandersnatch: has joined #ruby
[03:17:30] contradictioned: has joined #ruby
[03:19:49] ohcibi: has joined #ruby
[03:24:09] bauruine: has joined #ruby
[03:24:21] tjbiddle: has joined #ruby
[03:24:46] JoshGlzB_: has joined #ruby
[03:25:52] djbkd: has joined #ruby
[03:26:14] Channel6: has joined #ruby
[03:27:14] heftig: has joined #ruby
[03:27:18] yfeldblum: has joined #ruby
[03:29:55] mistermo_: has joined #ruby
[03:34:38] bronson: has joined #ruby
[03:35:42] bauruine: has joined #ruby
[03:36:01] anjen: has joined #ruby
[03:36:05] chouhoulis: has joined #ruby
[03:36:28] krz: has joined #ruby
[03:37:41] elifoster: has joined #ruby
[03:39:14] chagel: has joined #ruby
[03:40:08] fullofcaffeine: has joined #ruby
[03:40:44] brendan-: has joined #ruby
[03:41:06] uglybandersnatch: has joined #ruby
[03:41:51] theseb: has joined #ruby
[03:43:25] ohcibi: has joined #ruby
[03:45:23] sand_bird: has joined #ruby
[03:49:45] ohcibi: has joined #ruby
[03:50:13] bauruine: has joined #ruby
[03:50:14] bluOxigen: has joined #ruby
[03:50:47] theseb`: has joined #ruby
[03:52:10] phrozen77: has joined #ruby
[03:55:19] CloCkWeRX: has joined #ruby
[03:59:36] ohcibi: has joined #ruby
[04:00:49] tjbiddle: has joined #ruby
[04:01:34] clorisu: has joined #ruby
[04:02:44] bauruine: has joined #ruby
[04:03:50] jdawgaz: has joined #ruby
[04:04:30] sfr^: has joined #ruby
[04:04:53] Zipdot: has joined #ruby
[04:04:57] icedp: has joined #ruby
[04:04:59] tinnvec: has joined #ruby
[04:05:10] phrozen77: has joined #ruby
[04:05:35] jdawgaz: has joined #ruby
[04:07:40] marcdel: has joined #ruby
[04:07:49] jpfuentes2: has joined #ruby
[04:08:07] Hobbyboy|BNC: has joined #ruby
[04:09:23] adgtl: has joined #ruby
[04:10:11] configged-: has joined #ruby
[04:11:55] braincrash: has joined #ruby
[04:12:05] ohcibi: has joined #ruby
[04:12:56] postmodern: has joined #ruby
[04:13:36] JoshGlzBrk: has joined #ruby
[04:16:28] blackmesa: has joined #ruby
[04:21:18] i8igmac: has joined #ruby
[04:21:28] chagel: has joined #ruby
[04:21:52] blandflakes: has joined #ruby
[04:22:47] Dreamer3_: has joined #ruby
[04:24:18] BtcBen: has joined #ruby
[04:24:26] treaki_: has joined #ruby
[04:24:49] patrick_star: has joined #ruby
[04:29:37] chouhoulis: has joined #ruby
[04:36:40] clorisu: has joined #ruby
[04:37:09] LoneHermit: has joined #ruby
[04:40:46] JoshGlzBrk: has joined #ruby
[04:40:51] Xiti: has joined #ruby
[04:42:01] bronson: has joined #ruby
[04:44:07] x77686d: has joined #ruby
[04:44:21] CloCkWeRX: has joined #ruby
[04:45:49] pawnbox: has joined #ruby
[04:47:32] oliver__: has joined #ruby
[04:47:39] chouhoulis: has joined #ruby
[04:48:45] mistermocha: has joined #ruby
[04:49:01] tjbiddle: has joined #ruby
[04:50:51] gix: has joined #ruby
[04:54:04] uglybandersnatch: has joined #ruby
[04:54:32] rhg135: has joined #ruby
[05:01:51] tildes: has joined #ruby
[05:08:20] djbkd: has joined #ruby
[05:08:32] Helheim: has joined #ruby
[05:10:50] chouhoul_: has joined #ruby
[05:13:45] vbatts|work: has joined #ruby
[05:14:31] redondos: has joined #ruby
[05:14:43] sunya7a_: has joined #ruby
[05:16:13] imajes: has joined #ruby
[05:16:59] wldcordeiro: has joined #ruby
[05:17:45] noService: has joined #ruby
[05:18:28] binaryplease: has joined #ruby
[05:19:02] merida_: has joined #ruby
[05:19:03] merida__: has joined #ruby
[05:21:03] duncannz: has joined #ruby
[05:21:11] hk238: has joined #ruby
[05:27:39] mistermocha: has joined #ruby
[05:30:40] Trynemjoel: has joined #ruby
[05:33:44] baweaver: has joined #ruby
[05:35:12] jcdesimp: has joined #ruby
[05:35:16] yatish27: has joined #ruby
[05:36:13] Trynemjoel: has joined #ruby
[05:38:25] epitron: http://iope-orchenstern.tumblr.com/post/20103197262/pretty-printing
[05:40:03] terminalrecluse: has joined #ruby
[05:42:27] A124: has joined #ruby
[05:44:53] htmldrum: has joined #ruby
[05:44:55] htmldrum_: has joined #ruby
[05:46:29] blackmesa: has joined #ruby
[05:50:50] chagel: has joined #ruby
[05:55:58] rkazak: has joined #ruby
[05:58:18] jenrzzz: has joined #ruby
[05:58:31] dionysus69: has joined #ruby
[06:03:49] Musashi007: has joined #ruby
[06:04:21] beast: has joined #ruby
[06:05:03] merida: has joined #ruby
[06:05:06] merida_: has joined #ruby
[06:06:13] RegulationD: has joined #ruby
[06:06:17] chagel: has joined #ruby
[06:07:23] danielwzd: has joined #ruby
[06:07:26] merida__: has joined #ruby
[06:07:27] merida___: has joined #ruby
[06:10:36] braincra-: has joined #ruby
[06:11:19] mikhael_k33hl: has joined #ruby
[06:11:50] mikhael_k33hl: Trying out rake, ang using ci_reporter, I must be doing it wrong, can't seem to populate or create the report file.
[06:13:17] the_drow: has joined #ruby
[06:19:18] jamil: has joined #ruby
[06:19:25] jpfuentes2: has joined #ruby
[06:20:03] LoneHerm_: has joined #ruby
[06:22:01] Macaveli: has joined #ruby
[06:23:46] pelegreno: has joined #ruby
[06:24:03] blandflakes: has joined #ruby
[06:28:27] tubuliferous: has joined #ruby
[06:30:23] kp666: has joined #ruby
[06:35:08] Diabolik: what would be the most optimal way of encrypting a number to a hash of 10 digits or less?
[06:36:15] Nilium: Encrypting or hashing?
[06:37:09] Diabolik: i would rather go with hashing but the client wants encryption
[06:37:20] Diabolik: its for an order number in an ecommerce sho
[06:37:49] Nilium: So, I'm guessing the order number is an auto-incrementing integer and they don't want to expose usage info?
[06:37:58] nibbo_: has joined #ruby
[06:38:44] baweaver: tell them just to use SHA hashes
[06:38:54] Cohedrin: has joined #ruby
[06:39:01] baweaver: ignore whatever they say on 10 digits and reversible, that's pointless.
[06:39:06] Nilium: Tell them to just use business IDs instead of integers.
[06:39:11] tildes: has joined #ruby
[06:39:58] baweaver: the client should not be able to influence those types of decisions
[06:40:09] uglybandersnatch: has joined #ruby
[06:40:17] Nilium: It's probably an existing system and they're sensitive about their numbers being low.
[06:41:09] Nilium: Anyway, won't speculate on it further. Can't offer anything crypto-wise.
[06:41:15] awasum: has joined #ruby
[06:46:03] bronson: has joined #ruby
[06:46:53] Bloomer: has joined #ruby
[06:48:18] krz: has joined #ruby
[06:49:28] chagel: has joined #ruby
[06:49:29] rodfersou: has joined #ruby
[06:52:09] the_drow: has joined #ruby
[06:57:48] htmldrum: has joined #ruby
[07:00:28] idletask: has joined #ruby
[07:01:07] htmldrum_: has joined #ruby
[07:07:36] neanderslob_: has joined #ruby
[07:08:03] neanderslob_: has joined #ruby
[07:08:17] lurch_: has joined #ruby
[07:08:57] chagel: has joined #ruby
[07:11:47] firstdayonthejob: has joined #ruby
[07:12:55] solars: has joined #ruby
[07:13:17] edwinvdgraaf: has joined #ruby
[07:13:57] chagel: has joined #ruby
[07:16:32] blackmesa: has joined #ruby
[07:18:15] tjbiddle: has joined #ruby
[07:18:33] scepticulous: has joined #ruby
[07:18:50] hightower3: has joined #ruby
[07:19:21] jpfuentes2: has joined #ruby
[07:22:58] tubuliferous: has joined #ruby
[07:25:42] chagel: has joined #ruby
[07:29:47] merida: has joined #ruby
[07:32:53] KnownSyntax: has joined #ruby
[07:32:55] KnownSyntax: has joined #ruby
[07:34:22] blt: has joined #ruby
[07:35:03] mark3: has joined #ruby
[07:35:13] andikr: has joined #ruby
[07:35:14] chagel: has joined #ruby
[07:37:07] roshanavand: has joined #ruby
[07:37:14] pandaant: has joined #ruby
[07:38:12] ledestin: has joined #ruby
[07:38:51] CloCkWeRX: has joined #ruby
[07:40:34] i8igmac: has joined #ruby
[07:42:12] Ariadeno: has joined #ruby
[07:44:28] JohnBat26: has joined #ruby
[07:49:36] gagrio: has joined #ruby
[07:50:22] f0f4r: has joined #ruby
[07:53:16] aganov: has joined #ruby
[07:54:00] tubuliferous: has joined #ruby
[07:54:27] djellemah_: has joined #ruby
[07:54:29] LoneHerm_: has joined #ruby
[07:55:00] tjbiddle_: has joined #ruby
[07:57:57] Xeago: has joined #ruby
[08:02:13] yatish27: has joined #ruby
[08:02:54] jaruga: has joined #ruby
[08:03:55] krz: has joined #ruby
[08:07:20] RegulationD: has joined #ruby
[08:08:56] the_drow: has joined #ruby
[08:09:27] codecop: has joined #ruby
[08:16:25] biberu: has joined #ruby
[08:18:37] aufi: has joined #ruby
[08:22:05] skade: has joined #ruby
[08:22:40] Xeago: has joined #ruby
[08:23:00] Couch: has joined #ruby
[08:23:17] tvw: has joined #ruby
[08:25:50] last_staff: has joined #ruby
[08:26:17] vondruch: has joined #ruby
[08:26:29] blandflakes: has joined #ruby
[08:27:50] clorisu: has joined #ruby
[08:28:05] SCHAAP137: has joined #ruby
[08:28:54] p1k: has joined #ruby
[08:29:15] p1k: does BigDecimal store the precision from .round() somewhere or is that open-ended if you did not set a ::limit ?
[08:30:35] p1k: that is - is there any way to tell the difference between 4.5000 and 4.5 ?
[08:32:44] startupality: has joined #ruby
[08:33:00] clorisu: has joined #ruby
[08:34:17] shinnya: has joined #ruby
[08:38:12] que: has joined #ruby
[08:39:14] que: h2s = YAML.load_file('h2s.yml') puts h2s can i load it in different way ? i got here asd => jk59 dd => jk59 i would like to have jk59 => dd, asd is there a way to change it like that ?
[08:39:36] Suntzu: has joined #ruby
[08:39:58] Ox0dea: &ri Hash#invert que
[08:39:59] `derpy: que: http://ruby-doc.org/core-2.3.0/Hash.html#method-i-invert
[08:41:05] Ox0dea: p1k: Not once they're BigDecimals. Are you sure you need to differentiate between them?
[08:41:50] que: `derpy: yeah i tried that, but i have only one value in jk59 for example
[08:41:52] p1k: 0x0dea: I can probably work around it but yeah it would be preferable
[08:42:21] adaedra: `derpy is just a bot, que
[08:43:11] Ox0dea: You're not evil, just inattentive. :p
[08:43:41] adaedra: It's alright, the given attention warms its little robotic heart.
[08:44:18] Ropeney: has joined #ruby
[08:44:20] Ox0dea: p1k: Well, BigDecimal('4.5000') strips the superfluous trailing digits, and I don't see a way to get them back without getting your hands really dirty.
[08:44:38] Ox0dea: It's conceivably possible to get hold of the String from which a BigDecimal was constructed, but... why?
[08:44:58] p1k: 0x0dea: it's significantly different though
[08:45:17] p1k: if i have 4.5000 my calculation has a different precision then 4.50
[08:46:21] p1k: I suppose it's possible to set @precision on the initializer (would have to be updared on .round calls though)
[08:47:00] p1k: I'm not sure why they decided to strip 0's by default tbh, e.g. python's decimal.Decimal does not
[08:47:04] blackmesa: has joined #ruby
[08:47:24] que: puts hash.rassoc("jk59") should print out values right ?
[08:48:23] DoubleMalt: has joined #ruby
[08:49:36] que: ok figure it out
[08:49:39] que: sorry for mess :P
[08:49:41] que: thx guys
[08:50:18] tvw: has joined #ruby
[08:55:10] ferr: has joined #ruby
[08:55:27] LoneHermit: has joined #ruby
[08:55:43] nerium: has joined #ruby
[08:56:04] Xeago: has joined #ruby
[08:59:37] mhoungbo: has joined #ruby
[09:01:32] bluOxigen: has joined #ruby
[09:02:11] chagel: has joined #ruby
[09:02:50] htmldrum: has joined #ruby
[09:02:51] htmldrum_: has joined #ruby
[09:05:09] snowy: has joined #ruby
[09:06:31] blt: has joined #ruby
[09:07:06] marr: has joined #ruby
[09:07:39] Chagel_: has joined #ruby
[09:08:22] clorisu: has joined #ruby
[09:08:29] RegulationD: has joined #ruby
[09:11:36] Musashi007: has joined #ruby
[09:14:48] drptbl: has joined #ruby
[09:15:45] TheCubeLord: where is the rails channel?
[09:16:47] wolfedale: has joined #ruby
[09:17:39] tjbiddle_: has joined #ruby
[09:17:39] SebastianThorn: TheCubeLord: #rubyonrails
[09:18:37] nettoweb: has joined #ruby
[09:18:59] siaW: has joined #ruby
[09:19:47] kam270: has joined #ruby
[09:21:50] n008f4g_: has joined #ruby
[09:22:21] mlehrer: has joined #ruby
[09:23:36] the_drow: How do I release the GIL using the MRI Ruby C API?
[09:25:48] Spami: has joined #ruby
[09:26:40] nocontrol: has joined #ruby
[09:27:53] blandflakes: has joined #ruby
[09:27:53] the_drow: Do I have to call the function with rb_thread_call_without_gvl?
[09:28:16] the_drow: In python it's simply a macro Py_AllowThreads...
[09:30:54] bluOxigen_: has joined #ruby
[09:31:17] the_drow: Also, what happens if I call it while in rubinius?
[09:31:57] senayar: has joined #ruby
[09:31:58] ruby[bot]: ruby[bot] kicked senayar: banned before
[09:31:58] ruby[bot]: +b senayar!*@*$#ruby-fix-your-connection
[09:32:01] mrgrieves: has joined #ruby
[09:32:15] ruby[bot]: -b senayar!*@*$#ruby-fix-your-connection
[09:32:39] roshanavand: has joined #ruby
[09:32:39] ruby[bot]: -b *!*@gateway/web/freenode/ip.24.6.45.239$#ruby-banned
[09:32:49] jamil: has joined #ruby
[09:34:22] pascal: has joined #ruby
[09:37:12] blackmesa: has joined #ruby
[09:37:59] ixti: has joined #ruby
[09:43:16] BrunoSaboia: has joined #ruby
[09:46:04] mikhael_k33hl: has joined #ruby
[09:47:52] chagel: has joined #ruby
[09:47:54] uglybandersnatch: has joined #ruby
[09:51:49] nrsky: has joined #ruby
[09:52:10] araujo: has joined #ruby
[09:54:05] chagel: has joined #ruby
[09:54:30] Xeago: has joined #ruby
[09:56:07] gigetoo: has joined #ruby
[09:57:31] binaryplease: has joined #ruby
[09:57:38] idletask: has joined #ruby
[09:59:55] yorickpeterse: the_drow: IIRC rb_thread_call_without_gvl can not be used to run Ruby code
[10:00:07] the_drow: That's fine
[10:00:12] yorickpeterse: as in, you can't have 2 threads run at once
[10:00:12] the_drow: I'm not trying to run ruby code
[10:00:23] yorickpeterse: Regarding C/pthreads, not sure
[10:00:36] the_drow: Oh? So it doesn't release the global lock for other threads to run?
[10:00:36] yorickpeterse: In case of Rubinius I believe we don't even have rb_thread_call_without_gvl
[10:00:39] the_drow: That's strange
[10:00:52] the_drow: So I need an #ifdef?
[10:00:53] Drakx: has joined #ruby
[10:01:07] yorickpeterse: Ah we do actually
[10:01:45] the_drow: https://github.com/ohler55/oj/blob/master/ext/oj/parse.c#L55 this code doesn't touch ruby at all
[10:01:52] roshanavand: has joined #ruby
[10:02:01] the_drow: There are other functions that do not touch ruby code as well except for error handling
[10:02:10] CloCkWeRX: has joined #ruby
[10:02:31] yorickpeterse: what are you trying to do?
[10:02:32] the_drow: So I'm looking for something like Py_AllowThreads to allow ruby threads to run in parallel to the C code
[10:02:42] hk238: has joined #ruby
[10:02:49] the_drow: I'm just trying to release the GIL to allow parallelism when parsing JSON
[10:03:01] the_drow: Don't worry about the merits. It's fun.
[10:03:15] the_drow: and I'm learning the Ruby C API this way
[10:03:25] yorickpeterse: I'm pretty sure Oj will eventually end up using Ruby in that code somewhere
[10:03:32] dgncn: has joined #ruby
[10:03:37] htmldrum: has joined #ruby
[10:03:41] htmldrum_: has joined #ruby
[10:06:13] the_drow: Only in error handling
[10:06:29] the_drow: e.g https://github.com/ohler55/oj/blob/master/ext/oj/parse.c#L71
[10:06:39] the_drow: In that case we can acquire the GVL again
[10:07:12] the_drow: It's not a big deal. Errors happen less often that normal behaviour (at least we hope so)
[10:08:50] baweaver: has joined #ruby
[10:09:17] RegulationD: has joined #ruby
[10:09:48] the_drow: yorickpeterse, There are a lot of instances like those I described.
[10:10:11] the_drow: I'm just trying to find out how to use the C API correctly.
[10:10:56] mistermocha: has joined #ruby
[10:11:53] the_drow: so any pointers?
[10:15:32] evidex: has joined #ruby
[10:15:35] chagel: has joined #ruby
[10:16:25] workmad3: has joined #ruby
[10:17:41] last_staff: has joined #ruby
[10:20:25] fexilal: has joined #ruby
[10:20:27] djellemah_: has joined #ruby
[10:23:15] chagel: has joined #ruby
[10:24:04] dikaio: has joined #ruby
[10:27:08] tjvc: has joined #ruby
[10:28:26] sandelius: has joined #ruby
[10:28:29] configged-: has joined #ruby
[10:30:58] mark3: has left #ruby: ("PART #RubyOnRails :PART #jquery :PART #reactjs :PART ##javascript :PART #elixir-lang :PART #debian :PART #zsh :PONG :weber.freenode.net")
[10:32:15] yatish27: has joined #ruby
[10:34:51] tjvc: has joined #ruby
[10:39:02] chagel: has joined #ruby
[10:39:58] FooMunki: has joined #ruby
[10:42:15] ready: has joined #ruby
[10:46:57] Suntzu: has joined #ruby
[10:48:03] blackgoat: has joined #ruby
[10:48:18] bronson: has joined #ruby
[10:52:25] Musashi007: has joined #ruby
[10:55:18] tesuji: has joined #ruby
[10:56:33] djellemah__: has joined #ruby
[11:00:09] djellemah: has joined #ruby
[11:02:32] dgncn: has joined #ruby
[11:05:06] awasum_: has joined #ruby
[11:05:17] p1k: has joined #ruby
[11:05:54] trinaldi: has joined #ruby
[11:08:50] awasum: has joined #ruby
[11:09:43] sepp2k: has joined #ruby
[11:11:30] PedramT: has joined #ruby
[11:11:52] mistermocha: has joined #ruby
[11:12:08] Vingador: has joined #ruby
[11:12:36] infernix: has joined #ruby
[11:18:54] quakephil: has joined #ruby
[11:20:14] millerti: has joined #ruby
[11:20:50] Nahra: has joined #ruby
[11:20:52] bweston92: has joined #ruby
[11:24:45] FooMunki: has joined #ruby
[11:26:18] dionysus69: has joined #ruby
[11:28:25] Vlat-: has joined #ruby
[11:33:36] jamil: has joined #ruby
[11:33:42] cpup: has joined #ruby
[11:36:13] merida: has joined #ruby
[11:37:32] ldnunes: has joined #ruby
[11:40:28] Guest27457: has joined #ruby
[11:40:57] pawnbox: has joined #ruby
[11:41:56] pwnd_nsfw`: has joined #ruby
[11:42:03] leon_e: has joined #ruby
[11:42:33] but3k4: has joined #ruby
[11:45:27] skade: has joined #ruby
[11:47:35] millerti: has joined #ruby
[11:47:43] configged-: has joined #ruby
[11:48:53] TomyLobo: has joined #ruby
[11:49:24] rbennacer: has joined #ruby
[11:51:37] maner: has joined #ruby
[11:52:30] sdothum: has joined #ruby
[11:53:14] skade: has joined #ruby
[11:53:45] johnmilton: has joined #ruby
[11:55:45] pawnbox: has joined #ruby
[11:57:45] Marsupermammal: has joined #ruby
[11:58:09] duckpuppy: has joined #ruby
[11:58:27] vondruch: has joined #ruby
[11:59:14] PedramT: has joined #ruby
[11:59:56] noServic1: has joined #ruby
[12:00:18] jdawgaz: has joined #ruby
[12:01:02] skweek: has joined #ruby
[12:04:10] roshanavand: has joined #ruby
[12:05:35] htmldrum: has joined #ruby
[12:05:36] htmldrum_: has joined #ruby
[12:07:15] tubuliferous: has joined #ruby
[12:07:19] synthroid: has joined #ruby
[12:10:15] Suntzu: has joined #ruby
[12:10:17] djellemah_: has joined #ruby
[12:10:20] binaryplease1: has joined #ruby
[12:11:21] baweaver: has joined #ruby
[12:11:49] n008f4g_: has joined #ruby
[12:12:24] j2k: has joined #ruby
[12:13:46] snowy: has joined #ruby
[12:16:01] djellemah: I'm looking for information on concurrency and the initialize method.
[12:16:05] djellemah: I'm assuming that normally in ruby-land only one thread can be executing an initialize method for a given instance (because no other thread could have access to that instance yet).
[12:16:08] djellemah: That leaves garbage collection and ObjectSpace.
[12:16:11] djellemah: I think an uninitialized object won't be ready for garbage collection, so the garbage collector is smart enought to not call finalizers on it.
[12:16:13] djellemah: What I don't know is this: at what point during instance construction does an instance become accessible via ObjectSpace?
[12:16:16] djellemah: Code: https://gist.github.com/djellemah/3f068006775d3dd9a735
[12:22:01] gagrio: has joined #ruby
[12:22:05] roshanavand: has joined #ruby
[12:24:02] r1nuz: has joined #ruby
[12:24:41] r1nuz: Is this: 'header_size = {32 => 52, 64 => 64}[@wordsize]' less efficient than a simple ternary assignment?
[12:24:52] manveru: r1nuz: of course
[12:25:25] r1nuz: i had a feeling that might be the case, but still not exactly sure why?
[12:25:58] manveru: you make a new hash, Hash.new will test keys for equality, then you have to hash the argument to Hash#[] and actually do the lookup
[12:25:59] blackmesa: has joined #ruby
[12:26:23] r1nuz: manveru right ok, thanks
[12:26:35] manveru: so it'll be a call to Hash.new, memory allocation for the Hash, 3 calls to Object#hash, and one to Hash#[], at least :)
[12:26:46] r1nuz: heh right, probably not the best way
[12:26:49] r1nuz: but it looks so fancy :(
[12:27:12] workmad3: r1nuz: if you had a lot of sizes, and you didn't create the hash on-the-fly, it could make sense
[12:28:05] r1nuz: header_size = (if @wordsize == 32 then 52 else 64 end)
[12:28:06] workmad3: r1nuz: e.g. moving that hash out into `HEADER_SIZES = { ... }` and then in the method doing `header_size = HEADER_SIZES[@wordsize]` would drop you down to a single hash and a call to [] in the method, so closer to being comparable
[12:28:07] r1nuz: so something like that is better?
[12:28:15] tknz: has joined #ruby
[12:28:23] r1nuz: workmad3 i see, thanks
[12:28:30] manveru: don't forget that calling header_size[12] would return nil
[12:28:49] r1nuz: right, in this particular case i can be sure wordsize is 32 or 64
[12:29:00] manveru: header_size = @wordsize == 32 ? 52 : 64
[12:29:05] manveru: then that's still best :)
[12:29:14] manveru: one comparison, no overhead
[12:29:16] r1nuz: oh thanks, that already looks better than the wordy version
[12:29:39] manveru: you said ternary before, so i thought you'd have that already
[12:29:58] r1nuz: i thought ternary in ruby was (if cond then thing else other_thing end)
[12:30:08] manveru: no, that's not ternary in any language
[12:30:09] Azure|dc: has joined #ruby
[12:30:30] r1nuz: guess i misread
[12:30:34] lq: has joined #ruby
[12:30:42] lq: http://linkcash.co/2Zn
[12:31:12] manveru: https://en.wikipedia.org/wiki/%3F:
[12:31:42] manveru: i guess you could call if/else ternary, but it's actually the name of the ternary operator which is quite specific to ?:
[12:32:18] r1nuz: i'm familiar with the operator in other language, for some reason i seemed to think ruby didn't have it :)
[12:32:27] r1nuz: very new to ruby
[12:33:01] r1nuz: guess it would be weird if ruby didn't with all the syntactic sugar
[12:33:04] manveru: yeah, it inherited it from perl
[12:33:27] startupality: has joined #ruby
[12:33:28] manveru: which in turn got it from awk
[12:33:41] r1nuz: deep rooted *nix hackery
[12:34:04] manveru: i think awk took it from C
[12:34:51] manveru: gotta love programming language ancestry :)
[12:34:56] r1nuz: hehe yeah
[12:34:59] r1nuz: ruby seems great so far
[12:35:06] r1nuz: seems to have all the things i always wish other languages had ;p
[12:35:57] r1nuz: fun to code in
[12:36:43] manveru: aye, i like a lot of languages, but ruby has a special place in my heart :)
[12:37:15] djellemah: >> if 2 > 3 then 'maths doesn't work' else 'whew' end
[12:37:17] ruby[bot]: djellemah: # => /tmp/execpad-024fec2c2951/source-024fec2c2951:2: syntax error, unexpected tIDENTIFIER, expecting key ...check link for more (https://eval.in/539812)
[12:37:24] djellemah: >> if 2 > 3 then "maths doesn't work" else 'whew' end
[12:37:26] ruby[bot]: djellemah: # => "whew" (https://eval.in/539813)
[12:37:36] manveru: it was the one that rescued me from PHP over 10 years ago :)
[12:37:48] ade: has joined #ruby
[12:37:55] ruby[bot]: manveru: # => false (https://eval.in/539814)
[12:38:20] xpt: I think python didn't had any trenary operator (I'n not going to *bash* python here)
[12:38:32] manveru: neither does coffeescript
[12:38:50] manveru: would be quite hard to implement for those
[12:39:09] chris2: c took it from algol btw
[12:39:36] chris2: xpt: it has inline if
[12:39:39] manveru: and algol from some crazy mathematic notation?
[12:40:11] chris2: algol notation is ( cond | true | false ) btw
[12:40:13] chris2: quite nice imo :D
[12:40:40] chris2: i didnt see it in math really
[12:40:50] r1nuz: looks like bitwise flag setting
[12:41:05] chris2: to a c-programmer perhaps :D
[12:41:15] FooMunki: has joined #ruby
[12:42:05] djellemah: >> cond = false; ( cond | true | false )
[12:42:06] ruby[bot]: djellemah: # => true (https://eval.in/539817)
[12:42:19] roshanavand: has joined #ruby
[12:43:10] jottr: has joined #ruby
[12:43:16] _stu_: has joined #ruby
[12:43:37] Rasi: has joined #ruby
[12:44:18] trampi: has joined #ruby
[12:48:48] halfamind: has joined #ruby
[12:49:44] fmcgeough: has joined #ruby
[12:49:49] SG045734: has joined #ruby
[12:51:45] jdawgaz: has joined #ruby
[12:52:42] halfamind: has joined #ruby
[12:52:53] callen92: has joined #ruby
[12:54:07] JakFrist: has joined #ruby
[12:57:06] shevy: the | notation is actually better than using a ' ' and '?'
[12:57:59] moeabdol2: has joined #ruby
[12:58:45] xpt: and ":" ?
[13:01:46] bricker: has joined #ruby
[13:01:55] unshadow: has joined #ruby
[13:02:34] merida: has joined #ruby
[13:02:41] linoj: has joined #ruby
[13:07:43] blandflakes: has joined #ruby
[13:07:47] mja: has joined #ruby
[13:09:18] rbennacer: has joined #ruby
[13:10:14] rbennacer: has joined #ruby
[13:10:51] rbennacer: has joined #ruby
[13:11:33] RegulationD: has joined #ruby
[13:13:14] last_staff: has joined #ruby
[13:13:34] mistermocha: has joined #ruby
[13:16:14] unshadow: has joined #ruby
[13:18:06] unshadow: has joined #ruby
[13:19:25] shredding: has joined #ruby
[13:19:32] ChiefAlexander: has joined #ruby
[13:20:33] vbatts|work: has left #ruby: ("found the other side of the rainbow")
[13:21:07] unshadow: has joined #ruby
[13:21:11] skweek: has joined #ruby
[13:21:29] gagrio: has joined #ruby
[13:22:01] patientj: has joined #ruby
[13:22:40] djellemah: >> 2 > 3 && "maths doesn't work" || 'whew'
[13:22:41] ruby[bot]: djellemah: # => "whew" (https://eval.in/539836)
[13:23:05] unshadow: has joined #ruby
[13:23:30] patientj: has left #ruby: ()
[13:24:15] patientj: has joined #ruby
[13:27:01] djellemah: shevy: ( cond | true | false ) was just messing around with TrueClass#| operator http://ruby-doc.org/core-2.3.0/TrueClass.html . I wouldn't want to lead anyone astray :-O
[13:27:38] DynamicMetaFlow: has joined #ruby
[13:32:00] Gasher: has joined #ruby
[13:34:23] jamil: has joined #ruby
[13:35:25] unshadow: has joined #ruby
[13:37:48] washt: has joined #ruby
[13:39:34] stannard: has joined #ruby
[13:40:29] stannard: has joined #ruby
[13:40:55] mostlybadfly: has joined #ruby
[13:44:47] malconis: has joined #ruby
[13:45:27] binaryplease1: has joined #ruby
[13:49:04] JakFrist: has joined #ruby
[13:50:45] bronson: has joined #ruby
[13:53:26] Asmes: has joined #ruby
[13:53:56] Asmes: ACTION Helloe I,Turk ?
[13:54:33] aclearman037: has joined #ruby
[13:55:08] kfpratt: has joined #ruby
[13:56:46] agit0: has joined #ruby
[13:57:50] JohnBat26: has joined #ruby
[13:58:32] tubuliferous: has joined #ruby
[13:58:32] kam270: has joined #ruby
[13:59:59] chouhoulis: has joined #ruby
[14:00:04] kam270: has joined #ruby
[14:00:15] intrigueD: has joined #ruby
[14:00:28] jdawgaz: has joined #ruby
[14:00:34] mwlang: has joined #ruby
[14:00:40] krz: has joined #ruby
[14:01:28] theRoUS: has joined #ruby
[14:02:24] shevy: guess that was a smartphone user
[14:04:28] siaW: has joined #ruby
[14:04:58] idle_task: has joined #ruby
[14:05:46] aclearman037: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[14:06:41] mallu: has joined #ruby
[14:06:48] floatingpoint: has joined #ruby
[14:09:07] solocshaw: has joined #ruby
[14:11:20] myntcake: has joined #ruby
[14:12:02] jottr: has joined #ruby
[14:12:10] baweaver: has joined #ruby
[14:12:48] jamil: has joined #ruby
[14:15:38] BrunoSaboia: has joined #ruby
[14:16:09] benzrf: >> ( true | true | false )
[14:16:10] ruby[bot]: benzrf: # => true (https://eval.in/539882)
[14:16:16] ChiefAlexander: has joined #ruby
[14:16:29] Elysia: shevy: nope, mIRC user
[14:17:23] Infra-Red: has joined #ruby
[14:17:44] benzrf: people still use mirc??
[14:17:59] surrounder: yes, why not
[14:17:59] Elysia: I do, for one!
[14:18:16] Elysia: but in particular some of the, well, "stranger" users of IRC use mIRC with lots of addons
[14:18:17] surrounder: I so don't understand "do people still use $X" questions
[14:18:28] Elysia: specifically because those scripts are translated in their language.
[14:20:12] mechanicles: has joined #ruby
[14:20:20] adaedra: do people still use DOS
[14:20:28] SebastianThorn: im using irssi, dont think ill change, not sure what would make me change, same with emacs
[14:20:32] bry4n: has joined #ruby
[14:20:37] aryaching: has joined #ruby
[14:20:41] surial: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[14:22:14] whiteline: has joined #ruby
[14:23:18] shevy: good old mIRC
[14:23:58] shevy: I miss the old colourful script banners :)
[14:24:20] SebastianThorn: well, to be honest, didnt think i would switch from screen to tmux either, but that i did..
[14:24:51] Ropeney: has joined #ruby
[14:25:23] rdark: has joined #ruby
[14:25:52] adaedra: The green bar is fabulous.
[14:26:24] cdg: has joined #ruby
[14:26:58] LoneHermit: has joined #ruby
[14:28:39] blandflakes: has joined #ruby
[14:31:46] sandelius: Good ruby code make me giggle xD
[14:32:15] RegulationD: has joined #ruby
[14:32:33] tubuliferous: has joined #ruby
[14:33:05] whippythellama: has joined #ruby
[14:33:41] bricker: has joined #ruby
[14:34:28] mfaeh: has joined #ruby
[14:34:31] fullofcaffeine: has joined #ruby
[14:34:44] nofacade: has joined #ruby
[14:37:50] shevy: how about php code
[14:38:14] chipotle: has joined #ruby
[14:38:19] rkazak: has joined #ruby
[14:39:10] freerobby: has joined #ruby
[14:39:35] sandelius: same as js code
[14:39:53] sandelius: "why" if you have a choice
[14:40:30] the_drow: where can I find the Ruby C API documentation
[14:41:51] sandelius: https://silverhammermba.github.io/emberb/c/
[14:42:42] johnmilton: has joined #ruby
[14:42:54] the_drow: sandelius, I was afraid you're gonna say that
[14:43:18] the_drow: It's not detailed enough. At least not when it comes to describe rb_thread_call_without_gvl
[14:43:28] the_drow: How do I call a C function with multiple arguments?
[14:44:46] zast: has joined #ruby
[14:44:58] blandflakes: has joined #ruby
[14:45:00] chouhoulis: has joined #ruby
[14:45:48] sandelius: not sure about that
[14:45:59] skryking: has joined #ruby
[14:46:28] diegoviola: has joined #ruby
[14:47:04] sandelius: you have a great guide in writing ruby extensions in C here http://clalance.blogspot.se/2011/01/writing-ruby-extensions-in-c-part-1.html perhaps he mention it somewhere. It's a 12 part series
[14:49:20] the_drow: I already saw that
[14:51:45] skryking: has joined #ruby
[14:52:58] the_drow: sandelius, It doesn't mention anything about threads
[14:53:20] skryking: has joined #ruby
[14:54:00] blandflakes: has joined #ruby
[14:56:23] johnny56_: has joined #ruby
[14:56:33] uris: has joined #ruby
[14:56:45] bricker: has joined #ruby
[14:57:04] fexilal: has joined #ruby
[14:57:15] quakephil: has joined #ruby
[14:58:06] the_drow: I think I got it. It passes the argument as a void pointer
[14:59:30] yatish27: has joined #ruby
[15:02:29] therealGent: has joined #ruby
[15:03:53] rippa: has joined #ruby
[15:04:01] jottr: has joined #ruby
[15:04:16] aryaching: has joined #ruby
[15:04:21] lessless: has joined #ruby
[15:05:43] guest56: has joined #ruby
[15:06:22] johnmilton: has joined #ruby
[15:08:07] yeticry_: has joined #ruby
[15:10:12] cgfbee: has joined #ruby
[15:10:12] cfloare: has joined #ruby
[15:11:00] Tref: has joined #ruby
[15:11:26] Tref: was wondering if someone could give me a quick code review
[15:11:27] Tref: https://github.com/Tref/delimeter_parser
[15:11:34] roger_rabbit: has joined #ruby
[15:11:53] kies: has joined #ruby
[15:12:24] guest56: tref what is that for ?
[15:12:48] Tref: Guest__: In terms of what? What does the application do?
[15:13:26] Gasher: has joined #ruby
[15:13:35] x77686d: has joined #ruby
[15:13:45] decoponio: has joined #ruby
[15:14:24] havenwood: tref: Use lowercase `date` since on a case sensitive OS this will fail: https://github.com/Tref/delimeter_parser/blob/master/lib/university/parser.rb#L1
[15:14:39] havenwood: tref: Consider `flat_map` here: https://github.com/Tref/delimeter_parser/blob/master/lib/university/parser.rb#L18
[15:14:46] yorickpeterse: the_drow: you mean a function which takes a va_list?
[15:15:08] havenwood: tref: Can this just be `private`?: https://github.com/Tref/delimeter_parser/blob/master/lib/university/parser.rb#L28
[15:15:08] yorickpeterse: You just pass them as separate arguments
[15:15:13] the_drow: I don't really want to wrap my args as an array
[15:15:25] the_drow: I don't see that the API is defined that way
[15:15:47] yorickpeterse: int whatever(...) { ... }; whatever(1), whatever(1, 2), etc
[15:15:47] ChiefAlexander: has joined #ruby
[15:16:07] yorickpeterse: typically Ruby functions take an extra argument that denotes the amount of arguments passed
[15:16:10] yorickpeterse: so you'd get something like
[15:16:19] yorickpeterse: whatever(1, foo); or whatever(2, foo, bar);
[15:16:56] woodruffw: has joined #ruby
[15:16:59] uglybandersnatch: has joined #ruby
[15:17:03] Tref: havenwood: thanks those are good suggestions
[15:17:08] Tref: havenwood: never used flat_map
[15:17:26] woodruffw: has joined #ruby
[15:17:42] the_drow: I'm talking about rb_thread_call_without_gvl
[15:18:23] Tref: I also had a question regarding some of these private methods. For some reason some of them are throwing errors as private methods when I run tests against them. Why is that when the same methods are fine from within the CLI app
[15:19:31] Mon_Ouie: has joined #ruby
[15:20:05] noService: has joined #ruby
[15:20:16] tomatoes: has joined #ruby
[15:20:27] neilhwatson: has joined #ruby
[15:20:55] guest56: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[15:21:14] kfpratt: has joined #ruby
[15:21:32] polishdub: has joined #ruby
[15:21:38] the_drow: yorickpeterse, I wonder if there's a way to fix the C API
[15:22:50] the_drow: You can create function pointers that allow variable arguments
[15:22:56] the_drow: I wonder why that isn't the API
[15:23:03] the_drow: I'll open an issue about it
[15:23:56] yorickpeterse: IIRC you cast them to void* and then back
[15:24:06] JohnBat26: has joined #ruby
[15:24:10] jpfuentes2: has joined #ruby
[15:24:29] yorickpeterse: a bunch of C functions take a "data" argument that's just a void* that's passed to whatever C function you pass as well
[15:25:14] the_drow: But it only takes one argument
[15:25:53] the_drow: So I can't do rb_thread_call_without_gvl(my_func, &p1, &p2, RUBY_UBF_IO, 0)
[15:26:01] the_drow: I need to create a struct just for the parameters
[15:26:48] crowell: has joined #ruby
[15:27:48] darkxploit: has joined #ruby
[15:28:26] callen92: has joined #ruby
[15:30:46] mikecmpbll: has joined #ruby
[15:32:39] yorickpeterse: welcome to the Ruby C API
[15:32:46] yorickpeterse: With an emphasis on "API"
[15:33:20] JohnBat26: has joined #ruby
[15:33:46] slawrence00: has joined #ruby
[15:35:21] the_drow: I don't get why I have to call a function
[15:35:25] stunder: has joined #ruby
[15:35:30] the_drow: I mean a function that calls another function
[15:35:39] the_drow: I want to release the GVL for a section of code
[15:36:45] yekta: has joined #ruby
[15:37:04] dikaio: has joined #ruby
[15:37:07] yekta: Hello, how might I limit the attributes a sub class can access from the super class?
[15:37:45] `tim`: has joined #ruby
[15:38:21] yekta: putting an attr_accessor in a private or protected block of the subclass doesn’t restrict access
[15:38:29] nando293921: has joined #ruby
[15:39:21] Mon_Ouie: You can't. Each object has access to all its instance variables, instance variables aren't part of a class.
[15:40:12] Tref: yekta: that kind of goes against the whole idea of subclassing
[15:40:34] workmad3: tref: it's the way `private` works in java and C++ :)
[15:40:41] yekta: hah :) interesting
[15:41:14] yekta: I have a Project model (rails) and I wanted to use some object structure to control what can be exported, without making a method for each exportable model.
[15:41:16] davedev24: has joined #ruby
[15:41:43] workmad3: but yeah... private doesn't mean the same in ruby... there isn't a way to restrict the methods a subclass can call on a superclass in ruby (unless you go with really dirty tricks, like grabbing a method object of the method you want to hide, then undeffing it from the object)
[15:41:58] the_drow: yorickpeterse, Could I just use BLOCKING_REGION? http://rxr.whitequark.org/mri/source/thread.c#151
[15:42:45] Tref: anyone else want to give a quick CR? (thanks havenwood ) https://github.com/Tref/delimeter_parser
[15:43:41] nocontrol: has joined #ruby
[15:44:23] dionysus69: has joined #ruby
[15:45:02] the_drow: I don't really understand the difference between BLOCKING_REGION, GVL_UNLOCK_BEGIN/GVL_UNLOCK_END (Which is exactly like Py_BeginAllowThreads/PyEndAllowThreads)
[15:45:47] bronson: has joined #ruby
[15:46:52] skryking: has joined #ruby
[15:48:29] noService: has joined #ruby
[15:48:38] noService: has joined #ruby
[15:49:01] JohnBat26: has joined #ruby
[15:49:16] yorickpeterse: the_drow: unsure
[15:49:55] ss_much: has joined #ruby
[15:51:26] [Butch]: has joined #ruby
[15:52:56] the_drow: I'll ask on StackOverflow...
[15:52:59] the_drow: Thanks anyway
[15:53:22] PedramT: has joined #ruby
[15:54:25] majjoha: has joined #ruby
[15:55:09] Guest38: has joined #ruby
[15:57:01] yuung: has joined #ruby
[16:01:18] Noxilex: has joined #ruby
[16:03:08] amclain: has joined #ruby
[16:03:58] nettoweb: has joined #ruby
[16:04:55] jottr: has joined #ruby
[16:05:35] tubuliferous: has joined #ruby
[16:06:40] cjbischof_: has joined #ruby
[16:07:00] Salve: has joined #ruby
[16:08:26] droidburgundy: has joined #ruby
[16:08:29] Salve: Is there a way to get a Hash from a decorator object?
[16:10:16] rattatmatt: has joined #ruby
[16:10:36] apeiros: Salve: "a Decorator object" is not as descriptive as you seem to think
[16:10:46] senayar: has joined #ruby
[16:10:47] ruby[bot]: +b senayar!*@*$#ruby-fix-your-connection
[16:10:47] ruby[bot]: ruby[bot] kicked senayar: banned before
[16:10:57] p1k: has anyone used nanoc/middleman/stasis that has a strong preference either way amongst these?
[16:11:10] Maletor: has joined #ruby
[16:11:56] apeiros: Salve: so an answer on the same level of descriptiveness: yes, if said decorator object provides a method for that
[16:11:59] ccooke: has joined #ruby
[16:12:44] Salve: apeiros, ruby has SimpleDelegator....maybe it supports a hash
[16:13:03] Maletor: has joined #ruby
[16:13:19] apeiros: Salve: what information of a SimpleDelegator would you want as a hash?
[16:13:51] Guest_98765: has joined #ruby
[16:13:59] Guest_98765: Allah is doing
[16:14:15] Guest_98765: sun is not doing Allah is doing
[16:14:23] apeiros: Guest_98765: this channel is not the place for your religion. stop it please or leave.
[16:14:27] Guest_98765: moon is not doing Allah is doing
[16:14:36] apeiros: !kick Guest_98765 spam
[16:14:37] ruby[bot]: +bbb lq!*@*$#ruby-banned Guest_98765!*@*$#ruby-banned *!*@gateway/web/cgi-irc/kiwiirc.com/ip.119.157.211.188$#ruby-banned
[16:14:38] baweaver: has joined #ruby
[16:14:38] ruby[bot]: ruby[bot] kicked Guest_98765:
[16:14:41] tjohnson: has joined #ruby
[16:14:51] ruby[bot]: -bbb senayar!*@*$#ruby-fix-your-connection oo7cat!*@*$#ruby-banned *!*@unaffiliated/oo7cat$#ruby-banned
[16:15:38] yorickpeterse: shit, that bot really convinced me
[16:15:38] mistermocha: has joined #ruby
[16:16:03] russt: has joined #ruby
[16:16:24] ruby[bot]: -bbb lq!*@*$#ruby-banned Guest_98765!*@*$#ruby-banned *!*@gateway/web/cgi-irc/kiwiirc.com/ip.119.157.211.188$#ruby-banned
[16:16:28] apeiros: yorickpeterse: hm?
[16:16:40] apeiros: ah, you mean the allah-bot
[16:16:50] Maletor: has joined #ruby
[16:17:42] guest56: has joined #ruby
[16:19:21] JohnBat26: has joined #ruby
[16:20:20] merida: has joined #ruby
[16:20:21] merida_: has joined #ruby
[16:20:54] yorickpeterse: allah is doing, sun is not doing
[16:21:41] mechanicles: has joined #ruby
[16:21:41] Macaveli: has joined #ruby
[16:21:46] mleung: has joined #ruby
[16:23:27] morfin: allah-bot explode himself when somebody not agree with him?
[16:23:57] skryking: has joined #ruby
[16:24:00] _blizzy_: has joined #ruby
[16:24:43] apeiros: morfin: please don't. that kind of discrimination isn't welcome here either.
[16:24:56] JohnBat26: has joined #ruby
[16:24:59] Macaveli: has joined #ruby
[16:25:37] guideX: has left #ruby: ()
[16:28:42] fexilal: https://github.com/JuanitoFatas/fast-ruby <-- is this amazing?
[16:29:26] duderono_: has joined #ruby
[16:32:01] blackmesa: has joined #ruby
[16:33:02] growGROW: has joined #ruby
[16:34:26] jhn: has joined #ruby
[16:35:31] sneakerhax: has joined #ruby
[16:36:41] yorickpeterse: the examples are cute, but not what you'd worry about in 95% of code out there
[16:37:01] yorickpeterse: it's the kind of code you'd worry about when writing low level libraries such as parsers, compilers, etc
[16:37:30] Papierkorb: or doing computation in ruby...
[16:37:42] yorickpeterse: or stuff that runs in a tight loop
[16:38:08] jpfuentes2: has joined #ruby
[16:38:18] melter: has joined #ruby
[16:38:42] rcvalle: has joined #ruby
[16:38:50] rcvalle: has left #ruby: ()
[16:39:11] rcvalle: has joined #ruby
[16:39:43] codecop: has joined #ruby
[16:40:10] Infra-Red: has joined #ruby
[16:42:05] bezhermoso: has joined #ruby
[16:42:23] PedramT: has joined #ruby
[16:45:05] jottr: has joined #ruby
[16:47:33] the_drow: has joined #ruby
[16:47:57] bronson: has joined #ruby
[16:48:22] Infra-Red: has joined #ruby
[16:48:51] JohnBat26: has joined #ruby
[16:48:56] unreal: has joined #ruby
[16:49:19] unl0ckd: has joined #ruby
[16:49:27] mfaeh: has joined #ruby
[16:56:06] RegulationD: has joined #ruby
[16:56:45] TheNet: has joined #ruby
[16:57:23] mechanicles: has joined #ruby
[16:57:39] aufi: has joined #ruby
[16:57:39] elifoster: has joined #ruby
[16:58:22] Vingador: has joined #ruby
[16:58:42] RegulationD: has joined #ruby
[16:59:01] JohnBat26: has joined #ruby
[16:59:23] tomchapin: has joined #ruby
[17:00:11] gizmore: has joined #ruby
[17:01:21] Eiam_: has joined #ruby
[17:02:46] hogetaro: has joined #ruby
[17:02:46] jamil: has joined #ruby
[17:03:26] Dimik: has joined #ruby
[17:07:04] chrisja: has joined #ruby
[17:07:50] choke: has joined #ruby
[17:08:16] JohnBat26: has joined #ruby
[17:09:43] YP-QMUL-W: has joined #ruby
[17:09:49] babblebre: has joined #ruby
[17:10:33] blt: has joined #ruby
[17:11:44] bronson: has joined #ruby
[17:12:21] noService: has joined #ruby
[17:13:29] adaedra: GitHub down for you?
[17:14:09] apeiros: http://downforeveryoneorjustme.com/github.com
[17:14:29] apeiros: misleading!
[17:14:31] Koshian_: oh, I can't access to github now.
[17:14:34] adaedra: well, downforeveryone would not catch this; I get a page saying it's down
[17:14:39] apeiros: it's up, but rendering "No server is currently available to service your request."
[17:14:41] adaedra: so for machines just doing a curl, it's up.
[17:14:45] adaedra: Ok, it's not just me
[17:15:03] apeiros: don't we have status codes for such things? :<
[17:15:40] JohnBat26: has joined #ruby
[17:16:33] mistermocha: has joined #ruby
[17:16:38] apeiros: status.github.com not responding doesn't help much :-O
[17:17:36] chipotle: has joined #ruby
[17:18:01] ChiefAlexander: has joined #ruby
[17:18:31] bronson: has joined #ruby
[17:19:09] audiodude: has joined #ruby
[17:19:09] ixti: has joined #ruby
[17:19:36] andersh: has joined #ruby
[17:19:56] startupality: has joined #ruby
[17:20:44] beawesomeinstead: has joined #ruby
[17:21:37] neilhwatson: https://twitter.com/githubstatus/status/711965206029725697
[17:21:44] weemsledeux: has joined #ruby
[17:22:27] agit0: has joined #ruby
[17:23:14] mjc_: has joined #ruby
[17:24:02] gigetoo: has joined #ruby
[17:25:57] shevy: the world is coming to an end
[17:26:08] nocontrol: has joined #ruby
[17:26:14] sucks: has joined #ruby
[17:27:33] djbkd: has joined #ruby
[17:28:48] openstruct: has joined #ruby
[17:29:03] baweaver: has joined #ruby
[17:29:44] mwlang: well, now I know why I was having trouble gisting earlier.
[17:30:50] Riviera-: has joined #ruby
[17:30:55] jamil: has joined #ruby
[17:31:09] ssm: has joined #ruby
[17:33:15] djbkd: has joined #ruby
[17:33:20] charlemagne: has joined #ruby
[17:34:38] symm-: has joined #ruby
[17:35:27] cpruitt: has joined #ruby
[17:36:03] zast: has joined #ruby
[17:37:17] startupality: has joined #ruby
[17:39:40] baweaver: has joined #ruby
[17:40:08] n008f4g_: has joined #ruby
[17:40:14] uris: has joined #ruby
[17:41:32] tildes: has joined #ruby
[17:42:03] krasnus: has joined #ruby
[17:43:18] norc_: has joined #ruby
[17:43:18] shevy: I always blame the cat for this
[17:43:20] djbkd: has joined #ruby
[17:43:20] jamil: has joined #ruby
[17:43:21] Devalo: has joined #ruby
[17:44:23] konopka: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[17:44:35] tomatoes: has joined #ruby
[17:48:20] ljames: has joined #ruby
[17:48:43] unshadow: has joined #ruby
[17:48:53] SCHAAP137: has joined #ruby
[17:49:00] startupality: has joined #ruby
[17:51:03] jkahn: has joined #ruby
[17:52:09] renier: has joined #ruby
[17:52:16] kies: has joined #ruby
[17:53:39] startupality: has joined #ruby
[17:54:23] rbennacer: has joined #ruby
[17:57:17] baweaver: has joined #ruby
[18:00:26] jpfuentes2: has joined #ruby
[18:03:14] djbkd: has joined #ruby
[18:03:35] duckpuppy: has joined #ruby
[18:03:49] djbkd: has joined #ruby
[18:08:07] JakFrist: has joined #ruby
[18:09:23] nobitanobi: has joined #ruby
[18:09:38] jenrzzz: has joined #ruby
[18:09:39] intrigueD: has joined #ruby
[18:10:35] last_staff: has joined #ruby
[18:10:51] nobitanobi: How do I show double quotes if I am creating a string with "" because I want to do interpolation via #{}?
[18:11:11] solocshaw: has joined #ruby
[18:11:39] Infra-Red: has joined #ruby
[18:11:50] djbkd: has joined #ruby
[18:12:17] fdisc: has joined #ruby
[18:12:26] djbkd: has joined #ruby
[18:12:35] workmad3: nobitanobi: "\""
[18:12:36] Macaveli: has joined #ruby
[18:12:38] al2o3-cr: nobitanobi: escape them with \
[18:12:44] jkahn: has joined #ruby
[18:13:05] apeiros: or just use %{} strings
[18:13:06] workmad3: nobitanobi: or %Q{}
[18:13:12] apeiros: >> %{I said "hello!"}
[18:13:14] ruby[bot]: apeiros: # => "I said \"hello!\"" (https://eval.in/539986)
[18:13:34] workmad3: apeiros: heh :) I always forget that %{} is the same as %Q{}
[18:13:38] apeiros: >> entity = "my friend"; %{I said "hello #{entity}!"}
[18:13:39] kahn_dumb: has joined #ruby
[18:13:39] ruby[bot]: apeiros: # => "I said \"hello my friend!\"" (https://eval.in/539987)
[18:13:49] apeiros: (just to show it interpolates)
[18:14:09] yqt: has joined #ruby
[18:14:19] apeiros: workmad3: yeah, I'm being a good programmer by being as lazy as permissible :)
[18:15:49] baweaver: has joined #ruby
[18:16:05] darkxploit: has joined #ruby
[18:16:33] shevy: https://github.com/mruby/mruby/commit/2b0baec32a6bfe72a18199cc864c43d07575b14b
[18:17:11] mistermocha: has joined #ruby
[18:17:42] the_drow: has joined #ruby
[18:17:52] moeabdol2: has joined #ruby
[18:18:00] workmad3: shevy: I like mruby :) we started using it recently in this form: https://github.com/matsumoto-r/ngx_mruby
[18:18:50] shevy: ah I saw this a while ago
[18:19:51] pawnbox: has joined #ruby
[18:24:44] Guest38: has joined #ruby
[18:25:53] Alayde: has joined #ruby
[18:25:58] yeticry: has joined #ruby
[18:26:08] yatish27: has joined #ruby
[18:28:14] wilbert: has joined #ruby
[18:29:29] Alayde: has left #ruby: ()
[18:31:00] yeticry: has joined #ruby
[18:33:05] ChiefAlexander: has joined #ruby
[18:33:52] mtkd: has joined #ruby
[18:34:38] TomyLobo: has joined #ruby
[18:35:08] Papierkorb: workmad3: can you tell if it's stable already, or are you having issues?
[18:36:04] workmad3: Papierkorb: it worked fine for our needs, no stability problems at all in our prod setup
[18:36:24] Papierkorb: workmad3: neat.
[18:36:29] scootaloo: has joined #ruby
[18:36:32] edwinvdgraaf: has joined #ruby
[18:36:37] workmad3: Papierkorb: we weren't exactly stressing the limits though :)
[18:37:11] Papierkorb: atm we're using consul-template to rewrite the nginx conf on configuration changes (that nginx is used for forwarding/proxying stuff), but somehow that feels .. off
[18:37:18] yfeldblum: has joined #ruby
[18:38:19] jenrzzz: has joined #ruby
[18:39:50] Eiam: has joined #ruby
[18:40:12] Musashi007: has joined #ruby
[18:41:15] workmad3: Papierkorb: ah, we're running an nginx proxy on heroku (weird, I know, but it was set up way before I started here) so our config is being generated through an erb template to give some basic scripting... we needed to be able to switch between two upstreams for a page redesign though and the built-in stuff in nginx couldn't achieve that properly (due to more heroku annoyances)
[18:41:52] workmad3: so we pulled in ngx_mruby and basically wrote our own small upstream switcher with sticky sessions in about 12 lines of mruby :)
[18:42:25] mrgrieves: has joined #ruby
[18:43:44] ruurd: Yes funny, RAILS as an nginx extension... imagine that...
[18:44:22] ruurd: No that's different
[18:44:36] Papierkorb: but pretty close
[18:45:37] mikecmpbll: has joined #ruby
[18:45:54] dionysus69: has joined #ruby
[18:46:04] workmad3: ruurd: you'd need to do a fair bit more work before you could run rails inside ngx_mruby... it doesn't have normal rubygem support, for starters :)
[18:46:43] spider-mario: has joined #ruby
[18:46:50] ruurd: 'imagine' is the operative word here :-) but still
[18:47:31] JohnBat26: has joined #ruby
[18:47:44] jaruga: has joined #ruby
[18:48:43] jenrzzz: has joined #ruby
[18:49:14] futilegames: has joined #ruby
[18:49:28] jenrzzz: has joined #ruby
[18:49:59] jenrzzz: has joined #ruby
[18:50:40] shortdudey123: anyone else seeing 503's to bundler.rubygems.org?
[18:51:41] exceion: has joined #ruby
[18:53:20] agit0: has joined #ruby
[18:54:01] blandflakes: has joined #ruby
[18:54:47] halfamind1: has joined #ruby
[18:54:51] crime: has joined #ruby
[18:58:23] nofacade_: has joined #ruby
[18:58:48] blandflakes: has joined #ruby
[18:59:31] firstdayonthejob: has joined #ruby
[18:59:31] JohnBat26: has joined #ruby
[19:00:23] robbyoconnor: has joined #ruby
[19:01:57] robbyoconnor: has joined #ruby
[19:02:16] edwinvdgraaf: has joined #ruby
[19:04:28] Guest5: has joined #ruby
[19:04:59] andywojo: has joined #ruby
[19:05:17] djbkd: has joined #ruby
[19:06:24] robbyoconnor: has joined #ruby
[19:06:56] slawrence00: has joined #ruby
[19:06:59] djbkd: has joined #ruby
[19:10:40] tildes: has joined #ruby
[19:10:58] postmodern: has joined #ruby
[19:11:18] mdw: has joined #ruby
[19:12:26] JohnBat26: has joined #ruby
[19:15:00] _stu_: has joined #ruby
[19:16:17] hightower3: has joined #ruby
[19:16:27] yeticry_: has joined #ruby
[19:18:00] djellemah: has joined #ruby
[19:18:24] AlexRussia: has joined #ruby
[19:18:50] uglybandersnatch: has joined #ruby
[19:18:53] stunder: has joined #ruby
[19:19:49] mdw: has joined #ruby
[19:24:28] cpup: has joined #ruby
[19:27:07] Musashi007: has joined #ruby
[19:28:05] idefine: has joined #ruby
[19:28:48] edwinvdgraaf: has joined #ruby
[19:28:56] baweaver: has joined #ruby
[19:31:22] Disavowed: has joined #ruby
[19:31:26] `tim`: has joined #ruby
[19:32:02] baweaver: has joined #ruby
[19:32:32] siaW: has joined #ruby
[19:32:49] shevy: I see dead people.
[19:33:11] nobitanobi: has joined #ruby
[19:33:45] rattatmatt: has joined #ruby
[19:34:19] apeiros: that's quite a lot of people
[19:34:38] stunder: has joined #ruby
[19:34:54] yuung: has joined #ruby
[19:35:29] crime: do you guys like Atlas Shrugged?
[19:35:45] Radar: ?offtopic crime
[19:35:45] ruby[bot]: crime: this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
[19:36:03] crime: ok but "I see dead people" is apparently ok
[19:36:15] crime: in detail, how exactly does that work?
[19:36:30] Radar: crime: No arguing. Thanks.
[19:36:42] Infra-Red: has joined #ruby
[19:37:14] crime: you remind me of a mall cop who thinks he can actually arrest people and shit
[19:37:22] ruby[bot]: +qqq $a:crime crime!*@* *!*@gateway/web/freenode/ip.216.165.125.249
[19:37:28] Radar: Boring troll is boring.
[19:38:12] baweaver: has joined #ruby
[19:38:58] KayKayKay: has joined #ruby
[19:39:29] Radar: !ban crime
[19:39:30] ruby[bot]: +bbb $a:crime$#ruby-banned crime!*@*$#ruby-banned *!*@gateway/web/freenode/ip.216.165.125.249$#ruby-banned
[19:39:30] ruby[bot]: ruby[bot] kicked crime: offense, see http://ruby-community.com/pages/user_rules
[19:39:35] krzkrz: has joined #ruby
[19:39:41] Radar: Best to not insult ops in PM, yeah?
[19:39:53] KayKayKay: i thought pms don't count
[19:40:01] Radar: !ban KayKayKay
[19:40:01] ruby[bot]: +bbb $a:KayKayKay$#ruby-banned KayKayKay!*@*$#ruby-banned *!*@gateway/web/freenode/ip.37.130.229.149$#ruby-banned
[19:40:14] Radar: Oh we don't have that tip here...
[19:40:16] ruby[bot]: ruby[bot] kicked KayKayKay: offense, see http://ruby-community.com/pages/user_rules
[19:40:16] ruby[bot]: Radar: I don't know anything about next
[19:40:20] ruby[bot]: -bbb *!*@webvpn.floyd.k12.va.us$#ruby-banned jackcom!*@*$#ruby-banned *1488*!*@*$#ruby-banned
[19:40:22] eam: and don't ever come back to abercrombie and fitch
[19:40:22] ruby[bot]: -bbb NICKERS!*@*$#ruby-banned *!*@172.56.16.80$#ruby-banned nucdak!*@*$#ruby-banned
[19:40:24] akkad: has joined #ruby
[19:40:30] Zarthus: hey Radar, I think you are a pretty cool person and all of that good jazz.
[19:40:34] kt2: has joined #ruby
[19:42:26] eam: it's too bad that people rarely actually join the offtopic channel. It's kinda better than this one
[19:43:42] djellemah: eam: DeBot seems to dominate the conversation over there :-p
[19:44:13] eam: djellemah: only when someone isn't being hilariously and interestingly offtopic - you should start something!
[19:44:18] Infra-Red: has joined #ruby
[19:44:37] tomchapin: has joined #ruby
[19:44:42] jenrzzz: has joined #ruby
[19:44:42] jenrzzz: has joined #ruby
[19:45:10] devbug: has joined #ruby
[19:46:36] mhoungbo: has joined #ruby
[19:47:24] jenrzzz: has joined #ruby
[19:47:51] djbkd: has joined #ruby
[19:49:00] stunder: has joined #ruby
[19:49:45] sucks: has joined #ruby
[19:51:43] shevy: djellemah aha!!! a bot!
[19:55:30] yuung: has joined #ruby
[19:56:08] boontdustie: has joined #ruby
[19:58:18] FooMunki: has joined #ruby
[19:59:18] FooMunki: has joined #ruby
[20:00:50] Zarthus: eam: I got irritated by that bot, was it the one about trivia or the one with unicode? I don't remember.
[20:01:09] nofacade: has joined #ruby
[20:01:34] stunder: has joined #ruby
[20:02:46] adaedra: Zarthus: good thing we have ignore lists in IRC clients now.
[20:03:27] Zarthus: pretty sure it dominated the conversation, so there wasn't much use in sticking around
[20:04:37] adaedra: Yeah, depends on the moment
[20:05:00] cdg: has joined #ruby
[20:05:52] arup_r: has joined #ruby
[20:05:56] cdg: has joined #ruby
[20:06:01] xpt: djellemah: It's not dominating. It writes at most 50% of the lines
[20:06:51] adaedra: I'd be in favor of moving the hangman somewhere else, but I guess there's not enough activity to warrant that
[20:07:19] rkazak: has joined #ruby
[20:08:47] sepp2k: has joined #ruby
[20:08:49] yuung: has joined #ruby
[20:10:16] yqt: has joined #ruby
[20:10:59] baweaver: has joined #ruby
[20:12:35] shevy: Zarthus unicode bots are the worst!
[20:12:38] xpt: maybe make #ruby-hangman. Ruby-offtopic has more activity than some chanells I know even without hangman.
[20:13:17] adaedra: ah, I knew shevy would come to the discussion.
[20:13:48] adaedra: Well, either convince enough ops acting in -offtopic about the subject, or convince jhass
[20:14:28] Zarthus: i'd much rather convince the ops to keep me in here and keep sneakily sneaking through the occasional offtopic discussion!
[20:14:30] adaedra: FWIW, DeBot's also working in ##hangman
[20:15:40] monque: has joined #ruby
[20:16:19] lemur: has joined #ruby
[20:16:34] jenrzzz: has joined #ruby
[20:16:34] jenrzzz: has joined #ruby
[20:17:33] wilbert: has joined #ruby
[20:18:12] Maletor: has joined #ruby
[20:18:40] ramfjord: has joined #ruby
[20:19:13] merida_: has joined #ruby
[20:19:13] merida: has joined #ruby
[20:19:38] djbkd: has joined #ruby
[20:21:29] mondok: has joined #ruby
[20:21:57] danielwzd: has joined #ruby
[20:27:34] BtcBen: has joined #ruby
[20:28:43] djellemah: has joined #ruby
[20:28:51] Guest5: has joined #ruby
[20:31:45] halfamind: has joined #ruby
[20:32:39] rkazak: has joined #ruby
[20:34:33] nettoweb: has joined #ruby
[20:34:39] askhat: has joined #ruby
[20:34:48] jamil: has joined #ruby
[20:36:25] darkf: has joined #ruby
[20:37:24] ruby[bot]: -qqq $a:crime crime!*@* *!*@gateway/web/freenode/ip.216.165.125.249
[20:39:56] aryaching: has joined #ruby
[20:40:24] chipotle: has joined #ruby
[20:41:38] P4Titan: has joined #ruby
[20:42:03] P4Titan: Hello All! How would I add instance variables to a class. Would I define them inside of the initialize function?
[20:42:19] baweaver: P4Titan: what have you tried?
[20:42:26] baweaver: and what tutorials have you read?
[20:42:59] P4Titan: I am aware of class variables and Class level instance variable
[20:43:37] P4Titan: I would like to define instance variables for a class which I can access from outside
[20:43:48] P4Titan: of course, I'll need to include the accessors
[20:44:17] trosborn: has joined #ruby
[20:45:48] baweaver: >> class Foo; attr_accessor :bar end; f= Foo.new; f.bar = 5; f
[20:45:49] ruby[bot]: baweaver: # => #<Foo:0x40b6994c @bar=5> (https://eval.in/540058)
[20:46:38] Zarthus: I didn't quite get the memo that #inspect does that automagically.
[20:46:40] P4Titan: interesting
[20:46:58] Zarthus: ACTION has been defining his own inspect method that does that
[20:47:16] baweaver: though this is basic class mechanics
[20:48:05] baweaver: setting an instance variable on a class is normally covered early on, hence the confusion to the question
[20:48:16] adaedra: Zarthus: that's p.
[20:48:23] nerium: has joined #ruby
[20:48:33] adaedra: (which does #inspect, right.)
[20:48:40] P4Titan: baweaver: I understand
[20:48:49] Zarthus: adaedra: eh, I mostly called it myself for debugging
[20:49:05] P4Titan: I don't follow tutorial per se, I just look things up as I need them
[20:49:07] baweaver: might get pulled into a meeting soon if I dc
[20:49:18] adaedra: I should `adaedra.update location: adaedra.bed`
[20:49:18] baweaver: P4Titan: learnxinyminutes.com
[20:49:21] baweaver: read through ruby
[20:50:14] adaedra: ruby and rust both begin with "ru"
[20:50:14] jamil: has joined #ruby
[20:50:16] arup_r: has left #ruby: ()
[20:50:58] P4Titan: its basically a large file of useful examples of common cases
[20:51:06] fullofcaffeine: has joined #ruby
[20:51:06] P4Titan: that may be handy
[20:53:23] agentmeerkat: has joined #ruby
[20:55:03] blandflakes: has joined #ruby
[20:55:05] yqt: has joined #ruby
[20:55:57] nettoweb: has joined #ruby
[20:57:34] wilbert: has joined #ruby
[21:00:15] blackgoat: has joined #ruby
[21:04:06] Infra-Red: has joined #ruby
[21:05:02] boontdustie: has joined #ruby
[21:05:33] n008f4g_: has joined #ruby
[21:06:50] mondok: has joined #ruby
[21:07:06] Don_John: has joined #ruby
[21:07:24] minimalism: has joined #ruby
[21:08:01] JohnBat26: has joined #ruby
[21:08:17] Guest34101: has joined #ruby
[21:08:30] goleldar: has joined #ruby
[21:09:03] Musashi007: has joined #ruby
[21:09:29] the_drow: has joined #ruby
[21:11:27] symm-: has joined #ruby
[21:11:39] skade: has joined #ruby
[21:11:45] fullofcaffeine: has joined #ruby
[21:18:44] edwinvdgraaf: has joined #ruby
[21:19:24] tubuliferous: has joined #ruby
[21:22:29] rgb-one: has joined #ruby
[21:24:46] r4z3r: has joined #ruby
[21:24:57] rgb-one: what libs are available for Remote Method Invocation in Ruby?
[21:25:20] niggs: has joined #ruby
[21:25:40] kobain: has joined #ruby
[21:25:47] blackmesa: has joined #ruby
[21:25:49] fainter: has joined #ruby
[21:26:36] kobain: has joined #ruby
[21:26:40] fainter: has left #ruby: ("Ухожу я от вас (xchat 2.4.5 или старше)")
[21:27:11] nb_bez___: has joined #ruby
[21:27:51] ChiefAlexander: has joined #ruby
[21:29:04] skade: has joined #ruby
[21:29:31] freerobby: has joined #ruby
[21:29:49] FooMunki: has joined #ruby
[21:30:56] freerobby1: has joined #ruby
[21:32:47] shevy: rgb-one drb http://ruby-doc.org/stdlib-2.3.0/libdoc/drb/rdoc/DRb.html
[21:33:53] diegoviola: has joined #ruby
[21:34:03] intrigueD: has joined #ruby
[21:34:24] ruby[bot]: -b Guest54394!*@*$#ruby-banned
[21:34:48] yuung: has joined #ruby
[21:35:33] rgb-one: Thanks shevy
[21:36:36] skade: has joined #ruby
[21:36:38] djbkd: has joined #ruby
[21:37:38] babblebre: has joined #ruby
[21:38:17] yfeldblum: has joined #ruby
[21:38:30] clorisu: what does the #example # mean ?
[21:38:37] clorisu: is it referring to a method?
[21:38:55] BrunoSaboia: has joined #ruby
[21:38:56] polishdub: has joined #ruby
[21:39:00] shevy: clorisu yeah
[21:39:12] shevy: so you can invoke .example on the object
[21:39:29] clorisu: why arent they alternatively described as .example shevy ?
[21:39:33] clorisu: wouldnt that be more consistent
[21:40:07] nettoweb: has joined #ruby
[21:40:08] Maletor: has joined #ruby
[21:40:37] niggurs: has joined #ruby
[21:40:57] niggurs: what is a good ruby guide?
[21:41:35] swills: has joined #ruby
[21:42:27] clorisu: niggurs: tryruby.org here's a good quick intro
[21:42:38] shevy: niggurs nick?
[21:42:47] niggurs: what's up?
[21:42:57] shevy: yeah we know
[21:43:12] shevy: clorisu because you can also call it on some toplevel module or class, for instance: class Foo; def self.hi; puts 'hi'; end; end; Foo.hi()
[21:43:18] jackjackdripper: has joined #ruby
[21:44:12] shevy: or, to combine both: class Foo; def hi; Foo.hi; end; def self.hi; puts 'hi'; end; end; Foo.hi(); Foo.new.hi()
[21:45:01] jackjackdripper: has joined #ruby
[21:45:13] clorisu: wouldn't `.example` describe that situation just as well shevy?
[21:45:18] clorisu: or `.hi` in this instance?
[21:45:35] cd-rum: has joined #ruby
[21:46:04] fullofcaffeine: has joined #ruby
[21:46:17] shevy: they are two different methods though
[21:47:05] shevy: http://ruby-doc.org/core-2.3.0/Array.html
[21:47:09] shevy: you can see how rdoc arranges them
[21:47:36] shevy: the class methods it groups with the leading :: so we have ::[] ::new ::try_convert that is, Array[] Array.new and Array.try_convert
[21:48:04] shevy: and the others are those callable on your array instances, that is #any? #cycle and so forth
[21:48:45] baweaver: has joined #ruby
[21:50:16] JohnBat26: has joined #ruby
[21:51:34] Azure: has joined #ruby
[21:52:47] Disavowed: has joined #ruby
[21:55:31] Cohedrin: has joined #ruby
[21:55:53] tubuliferous: has joined #ruby
[21:56:44] skade: has joined #ruby
[21:57:57] graffix: has joined #ruby
[21:59:43] pulpfiction: has joined #ruby
[21:59:49] pulpfiction: guys, if i have a gemfile on the root of a project, isn't it just the case of executing `bundle install` to install the project dependencies?
[22:00:11] pulpfiction: when i execute that, all i get is `bundle: Usage: bundle package dest prefix`
[22:01:07] polishdub: has joined #ruby
[22:04:08] snockerton: has joined #ruby
[22:04:49] snockerton: so i have a flat text file containing a ruby hash print out (not json), is there a way to read this back into a new hash?
[22:05:16] ur5us: has joined #ruby
[22:06:07] al2o3-cr: has joined #ruby
[22:07:41] Guest5: has joined #ruby
[22:08:55] baweaver: has joined #ruby
[22:09:06] f0f4r: has joined #ruby
[22:12:41] chrisml: has joined #ruby
[22:12:42] r1nuz: has joined #ruby
[22:12:49] gigetoo_: has joined #ruby
[22:13:43] rgb-one: snockerton: how does the printout look?
[22:14:17] snockerton: {"key1"=>"value", "key2"=>"value"}
[22:14:33] snockerton: litterally just like REPL printed hash
[22:14:53] snockerton: someone on slack suggested that eval would work, but to never use it
[22:14:55] snockerton: so i'm using it
[22:15:41] htmldrum_: has joined #ruby
[22:15:41] htmldrum: has joined #ruby
[22:15:44] baweaver: what's the problem?
[22:16:53] baweaver: snockerton: don't use eval, period.
[22:17:24] lemur: has joined #ruby
[22:17:54] baweaver: how is the file generated, and why is it not in JSON?
[22:18:49] mistermocha: has joined #ruby
[22:19:03] ytti: eval is pretty crucial if you're building template langauge :/
[22:19:06] snockerton: other people's code
[22:19:17] snockerton: job logs are output as ruby hashes… yes i know
[22:19:17] ytti: ERB without eval would be hard
[22:19:32] baweaver: ytti: It would be.
[22:19:55] tvw: has joined #ruby
[22:19:56] baweaver: It's also a magnificent security hole waiting to happen unless used correctly.
[22:21:40] uglybandersnatch: has joined #ruby
[22:22:06] intrigueD: has joined #ruby
[22:22:47] Uptime: has joined #ruby
[22:25:59] aeterne: has joined #ruby
[22:31:24] fullofcaffeine: has joined #ruby
[22:31:29] rgb-one: has left #ruby: ("Konversation terminated!")
[22:33:23] nerium: has joined #ruby
[22:36:38] stannard: has joined #ruby
[22:36:55] Scriptonaut: Hey guys, you know the &: operator when using map/select/reject? How can I link two together? Let's say I have an array of objects, how could I do: array.map(&:errors.full_messages)
[22:37:07] chrisml: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[22:37:09] mleung: has joined #ruby
[22:37:54] Ox0dea: Scriptonaut: `&` is the operator, not `&:`.
[22:38:08] Ox0dea: `&:foo` invokes Symbol#to_proc on :foo to convert it to a Proc.
[22:38:37] Aviio: has joined #ruby
[22:38:50] Scriptonaut: so, I guess there isn't a way?
[22:39:00] baweaver: nope, not to do that
[22:39:05] baweaver: without patching something
[22:39:10] Ox0dea: I have said patch!
[22:39:17] baweaver: of course you do
[22:39:27] baweaver: does it come in non-alphanumeric? :P
[22:39:35] zenlot: has joined #ruby
[22:40:21] Ox0dea: That'd be tricky.
[22:40:28] Scriptonaut: how does the &:foo know that the proc takes a single argument?
[22:40:55] Ox0dea: Scriptonaut: It doesn't; Procs don't check arity.
[22:40:59] devbug: has joined #ruby
[22:41:03] Scriptonaut: ah, good point
[22:41:03] andywojo: has joined #ruby
[22:41:09] baweaver: it also calls it on the object
[22:41:13] Scriptonaut: so how does it call the proc on the object
[22:41:27] Scriptonaut: .map(&:errors), how does it know to call object.errors
[22:41:33] baweaver: &:symbol is equivalent of object.send(symbol)
[22:41:52] baweaver: maybe not exactly, but Ox0dea is about to correct me if not
[22:41:58] firstdayonthejob: has joined #ruby
[22:42:09] Ox0dea: Well, anything can be converted a Proc with the `&` operator if it responds to #to_proc.
[22:42:11] Scriptonaut: with &:symbol, there is no object though
[22:42:15] statelesscode: has joined #ruby
[22:42:21] Scriptonaut: how does it know what object to call it on
[22:43:14] baweaver: http://ruby-doc.org/core-2.3.0/Symbol.html#method-i-to_proc - check the source
[22:43:43] baweaver: well, 2.3.0 isn't as detailed there....
[22:43:53] baweaver: http://ruby-doc.org/core-2.2.0/Symbol.html#method-i-to_proc
[22:44:03] baweaver: hover in the top right
[22:44:44] baweaver: mainly it assumes symbols will take the iterated value as what to send to
[22:45:00] Ox0dea: Scriptonaut: https://eval.in/540071
[22:45:41] baweaver: yeah, pretty much that
[22:45:55] jgorak: has joined #ruby
[22:46:05] CloCkWeRX: has joined #ruby
[22:47:42] jackjackdripper1: has joined #ruby
[22:48:01] devbug: has joined #ruby
[22:48:03] jenrzzz: has joined #ruby
[22:48:22] baweaver: >> fn_stream = -> path { -> o { path.split('.').reduce(o){ |v,n| v.send(n) }}}; (1..10).map(&fn_stream['to_s.to_f'])
[22:48:23] ruby[bot]: baweaver: # => [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0] (https://eval.in/540073)
[22:49:00] baweaver: that'd be an easy way to hack it
[22:49:16] baweaver: without needing to monkeypatch
[22:52:08] jackjackdripper: has joined #ruby
[22:53:41] quakephil_: has joined #ruby
[22:53:46] millerti: has joined #ruby
[22:55:35] nando293921: has joined #ruby
[22:56:17] jgorak: Hi all. I'm still a bit green, and sometimes I find myself doing things more verbosely than needed. I'm trying to find unique pairs inside some nested hashes/arrays of hashes. Is there a better way than nesting Hash::map blocks, returning the pairs I care about, then uniq'ing them? ( https://gist.github.com/anonymous/e1f6415248453cbc82e3 )
[22:56:47] senayar: has joined #ruby
[22:56:47] ruby[bot]: +b senayar!*@*$#ruby-fix-your-connection
[22:56:47] ruby[bot]: ruby[bot] kicked senayar: banned before
[22:58:28] ytti: seems fine to me
[22:58:32] ytti: althoght i wonder where job1.1 went
[22:58:55] ytti: being terse isn't really goal you should strive for
[22:58:59] ytti: being understandable/readable is
[22:59:07] ytti: which often is mutually exclusive with terse
[22:59:27] ytti: although i do have to admit i take sick pleasure in golfing stuff
[22:59:41] ytti: but i have other character faults too
[23:00:45] cd-rum: has joined #ruby
[23:01:24] uglybandersnatch: has joined #ruby
[23:01:57] jgorak: Neat, thanks. I guess I might be pushing too hard at golfing (never heard this term, I like it!). The results thing was because I expanded my example and forgot to update the results area to match.
[23:02:33] baweaver: has joined #ruby
[23:02:46] techtomas: has joined #ruby
[23:03:29] skweek: has joined #ruby
[23:04:11] drbrain: has joined #ruby
[23:05:00] lomex: has joined #ruby
[23:05:24] blandflakes: has joined #ruby
[23:05:47] uglybandersnatch: has joined #ruby
[23:05:51] intrigueD: has joined #ruby
[23:06:54] siaW: has joined #ruby
[23:07:22] axisys: has joined #ruby
[23:11:34] Tref: has joined #ruby
[23:11:38] bob434: has joined #ruby
[23:11:44] tubuliferous: has joined #ruby
[23:12:41] YP-QMUL-W: has joined #ruby
[23:12:48] r1nuz: has joined #ruby
[23:13:09] Ox0dea: ytti: I see what you did there. ;)
[23:13:19] graffix: has joined #ruby
[23:15:11] rkazak: has joined #ruby
[23:15:23] Tref: Can someone give me a quick code review? https://github.com/Tref/delimeter_parser
[23:16:27] JoshGlzBrk: has joined #ruby
[23:17:33] baweaver: has joined #ruby
[23:17:43] rodferso1|dinner: has joined #ruby
[23:23:17] ytti: what is 'overly clever solution'
[23:23:21] binaryplease: has joined #ruby
[23:23:30] ytti: i feel you're communicating something that is important with wrong words
[23:23:43] clorisu: has joined #ruby
[23:23:43] Tref: ytti: Thats not my description
[23:23:53] Tref: its an assignment
[23:24:15] ytti: oh this is for job interview somewhere
[23:24:31] ramfjord_: has joined #ruby
[23:24:36] clorisu: has joined #ruby
[23:24:42] ytti: 1s look, does not look like your solution is terrible
[23:24:51] ytti: i'd parse the options so that i'd complain on unknown options
[23:24:59] ytti: foo = attribute.delete :bar
[23:25:19] ytti: raise UnknownOptions unless attribute.empty?
[23:25:36] ytti: so that it would be easier to introduce new options in new version
[23:25:43] ytti: so that they fail obvious way when used with older library
[23:26:32] patientj: has left #ruby: ()
[23:27:35] ytti: i would use less class methods
[23:27:39] ytti: and more instance methods
[23:27:40] ytti: but that's just me
[23:28:49] Tref: ytti: on which methods?
[23:29:18] DikshitNijjer: has joined #ruby
[23:29:19] mnrmnaugh: has joined #ruby
[23:29:20] DikshitNijjer: hello all from india here
[23:29:24] DikshitNijjer: anyone else from india?
[23:29:51] baweaver: !troll DikshitNijjer
[23:29:52] ruby[bot]: +bbb $a:DikshitNijjer$#ruby-banned DikshitNijjer!*@*$#ruby-banned *!*@gateway/web/cgi-irc/kiwiirc.com/ip.162.252.83.185$#ruby-banned
[23:29:53] ruby[bot]: ruby[bot] kicked DikshitNijjer: is a bannable offense, see http://ruby-community.com/pages/user_rules
[23:30:12] Gasher^: has joined #ruby
[23:30:45] Tref: baweaver: posted that code and pinged you if you have a chance to take a look. Appreciate the help the other day
[23:30:57] baweaver: Was it updated?
[23:31:07] baweaver: Just saw a readme with two lines earlier
[23:31:14] Xiti: has joined #ruby
[23:31:19] solars: has joined #ruby
[23:31:37] flurby: has joined #ruby
[23:31:46] Tref: yeah I created a new repo
[23:31:50] baweaver: (might be pulled into a meeting soon, fair warning)
[23:31:57] Tref: baweaver: np
[23:32:03] baweaver: I'll take a look when I get a sec later tonight.
[23:32:18] Tref: great man, thanks
[23:34:19] cpup: has joined #ruby
[23:34:26] millerti: has joined #ruby
[23:35:06] hydrajump: has joined #ruby
[23:36:26] cjbischof_: has joined #ruby
[23:36:45] helpa: has joined #ruby
[23:38:24] hydrajump: hi anyone who can help me with selenium on saucelabs? I've got the following test https://gist.github.com/hydrajump/e6ee99f1d4db0e12f967
[23:39:19] hydrajump: It's my first time using selenium and saucelabs and I've gone through their samples, but I'm sometimes getting the assertions to pass and other times one fails or both fail and the site is the same throughout testing
[23:39:29] Ropeney: has joined #ruby
[23:39:37] hydrajump: am I doing something wrong in how I've written the tests?
[23:40:50] mistermocha: has joined #ruby
[23:40:50] CloCkWeRX: has joined #ruby
[23:40:52] SG045734: has joined #ruby
[23:44:19] choke: has joined #ruby
[23:45:26] Graphettion: has joined #ruby
[23:45:28] sand_bird: has joined #ruby
[23:47:08] edwardly: has joined #ruby
[23:47:09] edwardly: has joined #ruby
[23:47:51] DLSteve: has joined #ruby
[23:48:22] x77686d: has joined #ruby
[23:50:20] cd-rum: has joined #ruby
[23:52:05] Inside: has joined #ruby
[23:52:05] Inside: has joined #ruby
[23:53:19] swills: has joined #ruby
[23:53:24] jenrzzz: has joined #ruby
[23:53:24] jenrzzz: has joined #ruby
[23:54:38] uglybandersnatch: has joined #ruby
[23:56:30] clorisu: has joined #ruby