« Back to channel list

#ruby - 25 May 2016

« Back 1 day Forward 1 day »
[00:03:37] djbkd: has joined #ruby
[00:06:13] moeabdol: has joined #ruby
[00:06:23] surrounder: has joined #ruby
[00:07:44] nk121: has joined #ruby
[00:09:14] stannard: has joined #ruby
[00:09:56] jancel: has joined #ruby
[00:11:38] bmurt: has joined #ruby
[00:12:10] tax: has joined #ruby
[00:12:44] echosystm: has joined #ruby
[00:13:03] echosystm: if a ruby program creates some threads
[00:13:12] echosystm: and then i kill the app
[00:13:18] echosystm: are the threads automatically killed?
[00:14:58] kubunto: has joined #ruby
[00:16:39] User458764: has joined #ruby
[00:17:39] gtsai: has joined #ruby
[00:17:42] jaguarmagenta: has joined #ruby
[00:19:03] tristanp: has joined #ruby
[00:19:54] jaguarma_: has joined #ruby
[00:20:09] tacit7: has joined #ruby
[00:20:38] havenwood: echosystm: a process takes its own threads down with it
[00:21:26] charliesome: has joined #ruby
[00:21:51] gtsai: has joined #ruby
[00:22:19] havenwood: echosystm: it's not like processes where you need to reap children or risk zombie processes
[00:22:34] tristanp_: has joined #ruby
[00:23:00] jaguarmagenta: has joined #ruby
[00:23:23] kubunto: has left #ruby: ()
[00:24:12] aupadhye: has joined #ruby
[00:24:22] echosystm: ok thanks havenwood
[00:24:57] nankyokusei: has joined #ruby
[00:25:01] tristanp: has joined #ruby
[00:25:06] ksmutthu: has joined #ruby
[00:26:31] yfeldblum: has joined #ruby
[00:26:57] tristanp_: has joined #ruby
[00:27:27] snath: has joined #ruby
[00:28:20] tristanm_: has joined #ruby
[00:29:08] Elvin: has joined #ruby
[00:29:16] cyclonis_: has joined #ruby
[00:29:32] daftdolphin: has joined #ruby
[00:33:11] jaguarma_: has joined #ruby
[00:38:54] tristanp: has joined #ruby
[00:40:15] donske: has joined #ruby
[00:40:59] aupadhye: has joined #ruby
[00:44:42] tristanp: has joined #ruby
[00:44:43] roamingdog: has joined #ruby
[00:45:37] snath: has left #ruby: ("Leaving")
[00:46:02] mleung: has joined #ruby
[00:46:42] jaguarmagenta: has joined #ruby
[00:47:24] tristanp_: has joined #ruby
[00:49:08] jaguarma_: has joined #ruby
[00:49:35] thejamespinto: has joined #ruby
[00:50:20] daftdolphin: has joined #ruby
[00:50:46] ramfjord: has joined #ruby
[00:51:32] tristanp: has joined #ruby
[00:52:52] hfp_work: has joined #ruby
[00:53:22] hfp: has joined #ruby
[00:53:22] tristanm_: has joined #ruby
[00:55:08] weemsledeux: has joined #ruby
[00:57:07] paradisaeidae_: has joined #ruby
[00:57:16] daftdolphin: has joined #ruby
[00:57:35] tristanp: has joined #ruby
[00:58:01] dangeranger: has joined #ruby
[00:58:08] rkazak: has joined #ruby
[00:59:06] freerobby: has joined #ruby
[01:01:45] chouhoulis: has joined #ruby
[01:06:39] skweek: has joined #ruby
[01:06:47] tohuw: has joined #ruby
[01:07:48] finisherr: has joined #ruby
[01:09:34] Alazoral: has joined #ruby
[01:09:47] ryan_notabot: has joined #ruby
[01:15:09] sneakersec: has joined #ruby
[01:15:49] mistermocha: has joined #ruby
[01:20:31] dhk: has joined #ruby
[01:20:54] tacit7: has joined #ruby
[01:22:19] chopin: has joined #ruby
[01:22:53] JoshGlzBrk: has joined #ruby
[01:23:13] banister: has joined #ruby
[01:23:33] arescorpio: has joined #ruby
[01:24:38] rkazak: has joined #ruby
[01:25:39] crystal77: has joined #ruby
[01:26:01] Ropeney: has joined #ruby
[01:28:17] paradisaeidae: has joined #ruby
[01:28:17] dangeranger: has joined #ruby
[01:28:55] ramfjord_: has joined #ruby
[01:32:56] norc-2: has joined #ruby
[01:33:42] tristanp_: has joined #ruby
[01:35:08] gfvcastro: has joined #ruby
[01:35:36] tristanp: has joined #ruby
[01:35:54] rbennacer: has joined #ruby
[01:36:14] SilverKey: has joined #ruby
[01:38:39] Vingador: has joined #ruby
[01:38:48] tristanp_: has joined #ruby
[01:39:25] kies: has joined #ruby
[01:42:41] B1n4r10: has joined #ruby
[01:42:51] paradisaeidae_: has joined #ruby
[01:43:19] tristanp: has joined #ruby
[01:43:38] smathy: has joined #ruby
[01:45:35] Dios: has joined #ruby
[01:48:05] tristanp_: has joined #ruby
[01:48:09] s00pcan: has joined #ruby
[01:53:33] rkazak: has joined #ruby
[01:54:20] moeabdol: has joined #ruby
[01:55:05] bronson: has joined #ruby
[01:57:02] rbennacer: has joined #ruby
[01:57:21] charliesome: has joined #ruby
[01:58:01] joskei: has joined #ruby
[02:09:58] coto: has joined #ruby
[02:11:04] coto: anyone has experience usin DES cipher?
[02:11:18] coto: i have a problem trying to convert a parser from C to Ruby
[02:11:30] havenwood: coto: what problem are you running into?
[02:11:37] coto: i do it in python, but for the life of me i can't make it work in ruby
[02:12:10] coto: i have a old C program that is used to generate encrypted strings for saving data
[02:12:16] havenwood: coto: link to the code?
[02:12:22] Coldblackice: has joined #ruby
[02:12:34] chipotle: has joined #ruby
[02:12:35] havenwood: coto: getting an error or just not working as expected?
[02:12:39] coto: im trying to automate the process in puppet, so i try to convert the code to ruby, but i can't
[02:12:50] coto: work, but the resulting hash is not the expected
[02:13:12] jancel: has joined #ruby
[02:13:16] coto: http://pastebin.com/Bf8ypjgp
[02:13:17] ruby[bot]: coto: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/96bae068016ecce928b40edde4c1b59d
[02:13:17] ruby[bot]: coto: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[02:13:46] coto: https://gist.github.com/anonymous/96bae068016ecce928b40edde4c1b59d
[02:13:51] tristanp: has joined #ruby
[02:14:21] Vingador: has joined #ruby
[02:14:39] havenwood: coto: the first two lines don't appear to be Ruby
[02:15:08] coto: that is not Ruby, that is the working version in Python
[02:15:21] skolman: has joined #ruby
[02:16:16] havenwood: >> require 'openssl'; OpenSSL::Cipher.ciphers.grep /\Ades/i
[02:16:17] ruby[bot]: havenwood: # => ["DES", "DES-CBC", "DES-CFB", "DES-CFB1", "DES-CFB8", "DES-ECB", "DES-EDE", "DES-EDE-CBC", "DES-EDE- ...check link for more (https://eval.in/576692)
[02:17:07] craigp: has joined #ruby
[02:17:16] havenwood: coto: So you're not looking for a pure Ruby implementation of DES so much as to use the Ruby stdlib?
[02:18:18] coto: the problem is the C version of the encrypter and decrupter, use fixed var size, 8 for the key and 64 for the string to encrypt, so if the key is shorter put a binary null in it.
[02:18:48] coto: i replicate this in python using "key.ljust(8 '\x00')"
[02:19:31] Dios: has joined #ruby
[02:19:49] tristanp_: has joined #ruby
[02:20:11] havenwood: >> 'hrm'.ljust 8, "\x00"
[02:20:12] ruby[bot]: havenwood: # => "hrm\u0000\u0000\u0000\u0000\u0000" (https://eval.in/576693)
[02:21:45] coto: python version => https://gist.github.com/cotocisternas/8ea4e89b02743fc21068672035ef7b4b
[02:22:01] coto: ruby version => https://gist.github.com/cotocisternas/e7b7b9a23fb22ad687a7de335d410f6d
[02:22:18] tristanp: has joined #ruby
[02:22:24] havenwood: >> '\x00' == "\x00"
[02:22:37] ruby[bot]: havenwood: # => false (https://eval.in/576694)
[02:22:38] ptx0: has joined #ruby
[02:23:38] coto: That worked perfect
[02:23:46] robbyoconnor: has joined #ruby
[02:23:53] robbyoconnor: has joined #ruby
[02:25:20] tristanp_: has joined #ruby
[02:25:50] nankyokusei: has joined #ruby
[02:26:07] yfeldblum: has joined #ruby
[02:27:07] yfeldblum: has joined #ruby
[02:27:48] lukebyrne: has joined #ruby
[02:28:10] tristanp: has joined #ruby
[02:32:30] Eiam_: has joined #ruby
[02:38:11] skalfyfan: has joined #ruby
[02:39:00] SilverKey: has joined #ruby
[02:39:30] ensyde: has joined #ruby
[02:43:41] snguyen: has joined #ruby
[02:44:01] tristanp: has joined #ruby
[02:45:58] adkjsfhd: has joined #ruby
[02:51:28] mleung: has joined #ruby
[02:55:34] gfvcastro: has joined #ruby
[02:55:43] charliesome: has joined #ruby
[02:59:20] Es0teric: has joined #ruby
[03:00:00] Es0teric: has joined #ruby
[03:00:02] roamingdog: has joined #ruby
[03:00:38] Es0teric: has joined #ruby
[03:01:55] PaulCapestany: has joined #ruby
[03:02:50] tristanp_: has joined #ruby
[03:04:18] Devalo: has joined #ruby
[03:06:00] tristanp: has joined #ruby
[03:08:45] blackmesa: has joined #ruby
[03:09:22] PaulCapestany: has joined #ruby
[03:09:23] tristanp_: has joined #ruby
[03:09:57] jackjackdripper1: has joined #ruby
[03:12:52] tristanp: has joined #ruby
[03:12:53] mistermocha: has joined #ruby
[03:13:31] braincrash: has joined #ruby
[03:13:40] benlieb: has joined #ruby
[03:17:28] ruby[bot]: -bbb $a:ak-47$#ruby-banned AK-47_!*@*$#ruby-banned *!*@unaffiliated/skraito-0x71$#ruby-banned
[03:17:46] Water_4: has joined #ruby
[03:18:01] mleung: has joined #ruby
[03:20:15] mistermocha: has joined #ruby
[03:20:55] k3rn31: has joined #ruby
[03:21:14] skalfyfan: has joined #ruby
[03:21:22] d0lph1n98: has joined #ruby
[03:22:04] tacit7: has joined #ruby
[03:22:09] PaulCapestany: has joined #ruby
[03:27:50] rbennacer: has joined #ruby
[03:28:19] bmurt: has joined #ruby
[03:29:19] kgrz: has joined #ruby
[03:30:49] tristanp_: has joined #ruby
[03:30:54] LoneHerm_: has joined #ruby
[03:31:39] moeabdol: has joined #ruby
[03:33:27] finisherr: has joined #ruby
[03:35:01] tristanp: has joined #ruby
[03:35:22] lukec: has joined #ruby
[03:35:35] PaulCapestany: has joined #ruby
[03:38:17] tristanp_: has joined #ruby
[03:39:41] lxsameer: has joined #ruby
[03:40:52] tristanp: has joined #ruby
[03:45:19] tristanp: has joined #ruby
[03:51:19] snockerton: has joined #ruby
[03:51:22] pabloh: has joined #ruby
[03:53:21] adkjsfhd: has joined #ruby
[03:54:05] bmurt: has joined #ruby
[03:55:20] paradisaeidae_: has joined #ruby
[03:56:12] rkazak: has joined #ruby
[03:58:13] ramfjord: has joined #ruby
[04:01:55] mistermocha: has joined #ruby
[04:02:08] jaguarmagenta: has joined #ruby
[04:02:15] kareeoleez: has joined #ruby
[04:03:41] kareeole_: has joined #ruby
[04:03:44] benlieb: has joined #ruby
[04:04:36] gix: has joined #ruby
[04:05:05] pawnbox: has joined #ruby
[04:05:06] djbkd: has joined #ruby
[04:06:01] tristanp_: has joined #ruby
[04:06:51] PaulCapestany: has joined #ruby
[04:06:55] nullFxn: has joined #ruby
[04:09:26] mistermocha: has joined #ruby
[04:09:29] jancel: has joined #ruby
[04:09:47] tristanp: has joined #ruby
[04:10:07] blackmesa: has joined #ruby
[04:12:16] mistermo_: has joined #ruby
[04:13:31] pabloh: has joined #ruby
[04:13:51] Water-4: has joined #ruby
[04:13:59] mistermocha: has joined #ruby
[04:14:19] tristanp_: has joined #ruby
[04:15:19] echosystm: has joined #ruby
[04:16:04] echosystm: if you have a thread waiting on socket.accet
[04:16:08] echosystm: how do you shut down the socket?
[04:16:42] echosystm: i mean, gracefully kill the thread it's running in?
[04:18:24] tristanp: has joined #ruby
[04:19:21] zast: has joined #ruby
[04:21:15] dhk: has joined #ruby
[04:23:07] tristanp_: has joined #ruby
[04:23:12] tacit7: has joined #ruby
[04:24:08] charliesome: has joined #ruby
[04:26:22] hk238: has joined #ruby
[04:26:41] nankyokusei: has joined #ruby
[04:30:32] RobertBirnie: has joined #ruby
[04:32:15] zenlot: has joined #ruby
[04:32:22] mistermocha: has joined #ruby
[04:33:03] wilbert: has joined #ruby
[04:37:50] ksmutthu: has joined #ruby
[04:38:02] mistermocha: has joined #ruby
[04:38:52] paradisaeidae_: has joined #ruby
[04:39:09] pawnbox: has joined #ruby
[04:41:08] cesar_: has joined #ruby
[04:41:45] tildes_: has joined #ruby
[04:45:24] tristanp: has joined #ruby
[04:45:45] Orphen: has joined #ruby
[04:47:02] Orphen: has joined #ruby
[04:47:54] chopin: has joined #ruby
[04:49:03] Devalo: has joined #ruby
[04:49:23] tristanp_: has joined #ruby
[04:51:14] Corrosive_: has joined #ruby
[04:51:25] zacts: has joined #ruby
[04:55:02] tristanp: has joined #ruby
[04:55:12] blingrang: has joined #ruby
[05:01:23] duncannz: has joined #ruby
[05:01:44] kristofferR: has joined #ruby
[05:02:24] duncannz: has joined #ruby
[05:02:55] mistermocha: has joined #ruby
[05:03:36] duncannz: has joined #ruby
[05:03:57] pawnbox: has joined #ruby
[05:04:12] netcho: has left #ruby: ()
[05:04:47] mistermo_: has joined #ruby
[05:04:54] duncannz: has joined #ruby
[05:09:25] chouhoulis: has joined #ruby
[05:10:07] jancel: has joined #ruby
[05:12:26] sauvin: has joined #ruby
[05:12:43] mistermocha: has joined #ruby
[05:13:39] blackmesa: has joined #ruby
[05:14:05] dionysus69: has joined #ruby
[05:14:07] tristanp_: has joined #ruby
[05:17:39] tristanp: has joined #ruby
[05:22:50] tristanp: has joined #ruby
[05:24:46] tristanp_: has joined #ruby
[05:25:47] chopin: has joined #ruby
[05:26:39] tristanm_: has joined #ruby
[05:38:24] Dimik: has joined #ruby
[05:40:30] d0lph1n98: has joined #ruby
[05:42:49] danielz: has joined #ruby
[05:44:32] Gv3s7: has joined #ruby
[05:44:42] Gv3s7: Hello friends
[05:45:21] tristanp: has joined #ruby
[05:47:08] Coldblackice: has joined #ruby
[05:48:25] LoneHerm_: has joined #ruby
[05:48:46] pwnd_nsfw: has joined #ruby
[05:49:14] Gv3s7: I'm beginning on Ruby, moreover it's my first language and complete all related to object-oriented programming. Now, where should i continue? Thanks guys
[05:49:30] youch: has joined #ruby
[05:49:41] Radar: Gv3s7: https://github.com/thoughtbot/trail-map/blob/master/ruby.md
[05:49:55] tristanp_: has joined #ruby
[05:50:18] shevy: Gv3s7 https://pine.fm/LearnToProgram/chap_01.html
[05:51:13] norc-2: has joined #ruby
[05:51:38] Gv3s7: Thanks guys
[05:51:56] stardiviner: has joined #ruby
[05:52:15] moeabdol: has joined #ruby
[05:52:56] tristanp: has joined #ruby
[05:54:57] tAn: has joined #ruby
[05:55:09] last_staff: has joined #ruby
[06:01:54] moeabdol: has joined #ruby
[06:05:13] Gv3s7: Where are you from?
[06:05:37] Radar: Australia.
[06:06:41] kareeoleez: has joined #ruby
[06:08:39] KnownSyntax: has joined #ruby
[06:09:19] jaruga___: has joined #ruby
[06:11:05] e4xit: has joined #ruby
[06:13:50] KnownSyntax: has joined #ruby
[06:14:01] fenre: has joined #ruby
[06:14:49] zapata: has joined #ruby
[06:15:24] blackmesa: has joined #ruby
[06:15:34] tvw: has joined #ruby
[06:17:10] Macaveli: has joined #ruby
[06:17:50] Macaveli: has joined #ruby
[06:18:24] mistermocha: has joined #ruby
[06:18:56] A124: hey. I got nested structs and need nested hash, how do I convert that?
[06:20:17] charliesome: has joined #ruby
[06:20:29] codecop: has joined #ruby
[06:20:43] apeiros: I'd add a to_h method to your struct classes and call the toplevel struct's to_h
[06:20:46] tristanp_: has joined #ruby
[06:21:15] CloCkWeRX: has joined #ruby
[06:21:18] A124: Well, they do implement to_h, but not recrsively.
[06:21:38] djbkd: has joined #ruby
[06:21:55] apeiros: then change it?
[06:22:02] apeiros: or add a recursive variant
[06:23:44] tacit7: has joined #ruby
[06:25:37] jaguarma_: has joined #ruby
[06:26:16] solars: has joined #ruby
[06:27:05] Devalo: has joined #ruby
[06:27:18] nankyokusei: has joined #ruby
[06:27:26] benlieb: has joined #ruby
[06:27:31] aufi: has joined #ruby
[06:30:34] User458764: has joined #ruby
[06:33:17] tristanp: has joined #ruby
[06:34:06] d0lph1n98: has joined #ruby
[06:34:46] roamingdog: has joined #ruby
[06:35:25] jenrzzz: has joined #ruby
[06:38:43] n1x-nz: has joined #ruby
[06:39:10] firstdayonthejob: has joined #ruby
[06:39:13] n1x-nz: has joined #ruby
[06:40:36] snguyen: has joined #ruby
[06:41:30] conta: has joined #ruby
[06:41:35] troulouliou_div2: has joined #ruby
[06:42:20] anisha: has joined #ruby
[06:44:42] giz|work: has joined #ruby
[06:47:26] CausaMortis: has joined #ruby
[06:49:02] bigkevmcd: has joined #ruby
[06:53:02] Janno: has joined #ruby
[06:53:29] aries_liuxueyang: has joined #ruby
[06:59:44] tristanp: has joined #ruby
[07:01:39] fenre: has joined #ruby
[07:02:57] lxsameer: has joined #ruby
[07:06:27] craigp: has joined #ruby
[07:06:46] tAn: has joined #ruby
[07:06:53] tristanp_: has joined #ruby
[07:06:56] biberu: has joined #ruby
[07:08:11] platzhirsch: has joined #ruby
[07:08:42] Macaveli: has joined #ruby
[07:08:48] fenre: has joined #ruby
[07:10:40] ur5us: has joined #ruby
[07:11:01] tristanp: has joined #ruby
[07:11:45] TomyWork: has joined #ruby
[07:11:51] sesquipedalian: has joined #ruby
[07:12:04] mark_66: has joined #ruby
[07:15:01] Couch: has joined #ruby
[07:15:34] dudepare: has joined #ruby
[07:15:49] ferr: has joined #ruby
[07:16:08] Cohedrin: has joined #ruby
[07:16:56] SilverKey: has joined #ruby
[07:18:25] blackmesa: has joined #ruby
[07:19:35] UKn0Me: has joined #ruby
[07:24:05] tristanp: has joined #ruby
[07:24:51] tacit7: has joined #ruby
[07:29:05] Macaveli: has joined #ruby
[07:36:09] tristanp_: has joined #ruby
[07:37:14] madgen: has joined #ruby
[07:38:36] stardiviner: has joined #ruby
[07:39:41] tristanp: has joined #ruby
[07:42:37] mikecmpbll: has joined #ruby
[07:42:39] tristanp: has joined #ruby
[07:43:31] n1x-nz: has joined #ruby
[07:44:50] mikecmpbll: has joined #ruby
[07:46:35] tristanp_: has joined #ruby
[07:50:09] pawnbox: has joined #ruby
[07:51:22] tristanm_: has joined #ruby
[07:52:14] Caerus: hello #ruby
[07:54:07] UKn0Me: hi Caerus
[08:00:20] n1x-nz: has joined #ruby
[08:01:02] tristanp: has joined #ruby
[08:03:55] mikecmpbll: has joined #ruby
[08:04:07] nobitanobi: has joined #ruby
[08:05:21] joonty: has joined #ruby
[08:05:44] madgen: has joined #ruby
[08:09:05] alfie_max15: has joined #ruby
[08:09:09] charliesome: has joined #ruby
[08:11:16] edwinvdgraaf: has joined #ruby
[08:14:07] rkoller: has joined #ruby
[08:15:40] postmodern: has joined #ruby
[08:17:39] skade: has joined #ruby
[08:18:46] tomphp: has joined #ruby
[08:18:53] edwinvdgraaf: has joined #ruby
[08:20:14] blackmesa: has joined #ruby
[08:20:15] tristanp_: has joined #ruby
[08:23:52] tristanp: has joined #ruby
[08:24:52] stardiviner: has joined #ruby
[08:26:09] terlar: has joined #ruby
[08:27:44] platzhirsch: has joined #ruby
[08:28:12] nankyokusei: has joined #ruby
[08:28:39] Devalo: has joined #ruby
[08:31:26] p0p0pr37_: has joined #ruby
[08:32:53] mikecmpbll: has joined #ruby
[08:33:36] evidex: has joined #ruby
[08:34:31] charliesome: has joined #ruby
[08:36:27] blaxter: has joined #ruby
[08:36:51] startupality: has joined #ruby
[08:38:11] zacts: has joined #ruby
[08:39:00] FooMunki: has joined #ruby
[08:39:00] neanderslob: has joined #ruby
[08:39:40] norc: has joined #ruby
[08:39:59] phredus_: has joined #ruby
[08:40:09] norc: Why the heck are ivar tables for a class initialized the first time any object of that class defines an ivar..
[08:40:11] norc: ACTION sighs
[08:41:06] Shashikant86: has joined #ruby
[08:43:37] norc: Considering a class only makes sense if you want to instantiate it, and that is only useful if you want to carry state..
[08:43:37] flopsec: has joined #ruby
[08:43:48] Shashikant86: has joined #ruby
[08:45:59] alfie_max15: has joined #ruby
[08:46:27] tristanp: has joined #ruby
[08:46:40] jancel: has joined #ruby
[08:49:57] hightower3: has joined #ruby
[08:50:08] jaguarmagenta: has joined #ruby
[08:50:08] hightower3: Hey what is a double-quoted variant of %w() ?
[08:50:18] Caerus: 1.5gbs of ram make a whole lot of difference, now i can get back to studying ruby :)
[08:50:30] hightower3: found it, %W
[08:50:42] Caerus: beat me :P
[08:50:55] alfie_max15: Caerus, what's that?
[08:51:08] alfie_max15: what's diff btw %w & %W ?
[08:51:41] Caerus: you cant insert variables with single quoted strings
[08:51:58] norc: Interesting, %W seems not to be documented
[08:52:00] norc: http://ruby-doc.org/core-2.3.0/doc/syntax/literals_rdoc.html
[08:52:12] Caerus: namely 'variable interpolation'
[08:52:23] kareeoleez: has joined #ruby
[08:52:36] norc: Oh no it is.
[08:52:48] alfie_max15: oh, ok... thanks Caerus :)
[08:53:14] norc: alfie_max15: It is the same difference between '' and "". Interpolation *and* escaped characters.
[08:53:45] alfie_max15: got it, didn't know %W even existed
[08:55:42] Gasher: has joined #ruby
[08:55:58] Caerus: >> a = "A"; puts %w{ this is a #{a} }
[08:55:59] ruby[bot]: Caerus: # => this ...check link for more (https://eval.in/576807)
[08:56:08] Caerus: >> a = "A"; puts %W{ this is a #{a} }
[08:56:09] ruby[bot]: Caerus: # => this ...check link for more (https://eval.in/576808)
[08:56:15] jaguarmagenta: has joined #ruby
[08:57:29] tristanp: has joined #ruby
[08:57:46] eGGshke: has joined #ruby
[08:59:03] mymosh: has joined #ruby
[09:04:30] startupality: has joined #ruby
[09:04:46] asktodd: has joined #ruby
[09:06:14] vdamewood: has joined #ruby
[09:06:40] madgen: has joined #ruby
[09:06:41] snowy: has joined #ruby
[09:06:50] mymosh: has left #ruby: ()
[09:07:48] troulouliou_div2: has joined #ruby
[09:08:19] DaniG2k: has joined #ruby
[09:08:41] Macaveli: has joined #ruby
[09:09:25] chouhoulis: has joined #ruby
[09:09:28] blackmesa: has joined #ruby
[09:11:18] goeast: has joined #ruby
[09:12:06] elementaru: has joined #ruby
[09:14:23] c355E3B: has joined #ruby
[09:15:54] workmad3: has joined #ruby
[09:17:23] tristanp: has joined #ruby
[09:19:24] giz|work: has joined #ruby
[09:20:38] jhass: spare the puts and would've shown inline ;)
[09:20:41] weckl: has joined #ruby
[09:23:34] Snowy_: has joined #ruby
[09:23:43] startupality: has joined #ruby
[09:23:49] GarethAdams: has joined #ruby
[09:23:53] GarethAdams: has joined #ruby
[09:24:40] evidex: has joined #ruby
[09:25:20] tacit7: has joined #ruby
[09:25:52] adac: has joined #ruby
[09:27:00] pawnbox: has joined #ruby
[09:29:53] tristanp_: has joined #ruby
[09:31:09] pawnbox: has joined #ruby
[09:31:13] GeekNerd: has joined #ruby
[09:31:19] GeekNerd: has left #ruby: ("Leaving")
[09:31:53] tristanp: has joined #ruby
[09:34:14] joonty: has joined #ruby
[09:34:47] evidex: has joined #ruby
[09:37:00] LoneHermit: has joined #ruby
[09:38:26] alfie_max15: has joined #ruby
[09:38:47] yude: has joined #ruby
[09:38:48] yude_: has joined #ruby
[09:42:28] antgel: has joined #ruby
[09:44:58] jenrzzz: has joined #ruby
[09:45:07] Shashikant86: has joined #ruby
[09:48:59] ishe: has joined #ruby
[09:49:56] dANOKELOFF: has joined #ruby
[09:50:56] allcentury: has joined #ruby
[09:51:24] |ifei5good: has joined #ruby
[09:51:40] Macaveli: has joined #ruby
[09:52:26] bluOxigen: has joined #ruby
[09:53:34] ocbtec: has joined #ruby
[09:54:06] diegoaguilar: has joined #ruby
[09:56:58] Shashikant86: has joined #ruby
[09:57:07] Water-4`: has joined #ruby
[10:00:42] mdw: has joined #ruby
[10:01:56] Anuj__: has joined #ruby
[10:02:48] tristanp: has joined #ruby
[10:05:01] Ishido: has joined #ruby
[10:06:38] startupality: has joined #ruby
[10:10:01] stannard: has joined #ruby
[10:10:44] tristanp_: has joined #ruby
[10:12:58] jeanlinux: has joined #ruby
[10:13:02] tristanp: has joined #ruby
[10:13:04] egglo: has joined #ruby
[10:14:01] davedev24: has joined #ruby
[10:15:52] craigp_: has joined #ruby
[10:16:51] blackgoat: has joined #ruby
[10:16:56] tristanp_: has joined #ruby
[10:18:55] kareeoleez: has joined #ruby
[10:19:16] cyclonis_: has joined #ruby
[10:20:13] jeanlinux: has joined #ruby
[10:22:31] bronson: has joined #ruby
[10:23:17] startupality: has joined #ruby
[10:25:01] tristanp: has joined #ruby
[10:25:54] andikr: has joined #ruby
[10:27:03] DoubleMalt: has joined #ruby
[10:29:14] nankyokusei: has joined #ruby
[10:29:55] hk238: has joined #ruby
[10:30:24] sdothum: has joined #ruby
[10:31:54] tristanp: has joined #ruby
[10:34:23] CausaMortis: has joined #ruby
[10:38:14] jeanlinux: has joined #ruby
[10:41:05] GodFather_: has joined #ruby
[10:43:49] troulouliou_divn: has joined #ruby
[10:44:45] Azure: has joined #ruby
[10:45:40] jenrzzz: has joined #ruby
[10:45:40] jenrzzz: has joined #ruby
[10:46:41] diegoaguilar: has joined #ruby
[10:47:45] startupality: has joined #ruby
[10:48:45] skingsbu: has joined #ruby
[10:51:09] tristanp_: has joined #ruby
[10:54:02] Shashikant86: has joined #ruby
[10:55:09] LinuxHippie: has joined #ruby
[10:55:42] tristanp: has joined #ruby
[10:55:42] vondruch_: has joined #ruby
[10:55:55] rubirc: how do i create a hash from another hash?
[10:56:22] alfie_max15: rubirc, can you be more specific??
[10:57:21] rubirc: I have a 'special' hash class, i want to create an instance and pass just a normal hash
[10:57:26] tristanp_: has joined #ruby
[10:57:31] rubirc: it should take the value of it and apply it to itself
[10:57:59] conta: has joined #ruby
[10:58:02] alfie_max15: what do you have so far??
[10:58:19] jmignault: has joined #ruby
[10:58:31] tvw: has joined #ruby
[10:59:38] tristanm_: has joined #ruby
[10:59:42] sepp2k: has joined #ruby
[11:00:39] rubirc: alfie_max15: http://pastebin.com/x7rTDWR8
[11:00:41] ruby[bot]: rubirc: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/2c130c56b1ec5b7200c088b9aecbe656
[11:00:42] ruby[bot]: rubirc: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[11:01:31] rubirc: handy bot
[11:01:42] tristanp: has joined #ruby
[11:03:51] lxsameer: is there any solution to run a piece of code when inheriting from a class on the child class?
[11:04:05] Caerus: rubirc, you're using the hash class as parent. you should be able to .new() like any other hash
[11:04:44] Caerus: rubirc, with the code you gave you're just extending hash so might as well do that instead of renaming :)
[11:05:12] freerobby: has joined #ruby
[11:05:41] tristanp_: has joined #ruby
[11:05:50] beilabs: has joined #ruby
[11:06:31] raz: has joined #ruby
[11:06:39] beilabs: has joined #ruby
[11:06:41] raz: yay, rubocop -a just broke my code
[11:07:07] fenre: has joined #ruby
[11:08:27] Macaveli: has joined #ruby
[11:08:39] beilabs: has joined #ruby
[11:08:53] blingrang: has joined #ruby
[11:08:55] craigp: has joined #ruby
[11:09:30] beilabs: has joined #ruby
[11:10:32] apeiros: rubirc: don't implement respond_to, implement respond_to_missing
[11:11:01] apeiros: rubirc: and you can convert your hash to a normal hash by calling .to_h on it
[11:11:14] Zarthus: raz: luckily version control unbreaks everything!
[11:11:18] Guest-ru: has joined #ruby
[11:11:34] rodfersou: has joined #ruby
[11:11:38] raz: yep, curiously i can not reproduce it with a simple test-case, though. maybe they fixed that in rubocop in the past few days.
[11:11:48] raz: it changed $? != 0 into $CHILD_STATUS != 0
[11:11:50] apeiros: >> class Y < Hash; end; Y.new.to_h.class # @rubirc
[11:11:51] ruby[bot]: apeiros: # => Hash (https://eval.in/576887)
[11:11:55] raz: but the two are not the same
[11:12:39] Zarthus: https://github.com/ruby/ruby/blob/trunk/lib/English.rb#L40 they sort of are - did you misconfigure a cop?
[11:14:15] tessi_zz: has joined #ruby
[11:14:41] startupality: has joined #ruby
[11:15:40] AlexJakeGreen: has joined #ruby
[11:17:13] blaxter: has joined #ruby
[11:17:18] Caerus: oh hai apeiros
[11:18:48] snowy: has joined #ruby
[11:19:06] kies: has joined #ruby
[11:19:16] GodFather__: has joined #ruby
[11:19:55] nhhc: has joined #ruby
[11:22:00] griffindy: has joined #ruby
[11:23:21] Biopandemic: has joined #ruby
[11:25:01] Fernando-Basso: has joined #ruby
[11:25:29] LoneHermit: has joined #ruby
[11:26:26] tacit7: has joined #ruby
[11:27:35] jnoob22: has joined #ruby
[11:28:13] blackmesa: has joined #ruby
[11:28:34] tristanp: has joined #ruby
[11:29:31] ldnunes: has joined #ruby
[11:29:43] johnmilton: has joined #ruby
[11:30:04] Biopandemic: has joined #ruby
[11:30:49] d0lph1n98: has joined #ruby
[11:30:53] rabbel: has left #ruby: ()
[11:31:23] mistermocha: has joined #ruby
[11:32:19] blingrang: has joined #ruby
[11:32:58] tristanp: has joined #ruby
[11:35:24] stardiviner: has joined #ruby
[11:35:53] k3rn31: has joined #ruby
[11:36:59] AlexJakeGreen: has joined #ruby
[11:37:18] zotherstupidguy: has joined #ruby
[11:38:53] CloCkWeRX: has joined #ruby
[11:39:08] beilabs: has joined #ruby
[11:39:40] jmignault: has joined #ruby
[11:39:41] apeiros: ohai Caerus
[11:41:00] wpp: has joined #ruby
[11:42:15] Caerus: had to take a break while the ram was on its way
[11:42:20] maatt83: has joined #ruby
[11:42:47] Ropeney: has joined #ruby
[11:42:55] binaryplease: has joined #ruby
[11:43:35] Laos: has joined #ruby
[11:44:10] giz|work: has joined #ruby
[11:44:28] maatt83: Why do I get this :table key when converting OpenStruct in to json? http://pastebin.com/1ewgSi8H
[11:44:29] ruby[bot]: maatt83: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/711f3f37fb45eec799d17267302a0eaf
[11:44:30] ruby[bot]: maatt83: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[11:45:26] maatt83: Why do I get this :table key when converting OpenStruct to json? https://gist.github.com/anonymous/711f3f37fb45eec799d17267302a0eaf
[11:45:38] solars: has joined #ruby
[11:46:06] blackgoat: has joined #ruby
[11:46:25] nadir: has joined #ruby
[11:47:39] k3rn31: has joined #ruby
[11:47:45] jenrzzz: has joined #ruby
[11:47:47] tristanp_: has joined #ruby
[11:48:21] auwooo-0x71: has joined #ruby
[11:48:55] apeiros: maatt83: using rails?
[11:49:44] maatt83: apeiros: yes. wrong channel?! :)
[11:49:54] tAn: has joined #ruby
[11:50:17] apeiros: yes. at the very least omitted important context.
[11:50:42] Gasher: has joined #ruby
[11:51:01] apeiros: but for the question you asked I can give you an answer: because that's how rails' to_json is defined for OpenStruct
[11:51:29] ishe: has joined #ruby
[11:51:30] chouhoulis: has joined #ruby
[11:51:34] eGGshke: has joined #ruby
[11:52:38] Shashikant86: has joined #ruby
[11:52:40] solars: has joined #ruby
[11:53:15] Biopandemic: has joined #ruby
[11:54:46] maatt83: apeiros: thanks
[11:55:39] tristanp_: has joined #ruby
[11:58:39] CloCkWeRX: has joined #ruby
[11:58:56] GodFather__: has joined #ruby
[11:59:19] Hanmac: has joined #ruby
[12:00:42] norc: apeiros: Not rails but ruby.
[12:01:22] apeiros: ruby's to_json differs
[12:01:38] apeiros: OpenStruct.new(foo: 'bar').to_json # => "\"#<OpenStruct foo=\\\"bar\\\">\""
[12:02:06] norc: apeiros: Oh well I should have corrected more precisely. The important bit is Object#to_json, as it iterates over instance variables (which @table is)
[12:02:22] apeiros: correct. but that's rails' behavior ;-)
[12:02:38] apeiros: and now would be a good time to point out that maatt83 cross posted without announcing
[12:02:48] startupality: has joined #ruby
[12:03:02] apeiros: and maatt83, ^ is the reason why it's considered rude to not announce cross-posts in all affected channels.
[12:04:23] AlexJakeGreen: has joined #ruby
[12:04:29] maucar: has joined #ruby
[12:04:42] maatt83: well, sorry about that!!
[12:05:30] ishe: has joined #ruby
[12:07:30] startupality: has joined #ruby
[12:07:33] Macaveli: has joined #ruby
[12:07:58] skalfyfan: has joined #ruby
[12:08:14] solars: has joined #ruby
[12:08:30] GBrawl: has joined #ruby
[12:08:37] jaguarmagenta: has joined #ruby
[12:11:11] synthroid: has joined #ruby
[12:11:59] symm-: has joined #ruby
[12:12:21] banister: has joined #ruby
[12:14:27] GarethAdams: has joined #ruby
[12:15:01] zenlot6: has joined #ruby
[12:15:45] startupality: has joined #ruby
[12:15:57] wolfedale: has joined #ruby
[12:18:00] gfvcastro: has joined #ruby
[12:18:20] Laos: has joined #ruby
[12:20:19] mdw: has joined #ruby
[12:21:55] tristanp: has joined #ruby
[12:22:20] fmcgeough: has joined #ruby
[12:22:47] jancel: has joined #ruby
[12:24:31] crystal77: has joined #ruby
[12:24:53] platzhirsch: has joined #ruby
[12:25:46] kristoff_: has joined #ruby
[12:25:49] gfvcastro: has joined #ruby
[12:26:56] startupality: has joined #ruby
[12:26:58] tacit7: has joined #ruby
[12:28:33] tristanp: has joined #ruby
[12:30:08] nankyokusei: has joined #ruby
[12:32:29] Arcaire: has joined #ruby
[12:33:50] tristanp: has joined #ruby
[12:34:13] donske: has joined #ruby
[12:35:44] startupality: has joined #ruby
[12:36:35] maucar: has joined #ruby
[12:37:42] jessu: has joined #ruby
[12:39:06] stardiviner: has joined #ruby
[12:39:12] Biopandemic: has joined #ruby
[12:39:17] craigp: has joined #ruby
[12:39:32] tuelz: has joined #ruby
[12:40:33] Caerus: see ya later #ruby
[12:41:06] vondruch: has joined #ruby
[12:42:21] tristanp_: has joined #ruby
[12:42:48] Laos: has joined #ruby
[12:45:18] banister: has joined #ruby
[12:45:19] tristanp: has joined #ruby
[12:47:07] stardiviner: has joined #ruby
[12:47:09] malconis: has joined #ruby
[12:47:34] tristanp_: has joined #ruby
[12:47:59] malconis: has joined #ruby
[12:48:43] AlexJakeGreen: has joined #ruby
[12:49:18] jenrzzz: has joined #ruby
[12:49:52] yude: has joined #ruby
[12:50:05] gfvcastro: has joined #ruby
[12:51:40] tristanp: has joined #ruby
[12:52:15] c0mrad3: has joined #ruby
[12:53:35] tristanp_: has joined #ruby
[12:54:05] hutch34: has joined #ruby
[12:54:44] ChiefAlexander: has joined #ruby
[12:54:49] ramortegui: has joined #ruby
[12:56:45] tristanp: has joined #ruby
[12:58:55] mtkd: has joined #ruby
[13:00:25] banister: has joined #ruby
[13:02:22] fenre: has joined #ruby
[13:03:24] alfie_max15: has joined #ruby
[13:04:38] tacit7: has joined #ruby
[13:07:28] strigon33: has joined #ruby
[13:10:17] moos3_: has joined #ruby
[13:11:52] aegis3121: has joined #ruby
[13:13:31] ptx0: has joined #ruby
[13:13:53] LoneHerm_: has joined #ruby
[13:17:37] wolfedale: has joined #ruby
[13:18:04] apeiros: hi wolfedale
[13:18:24] wolfedale: There is a simply way to send an e-mail from ruby using mail-source-file ?
[13:18:44] apeiros: the mail gem can do that
[13:18:48] tristanp_: has joined #ruby
[13:18:54] wolfedale: I did few tests with mikel/mail gem but it's changing my headers.
[13:19:01] wolfedale: So I cannot really use it now.
[13:19:41] apeiros: do you have an example demonstrating said change of headers?
[13:19:55] wolfedale: apeiros: yes, just added comment to the bug list: https://github.com/mikel/mail/issues/919
[13:20:03] tessi_zz: has joined #ruby
[13:20:12] pawnbox: has joined #ruby
[13:20:22] joonty: has joined #ruby
[13:21:23] apeiros: ok, that sounds like an actual issue and not just a misunderstanding of how the gem or mail in general works
[13:21:37] wolfedale: And I'm trying to avoid of saving each STDIN content of my e-mail to the temp file and use sendmail for it :(
[13:21:49] apeiros: I guess you could use Net::SMTP, but I don't think that's going to be simple
[13:22:33] wolfedale: is it possible to use sendmail from ruby like: IO.popen('sendmail') { |proc| ... ?
[13:22:49] apeiros: should be, yes
[13:22:51] wolfedale: if I have my e-mail in STDIN.read, well some variable?
[13:22:58] skade: has joined #ruby
[13:24:07] senayar: has joined #ruby
[13:24:07] senayar: has joined #ruby
[13:24:14] gareth_: has joined #ruby
[13:25:12] bronson: has joined #ruby
[13:29:07] gareth_: has joined #ruby
[13:30:06] GarethAdams: has joined #ruby
[13:30:06] tristanp: has joined #ruby
[13:30:22] kobain: has joined #ruby
[13:30:56] jrafanie: has joined #ruby
[13:31:23] gfvcastro: has joined #ruby
[13:33:27] superlou: has joined #ruby
[13:34:18] tristanp: has joined #ruby
[13:34:44] gfvcastro: has joined #ruby
[13:35:42] solars: has joined #ruby
[13:36:30] jrafanie_: has joined #ruby
[13:37:09] duckpuppy: has joined #ruby
[13:37:38] NorthernHorse: has joined #ruby
[13:37:57] lxsameer: has joined #ruby
[13:40:31] dhk: has joined #ruby
[13:42:07] stardiviner: has joined #ruby
[13:42:36] Cork: hmm running fork in a thin server causes the pid file for the server to be removed when the fork ends
[13:42:44] Cork: anyone have an idea how to get around that?
[13:44:48] tristanp_: has joined #ruby
[13:44:59] vondruch: has joined #ruby
[13:45:25] swills: has joined #ruby
[13:45:28] jhass: probably and at_exit handler
[13:46:09] jhass: try quitting the fork with Kernel#exit!
[13:46:09] k3rn31: has joined #ruby
[13:46:34] marr: has joined #ruby
[13:46:58] tristanp: has joined #ruby
[13:48:20] SilverKey: has joined #ruby
[13:49:14] diegoviola: has joined #ruby
[13:49:26] jenrzzz: has joined #ruby
[13:50:02] chouhoulis: has joined #ruby
[13:50:23] Cork: jhass: yup that worked
[13:50:32] Cork: jhass: is there a way to remove the at_exit hook?
[13:50:34] rbennacer: has joined #ruby
[13:51:30] eGGshke: has joined #ruby
[13:51:32] rbennacer: has joined #ruby
[13:51:47] jhass: didn't notice any obvious one
[13:51:56] tristanp_: has joined #ruby
[13:52:20] ramortegui: has joined #ruby
[13:53:16] jaruga___: has joined #ruby
[13:53:23] Cork: jhass: ok, this works so thx for the help
[13:53:41] stannard: has joined #ruby
[13:53:55] wolfedale: apeiros: ok I did it :P
[13:55:01] wolfedale: apeiros: https://gist.github.com/wolfedale/8f32d6db91ce1b7362d353a440d6ff2a
[13:55:07] wolfedale: that was actually easy.
[13:55:10] cdg: has joined #ruby
[13:55:13] startupality: has joined #ruby
[13:55:23] binaryplease1: has joined #ruby
[13:55:48] bluOxigen: has joined #ruby
[13:56:03] S01780_: has joined #ruby
[13:57:04] gnufied: has joined #ruby
[13:57:35] karmatr0n: has joined #ruby
[13:58:01] freerobby: has joined #ruby
[13:58:22] startupality: has joined #ruby
[13:59:02] NorthernHorse: hello - when using associative arrays what is the following symbol called? "=>"
[13:59:18] NorthernHorse: Eg:grades = { "Jane Doe" => 10, "Jim Doe" => 6 }
[13:59:50] k3rn31_: has joined #ruby
[14:00:17] threh: has joined #ruby
[14:04:28] havenwood: NorthernHorse: It's called a "Hash" in Ruby and those are "Hash rockets"
[14:04:49] A124: Is that a rocket in my pocket?
[14:04:55] NorthernHorse: havenwood: thank you!
[14:05:10] SilverKey: has joined #ruby
[14:08:06] blackmesa: has joined #ruby
[14:09:02] dopamean_: has joined #ruby
[14:10:26] banister: has joined #ruby
[14:11:11] axl_: has joined #ruby
[14:11:35] kareeoleez: has joined #ruby
[14:11:58] Es0teric: has joined #ruby
[14:15:12] stannard: has joined #ruby
[14:16:56] vondruch: has joined #ruby
[14:17:07] tristanp: has joined #ruby
[14:17:26] nando293921: has joined #ruby
[14:18:40] axl__: has joined #ruby
[14:20:13] tristanp_: has joined #ruby
[14:20:53] solars: has joined #ruby
[14:21:08] shevy: A124 no it is a socket in your pocket
[14:22:08] tristanm_: has joined #ruby
[14:22:49] axl_: has joined #ruby
[14:23:07] gfvcastro: has joined #ruby
[14:24:00] roamingdog: has joined #ruby
[14:24:45] hutch34_: has joined #ruby
[14:26:14] allcentury: has joined #ruby
[14:26:54] tristanp_: has joined #ruby
[14:30:41] Es0teric: has joined #ruby
[14:31:00] nankyokusei: has joined #ruby
[14:33:56] dhollinger: has joined #ruby
[14:34:02] tristanp: has joined #ruby
[14:34:11] maloik: has joined #ruby
[14:35:50] alfie_max15: has joined #ruby
[14:36:40] tacit7`: has joined #ruby
[14:37:02] madgen: has joined #ruby
[14:39:23] cdg_: has joined #ruby
[14:41:25] xuex: has joined #ruby
[14:46:05] mdw: has joined #ruby
[14:47:12] A124: apeiros I am out of luck trying to do the recursive conversion to hash.
[14:48:00] apeiros: A124: gist your current approach then
[14:48:24] tacit7``: has joined #ruby
[14:48:29] tristanp: has joined #ruby
[14:48:30] A124: apeiros I tried more approaches so not sure if worthy, also do not have gist.
[14:48:47] nettoweb: has joined #ruby
[14:48:52] apeiros: um, you have a browser I supposed? gist.github.com
[14:49:01] jeanlinux: has joined #ruby
[14:49:04] rippa: has joined #ruby
[14:49:20] apeiros: and if you have multiple approaches - gist the one you thought was the best. or gist multiple.
[14:50:34] jenrzzz: has joined #ruby
[14:51:45] A124: apeiros https://paste.fedoraproject.org/370724/41878991/
[14:51:48] Devalo: has joined #ruby
[14:52:22] apeiros: no need for send there, unless you're using an outdated ruby
[14:52:24] A124: OpenStruct to Hash recursively would help also.
[14:53:02] A124: I am using 1.8 upwards, depends on environment
[14:53:22] idefine: has joined #ruby
[14:53:22] apeiros: you're aware that 1.8 and 1.9 are beyond EOL?
[14:53:28] eGGshke_: has joined #ruby
[14:53:47] A124: Currently 2.2.1, but certain situations yes. I am
[14:53:57] apeiros: can you add a small piece of data to reproduce your problem?
[14:54:02] idefine: has joined #ruby
[14:54:05] tuelz: has joined #ruby
[14:54:39] A124: Let me make that generic then.
[14:55:33] SilverKey: has joined #ruby
[14:55:35] pandaant: has joined #ruby
[14:57:14] anisha_: has joined #ruby
[14:57:51] flughafen_: has joined #ruby
[14:58:05] stannard: has joined #ruby
[14:58:08] Coldblackice: has joined #ruby
[14:58:31] habitullence: has joined #ruby
[14:58:32] v0n: has joined #ruby
[14:58:40] tacit7``: has joined #ruby
[14:58:57] apeiros: A124: https://gist.github.com/apeiros/0a7b84f190ab2862136988002ea6bf86
[14:59:05] snockerton: has joined #ruby
[14:59:13] imperator: has joined #ruby
[14:59:41] xuex: has joined #ruby
[15:02:07] apeiros: personally I'd use refinements, but that won't work on ruby <2.1
[15:02:26] jeanlinux: has joined #ruby
[15:02:37] ocbtec: has joined #ruby
[15:03:04] A124: apeiros Object.send(:include, ToHash) makes havoc on classes like string
[15:03:33] apeiros: it does not
[15:03:45] apeiros: but if it would, refinements would help
[15:04:02] A124: ruby-2.2.1/lib/ruby/2.2.0/irb/workspace.rb:106:in `sub': can't convert String to Hash (String#to_hash gives String) (TypeError)
[15:04:15] A124: Test data :https://paste.fedoraproject.org/370733/88610146/
[15:04:37] apeiros: um, you did notice that I didn't call my method "to_hash", yes?
[15:06:16] apeiros: if you don't want to patch Object, you'll have to replace every v.to_recursive_hash with `if v.respond_to?(:to_recursive_hash) then v.to_recursive_hash elsif v.respond_to?(:to_h) then v.to_h else v end`
[15:07:10] theunraveler: has joined #ruby
[15:07:30] zast: has joined #ruby
[15:07:39] apeiros: you can also always make it a pseudo-function and not patch any class. but then you'll have to handle the recursion within that method. e.g. ToHash.convert(value)
[15:08:22] A124: Yeah, I missed that, too much open stuff. But still does not work, as it is not generic struct. But when I convert to openstruct then to hash gives empty output.
[15:08:37] futilegames: has joined #ruby
[15:08:43] lukec: has joined #ruby
[15:09:11] Es0teric: has joined #ruby
[15:09:15] beilabs: has joined #ruby
[15:09:36] weemsledeux: has joined #ruby
[15:10:12] Es0teric: has joined #ruby
[15:10:36] v0n: has joined #ruby
[15:10:44] frem_: has joined #ruby
[15:10:55] chopin: has joined #ruby
[15:10:56] A124: apeiros https://paste.fedoraproject.org/370740/89040146/
[15:11:31] lxsameer: has joined #ruby
[15:11:31] lxsameer: has joined #ruby
[15:11:38] A124: The bottom is converted to ostruct, calling upon to_recursive_hash gives nil. Will look into refinements, thanks for tip.
[15:13:00] aegis3121: has joined #ruby
[15:13:07] apeiros: your problem is with your open windows I think
[15:13:12] kgrz: has joined #ruby
[15:13:17] apeiros: because none of your examples gives nil with my code.
[15:13:43] gheegh: has joined #ruby
[15:14:09] idefine: has joined #ruby
[15:15:56] blackmesa: has joined #ruby
[15:16:40] apeiros: there: https://gist.github.com/apeiros/0a7b84f190ab2862136988002ea6bf86
[15:16:47] apeiros: no patching. and works with both of your examples.
[15:16:48] yardenbar: has joined #ruby
[15:16:58] apeiros: only tested with ruby 2.3, I don't do old rubies.
[15:18:38] tvw: has joined #ruby
[15:23:07] tristanp: has joined #ruby
[15:23:21] kareeoleez: has joined #ruby
[15:25:29] A124: apeiros You are right, no idea where the problem was, but with clean irb it works! And the second one also, Ruby 2.2.1
[15:28:59] kam270: has joined #ruby
[15:30:27] A124: Thank you very much. Refinements are handy to know, I missed them, did not use >= 2.1 recently more.
[15:32:04] scottschecter: has joined #ruby
[15:32:08] stardiviner: has joined #ruby
[15:34:17] tristanp: has joined #ruby
[15:35:10] codecop: has joined #ruby
[15:35:37] Es0teric_: has joined #ruby
[15:36:13] Cohedrin: has joined #ruby
[15:38:20] JesseH: has joined #ruby
[15:40:05] smathy: has joined #ruby
[15:42:45] symm-: has joined #ruby
[15:44:22] phutchins: has joined #ruby
[15:45:12] RobertBirnie: has joined #ruby
[15:45:52] phutchins: I'm trying to do something like.... if var['bleh']['myarg'] then mystring += "-" + var['bleh']['myarg']
[15:46:19] phutchins: But, if var['bleh']['myarg'] is nil, it fails saying undefined method + for nilclass... What is the proper way to do that?
[15:47:22] gregf_: mystring += "-" + (var['bleh']['myarg'] ||'')?
[15:47:23] ponga: has joined #ruby
[15:47:25] nettoweb: has joined #ruby
[15:47:31] phutchins: gregf_: ahhhh, thanks
[15:47:43] A124: phutchins << is faster then concatenation.
[15:47:52] watersoul: has joined #ruby
[15:48:55] A124: gregf_ you missed one thing, if it is nil, it is never evaluated.
[15:49:02] jancel: has joined #ruby
[15:49:03] phutchins: gregf_: actually in that case it still adds the '-' tho, which I only want to add if the variable is defined... so could I do mystring += ("-" + var['bleh']['myarg'] || '')?
[15:49:35] A124: phutchins You provided wrong example or I missed something.
[15:49:55] gregf_: >> a = "foo"; puts a.__id__; b = nil; a << "-" << ( b || "" ); puts a.__id__, a
[15:49:55] ruby[bot]: gregf_: # => 547122410 ...check link for more (https://eval.in/577154)
[15:50:51] phutchins: A124: How so?
[15:51:09] skalfyfan: has joined #ruby
[15:51:11] gregf_: phutchins: ah - ok
[15:51:14] jenrzzz: has joined #ruby
[15:51:14] jenrzzz: has joined #ruby
[15:51:25] phutchins: A124: So basically, I have a version string. Something like "v0.7.3". If another attribute is set, I want to add a dash and then that attribute on to the end of the version string
[15:51:48] phutchins: So... If no attribute is set, it would be v0.7.3. If the attribute is set to STAGING, it would end up giving me v0.7.3-STAGING
[15:51:58] phutchins: The key is that I don't want the dash if the attribute is not set.
[15:52:01] hobodave: has joined #ruby
[15:52:19] phutchins: A124: and yeah, << is faster but not extremely worried about that atm.
[15:52:28] gregf_: phutchins: a << (!b.nil? ? "-" : "")
[15:52:33] norc-2: >> str = "ab"; if a = [?c]; str << a; end
[15:52:34] ruby[bot]: norc__: # => /tmp/execpad-300189f52f4c/source-300189f52f4c:2: warning: found = in conditional, should be == ...check link for more (https://eval.in/577156)
[15:52:41] ishe: has left #ruby: ("ERC (IRC client for Emacs 24.5.1)")
[15:52:44] norc-2: ^- phutchins
[15:52:52] phutchins: gregf_: Ah, yeah that looks like it might work. let me give it a shot
[15:53:03] norc-2: >> str = "ab"; if a = [?c][0]; str << a; end # phutchins
[15:53:04] ruby[bot]: norc__: # => "abc" (https://eval.in/577157)
[15:53:07] idefine_: has joined #ruby
[15:53:15] norc-2: That is at least readable.
[15:53:15] phutchins: norc__: yeah, typo on m y part.
[15:53:51] norc-2: Any attempt to mess with ternary or binary operators might be a bit more compact but ultimately hides your intent and makes it really hard to read.
[15:54:24] mradmacher: has joined #ruby
[15:54:34] amclain: has joined #ruby
[15:54:36] hobodave: hi guys, I'm having trouble figuring out how to clean up after using ActiveSupport::Subscriber.attach_to in a spec. The attachment (understandably) persists across tests and causes test pollution.
[15:54:43] norc-2: ?rubyonrails
[15:54:43] ruby[bot]: norc__: I don't know anything about rubyonrails
[15:54:47] hobodave: gist inbound
[15:54:50] ruby[bot]: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[15:54:51] A124: phutchins So your example was wrong, it did use twice the same value, both in conditional and later.
[15:55:05] ruby[bot]: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[15:55:11] hobodave: clicked wrong room, thanks!
[15:56:10] gregf_: >> [nil, 100].map { |b| a = "foo"; a << ("-" << (!b.nil? ? b : "")); p a } # phutchins: got that so wrong :|. *been writing some php* :|.
[15:56:11] ruby[bot]: gregf_: # => "foo-" ...check link for more (https://eval.in/577158)
[15:57:04] Guest38: has joined #ruby
[15:57:10] hutch34_: has joined #ruby
[15:57:14] dionysus69: has joined #ruby
[15:57:22] phutchins: gregf_: haha :)
[15:58:03] binaryplease: has joined #ruby
[15:58:27] phutchins: gregf_: storj_protocol << (!node['bridge-api']['protocol'].nil? ? "-" : "")
[15:58:28] terminalrecluse: has joined #ruby
[15:58:30] gregf_: there even ("-" << b || '')
[15:58:37] phutchins: That gives me undefined method << for nilclass
[15:58:45] kgrz: has joined #ruby
[15:59:18] hobodave_: has joined #ruby
[15:59:48] idefine: has joined #ruby
[16:00:07] gregf_: >> [nil, 100].each { |b| p b ;a = "foo"; a << "- #{b || ""}"; p a }
[16:00:08] ruby[bot]: gregf_: # => nil ...check link for more (https://eval.in/577159)
[16:00:40] mistermocha: has joined #ruby
[16:00:47] tristanp: has left #ruby: ()
[16:00:48] kgrz: has joined #ruby
[16:00:55] gtsai: has joined #ruby
[16:01:47] kgrz: has joined #ruby
[16:01:48] whathappens: has joined #ruby
[16:02:15] tristanp: has joined #ruby
[16:02:21] LoneHermit: has joined #ruby
[16:02:46] gregf_: phutchins: sorry, what you want is : if node['bridge-api']['protocol'] is set return "- node['bridge-api']['protocol']" else "" ?
[16:03:58] phutchins: gregf_: so if node['bridge-api']['protocol'] is set, return "-" + node['bridge-api']['protocol']. If it's not set, dont' return anything (or blank string)
[16:04:24] kareeoleez: has joined #ruby
[16:04:39] phutchins: >> version = "v0.7.3"; env = "STAGING"; protocol = version << ("-" << env || '')
[16:04:40] ruby[bot]: phutchins: # => "v0.7.3-STAGING" (https://eval.in/577170)
[16:04:54] smathy: >> var = {}; "-#{var.dig "bleh", "myarg"}"
[16:04:55] ruby[bot]: smathy: # => "-" (https://eval.in/577171)
[16:04:55] phutchins: >> version = "v0.7.3"; env = nil; protocol = version << ("-" << env || '')
[16:04:56] ruby[bot]: phutchins: # => no implicit conversion of nil into String (TypeError) ...check link for more (https://eval.in/577172)
[16:05:09] phutchins: ^ Thats my problem :)
[16:05:14] kgrz: has joined #ruby
[16:05:25] [Butch]: has joined #ruby
[16:05:40] phutchins: I could just set env to "" if I don't want to have it set but still would have to do an if env == "" or something...
[16:05:42] gregf_: >> version = "v0.7.3"; env = nil; protocol = version << ("-" << (env || ''))
[16:05:43] ruby[bot]: gregf_: # => "v0.7.3-" (https://eval.in/577175)
[16:05:45] kgrz: has joined #ruby
[16:05:52] gregf_: *note the parens*
[16:06:01] phutchins: But it's still got the - , dont' want the -
[16:06:38] smathy: protocol += "-#{env}" if env
[16:06:42] gregf_: >> version = "v0.7.3"; env = nil; protocol = version << (env ? "-" << env : ''))
[16:06:43] ruby[bot]: gregf_: # => /tmp/execpad-0f6dd60707d5/source-0f6dd60707d5:2: syntax error, unexpected ')', expecting keyword_end ...check link for more (https://eval.in/577177)
[16:07:21] dopamean_: has joined #ruby
[16:07:41] hutch34_: has joined #ruby
[16:08:08] fenre: has joined #ruby
[16:08:27] benlieb: has joined #ruby
[16:09:31] phutchins: gregf_: An yeah, that seems to work!
[16:10:04] gregf_: >> [nil, 100].each{ |env| version = "v0.7.3";protocol = version << (!env.nil? ? ( "-" << env.to_s ) : ""); p protocol }
[16:10:05] ruby[bot]: gregf_: # => "v0.7.3" ...check link for more (https://eval.in/577181)
[16:10:05] phutchins: >> version = "v0.7.3"; env2 = nil; protocol = version << (env2 ? "-" << env2 : '')
[16:10:06] ruby[bot]: phutchins: # => "v0.7.3" (https://eval.in/577182)
[16:10:20] phutchins: >> version = "v0.7.3"; env2 = "STAGING"; protocol = version << (env2 ? "-" << env2 : '')
[16:10:21] ruby[bot]: phutchins: # => "v0.7.3-STAGING" (https://eval.in/577183)
[16:10:34] gtsai_: has joined #ruby
[16:11:34] phutchins: gregf_ & norc__ thanks a ton :)
[16:12:13] i: has joined #ruby
[16:13:43] blackmesa: has joined #ruby
[16:15:00] dopie: has joined #ruby
[16:15:15] skolman_: has joined #ruby
[16:15:56] ICantCook: has joined #ruby
[16:16:40] ICantCook: has joined #ruby
[16:17:14] skolman_: has joined #ruby
[16:20:31] tristanp: has joined #ruby
[16:21:41] idefine: has joined #ruby
[16:23:36] tewlmidget: has joined #ruby
[16:24:44] idefine: has joined #ruby
[16:25:44] synthroid: has joined #ruby
[16:25:55] kgrz: has joined #ruby
[16:26:10] ramfjord: has joined #ruby
[16:28:16] tristanp_: has joined #ruby
[16:28:45] tildes_: has joined #ruby
[16:31:15] [Butch]: has joined #ruby
[16:31:34] tristanp: has joined #ruby
[16:31:36] nankyokusei: has joined #ruby
[16:36:02] moeabdol: has joined #ruby
[16:38:01] nettoweb: has joined #ruby
[16:38:06] idefine: has joined #ruby
[16:38:37] jackjackdripper: has joined #ruby
[16:39:44] kgrz: has joined #ruby
[16:39:50] zenlot: has joined #ruby
[16:42:50] moeabdol: has joined #ruby
[16:44:59] ponga: has joined #ruby
[16:47:25] gregf: has joined #ruby
[16:47:26] idefine: has joined #ruby
[16:48:56] bensarz: has joined #ruby
[16:50:31] tomphp: has joined #ruby
[16:50:38] ferr: has joined #ruby
[16:51:43] zacsek_: has joined #ruby
[16:51:49] mistermocha: has joined #ruby
[16:52:06] zacsek: has joined #ruby
[16:52:12] jenrzzz: has joined #ruby
[16:53:02] mleung: has joined #ruby
[16:53:28] goeast: has joined #ruby
[16:53:59] idefine: has joined #ruby
[16:54:01] adac: has joined #ruby
[16:54:23] tristanp_: has joined #ruby
[16:55:20] mistermo_: has joined #ruby
[16:56:25] Es0teric: has joined #ruby
[16:56:48] aegis3121: has joined #ruby
[16:57:17] hahuang65: has joined #ruby
[16:57:44] stannard: has joined #ruby
[16:57:55] jancel: has joined #ruby
[16:58:08] zacsek: has joined #ruby
[16:58:49] tristanp: has joined #ruby
[17:00:43] blackmesa: has joined #ruby
[17:00:53] nando293921: has joined #ruby
[17:01:20] egglo: has joined #ruby
[17:01:29] chipotle: has joined #ruby
[17:03:04] tristanp_: has joined #ruby
[17:03:39] mikecmpbll: has joined #ruby
[17:07:24] hutch34_: has joined #ruby
[17:08:10] aswen: has joined #ruby
[17:08:31] miqlas-H: has joined #ruby
[17:09:35] miqlas-H: I'm trying to compile the latest Ruby stable for Haiku with gcc5, but it cannot find out the size of "long long". Can somebody help me, where is the problem? I got this config.log: http://termbin.com/2rl4
[17:09:52] |2701: has joined #ruby
[17:10:17] whathappens: has joined #ruby
[17:11:44] whathapp_: has joined #ruby
[17:11:50] moredhel: has joined #ruby
[17:11:59] rcvalle: has joined #ruby
[17:12:10] rbennacer: has joined #ruby
[17:12:15] jeanlinux: has joined #ruby
[17:13:48] imperator: miqlas-H, not sure, I think you might have better luck in #haiku
[17:14:02] axl_: has joined #ruby
[17:14:11] miqlas-H: imperator: tried, no luck yet
[17:14:30] last_staff: has joined #ruby
[17:15:22] chey: has joined #ruby
[17:15:27] imperator: ACTION hasn't tried haiku in a while, should look at it again
[17:15:41] solars: has joined #ruby
[17:17:02] chey: Some interpreters for android suck
[17:17:31] miqlas-H: imperator: i see this in the config.log:
[17:17:32] miqlas-H: configure:11616: ./conftest
[17:17:41] miqlas-H: runtime_loader: Cannot open file libssp.so.0: No such file or directory
[17:17:57] chey: Code that works on pc dont work for android
[17:18:03] miqlas-H: Maybe it tries to link with a lib, what not available....
[17:18:09] hightower3: has joined #ruby
[17:18:30] m_antis: has joined #ruby
[17:18:34] jhass: miqlas-H: can you show the regular configure output too? that is a bit much to go through if you don't know what you're looking for...
[17:18:49] jhack: has joined #ruby
[17:19:25] miqlas-H: jhass: give me a second...
[17:19:41] tristanp: has joined #ruby
[17:19:46] mikecmpbll: has joined #ruby
[17:20:33] miqlas-H: jhass: here is it: http://termbin.com/ngr3
[17:20:40] chey: Guys is puts "My name is ", FirstName right?
[17:20:49] djbkd: has joined #ruby
[17:20:59] miqlas-H: It looks like libssp is a part of gcc. Maybe the gcc for Haiku doesn't have this lib.
[17:21:04] conta: has joined #ruby
[17:21:11] miqlas-H: I'm grepping the whole source tree for it
[17:21:57] jhass: ?try chey
[17:21:57] ruby[bot]: chey: Why don't you try it and see for yourself?
[17:22:38] Gasher: has joined #ruby
[17:22:49] chey: It works on my pc just saying
[17:22:49] miqlas-H: No, i actually have libssp.so.0
[17:23:07] solars: has joined #ruby
[17:23:30] edwinvdgraaf: has joined #ruby
[17:24:00] bmurt: has joined #ruby
[17:24:29] chey: Cheers though guys 😄
[17:25:46] miqlas-H: chey: Thank you, now I'm sure that my IRC UTF-8 Ready (TM)
[17:26:05] Asher: has joined #ruby
[17:28:13] chey: Im using AndChat it gives UTF-8 option
[17:29:32] CloCkWeRX: has joined #ruby
[17:30:37] bronson: has joined #ruby
[17:31:40] chey: Getting a job using ruby is next to nill here sucks hu
[17:31:48] imperator: miqlas-H, quite old, but perhaps relevant? https://dev.haiku-os.org/ticket/6661
[17:32:27] mordocai: has joined #ruby
[17:32:42] miqlas-H: chey: sucks hu?
[17:33:41] chey: Yea well people dont seem to know the potential
[17:33:49] edwinvdgraaf: has joined #ruby
[17:34:00] miqlas-H: but what do you mean with "hu"?
[17:34:04] craigp: has joined #ruby
[17:34:15] synthroid: has joined #ruby
[17:34:22] mordocai: Anyone have a project they know of with lots of rspec tests I can run? I'm looking for a quick test trying to narrow down why our rspec tests are super slow on one machine and not on others (and yes, i've checked the obvious things. It doesn't appear to be CPU, disk, or memory bottlenecks so...)
[17:34:37] chey: Sorry thats my accent "Hu" means dont you think?
[17:34:59] Asher: has joined #ruby
[17:35:39] chey: No Guernsey
[17:35:45] mikecmpbll: has joined #ruby
[17:36:25] chey: Guernsey uk
[17:36:48] miqlas-H: I don't care :)
[17:37:06] miqlas-H: I know yust Scarfolk, UK.
[17:37:57] chey: Near france anyways...
[17:39:00] chey: At least coding is in english 😝
[17:39:01] SilverKey: has joined #ruby
[17:40:16] chey: Well as we say "chow f nw"
[17:40:19] machinewar: has joined #ruby
[17:40:25] chey: has left #ruby: ("Leaving")
[17:40:29] machinewar: anyone know if can create Tempfile where uniq_id is only integers?
[17:41:20] machinewar: or if maybe it does only use numbers?
[17:42:05] solars: has joined #ruby
[17:42:15] miqlas-H: imperator: this ticket looks relevant. Thank you, i reported it again with all the required info.
[17:43:19] morochena: has joined #ruby
[17:43:20] ChiefAlexander: has joined #ruby
[17:43:59] hobodave: has joined #ruby
[17:44:26] shinnya: has joined #ruby
[17:44:42] tildes_: has joined #ruby
[17:45:20] tristanp_: has joined #ruby
[17:46:36] nando293921: has joined #ruby
[17:48:33] miqlas-H: imperator: it surely relevant bugreport, because i added the folder of the missing lib to the LD_PATH, and it works now.
[17:49:24] chipotle: has joined #ruby
[17:49:30] jancel: has joined #ruby
[17:49:50] solars: has joined #ruby
[17:50:07] miqlas-H: Guys, is there any way to colorize the other configure scripts output, like the ruby configure doing it? Something, what not depends on autoconf... I mean something in bash or like that.
[17:50:50] LoneHerm_: has joined #ruby
[17:52:29] ishe: has joined #ruby
[17:53:11] jenrzzz: has joined #ruby
[17:54:10] diegoaguilar: has joined #ruby
[17:54:43] miqlas-H: OMG, now during the make: ld: miniruby: hidden symbol `__stack_chk_fail_local' isn't defined
[17:55:07] diegoaguilar: has joined #ruby
[17:56:00] spider-mario: has joined #ruby
[17:56:36] mordocai: has left #ruby: ("ERC (IRC client for Emacs 24.5.1)")
[17:57:02] jhass: smells like a libc incompatibility
[17:57:39] miqlas-H: jhass: yep, i need to report it also
[17:58:00] jhass: people seem to workaround it by turning the stack protector off
[17:58:18] jhass: CFLAGS="-fno-stack-protector -fno-stack-protector-all"
[17:58:22] miqlas-H: jhass: i'm out of ideas, what kind of programs should i try to port for Haiku. Can you tell me, what is your favorite CLI or QT4 programs?
[17:58:33] jhass: miqlas-H: Crystal :P
[17:58:56] miqlas-H: Is it depend on Ruby? Because we have just 2.2.2.
[17:59:09] jhass: nope, llvm 3.5 or 3.6 atm
[17:59:24] jhass: probably llvm 3.7 and/or 3.8 soonish
[17:59:42] miqlas-H: any URL for Crystal? It is not so unique...
[17:59:52] jhass: http://crystal-lang.org/
[18:00:01] dmr8: has joined #ruby
[18:00:33] yfeldblum: has joined #ruby
[18:00:54] miqlas-H: jhass: thanks, downloading...
[18:01:09] jhass: you need crystal to compile crystal, so that should give you some challenge :P
[18:01:25] miqlas-H: jhass: ummm, your tip isn't work for Haiku: "checking whether the C compiler works... no"
[18:01:27] jhass: (let's move that to #crystal-lang btw)
[18:01:43] jhass: was just oracled out of the first google result anyway
[18:02:49] whathapp_: has joined #ruby
[18:03:28] imperator: miqlas-H, great, glad it worked!
[18:03:28] axl_: has joined #ruby
[18:03:48] B1n4r10: has joined #ruby
[18:04:36] miqlas-H: imperator: you can tell me too your favorite cli or qt tool, and i try to compile and pakage it for Haiku
[18:04:56] miqlas-H: jhass: OMG! I hate the circualr dependecies.
[18:05:17] imperator: hm, don't really have one for qt
[18:05:36] imperator: for cli, dunno that i have a favorite, so much as what i'm using right now
[18:05:40] imperator: azure cli maybe?
[18:06:15] synthroid: has joined #ruby
[18:06:39] flughafen_: has joined #ruby
[18:07:44] gizmore: has joined #ruby
[18:08:42] FooMunki: has joined #ruby
[18:09:36] ramfjord: has joined #ruby
[18:11:12] ChiefAlexander: has joined #ruby
[18:11:56] ChiefAlexander: has joined #ruby
[18:12:06] miqlas-H: imperator and jhass: i look into them, and we'll see what can i do.
[18:12:47] miqlas-H: racket made me a big pain in the as*, so i cannot guarantee anything.
[18:13:27] tristanp: has joined #ruby
[18:13:33] whathapp_: has joined #ruby
[18:13:54] A124: What is the best way to recursively (inplace, but not requirement) modify strings in nested struct/hash/array ?
[18:14:01] miqlas-H: We got llvm, i just instaling it now.
[18:14:52] tacit7``: has joined #ruby
[18:15:26] kirun: has joined #ruby
[18:15:42] miqlas-H: jhass: does crystal require docker?
[18:15:55] miqlas-H: te .travis.yml defining it
[18:16:13] jhass: yeah, we're using docker to run in a 32bit environment on Travis
[18:16:41] jhass: easier than trying to use the lib32- madness
[18:16:55] Cohedrin: has joined #ruby
[18:17:00] miqlas-H: jhass: ok, thanks. We doesn't have docker, so i had fear...
[18:17:06] tristanp_: has joined #ruby
[18:17:14] certainty: has joined #ruby
[18:17:43] hazelux: has joined #ruby
[18:18:21] jancel: has joined #ruby
[18:18:53] miqlas-H: certainty: tell me what is your favorite cli or qt programs
[18:19:32] jenrzzz: has joined #ruby
[18:19:39] tristanp: has joined #ruby
[18:20:10] t0rc: has joined #ruby
[18:20:23] certainty: miqlas-H: hmm let me think. Favorite cli could be hmm, ghci
[18:21:28] joes: has joined #ruby
[18:21:29] miqlas-H: lemme see that...
[18:21:50] miqlas-H: I'm porting things to Haiku, but i'm out of ideas, that's why i need inputs.
[18:22:20] bmurt: has joined #ruby
[18:22:49] miqlas-H: certainty: we already got a Haskell compiler i think
[18:23:29] joes: has joined #ruby
[18:23:42] certainty: miqlas-H: ah ok. Well let me think again. What about tcpdump?
[18:25:17] miqlas-H: certainty: tcpdump i think depend on pcap, right? We don't support pcap yet
[18:25:26] certainty: yep it does
[18:25:40] miqlas-H: that's why we don't have nmap yet
[18:26:52] miqlas-H: any link to sl except second life or daimler.com?
[18:27:08] jhass: steam locomotive ;)
[18:27:26] norc-2: jhass, am I right in assuming that you are somehow involved with crystal?
[18:27:38] jhass: I do have commit rights, yeah
[18:28:03] zeroDi: has joined #ruby
[18:28:05] norc-2: I was talking about the drug, but we can also work with this topic.
[18:28:28] jhass: miqlas-H: https://github.com/mtoyoda/sl
[18:28:44] tildes_: has joined #ruby
[18:28:46] miqlas-H: norc, it is not normal, but on meth it is.
[18:29:33] miqlas-H: jhass: nobody mistyping things on Haiku. It is suicidal, because everybody have root rights.
[18:29:44] whathappens: has joined #ruby
[18:29:44] jhass: heh, really?
[18:30:39] miqlas-H: yeah, if you mistype something, your system will die. so better not mistype.
[18:31:04] miqlas-H: uid=0(user) gid=0(root) groups=0(root),101(party)
[18:31:18] certainty: miqlas-H: https://github.com/mtoyoda/sl
[18:31:45] whathappens: has joined #ruby
[18:31:52] prestorium: has joined #ruby
[18:31:56] miqlas-H: certainty: nobody makes mistakes in Haiku worlds. We don't need this utility.
[18:32:11] jhass: also you're too slow :P
[18:32:16] certainty: then, I don't know. What about tr?
[18:32:22] certainty: seems so :S
[18:32:25] miqlas-H: we are root, if we make a mistake, the whole system will die.
[18:32:36] miqlas-H: certainty: any url for that?
[18:32:42] nankyokusei: has joined #ruby
[18:32:52] jhass: it's a Gnu coreutil ...
[18:32:54] idefine: has joined #ruby
[18:33:14] jhass: or in any coreutil collection really
[18:33:16] miqlas-H: we have gnu coreutils package already.
[18:36:03] whathappens: has joined #ruby
[18:37:32] miqlas-H: depend on pcap?
[18:38:34] jhass: I hope not
[18:38:58] jhass: I think there's 2-3 netcat's though, so you'd have to pick one
[18:40:16] charliesome: has joined #ruby
[18:40:29] beilabs: has joined #ruby
[18:40:38] mtkd: has joined #ruby
[18:41:59] banister: has joined #ruby
[18:43:26] mikecmpbll: has joined #ruby
[18:43:30] jenrzzz: has joined #ruby
[18:47:02] whathappens: has joined #ruby
[18:47:43] whathappens: has joined #ruby
[18:48:45] duckpupp1: has joined #ruby
[18:54:11] Ishido: has joined #ruby
[18:54:27] tacit7```: has joined #ruby
[18:54:47] alfie_max15: has joined #ruby
[18:54:48] madgen: has joined #ruby
[18:54:49] illusionmedic: has joined #ruby
[18:55:49] Dimik: has joined #ruby
[18:56:56] idefine: has joined #ruby
[18:57:29] tristanp_: has joined #ruby
[18:57:42] idefine: has joined #ruby
[18:58:02] sneakersec: has joined #ruby
[18:59:58] blackmesa: has joined #ruby
[19:02:07] jaequery: has joined #ruby
[19:05:09] whathappens: has joined #ruby
[19:06:12] blackmesa: has joined #ruby
[19:06:20] elementaru: has joined #ruby
[19:13:55] tristanp: has joined #ruby
[19:16:53] tAn: has joined #ruby
[19:18:25] soud: has joined #ruby
[19:19:29] curses: has joined #ruby
[19:19:40] skolman_: has joined #ruby
[19:21:28] robbyoconnor: has joined #ruby
[19:21:30] tristanp: has joined #ruby
[19:22:33] norc: has joined #ruby
[19:25:27] cschneid: has joined #ruby
[19:28:06] cschneid: I have a checkout of a gem, that includes a native extension, I want to build the extension right in the tree, without installing the gem to the current gemset/system. Is there a command to do that?
[19:28:27] tristanp_: has joined #ruby
[19:28:31] n_blownapart: has joined #ruby
[19:29:29] tildes_: has joined #ruby
[19:31:00] roamingdog: has joined #ruby
[19:33:13] tubbo: well you could do gem build but that will also build the .gem file
[19:33:21] tubbo: although it won't install to your system
[19:34:01] giz|work: has joined #ruby
[19:34:14] tristanp: has joined #ruby
[19:35:56] tristanp: has joined #ruby
[19:36:14] centrx: has joined #ruby
[19:36:36] imperator: has left #ruby: ("Leaving")
[19:37:09] roamingdog: has joined #ruby
[19:38:19] Travis-42: has joined #ruby
[19:38:22] cschneid: tubbo: that doesn't compile though, that just assembles the .c code into a .gem file
[19:38:33] cschneid: I need to build the C code so the require in the gem works.
[19:38:39] freerobby: has joined #ruby
[19:38:48] tubbo: isn't there an extconf.rb jawn
[19:38:57] cschneid: yeah, can I just use that directly?
[19:39:01] Travis-42: In recent versions of ruby, is there a difference between declaring module myModule; class myClass; vs class myModule::myClass ? Some sources I found seemed to indicate yes, others no
[19:39:23] tristanp_: has joined #ruby
[19:40:40] roamingdog: has joined #ruby
[19:41:34] cschneid: Travis-42: I thought those were different with regards to how it does method/constant lookups. I'd have to find docs on the exact thing
[19:42:26] Travis-42: I saw in the rails source that all modules were explicitly declared on a separate line, but that didn't seem to be the case for some other popular ruby projects I found
[19:42:31] daftdolphin: has joined #ruby
[19:42:41] ramfjord_: has joined #ruby
[19:43:15] duckpupp1: has joined #ruby
[19:43:42] jhass: Travis-42: there hasn't been a change, it's the same for a long time
[19:44:11] jhass: constant lookup is one thing as cschneid mentioned (compare Module.nesting inside either variant)
[19:44:37] jhass: more importantly the latter variant does _not_ define a module/class if not already defined
[19:44:42] cschneid: class Foo::Bar also crashes if Foo doesn't exist.
[19:44:45] jhass: so it'll error out if it's not already defined
[19:44:49] cschneid: jhass: yeah, that
[19:45:05] cschneid: s/crashes/throws an exception which is likely to break your app/
[19:45:08] Travis-42: yea ok, that's kind of what I thought, but I couldn't find any consistent answers
[19:45:15] curses: has left #ruby: ()
[19:45:29] diegoaguilar: has joined #ruby
[19:45:44] firstdayonthejob: has joined #ruby
[19:46:56] DoubleMalt: has joined #ruby
[19:49:58] jenrzzz: has joined #ruby
[19:49:58] jenrzzz: has joined #ruby
[19:51:10] JoshGlzBrk: has joined #ruby
[19:51:40] djbkd: has joined #ruby
[19:52:06] karmatr0n: has joined #ruby
[19:56:15] febuiles: has joined #ruby
[20:00:36] RegulationD: has joined #ruby
[20:02:56] tristanp: has joined #ruby
[20:04:02] cdg: has joined #ruby
[20:04:54] pawnbox: has joined #ruby
[20:05:05] SilverKey: has joined #ruby
[20:06:03] tildes_: has joined #ruby
[20:06:31] allcentu1: has joined #ruby
[20:06:56] tristanp: has joined #ruby
[20:08:51] kgrz: has joined #ruby
[20:09:17] RegulationD: has joined #ruby
[20:10:20] giz|work: has joined #ruby
[20:11:01] mdw: has joined #ruby
[20:15:42] djbkd: has joined #ruby
[20:16:50] tristanp_: has joined #ruby
[20:18:45] neanderslob: has joined #ruby
[20:19:00] nando293921: has joined #ruby
[20:21:56] skolman: has joined #ruby
[20:23:37] shevy: code code code!
[20:24:01] dsea: has joined #ruby
[20:24:23] Guest43: has joined #ruby
[20:24:23] Guest43: has joined #ruby
[20:25:10] FooMunki: has joined #ruby
[20:25:14] shevy: hmmm https://github.com/ruby/ruby/blob/trunk/ChangeLog#L40
[20:25:22] shevy: "class.c (rb_scan_args): merge code for n_trail"
[20:25:28] shevy: anyone knows what n_trail is?
[20:25:29] phutchins: has joined #ruby
[20:27:08] aegis3121: has joined #ruby
[20:27:21] dhollinger: has joined #ruby
[20:28:50] blackgoat: has joined #ruby
[20:29:22] skolman_: has joined #ruby
[20:32:12] tristanp: has joined #ruby
[20:32:13] norc: shevy, do you really want someone else git-blame for you?
[20:32:20] paultreny: has joined #ruby
[20:32:44] shevy: norc so you can't answer
[20:32:53] Devalo: has joined #ruby
[20:32:53] norc: shevy, sure I can but I do not see what good can come out of it.
[20:33:01] shevy: norc ok great
[20:33:10] Guest89085: has joined #ruby
[20:33:18] nankyokusei: has joined #ruby
[20:34:40] norc: shevy, on that note click the "blame" button on top, find the change log entry and find out which commit introduced it. That way you get to immediately see what the patch actually did.
[20:34:42] havenwood: shevy: n_trail = n_mand - n_lead
[20:34:56] shevy: havenwood thanks!
[20:35:06] B1n4r10: has joined #ruby
[20:35:58] mattwashere: has joined #ruby
[20:36:40] tristanp_: has joined #ruby
[20:36:40] norc: havenwood, are you in the slightest familiar with the implementation of ivars?
[20:36:41] havenwood: I'm enjoying on trunk: 42.class #=> Integer
[20:37:11] norc: What is that? o.o
[20:37:25] genpaku: has joined #ruby
[20:37:46] havenwood: norc: fixnum/bignum are implementation detail in 2.4-dev
[20:38:03] norc: havenwood, ah. That is actually neat.
[20:38:23] dreinull: did I mention I love sinatra and rack?
[20:38:33] skade: has joined #ruby
[20:38:36] havenwood: norc: i know more than none of the things but less than all of the things
[20:38:57] havenwood: dreinull: <3 have you tried Roda? it's fantastic!
[20:39:17] jancel: has joined #ruby
[20:39:19] dreinull: havenwood no, looked at it for a couple of times and then went back to sinatra
[20:39:24] havenwood: dreinull: like Sinatra but you compose your framework from teh addons: https://github.com/jeremyevans/roda/tree/master/lib/roda/plugins
[20:39:25] norc: havenwood, based on fiddle hackery I did the other day I found out that apparently the ivar table of the _class_ does not get initialized until the first time an ivar is set. (Havent found the related code yet)
[20:39:32] havenwood: dreinull: aha, yeah Sinatra is nice as well
[20:39:40] norc: That confused the hell out of me.
[20:40:02] dreinull: havenwood it's more the stuff I can do with rack that amazes me. the routing stuff and so is just sugar.
[20:40:21] havenwood: dreinull: give to Rack what is Rack's
[20:41:22] tristanp: has joined #ruby
[20:41:31] dreinull: havenwood will have to look into roda at some point too.
[20:41:43] DevastatingDave: has joined #ruby
[20:41:46] mattwashere: has joined #ruby
[20:41:55] dreinull: I like the routing idea better in roda.
[20:42:10] phutchins: has joined #ruby
[20:42:42] freerobby: has joined #ruby
[20:42:43] norc: havenwood, okay a quick look actually revealed the code, but it makes even less sense now. :(
[20:42:45] pidu: has joined #ruby
[20:42:58] norc: (Or even why the class maintains an ivar table)
[20:43:03] art-solopov: has joined #ruby
[20:43:28] mleung: has joined #ruby
[20:43:42] jancel_: has joined #ruby
[20:45:18] havenwood: norc: and oddball exceptions like generic_iv_tbl
[20:45:38] norc: That global monsterous beast just popped out of my screen.
[20:46:05] havenwood: "Internally, Ruby uses a bit of a hack to save instance variables for generic objects—that is, for objects that don’t use an RObject structure. When you save an instance variable in a generic object, Ruby saves it in a special hash called generic_iv_tbl." ~Excerpt From: Pat Shaughnessy's Ruby Under a Microscope
[20:46:17] eGGshke: has joined #ruby
[20:46:36] norc: Oh. I read that, it sounds familiar now that you mention it.
[20:47:03] norc: So this would be the case for intance variables for Fixnums for example (soon to be Integers!) I guess.
[20:47:23] pidu: has left #ruby: ("ERC (IRC client for Emacs 25.1.50.2)")
[20:48:23] tfitts: has joined #ruby
[20:49:43] norc: havenwood, oh. ROBJECT_EMBED seems to be the interesting bit here, which explains why there is ivar tables in both objects and classes.
[20:49:55] agent_white: has joined #ruby
[20:49:56] m8: has joined #ruby
[20:50:22] codecop: has joined #ruby
[20:51:51] jancel: has joined #ruby
[20:52:11] jancel: has joined #ruby
[20:52:53] norc: havenwood, Either way, your pointer made me grab the book again. I already found the relevant section that sheds some light on this.
[20:53:24] skade: has joined #ruby
[20:54:41] tristanp: has joined #ruby
[20:55:11] renier: has joined #ruby
[20:55:17] Voker57|2: has joined #ruby
[20:55:36] ur5us: has joined #ruby
[20:57:39] workmad3: has joined #ruby
[20:59:40] blackmesa: has joined #ruby
[21:01:49] skade: has joined #ruby
[21:01:57] jaequery: has joined #ruby
[21:02:00] Macaveli: has joined #ruby
[21:03:42] JoshGlzBrk: has joined #ruby
[21:04:21] skweek: has joined #ruby
[21:04:49] BTRE: has joined #ruby
[21:06:39] mhib: has joined #ruby
[21:07:59] dreinull: is this a good idea? There are eiter no files a or b or there is one of the two: File.exist?('a.rb') && require('./a') or File.exist?('b.rb') && require('./b')
[21:08:46] dreinull: didn't like rescue in this case.
[21:09:04] centrx: dreinull: I would just use a regular if-statement
[21:09:06] norc: dreinull, begin require 'a1'; rescue LoadError; require 'a2'; end is the common pattern though.
[21:09:19] norc: (Exceptions in Ruby really are not that bad)
[21:09:51] dreinull: norc there might not be a2
[21:10:20] dreinull: centrx don't see how if would make a difference here
[21:11:26] idefine_: has joined #ruby
[21:11:26] norc: dreinull, what if both files exist, would you want to only load a?
[21:12:02] dreinull: norc just one, the first. That would be a bug.
[21:12:40] norc: dreinull, then its fine though I would still use an explicit if/elsif for readability.
[21:12:46] norc: Like centrx said.
[21:13:21] JoshGlzBrk: has joined #ruby
[21:13:22] centrx: dreinull: It’s so the code is clear and avoids potential future bugs
[21:13:43] jero_: has joined #ruby
[21:13:58] centrx: dreinull: Even if you are the only person who is going to be programming on this code, you want it to be clear when you read it a month from now or whenever
[21:14:03] dreinull: centrx norc ok, I can see what you mean.
[21:14:06] tristanp_: has joined #ruby
[21:14:47] dreinull: I find ifs confusing. Usually more difficult to read than complex true/false evaluations
[21:15:11] norc: dreinull, for simple things you could use modifier_if
[21:16:08] centrx: (inline if)
[21:16:09] norc: it just reads a bit more natural "require(something) if condition"
[21:16:10] ixti: has joined #ruby
[21:16:12] tomphp: has joined #ruby
[21:19:41] postmodern: has joined #ruby
[21:22:47] devyn: has joined #ruby
[21:22:55] jud: has joined #ruby
[21:23:17] Ebok: has joined #ruby
[21:23:41] Ebok: When is the -> operator useful in ruby?
[21:24:19] adaedra: it's not really an operator, it's the "stabby" lambda syntax
[21:24:27] adaedra: >> -> { stab stab }
[21:24:28] ruby[bot]: adaedra: # => #<Proc:0x40e9db40@/tmp/execpad-bb81e9f13174/source-bb81e9f13174:2 (lambda)> (https://eval.in/577246)
[21:24:30] tgeeky: Ebok: when you want to specify the need for (or later, call) a function with specified paramters
[21:24:44] tgeeky: as opposed to a proc (which can have unspecified paramters)
[21:24:53] Ebok: Does it have a specific term?
[21:25:01] Ebok: Oh I men, the ->
[21:25:06] Ebok: If that is what you meant
[21:25:09] tgeeky: lambda arrow
[21:25:10] norc: Ebok, or when you cannot be arsed to create a proc because boy that is just cumbersome.
[21:25:33] tgeeky: it's almost exactly lke the lambda syntax of other langauges (haskell, lisp, etc)
[21:25:43] tgeeky: \(x,y) -> x + y
[21:25:52] adaedra: it's a shortened version of the ruby lambda syntax, actually.
[21:25:55] Ebok: Yeah. I know how lambads work, I just hadnt ever needed to use one. I couldnt think of a good reason to need it.
[21:26:13] tgeeky: >> a = ->(x,y) { x + y };
[21:26:14] ruby[bot]: tgeeky: # => #<Proc:0x41055adc@/tmp/execpad-0811eaaa0e86/source-0811eaaa0e86:2 (lambda)> (https://eval.in/577247)
[21:26:15] norc: Ebok, closures are one of core things in Ruby.
[21:26:16] Ebok: But yeah, I also wanted to make sure it didnt have any hidden extras. Like in rails -> is used to define scope
[21:26:20] bollullera: has joined #ruby
[21:26:21] tgeeky: >> a = ->(x,y) { x + y }; a.call(2,2)
[21:26:22] ruby[bot]: tgeeky: # => 4 (https://eval.in/577248)
[21:26:29] norc: Ebok, no, it is still a lambda.
[21:26:32] adaedra: Ebok: scope is defined with lambdas, actually.
[21:26:36] norc: Ebok, that lambda gets executed when the scope is resolved.
[21:26:42] adaedra: scope :foo, lambda { bar } # works too
[21:26:43] Ebok: I know how scope plays inside.
[21:26:50] norc: Ebok, it is one of many examples of WHY they are so useful.
[21:26:52] Ebok: lol very cool
[21:27:00] Ebok: I didnt realize.
[21:27:07] tgeeky: the main reason they are useful, is because they are incredibly lightweight
[21:27:11] allcentu1: has joined #ruby
[21:27:26] whathappens: has joined #ruby
[21:27:27] norc: Ebok, just keep in mind the difference between procs and lambdas (under the hood they are virtually identical except for a flag)
[21:27:59] Ebok: Thanks for the feedback
[21:28:26] norc: But to me the main motivator is saving 2 characters. After 20 years of Ruby I will have saved so much time over those Proc fanboys.
[21:29:33] tristanp: has joined #ruby
[21:29:46] kareeoleez: has joined #ruby
[21:31:55] johnmilton: has joined #ruby
[21:32:03] mynameisbrian: has joined #ruby
[21:32:34] mynameisbrian: Hey guys. I finished the begginer course for Ruby Monk. What resource do you recommend from here? I want an advanced book on Ruby
[21:32:39] mynameisbrian: A book for someone who already programs
[21:32:58] ruby[bot]: You can find a list of recommended books at http://ruby-community.com/pages/links
[21:33:07] bmurt: has joined #ruby
[21:33:20] Ebok: almost got it
[21:33:24] mynameisbrian: TANKS!!!!! TANKS U VRY MUCH
[21:33:28] norc: mynameisbrian, you should hang around for people to make suggestions thoguh.
[21:33:43] norc: Last I heard that particular page hasnt been updated in.. quite a while...
[21:33:58] norc: But it should give you a good start anyway.
[21:33:59] alfie_max15: mynameisbrian, you could continue with Ruby Mont
[21:34:01] mynameisbrian: yeah I know I can google it, but people in here usually have good advice so I figured I'd ask
[21:34:13] nettoweb: has joined #ruby
[21:34:27] alfie_max15: i believe there are advanced chapters in there
[21:34:31] mynameisbrian: alfie I'm a bit bored with it. It's nice, but I want to try something else
[21:34:37] norc: mynameisbrian, how advanced do you want it to be?
[21:34:47] alfie_max15: mynameisbrian, :D
[21:35:08] mynameisbrian: I don't know, I just don't want a begginers book. like "variables store data..... 1+1 = 2"
[21:35:08] bronson: has joined #ruby
[21:35:09] alfie_max15: won't blame you.. i too stopped after the first
[21:35:14] norc: Oh I got an idea.
[21:35:33] Ebok: I had a good one I read a few months ago when I was picking ruby up. Lemmie see if I can find the title
[21:35:46] jancel: has joined #ruby
[21:35:52] norc: mynameisbrian, "Eloquent Ruby" is a book mentioned quite often in here. Or "Effective Ruby"
[21:36:18] mynameisbrian: yeah I keep seeing Eloquent Ruby. Isn't it old though? Looks like it was last published 2010
[21:36:31] norc: mynameisbrian, not much has changed since then honestly.
[21:36:38] mynameisbrian: okay, that's what I thought
[21:37:00] mynameisbrian: I'll check that one out then. That was my only concern
[21:37:28] kareeoleez: has joined #ruby
[21:38:04] mynameisbrian: Now I just have to find it free online I mean buy it on amazon
[21:38:32] charliesome: has joined #ruby
[21:38:33] mynameisbrian: "Design patterns in Ruby" looks nice too, by same author
[21:38:42] Ebok: http://peterc.org/beginningruby/ <== This book was the one I used. It helped clear a lot up and get me really on my feet with the language.
[21:39:01] donske: has joined #ruby
[21:39:31] mynameisbrian: thanks, I'll take a look
[21:39:34] Ebok: I went from that into reading the style guide and some algorithm books, and then into rails
[21:39:46] norc: mynameisbrian, Ive been didgging through the logs. And Eloquent Ruby really seems to be the staple book on common Ruby idioms.
[21:39:51] Ebok: I fully recommend reading the ruby style guide as you're learning.
[21:40:26] Ebok: It'll make sure you learn the standards that will be expected of you when it comes to spacing, format, etc.
[21:40:38] mynameisbrian: cool. is that on github?
[21:40:53] norc: mynameisbrian, https://github.com/bbatsov/ruby-style-guide
[21:41:04] mynameisbrian: okay, that's what came up. ill star it
[21:41:46] mynameisbrian: im out of here, thanks for all the info guys!
[21:42:33] hazelux: has joined #ruby
[21:44:50] shinnya: has joined #ruby
[21:45:59] workmad3: has joined #ruby
[21:48:02] idefine: has joined #ruby
[21:49:00] idefine_: has joined #ruby
[21:49:41] xall: has joined #ruby
[21:49:47] Vingador: has joined #ruby
[21:51:01] yfeldblum: has joined #ruby
[21:51:02] |ifei5g00d: has joined #ruby
[21:52:06] tristanp_: has joined #ruby
[21:52:38] bluOxigen: has joined #ruby
[21:53:42] kareeole_: has joined #ruby
[21:54:06] Azure: has joined #ruby
[21:55:38] nando293921: has joined #ruby
[21:56:58] AnoHito_: has joined #ruby
[21:57:34] B1n4r10: has joined #ruby
[22:00:39] moeabdol: has joined #ruby
[22:01:34] blackmesa: has joined #ruby
[22:02:54] tristanp: has joined #ruby
[22:04:42] idefine: has joined #ruby
[22:05:05] jenrzzz_: has joined #ruby
[22:06:06] nando293921: has joined #ruby
[22:06:26] Vingador: has joined #ruby
[22:06:47] jrafanie: has joined #ruby
[22:07:23] bobbycvi: has joined #ruby
[22:09:03] PlasmaStar: has joined #ruby
[22:09:39] allcentu1: has joined #ruby
[22:09:52] swills: has joined #ruby
[22:10:23] rkazak: has joined #ruby
[22:10:50] malconis: has joined #ruby
[22:11:13] Vingador: has joined #ruby
[22:11:36] JoshGlzBrk: has joined #ruby
[22:11:48] idefine: has joined #ruby
[22:13:10] phredus_: has joined #ruby
[22:13:34] sdothum: has joined #ruby
[22:15:15] lukec: has joined #ruby
[22:15:41] jancel: has joined #ruby
[22:16:33] beilabs: has joined #ruby
[22:17:09] JoshGlzBrk: has joined #ruby
[22:17:17] A124: Cannot figure out another recursive thing, done well. I suck I became bad, physical health translates to mind. Would like to in-place modify strings in Hash, Struct, Array nested combo. ... Not sure if I got it working before and screwed another variant, but here is what I got: https://gist.github.com/anonymous/376548d11ecb4060e88d51e40f7043e5
[22:18:21] idefine: has joined #ruby
[22:18:40] jenrzzz: has joined #ruby
[22:18:40] jenrzzz: has joined #ruby
[22:20:02] helpa: has joined #ruby
[22:20:05] Vingador: has joined #ruby
[22:20:09] norc: A124, hiding code from us? :)
[22:20:28] n_blownapart: has joined #ruby
[22:21:37] A124: norc I just did paste code
[22:21:47] norc: A124, some code.
[22:22:04] A124: Did I miss anything?
[22:22:23] norc: You tell me.
[22:22:52] dopamean1: has joined #ruby
[22:22:53] A124: Yeah I did, third line should be data = Oj.load()
[22:23:13] rarruda: has joined #ruby
[22:23:35] norc: A124, for the test case please just use JSON, so I can quickly plug this in. :)
[22:24:20] A124: In this case it should be equivalent, it is just Hash, but in previous internal json was incapable.
[22:24:27] norc: A124, also your implementation of to_recursive_hash is missing.
[22:24:54] A124: Man, I am really sorry, I screwed up, I will post fixed.
[22:25:08] norc: All good.
[22:26:05] norc: A124, just a quick hint by the way. The line where you recurse into Array, you invoke each_with_parent(k, &blk)
[22:26:15] norc: A124, that will effectively pass nil.
[22:26:46] norc: (Since Ruby has seen k before it knows its a variable but its never assigned to by anything)
[22:26:53] JoshGlzBrk: has joined #ruby
[22:27:50] patrick_star_3: has joined #ruby
[22:28:13] norc: I am expecting this to be (one of) your problem(s)
[22:28:53] norc: It will force the next recursion to immediately yield the parent, which however is nil.
[22:30:58] djbkd: has joined #ruby
[22:33:16] freerobby: has joined #ruby
[22:33:32] rarruda: has joined #ruby
[22:33:34] tristanp: has joined #ruby
[22:33:35] norc: A124, next you need to recurse when the current object responds to each_with_parent
[22:34:30] nankyokusei: has joined #ruby
[22:36:03] tercenya_: has joined #ruby
[22:36:30] A124: norc https://gist.github.com/anonymous/1371d9493d3860bbe086f96b9ea3e54f
[22:37:29] tristanp: has joined #ruby
[22:37:34] lipoqil: has joined #ruby
[22:38:21] norc: A124, also your initial call passes no argument to the function, so the first thing it does is yield the block with parent, which earlier defaulted to nil.
[22:38:25] norc: That is the cause for you seeing nil.
[22:39:00] matp: has joined #ruby
[22:39:52] diegoaguilar: has joined #ruby
[22:43:59] binaryplease: has joined #ruby
[22:44:31] helpa: has joined #ruby
[22:45:00] helpa: has joined #ruby
[22:46:13] Radar: Hey, can someone here please gist me the Quit message of Vingador?
[22:46:27] Radar: it's crashing helpa and I want to find out why.
[22:46:32] Vingador: has joined #ruby
[22:46:54] eGGshke: has joined #ruby
[22:46:58] nando293921: has joined #ruby
[22:47:32] A124: norc Yes, you are right about that, though after solving that the output is just the keys of the first Hash. So totally wrong anyway.
[22:47:53] norc: A124, guess you were too quick to copy and paste this from stackoverflow.
[22:48:09] Radar: norc or A124: do either of you see Quit messages in this channel?
[22:48:18] norc: Radar, * Vingador has quit (Quit: http://quassel-irc.org - Bate-papo confortável em qualquer lugar.)
[22:48:27] norc: Cheerio.
[22:48:48] pawnbox: has joined #ruby
[22:49:22] AnoHito: has joined #ruby
[22:49:47] A124: Radar No else I would already responded :)
[22:49:57] A124: norc I wrote that ehm.
[22:49:59] SilverKey: has joined #ruby
[22:50:06] Radar: mozzarella: only in quit messages apparently.
[22:51:03] helpa: has joined #ruby
[22:51:34] helpa: has joined #ruby
[22:52:07] nando293921: has joined #ruby
[22:58:09] nando293921: has joined #ruby
[22:58:26] tristanp_: has joined #ruby
[22:59:48] mattwashere: has joined #ruby
[23:02:08] havenwood: excerpt from my znc.conf: QuitMsg = mIRC 5.91 (16 bit) for Microsoft © Windows For WorkGroups 3.11®
[23:04:05] charliesome: has joined #ruby
[23:04:11] kam270: has joined #ruby
[23:07:26] paul0: has joined #ruby
[23:07:58] tristanp: has joined #ruby
[23:08:16] djbkd: has joined #ruby
[23:10:11] tristanp: has joined #ruby
[23:14:56] Kero: has joined #ruby
[23:15:54] jhass: has joined #ruby
[23:17:42] hightower3: havenwood, impressive :)
[23:19:04] exadeci: has joined #ruby
[23:20:10] tristanp: has joined #ruby
[23:20:42] jancel: has joined #ruby
[23:20:45] mleung_: has joined #ruby
[23:24:00] Coldblackice: has joined #ruby
[23:24:16] ICantCook: has joined #ruby
[23:24:53] mattwashere: has joined #ruby
[23:25:38] Omni: has joined #ruby
[23:27:04] ICantCook: has joined #ruby
[23:29:34] skolman_: has joined #ruby
[23:30:55] RegulationD: has joined #ruby
[23:31:48] rkazak: has joined #ruby
[23:38:12] johnny56: has joined #ruby
[23:38:16] framlinqp: has joined #ruby
[23:38:23] Ebok: has joined #ruby
[23:39:05] moos3: has joined #ruby
[23:39:08] tristanp: has joined #ruby
[23:44:55] Vingador: has joined #ruby
[23:47:07] paulca: has joined #ruby
[23:47:19] cdg: has joined #ruby
[23:47:59] anna`: has joined #ruby
[23:48:26] koooge: has joined #ruby
[23:48:49] moeabdol: has joined #ruby
[23:49:41] rbennacer: has joined #ruby
[23:50:31] fooledyou: has joined #ruby
[23:51:38] Madplatypus: has joined #ruby
[23:53:41] tristanp_: has joined #ruby
[23:54:18] idefine: has joined #ruby
[23:54:21] fooledyou: has left #ruby: ()
[23:54:34] bronson: has joined #ruby
[23:55:06] hahuang65: has joined #ruby
[23:55:12] tuelz: has joined #ruby
[23:55:55] bronson_: has joined #ruby
[23:56:54] djbkd: has joined #ruby
[23:58:10] statelesscode: has joined #ruby
[23:59:13] minimalism: has joined #ruby