« Back to channel list

#ruby - 14 June 2016

« Back 1 day Forward 1 day »
[00:00:16] chris3492: has joined #ruby
[00:00:58] ruby-lang342: I'm about to push the limits on my system with a 0.5G element array of BigDecimal -- wish me luck! :)
[00:01:01] edwinvdgraaf: has joined #ruby
[00:01:27] nyuszika7h: has joined #ruby
[00:01:49] ruby-lang342: thanks for your help toretore!
[00:02:38] certainty: has joined #ruby
[00:02:58] tristanp: has joined #ruby
[00:04:15] B1n4r10: has joined #ruby
[00:04:41] postmodern: has joined #ruby
[00:05:04] bmurt: has joined #ruby
[00:06:45] Rodya_: has joined #ruby
[00:07:13] tvsutton: has joined #ruby
[00:07:49] jancel: has joined #ruby
[00:08:17] aberen: has joined #ruby
[00:11:25] tristanp: has joined #ruby
[00:20:43] tAn: has joined #ruby
[00:23:15] rigel___: has joined #ruby
[00:25:33] Azure: has joined #ruby
[00:28:03] uxp: has joined #ruby
[00:28:06] matled: has joined #ruby
[00:28:13] tildes_: has joined #ruby
[00:29:23] colstrom: has joined #ruby
[00:31:01] davidcelis: has joined #ruby
[00:31:01] davidcelis: has joined #ruby
[00:31:15] greenhat|: has joined #ruby
[00:31:30] mwlang: has joined #ruby
[00:31:52] mwlang: what’s the easiest way to get my public IP address with Ruby. Not my local NAT address.
[00:32:14] lianj: has joined #ruby
[00:33:50] mwlang: nvm. Found it on SO: http://stackoverflow.com/questions/13270042/get-public-remote-ip-address
[00:34:40] aupadhye: has joined #ruby
[00:35:21] diegoaguilar: has joined #ruby
[00:36:00] tildes: has joined #ruby
[00:36:32] flashpoint9: has joined #ruby
[00:37:08] IanMalcolm: has joined #ruby
[00:37:17] fowlduck: has joined #ruby
[00:39:05] fowlduck: is there a safe way to wait on a process with a timeout?
[00:39:18] fowlduck: as in, I've forked a child process and want to Process.wait but only for so long?
[00:39:54] fowlduck: I'm using Timeout.timeout but I'm not sure that's correct
[00:40:58] ramfjord_: has joined #ruby
[00:41:18] Ropeney: has joined #ruby
[00:41:22] flashpoint9: has joined #ruby
[00:41:22] fowlduck: and I'm concerned I'll lose the exitstatus of the reaped process if that's incorrect
[00:41:45] rvchangue: has joined #ruby
[00:42:42] CloCkWeRX: has joined #ruby
[00:42:45] jancel: has joined #ruby
[00:48:10] fowlduck: I guess I can do Process::WNOHANG and check in a loop with sleeps instead?
[00:48:54] sdothum: has joined #ruby
[00:49:34] Axsuul: has joined #ruby
[00:52:11] aupadhye: has joined #ruby
[00:55:23] p337rB: has joined #ruby
[00:55:50] tristanp: has joined #ruby
[01:03:46] certainty: has joined #ruby
[01:04:11] postmodern: has joined #ruby
[01:08:18] norc_: has joined #ruby
[01:09:00] aberen: has joined #ruby
[01:09:00] moeabdol: has joined #ruby
[01:10:24] MrBusiness: has joined #ruby
[01:10:57] tildes: has joined #ruby
[01:15:05] charliesome: has joined #ruby
[01:18:37] roamingdog: has joined #ruby
[01:18:50] elton: has joined #ruby
[01:18:55] mistermocha: has joined #ruby
[01:19:36] Brklyn: has joined #ruby
[01:19:38] AcidCras_: has joined #ruby
[01:20:10] tAn: has joined #ruby
[01:20:33] Yiota: has joined #ruby
[01:23:51] tubuliferous_: has joined #ruby
[01:25:55] Brklyn: has joined #ruby
[01:26:28] nankyokusei: has joined #ruby
[01:29:11] pwnd_nsfw`: has joined #ruby
[01:29:40] PaulCapestany: has joined #ruby
[01:29:42] SilverKey: has joined #ruby
[01:30:19] skade: has joined #ruby
[01:30:48] B1n4r10: has joined #ruby
[01:31:49] firstdayonthejob: has joined #ruby
[01:33:59] karmatr0n: has joined #ruby
[01:35:50] B1n4r10_: has joined #ruby
[01:38:31] charliesome: has joined #ruby
[01:38:53] jenrzzz: has joined #ruby
[01:38:53] jenrzzz: has joined #ruby
[01:39:11] Yiota: has joined #ruby
[01:41:10] jaguarmagenta: has joined #ruby
[01:41:28] JazzyVariable227: has joined #ruby
[01:43:01] karmatr0n: has joined #ruby
[01:43:23] vdamewood: has joined #ruby
[01:45:36] binaryplease1: has joined #ruby
[01:46:27] jenrzzz: has joined #ruby
[01:47:16] Dios: has joined #ruby
[01:47:23] ekinmur: has joined #ruby
[01:50:37] tAn: has joined #ruby
[01:51:38] ledestin: has joined #ruby
[01:52:42] snath: has joined #ruby
[01:55:36] ramfjord: has joined #ruby
[01:56:47] tmtwd: has joined #ruby
[01:58:53] jancel: has joined #ruby
[01:59:43] sneakerhax: has joined #ruby
[02:02:22] Eiam_: has joined #ruby
[02:02:42] lightt: has joined #ruby
[02:03:26] mattwashere: has joined #ruby
[02:06:09] pawnbox: has joined #ruby
[02:07:39] ramfjord: has joined #ruby
[02:07:51] vdamewood: has joined #ruby
[02:09:25] moeabdol: has joined #ruby
[02:09:44] aberen: has joined #ruby
[02:16:59] certainty: has joined #ruby
[02:18:20] arescorpio: has joined #ruby
[02:19:27] jenrzzz: has joined #ruby
[02:20:24] tAn: has joined #ruby
[02:21:20] ur5us: has joined #ruby
[02:26:34] gnufied: has joined #ruby
[02:27:15] _kfpratt: has joined #ruby
[02:30:08] jancel: has joined #ruby
[02:31:41] hutch34: has joined #ruby
[02:32:55] hahuang61: has joined #ruby
[02:32:59] tjbiddle: has joined #ruby
[02:33:01] mattwashere: has joined #ruby
[02:33:42] panpainter: has joined #ruby
[02:35:04] gregf: has joined #ruby
[02:35:53] jenrzzz: has joined #ruby
[02:38:34] jaguarmagenta: has joined #ruby
[02:39:47] elton: has joined #ruby
[02:42:14] matp: has joined #ruby
[02:42:22] fgimian: has joined #ruby
[02:45:08] SilverKey: has joined #ruby
[02:46:03] allcentury: has joined #ruby
[02:51:58] codeurge: has joined #ruby
[02:52:32] Tharbakim: has joined #ruby
[02:53:48] edwardly: has joined #ruby
[02:54:05] safetypin: has joined #ruby
[02:54:23] Hobogrammer: has joined #ruby
[02:54:38] edwardly: has joined #ruby
[02:56:23] Rodya_: has joined #ruby
[02:58:41] mostlybadfly: has joined #ruby
[02:59:09] ruby[bot]: -b ih8niggrz!*@*$#ruby-banned
[03:00:13] sandstrom: has joined #ruby
[03:00:53] jenrzzz: has joined #ruby
[03:03:24] mistermocha: has joined #ruby
[03:04:24] panpainter: has joined #ruby
[03:04:34] jancel: has joined #ruby
[03:04:39] chipotle: has joined #ruby
[03:09:50] mistermocha: has joined #ruby
[03:10:30] aberen: has joined #ruby
[03:11:19] braincrash: has joined #ruby
[03:15:30] zacstewart: has joined #ruby
[03:18:37] lightt: has joined #ruby
[03:20:53] k3rn31: has joined #ruby
[03:27:17] nankyokusei: has joined #ruby
[03:31:23] der-landgraf: has joined #ruby
[03:33:30] mwlang: has joined #ruby
[03:33:58] phredus: has joined #ruby
[03:35:02] blackgoat: has joined #ruby
[03:35:57] B1n4r10: has joined #ruby
[03:37:16] hk238: has joined #ruby
[03:37:19] kareeoleez: has joined #ruby
[03:37:29] Rodya_: has joined #ruby
[03:37:48] edwinvdgraaf: has joined #ruby
[03:37:48] yfeldblum: has joined #ruby
[03:40:33] kgrz: has joined #ruby
[03:40:49] jenrzzz: has joined #ruby
[03:40:49] jenrzzz: has joined #ruby
[03:40:55] panpainter: has joined #ruby
[03:41:28] highbass: has joined #ruby
[03:42:20] gix: has joined #ruby
[03:43:16] aries_liuxueyang: has joined #ruby
[03:46:06] highbass: hey guys.. i am trying to daemonize process using "daemon" gem... there is an issue where daemon changes directory to '/' after it executes a process.. this is a problem as i need it to be run relative to the directory of execution
[03:46:36] highbass: anyone know a way (outside of me harcoding chdir "/x/y/z" where i can make it change to the appropriate directory?
[03:48:28] allcentury: has joined #ruby
[03:48:35] edwardly: has joined #ruby
[03:48:35] edwardly: has joined #ruby
[03:50:05] jaguarma_: has joined #ruby
[03:50:14] tAn: has joined #ruby
[03:52:16] mattwashere: has joined #ruby
[03:53:02] tjbiddle: has joined #ruby
[03:53:42] acidchild: has joined #ruby
[03:54:45] acidchild: hello I am struggling to get SSL forwarding working with fluentd (i've googled and asked in fluentd channel) I am getting this error message. 2016-06-14 03:53:30 +0000 [trace]: plugin/output_node.rb:347:rescue in block in connect: SSLError error_class=OpenSSL::SSL::SSLErrorWaitReadable error=#<OpenSSL::SSL::SSLErrorWaitReadable: read would block> mtime=2016-06-14 03:51:47 +0000 host="1.logs.rs.int" port=24
[03:55:02] acidchild: any advice on what OpenSSL::SSL::SSLErrorWaitReadable means would be greatful.
[03:56:42] jackjackdripper: has joined #ruby
[03:57:32] moeabdol: has joined #ruby
[04:04:32] Rodya_: has joined #ruby
[04:09:15] allcentury: has joined #ruby
[04:10:05] elton: has joined #ruby
[04:10:18] kknight: has joined #ruby
[04:10:45] agent_white: has joined #ruby
[04:10:45] karmatr0n: has joined #ruby
[04:11:15] aberen: has joined #ruby
[04:12:07] stardiviner: has joined #ruby
[04:13:45] rigel_: has joined #ruby
[04:13:58] pawnbox: has joined #ruby
[04:15:00] agent_white: Evenin' folks
[04:16:32] panpainter: has joined #ruby
[04:18:16] certainty: has joined #ruby
[04:19:41] houhoulis: has joined #ruby
[04:20:08] rigel_: not where i am, but sure
[04:24:12] fsosowp: has joined #ruby
[04:25:04] tristanp: has joined #ruby
[04:25:30] fsosowp: has joined #ruby
[04:26:57] tristanp: has joined #ruby
[04:28:06] segy: has joined #ruby
[04:28:44] tmtwd: has joined #ruby
[04:32:28] diegoaguilar: has joined #ruby
[04:33:00] tristanp: has joined #ruby
[04:35:08] Coldblackice: has joined #ruby
[04:40:05] hahuang61: has joined #ruby
[04:44:54] duoi: has joined #ruby
[04:46:57] Yiota_: has joined #ruby
[04:47:22] Efffe: has joined #ruby
[04:47:32] wazzat: has joined #ruby
[04:47:32] panpainter: has joined #ruby
[04:49:24] Brklyn: has joined #ruby
[04:49:54] pawnbox: has joined #ruby
[04:50:48] blackgoat: has joined #ruby
[04:50:57] tAn: has joined #ruby
[04:52:14] Efffe: has left #ruby: ()
[04:53:07] Efffe: has joined #ruby
[04:54:07] charliesome: has joined #ruby
[04:55:58] jenrzzz: has joined #ruby
[04:59:47] tubuliferous_: has joined #ruby
[05:01:05] unvexp: has joined #ruby
[05:05:51] panpainter: has joined #ruby
[05:05:57] unvexp: has joined #ruby
[05:07:59] d0lph1n98: has joined #ruby
[05:09:07] kareeoleez: has joined #ruby
[05:10:14] mgbowman: has joined #ruby
[05:10:22] roamingdog: has joined #ruby
[05:10:37] Niham: has joined #ruby
[05:10:38] mgbowman: has left #ruby: ()
[05:10:59] p337rB: has joined #ruby
[05:11:22] jackjackdripper: has joined #ruby
[05:11:59] aberen: has joined #ruby
[05:13:35] RobertBirnie: has joined #ruby
[05:16:59] dionysus69: has joined #ruby
[05:18:29] aries_liuxueyang: has joined #ruby
[05:19:14] certainty: has joined #ruby
[05:19:41] pawnbox: has joined #ruby
[05:21:09] edwinvdgraaf: has joined #ruby
[05:21:45] shinnya: has joined #ruby
[05:23:59] vuoto: has joined #ruby
[05:24:45] B1n4r10: has joined #ruby
[05:26:50] tildes: has joined #ruby
[05:28:12] nankyokusei: has joined #ruby
[05:29:31] djbkd: has joined #ruby
[05:30:56] yesthatallen: has joined #ruby
[05:31:00] karmatr0n: has joined #ruby
[05:31:13] Dimik: has joined #ruby
[05:31:35] yesthatallen: Due to circumstances beyond my control, i have ubuntu 14 servers which need to compile ruby from source on boot.
[05:31:49] yesthatallen: what can I do in the configure to bring that time down from 7 minutes?
[05:32:06] yesthatallen: Im envisioning something like "make without test"
[05:32:31] yesthatallen: but, don't know what kinds of options I could add to the make configure file which might help?
[05:32:41] Niham: has joined #ruby
[05:32:52] djbkd_: has joined #ruby
[05:33:43] yesthatallen: as of now, the only commands used to build are:
[05:33:57] yesthatallen: ./configure --prefix=/usr/
[05:36:25] sQVe: has left #ruby: ("Bye bye!")
[05:36:57] emilkarl: has joined #ruby
[05:38:19] zacstewart: has joined #ruby
[05:40:29] allcentury: has joined #ruby
[05:45:19] axxyhtrx: has joined #ruby
[05:45:44] moeabdol: has joined #ruby
[05:46:24] tmtwd: has joined #ruby
[05:48:52] sauvin: has joined #ruby
[05:55:16] armyriad: has joined #ruby
[05:59:52] LoneHerm_: has joined #ruby
[06:00:07] DoubleMalt: has joined #ruby
[06:01:27] codecop: has joined #ruby
[06:02:46] emilkarl: has joined #ruby
[06:03:10] charliesome: has joined #ruby
[06:04:28] kareeoleez: has joined #ruby
[06:04:59] kareeoleez: has joined #ruby
[06:05:16] der-landgraf: has joined #ruby
[06:06:25] last_staff: has joined #ruby
[06:11:06] yfeldblum: has joined #ruby
[06:12:44] aberen: has joined #ruby
[06:12:59] hahuang61: has joined #ruby
[06:14:17] der-landgraf: has joined #ruby
[06:17:16] panpainter: has joined #ruby
[06:17:52] sandstrom: has joined #ruby
[06:19:36] jancel: has joined #ruby
[06:19:51] agit0: has joined #ruby
[06:20:08] certainty: has joined #ruby
[06:20:17] Madplatypus: has joined #ruby
[06:20:20] skade: has joined #ruby
[06:23:48] Axsuul: has joined #ruby
[06:23:51] havenwood: yesthatallen: If you have multiple cores you could use multiple jobs for the make step: -j [N], --jobs[=N] Allow N jobs at once; infinite jobs with no arg.
[06:24:22] havenwood: yesthatallen: Like: make -j8
[06:24:38] al2o3-cr: has joined #ruby
[06:24:45] havenwood: (Or just plain `-j` if you want to use as many as possible.)
[06:25:46] n1x-nz: has joined #ruby
[06:25:49] havenwood: yesthatallen: It sounds like this isn't an option for you, but Brightbox maintains up-to-date Ruby packages for Ubuntu: https://www.brightbox.com/docs/ruby/ubuntu/
[06:35:24] bruce_lee: has joined #ruby
[06:35:30] Tref: has joined #ruby
[06:36:05] tAn: has joined #ruby
[06:37:49] Brklyn: has joined #ruby
[06:39:49] zacstewart: has joined #ruby
[06:40:23] blaxter: has joined #ruby
[06:40:33] karmatr0n: has joined #ruby
[06:42:12] mooman: has joined #ruby
[06:42:38] andikr: has joined #ruby
[06:44:02] emilkarl: has joined #ruby
[06:45:14] der-landgraf: has joined #ruby
[06:45:53] c0mrad3: has joined #ruby
[06:46:11] tvw: has joined #ruby
[06:46:27] snguyen: has joined #ruby
[06:47:11] Sashimi: has joined #ruby
[06:48:52] kareeoleez: has joined #ruby
[06:54:32] tjbiddle: has joined #ruby
[06:55:12] kgrz: skipping the documentation might also help. --disable-install-{doc,rdoc,capi}
[06:55:13] Hounddog: has joined #ruby
[06:55:17] aswen: has joined #ruby
[07:02:32] solars: has joined #ruby
[07:04:33] neanderslob: has joined #ruby
[07:04:43] emilkarl: has joined #ruby
[07:05:43] tjbiddle: has joined #ruby
[07:06:13] lightt: has joined #ruby
[07:07:46] certainty: has joined #ruby
[07:10:20] Tref: has joined #ruby
[07:11:06] Hounddog: has joined #ruby
[07:12:33] dcunit3d: has joined #ruby
[07:13:27] jaguarmagenta: has joined #ruby
[07:13:29] aberen: has joined #ruby
[07:16:05] ferr1: has joined #ruby
[07:16:35] platzhirsch: has joined #ruby
[07:16:41] alotofnoodles: has joined #ruby
[07:17:37] claw: has joined #ruby
[07:18:32] lxsameer: has joined #ruby
[07:18:43] bluOxigen: has joined #ruby
[07:19:19] allcentury: has joined #ruby
[07:19:37] DoubleMalt: has joined #ruby
[07:19:54] aganov: has joined #ruby
[07:20:24] craigp: has joined #ruby
[07:21:55] jaruga___: has joined #ruby
[07:23:39] fsosowp: has joined #ruby
[07:26:34] Hounddog: has joined #ruby
[07:26:53] antgel: has joined #ruby
[07:27:22] alfiemax: has joined #ruby
[07:27:49] lightt: has joined #ruby
[07:28:08] qasaur: has joined #ruby
[07:29:01] nankyokusei: has joined #ruby
[07:29:35] vuoto_: has joined #ruby
[07:30:02] TvL2386: has joined #ruby
[07:30:20] vuoto_: has joined #ruby
[07:30:58] mrmortondk: has joined #ruby
[07:30:58] vuoto_: has joined #ruby
[07:33:00] digneety: has joined #ruby
[07:33:08] digneety: has joined #ruby
[07:33:48] tristanp: has joined #ruby
[07:33:50] moeabdol: has joined #ruby
[07:34:44] sandstrom: has joined #ruby
[07:34:45] ur5us: has joined #ruby
[07:36:18] van: has joined #ruby
[07:38:30] vuoto_: has joined #ruby
[07:39:02] digneety: has joined #ruby
[07:40:07] zacstewart: has joined #ruby
[07:41:26] nighttime: has joined #ruby
[07:41:27] digneety: has joined #ruby
[07:41:57] aberen: has joined #ruby
[07:42:43] kgrz: has joined #ruby
[07:44:42] tomaz_b: has joined #ruby
[07:47:00] lsmola: has joined #ruby
[07:47:13] terlar: has joined #ruby
[07:48:27] kapo: has joined #ruby
[07:53:34] aufi: has joined #ruby
[07:55:19] alfiemax: has joined #ruby
[07:56:06] bweston92: has joined #ruby
[07:59:00] konsolebox: has joined #ruby
[08:04:46] tvw: has joined #ruby
[08:04:59] noark9: has joined #ruby
[08:05:05] biberu: has joined #ruby
[08:07:04] last_staff: has joined #ruby
[08:08:14] ocbtec: has joined #ruby
[08:10:25] terlar: has joined #ruby
[08:16:57] JW2: has joined #ruby
[08:18:24] chipotle: anybody around?
[08:18:42] alfiemax: 962 in total
[08:19:02] panpainter: has joined #ruby
[08:19:05] chipotle: i am hoping my ipad air 2 is defective. i am lucky if it lasts more than 5 hours of reading in a web browser and/or dropbox and/or ibooks. i lose about 20-25% battery a day on idle. wtf gives?
[08:19:22] chipotle: i had the first retina version of the ipad and the battery life was SO much better
[08:19:26] chipotle: it lasted for weeks if i didn't use it
[08:19:43] chipotle: i have almost all background services turned off and rarely allow notificatiosn
[08:19:54] vuoto: has joined #ruby
[08:20:35] matp: has joined #ruby
[08:21:43] joonty: has joined #ruby
[08:22:07] snowy: has joined #ruby
[08:22:30] snowy: has joined #ruby
[08:23:06] edwinvdgraaf: has joined #ruby
[08:24:09] staticfox`: has joined #ruby
[08:24:23] edwinvdg_: has joined #ruby
[08:24:59] Silthias: has joined #ruby
[08:25:33] jgt1: has joined #ruby
[08:26:47] Silthias1: has joined #ruby
[08:31:28] MrBusiness2: has joined #ruby
[08:31:43] pandaant: has joined #ruby
[08:32:12] senayar: has joined #ruby
[08:32:49] consti: has joined #ruby
[08:32:53] kgrz: has joined #ruby
[08:33:01] mdw: has joined #ruby
[08:35:21] vuoto_: has joined #ruby
[08:37:06] shevy: chipotle what channel is this here
[08:38:17] skade: has joined #ruby
[08:40:20] stardiviner: has joined #ruby
[08:41:47] tjbiddle: has joined #ruby
[08:42:03] mdw: has joined #ruby
[08:43:02] kgrz: has joined #ruby
[08:43:08] lessless: has joined #ruby
[08:44:27] blackmesa: has joined #ruby
[08:45:44] moeabdol: has joined #ruby
[08:46:30] madgen: has joined #ruby
[08:47:20] nadir: has joined #ruby
[08:47:50] kies: has joined #ruby
[08:48:15] wldcordeiro: has joined #ruby
[08:48:28] moeabdol: has joined #ruby
[08:49:06] the_drow: has joined #ruby
[08:50:36] the_drow: has joined #ruby
[08:50:44] pawnbox: has joined #ruby
[08:51:13] FastJack: has joined #ruby
[08:52:27] rbr: has joined #ruby
[08:53:55] madgen: has joined #ruby
[08:54:39] TomyWork: has joined #ruby
[08:54:54] MrBusiness3: has joined #ruby
[08:59:10] Shashikant86: has joined #ruby
[09:01:40] madgen_: has joined #ruby
[09:01:58] blackgoat: has joined #ruby
[09:02:19] B1n4r10: has joined #ruby
[09:03:57] JW1: has joined #ruby
[09:04:42] alfiemax: has joined #ruby
[09:05:16] karmatr0n: has joined #ruby
[09:07:02] CloCkWeRX: has joined #ruby
[09:07:38] Ishido: has joined #ruby
[09:10:02] MrBusiness2: has joined #ruby
[09:11:18] p337rB: has joined #ruby
[09:11:29] elton: has joined #ruby
[09:13:43] madgen: has joined #ruby
[09:14:57] araujo: has joined #ruby
[09:15:04] Kedare: has joined #ruby
[09:16:37] n1x-nz: has joined #ruby
[09:16:45] tvw: has joined #ruby
[09:20:29] kgrz: has joined #ruby
[09:20:44] dcunit3d: has joined #ruby
[09:22:05] joonty: has joined #ruby
[09:22:44] allcentury: has joined #ruby
[09:26:05] jaguarmagenta: has joined #ruby
[09:27:26] vuoto: has joined #ruby
[09:27:56] MrBusiness3: has joined #ruby
[09:29:21] Amnez777: has joined #ruby
[09:29:52] nankyokusei: has joined #ruby
[09:31:34] Couch: has joined #ruby
[09:32:06] Shashikant86: has joined #ruby
[09:32:29] Alina-malina: has joined #ruby
[09:34:00] MrBusiness2: has joined #ruby
[09:36:18] JW1: has joined #ruby
[09:38:33] workmad3: has joined #ruby
[09:39:08] Ropeney: has joined #ruby
[09:39:49] gregf_: i must say the aws ruby sdk works when all else fail :|
[09:40:35] jackjackdripper: has joined #ruby
[09:40:36] fsosowp: has joined #ruby
[09:41:01] alotofnoodles: has joined #ruby
[09:41:41] kareeole_: has joined #ruby
[09:41:55] zacstewart: has joined #ruby
[09:42:04] fsosowp: has joined #ruby
[09:44:15] FooMunki: has joined #ruby
[09:46:14] c355E3B: has joined #ruby
[09:48:01] dcunit3d: has joined #ruby
[09:48:05] kareeoleez: has joined #ruby
[09:50:10] allcentury: has joined #ruby
[09:50:37] marr: has joined #ruby
[09:53:45] Niham: has joined #ruby
[09:55:57] jancel: has joined #ruby
[09:55:59] Guest80014: has left #ruby: ("Leaving")
[10:05:29] johnDoe111: has joined #ruby
[10:13:08] xue: has joined #ruby
[10:18:21] toretore: has joined #ruby
[10:21:15] kareeole_: has joined #ruby
[10:24:54] madgen_: has joined #ruby
[10:25:41] DoubleMalt: has joined #ruby
[10:25:42] Brklyn_: has joined #ruby
[10:25:55] edwinvdgraaf: has joined #ruby
[10:25:58] mikecmpbll: has joined #ruby
[10:26:38] allcentury: has joined #ruby
[10:28:15] kareeoleez: has joined #ruby
[10:30:17] madgen: has joined #ruby
[10:30:27] sandstrom: has joined #ruby
[10:32:12] john0123: has joined #ruby
[10:32:22] john0123: has left #ruby: ("KILL NIGGERS")
[10:32:30] john0123: has joined #ruby
[10:36:43] teclator__: has joined #ruby
[10:37:49] blackgoat: has joined #ruby
[10:38:13] certainty: has joined #ruby
[10:39:01] sdothum: has joined #ruby
[10:40:25] Hyuk: has joined #ruby
[10:42:41] edwinvdg_: has joined #ruby
[10:42:55] zacstewart: has joined #ruby
[10:43:15] johnDoe111: has joined #ruby
[10:43:47] john0123: has left #ruby: ("BLACK IS THE ABSENCE OF COLOR NIGGERS ARE SUBHUMAN")
[10:43:51] john0123: has joined #ruby
[10:44:31] certainty: has joined #ruby
[10:49:17] Pumukel: has joined #ruby
[10:49:45] ponga: has joined #ruby
[10:51:07] B1n4r10: has joined #ruby
[10:52:08] alotofnoodles: has joined #ruby
[10:53:50] phredus_: has joined #ruby
[10:54:15] madgen_: has joined #ruby
[10:56:50] rodfersou: has joined #ruby
[10:56:57] giz|work: has joined #ruby
[10:57:13] k3rn31: has joined #ruby
[10:58:15] edwinvdgraaf: has joined #ruby
[10:58:54] john9218: has joined #ruby
[10:59:01] john9218: Two white convicts escape from their prison, only to find that a nigger has followed them out and is running along with them. The three of them see a few tree in the distance and they each climb up one to avoid the bloodhounds that are tracking them. When the police and dogs get to the first tree the dogs go crazy, barking and jumping. The White co
[10:59:02] john9218: nvict goes, "Meeeow," and the cops just think it is a cat stuck in a tree. So they go to the next tree where the other White convict says, "Hoo Hoo hoo Hoooo." The police figure it is just an owl in the tree. The nigger, hearing how the 2 White guys avoided capture, figures he will do the same, and when the dogs get to his tree, he lets out a loud,
[10:59:02] john9218: "Moooooooooo." So anyway, they all three get captured, and now they face the firing squad. The first White guy is standing there and as the warden says, "Ready.....Aim...." the prisoner points behind the cops and yells, "Tornado!" As the firing squad turns to look for the twister, the convict jumps over the wall and escapes. Now they have the seco
[10:59:02] john9218: nd White convict standing there. "Ready.....Aim...." He points over their shoulders and yells, "Flash flood!", and escapes as they turn to look. Now the nigger has his turn. "Ready.Aim....." Just then the nigger jumps up and points and yells, "Fire!"
[11:00:42] axxyhtrx: has joined #ruby
[11:05:28] Shashikant86: has joined #ruby
[11:05:33] apeiros: !ban john9218 racism is not welcome here
[11:05:35] ruby[bot]: +bbb $a:john9218$#ruby-banned john9218!*@*$#ruby-banned *!*@gateway/web/cgi-irc/kiwiirc.com/ip.99.181.20.181$#ruby-banned
[11:05:35] ruby[bot]: ruby[bot] kicked john9218: is not welcome here
[11:08:20] pawnbox: has joined #ruby
[11:09:25] raeoks: has joined #ruby
[11:09:27] Hounddog: has joined #ruby
[11:09:48] pawnbox: has joined #ruby
[11:11:43] k3rn31: has joined #ruby
[11:12:06] elton: has joined #ruby
[11:16:25] DoubleMalt: has joined #ruby
[11:16:41] Alina-malina: has joined #ruby
[11:16:42] Alina-malina: has joined #ruby
[11:17:59] blackmesa: has joined #ruby
[11:19:02] Alina-malina: has joined #ruby
[11:19:16] freerobby: has joined #ruby
[11:20:53] skade: has joined #ruby
[11:21:50] Hyuk: has joined #ruby
[11:22:40] charliesome: has joined #ruby
[11:23:56] Alina-malina: has joined #ruby
[11:24:12] nettoweb: has joined #ruby
[11:26:54] jaguarmagenta: has joined #ruby
[11:28:06] tlaxkit: has joined #ruby
[11:28:06] ldnunes: has joined #ruby
[11:29:37] Ishido: has joined #ruby
[11:30:43] nankyokusei: has joined #ruby
[11:31:05] gnufied: has joined #ruby
[11:36:45] crameth: has joined #ruby
[11:36:47] tristanp: has joined #ruby
[11:37:28] crameth: has joined #ruby
[11:38:51] Ishido: has joined #ruby
[11:38:54] Alina-malina: has joined #ruby
[11:39:35] dionysus69: has joined #ruby
[11:40:20] d0lph1n98: has joined #ruby
[11:41:17] zapata: has joined #ruby
[11:41:41] alotofnoodles: has joined #ruby
[11:43:57] zacstewart: has joined #ruby
[11:52:37] bruce_lee: has joined #ruby
[11:52:58] Hanmac: has joined #ruby
[11:53:02] Ropeney: has joined #ruby
[11:54:24] ljarvis: has joined #ruby
[11:55:43] Shashikant86: has joined #ruby
[12:00:10] axxyhtrx: has joined #ruby
[12:00:47] ljarvis: has joined #ruby
[12:02:27] ljarvis: has joined #ruby
[12:04:09] synthroid: has joined #ruby
[12:07:49] sergio_101: has joined #ruby
[12:10:46] blackmesa: has joined #ruby
[12:13:29] truenito: has joined #ruby
[12:17:38] Akuma: has joined #ruby
[12:17:53] lessless: has joined #ruby
[12:18:04] Ishido: has joined #ruby
[12:18:07] Hyuk: has joined #ruby
[12:18:36] prestorium: has joined #ruby
[12:19:24] kam270: has joined #ruby
[12:19:53] Vile`: has joined #ruby
[12:20:47] panpainter: has joined #ruby
[12:21:49] tknz: has joined #ruby
[12:24:37] davedev24: has joined #ruby
[12:27:06] freerobby: has joined #ruby
[12:28:02] freerobby: has joined #ruby
[12:29:10] tjbiddle: has joined #ruby
[12:29:27] edwinvdgraaf: has joined #ruby
[12:31:34] romistrub: has joined #ruby
[12:34:20] jas02: has joined #ruby
[12:35:27] blackmesa: has joined #ruby
[12:35:30] phredus__: has joined #ruby
[12:38:36] heinrich5991: has joined #ruby
[12:39:05] p337rB: has joined #ruby
[12:39:56] B1n4r10: has joined #ruby
[12:41:36] davedev24: has joined #ruby
[12:41:37] johnmilton: has joined #ruby
[12:42:09] joonty: has joined #ruby
[12:43:13] guardian: has joined #ruby
[12:44:43] zacstewart: has joined #ruby
[12:45:44] cdg: has joined #ruby
[12:45:54] augcesar: has joined #ruby
[12:48:34] phredus: has joined #ruby
[12:51:09] garethrees: has joined #ruby
[12:51:50] flashpoint9: has joined #ruby
[12:52:32] chouhoulis: has joined #ruby
[12:53:20] bmurt: has joined #ruby
[12:53:59] LoneHermit: has joined #ruby
[12:54:26] joonty: has joined #ruby
[12:55:01] tjbiddle: has joined #ruby
[12:56:26] DanyC: has joined #ruby
[12:57:11] mdw: has joined #ruby
[13:00:58] pwnd_nsfw: has joined #ruby
[13:01:38] phredus: has joined #ruby
[13:01:45] fmcgeough: has joined #ruby
[13:02:13] pawnbox: has joined #ruby
[13:03:38] hutch34: has joined #ruby
[13:03:52] DanyC_: has joined #ruby
[13:04:35] DanyC_: has joined #ruby
[13:05:35] ChiefAlexander: has joined #ruby
[13:06:12] ramortegui: has joined #ruby
[13:08:24] pawnbox: has joined #ruby
[13:09:09] ChiefAlexander_: has joined #ruby
[13:09:35] mensvaga: I'm using ERB, and the 'pp' module inside of my template. There are no other external dependencies. When I run erb as root I get different output than if I run it as a regular user.
[13:09:47] bmurt: has joined #ruby
[13:10:37] apeiros: root and regular user then probably use different rubies and/or gems.
[13:11:40] apeiros: assuming that by "different output" you exclude anything data related…
[13:11:49] mensvaga: All data is local to the file.
[13:12:04] mensvaga: Now, I need to construct a shortened version and debug I guess.
[13:12:18] mensvaga: It's SO WEIRD>
[13:12:41] eichenwald: has joined #ruby
[13:12:48] elton: has joined #ruby
[13:12:52] apeiros: you can start with running `ruby -v` as both users
[13:13:28] mensvaga: ruby 2.0.0p353 (2013-11-22 revision 43784) [x86_64-linux]
[13:13:31] mensvaga: they're both the same.
[13:13:49] aegis3121: has joined #ruby
[13:13:52] apeiros: then it's indeed weird.
[13:14:41] ChiefAlexander: has joined #ruby
[13:14:55] mensvaga: Yeah. The only thing I can think of is the behavior of Marshal might be different.
[13:15:03] Ropeney: has joined #ruby
[13:15:21] mensvaga: I need to build test cases. I'll do that now.
[13:15:52] apeiros: with the same version of ruby? shouldn't…
[13:15:56] apeiros: neither should erb
[13:16:09] apeiros: and you don't require anything? not even via something like RUBYOPT?
[13:16:23] apeiros: (I mean, apart from 'erb' and 'pp')
[13:16:30] Affix: has joined #ruby
[13:16:38] malconis: has joined #ruby
[13:18:18] mensvaga: It's literally many data structures hard coded into a file. Copied using Marshal, and outputted.
[13:18:39] mensvaga: The output is ALSO different on a 3rd system.
[13:18:54] Yiota: has joined #ruby
[13:19:06] apeiros: what kind of differences are we talking about?
[13:19:14] axxyhtrx: has joined #ruby
[13:19:19] pwnd_nsfw`: has joined #ruby
[13:19:25] romistrub: blah... can you guys read this?
[13:19:32] d0lph1n98: has joined #ruby
[13:19:54] romistrub: huh, I'm getting a "cannot send to channel #mysql" error in the mysql channel
[13:19:55] shevy: romistrub no
[13:20:02] romistrub: shevy: ok :P
[13:20:12] edwinvdg_: has joined #ruby
[13:20:15] tubuliferous_: has joined #ruby
[13:20:21] agit0: has joined #ruby
[13:20:24] romistrub: so I'm gonna ask you guys a mysql question :P
[13:20:26] shevy: time to abandon webchat and join us oldschool client users!
[13:20:33] romistrub: shevy: suggestions?
[13:20:41] romistrub: I'm on linux
[13:20:48] giz|work: has joined #ruby
[13:20:48] shevy: if it would be the year 2005
[13:20:50] shevy: I would say xchat
[13:21:04] romistrub: but it's not...
[13:21:15] shevy: but that is what I am still using!!!
[13:21:21] Niham: has joined #ruby
[13:21:23] romistrub: if it works, it works
[13:21:27] romistrub: I'll try it
[13:21:35] shevy: you can try hexchat, it is the inofficial successor to xchat https://hexchat.github.io/downloads.html
[13:22:37] mensvaga: apeiros: It's something that generates many nagios service checks, host definitions, and service dependencies In certain cases, it looks like information is "leaking".
[13:23:00] mensvaga: I thought I isolated all of the data structures by marshalling and unmarshalling.
[13:23:21] romistrub_: has joined #ruby
[13:23:22] mensvaga: buuut, something might not be working there. I didn't check beyond 2 depths to see if the copies were true copies.
[13:23:28] romistrub_: testing. on hexchat :)
[13:24:07] romistrub_: cripes.... same error... cannot send to channel
[13:24:34] apeiros: romistrub_: you probably need to be registered
[13:24:36] romistrub_: .nick romistrub
[13:24:40] charliesome: has joined #ruby
[13:24:42] apeiros: ?register romistrub_
[13:24:43] ruby[bot]: romistrub_: you need to be identified with NickServ, see /msg NickServ HELP
[13:25:17] shevy: some channels are very snobbish
[13:25:29] shevy: you can only join if you are a registered irc citizen!
[13:25:38] apeiros: can't blame them
[13:25:46] apeiros: blame the trolls
[13:25:51] allcentury: has joined #ruby
[13:26:07] apeiros: there have been requests to do the same in #ruby
[13:27:38] jaguarmagenta: has joined #ruby
[13:28:01] hutch34: has joined #ruby
[13:28:02] suchness: has joined #ruby
[13:28:05] romistrub: has joined #ruby
[13:28:08] ekinmur: has joined #ruby
[13:28:59] mensvaga: Back when Oracle bought MySQL it wasn't hard to get yourself banned from #mysql.
[13:29:36] kareeole_: has joined #ruby
[13:30:06] mensvaga: One time I said, "Just select * , and get the column names from your database driver. Your language probably has the equivalent methods to fetch the column names into an array."
[13:30:33] romistrub: /msg NickServ VERIFY REGISTER romistrub pyrqqsmfrywh
[13:30:35] mensvaga: I'm serious.
[13:30:51] apeiros: what was the rationale?
[13:30:54] mensvaga: This was probably 2008.
[13:30:59] suchness: If I have a class with an initialize method that takes a block and instance evals it to create an instance, how can I do something like this: http://pastie.org/private/n3n8f4qzp4okrybrlvglw Right now @alpha is complaining it doesn't know what 'variables' are.
[13:31:04] mensvaga: They were PHP people trying to prevent people from running select *.
[13:31:12] mensvaga: And I "was promoting bad programming practice."
[13:31:19] romistrub: testing! lol
[13:31:27] apeiros: suchness: oh dear, why'd you do arity-testing?
[13:31:31] kobain: has joined #ruby
[13:31:39] nankyokusei: has joined #ruby
[13:31:41] suchness: apeiros: It doesn't need I I realize that.
[13:31:57] apeiros: suchness: then don't. and you have your problem solved for free already.
[13:32:16] apeiros: no, misread your problem
[13:32:32] apeiros: you solve it by doing: b = self; Alpha.new do; b.variables …
[13:32:35] jancel: has joined #ruby
[13:32:47] suchness: apeiros: Alright, thanks!
[13:32:52] Sashimi: has joined #ruby
[13:32:54] romistrub: so my nick is registered and it's still not working
[13:33:04] toretore: suchness: or by not using the instance_eval version
[13:33:08] apeiros: romistrub: maybe you got muted
[13:33:14] toretore: that's why the arity check exists
[13:33:24] apeiros: `/mode #mysql +q` gives you the mute list
[13:33:27] suchness: toretore: What is the other 'version'?
[13:34:13] Shashikant86: has joined #ruby
[13:34:20] toretore: Alpha.new{|a| }
[13:34:30] suchness: toretore: Ah I see
[13:34:46] romistrub: apeiros, I'm not on the mute list, lol
[13:35:02] suchness: toretore: So basically yield 'self'
[13:35:28] romistrub: can someone here go to #mysql and check that they can message?
[13:35:30] toretore: suchness: that is what it does, yes
[13:35:40] apeiros: romistrub: oh, you may have *registered* your nick, you did not *authorize* your current connection, though
[13:35:47] romistrub: apeiros, lmao
[13:35:57] romistrub: and what per tell does that entail?
[13:36:01] apeiros: err, *authenticate*
[13:36:16] apeiros: /ns help identify
[13:36:18] xlegoman: has joined #ruby
[13:37:24] romistrub: oh jeez, there's a registration *verification*
[13:37:25] Amnez777: has joined #ruby
[13:37:27] apeiros: better yet - set up sasl-auth, that'll ensure you're identified before your client tries to join channels which require registration. (how depends on your client)
[13:37:28] sepp2k: has joined #ruby
[13:37:29] romistrub: I didn't get any other emails :|
[13:37:32] Alina-malina: has joined #ruby
[13:37:40] apeiros: 15:30 romistrub: /msg NickServ VERIFY REGISTER romistrub pyrqqsmfrywh
[13:37:44] apeiros: seems you got it just fine?
[13:37:53] apeiros: also, #freenode for freenode issues :-p
[13:37:55] Alina-malina: has joined #ruby
[13:38:09] romistrub: okay, I'll take this there if I'm clogging up the airwaves
[13:38:40] ncthom91: has joined #ruby
[13:38:59] romistrub: omg... #freenode :cannot send to channel
[13:39:02] romistrub: same error lol
[13:41:02] codeurge: has joined #ruby
[13:41:21] romistrub: okay, I got the verification email, but when I do a /msg NickServ Info I get "romistrub has NOT COMPLETED registration verification"
[13:42:04] apeiros: then do what they tell you to do in that email
[13:42:12] apeiros: you know, just employ the most basic reading skills?
[13:42:22] SilverKey: has joined #ruby
[13:42:39] apeiros: you make it seem like you're on the internet for the first time - are you?
[13:42:42] romistrub: apeiros, I totally did, and it said I was registered
[13:42:50] mensvaga: *sigh* it's my fault. But, different versions of ERB are giving me different results.
[13:42:57] mensvaga: Different users, same machine give the same result.
[13:43:06] romistrub: apeiros, sentient cuttlefish :P
[13:43:38] startupality: has joined #ruby
[13:43:51] terlar: has joined #ruby
[13:43:53] jrafanie: has joined #ruby
[13:44:31] romistrub: bollocks, it must not have worked the first time
[13:44:41] mensvaga: There's the version of ERB that puppet uses on my puppet server. Then there's the version of ERB that regular users use. Then, there's the version of ERB I'm using to develop things with.
[13:44:48] romistrub: omg it works! thanks apeiros
[13:46:45] zacstewart: has joined #ruby
[13:47:09] aryaching: has joined #ruby
[13:47:12] the_drow: has joined #ruby
[13:48:03] paultreny: has joined #ruby
[13:48:04] karmatr0n: has joined #ruby
[13:48:55] paultreny: has joined #ruby
[13:49:26] tlaxkit: has joined #ruby
[13:49:26] apeiros: romistrub: so now we've cuttelfish on our irc, great :D
[13:49:54] techietrash: has joined #ruby
[13:51:56] Sashimi: has joined #ruby
[13:52:24] karmatr0_: has joined #ruby
[13:52:30] pwnd_nsfw: has joined #ruby
[13:53:31] JakFrist: has joined #ruby
[13:53:50] snath: has joined #ruby
[13:54:22] mbologna: has joined #ruby
[13:56:00] diegoaguilar: has joined #ruby
[14:00:12] CJKinni: has joined #ruby
[14:01:15] dhollinger: has joined #ruby
[14:02:20] mattwashere: has joined #ruby
[14:02:23] Brklyn: has joined #ruby
[14:02:53] zacstewart: has joined #ruby
[14:03:30] lessless: has joined #ruby
[14:05:23] raz: is there an easy way to add custom rules to rubocop? i'd like to ban ENV[] from our code-base (force people to use ENV.fetch)
[14:05:50] charliesome: has joined #ruby
[14:06:04] swills: has joined #ruby
[14:08:59] cajone: has joined #ruby
[14:11:22] diegoviola: has joined #ruby
[14:11:31] jhack: has joined #ruby
[14:12:47] pawnbox: has joined #ruby
[14:13:33] jhack_: has joined #ruby
[14:14:31] cajone: has joined #ruby
[14:14:48] babblebre: has joined #ruby
[14:14:55] eljimbo: has joined #ruby
[14:17:03] axisys: has joined #ruby
[14:17:05] mattwashere: has joined #ruby
[14:17:21] SilverKey: has joined #ruby
[14:18:08] Blue_Ice: has joined #ruby
[14:18:45] mattwash_: has joined #ruby
[14:19:00] the_drow: has joined #ruby
[14:19:57] rkazak: has joined #ruby
[14:20:01] romistrub: whoo... so I'm having trouble installing mysql2 using 'sudo gem install mysql2'
[14:20:26] romistrub: tried install libmysqlclient-dev and the gem still won't install
[14:20:34] romistrub: here's the terminal output https://gist.github.com/anonymous/a705dd0f08879493f0856b3ffbd63382
[14:20:41] tristanp: has joined #ruby
[14:21:20] flashpoint9: has joined #ruby
[14:22:34] alfiemax: has joined #ruby
[14:23:18] pawnbox: has joined #ruby
[14:23:39] shevy: romistrub looks like debian base. did you install the ruby dev stuff too?
[14:23:39] agent_white: has joined #ruby
[14:24:04] romistrub: shevy, apt-get can't find the ruby dev stuff
[14:25:02] jord-n: has joined #ruby
[14:25:43] Shashikant86: has joined #ruby
[14:25:59] the_drow: has joined #ruby
[14:26:49] shevy: romistrub yeah it can be tricky to find out how debian names these things
[14:27:21] shevy: romistrub back when I used debian, one alias I used was: "aptitude install ruby1.9.1-dev; apt-get install ruby-all-dev"
[14:27:29] shevy: but that was like 10 years ago, I would not expect this to work nowadys :D
[14:28:43] B1n4r10: has joined #ruby
[14:31:15] romistrub: shevy, who knew that installing ruby2.3-dev would make the gem install
[14:31:26] romistrub: any explanation as to why?
[14:32:02] shevy: you have to ask the debian folks for their stuff :D
[14:32:09] Neozonz: has joined #ruby
[14:32:31] lupine: gems containing ext/ directories will need the ruby-dev package, yes
[14:32:52] JesseH2: has joined #ruby
[14:33:01] arajakul: has joined #ruby
[14:33:15] p337rB_: has joined #ruby
[14:33:29] edwinvdgraaf: has joined #ruby
[14:35:16] safetypin: has joined #ruby
[14:35:25] karmatr0n: has joined #ruby
[14:35:43] mattwashere: has joined #ruby
[14:38:57] morochena: has joined #ruby
[14:41:28] elton: has joined #ruby
[14:42:22] LoneHermit: has joined #ruby
[14:43:01] jas02: has joined #ruby
[14:43:04] rippa: has joined #ruby
[14:43:39] tjbiddle: has joined #ruby
[14:44:42] SilverKey: has joined #ruby
[14:45:27] startupality: has joined #ruby
[14:47:32] agent_white: has joined #ruby
[14:48:04] panpainter: has joined #ruby
[14:48:58] aufi: has joined #ruby
[14:48:59] shinnya: has joined #ruby
[14:49:59] the_drow: has joined #ruby
[14:51:32] DoubleMalt: has joined #ruby
[14:51:49] pawnbox: has joined #ruby
[14:53:17] SilverKey: has joined #ruby
[14:54:55] symm-: has joined #ruby
[14:55:10] mattwashere: has joined #ruby
[14:55:11] ChiefAlexander: has joined #ruby
[14:58:39] pawnbox: has joined #ruby
[15:02:13] swills: has joined #ruby
[15:02:32] davedev24: has joined #ruby
[15:04:24] mensvaga: apeiros: I FOUND IT.
[15:04:33] mensvaga: Scoping changed from one version to the next.
[15:04:46] edwinvdg_: has joined #ruby
[15:05:06] mensvaga: I'm using a variable inside of a loop that's "leaking" outside of the loop; and I'm using the same variable in one of the outer loops.
[15:05:08] mensvaga: "field name"
[15:05:14] mensvaga: err, "field_name"
[15:06:03] shevy: I sometimes use a very dumb naming scheme
[15:06:13] shevy: array.each {|entry|
[15:06:18] shevy: entry.each {|inner_entry|
[15:06:48] mensvaga: I (sadly) am 4 levels deep in a loop for this one. It's a short bit of code inside the 3rd loop though.
[15:07:12] apeiros: mensvaga: o0 so you were not actually running the same code?
[15:07:28] mensvaga: I was running the same code.
[15:07:38] mensvaga: I was reusing variable names.
[15:07:44] Stan: has joined #ruby
[15:07:48] mensvaga: One version of ERB handled it differently than the other.
[15:08:05] mensvaga: The newer version created a "local" variable for the inner loop.
[15:08:14] mensvaga: The older version bled the value out.
[15:08:15] apeiros: and by "version of erb" you mean "one modified erb"?
[15:08:27] apeiros: since you said you were using the same ruby version…
[15:08:41] djbkd: has joined #ruby
[15:09:03] aegis3121: has joined #ruby
[15:09:11] mensvaga: erb on my puppet server: erb.rb [2.1.0 2009-02-24] ; erb on my desktop: [2.1.0 2013-01-26]
[15:09:32] mensvaga: Next version fixes everything, amiright?
[15:09:42] shevy: erb should be removed :)
[15:09:47] nsxeqo: has joined #ruby
[15:09:56] hutch34: has joined #ruby
[15:10:15] apeiros: mensvaga: you use an erb *executable*?
[15:10:39] mensvaga: Only to attempt to predict how puppet's going to translate it.
[15:11:10] mensvaga: Everything is pretty modularized as it is. It's really only one step away from being thrown into classes and everything.
[15:11:22] mensvaga: But, to make it work, I kind of have to throw it all into one file now.
[15:11:31] apeiros: I wonder how you manage to have different erb version on the same ruby…
[15:12:24] mensvaga: I dunno. The observed behavior is definitely different though. One treated the variable with the same name in the inner loop as a variable with local scope to that loop
[15:12:34] mensvaga: the other one over wrote the value of the variable in the outer loop.
[15:12:46] mensvaga: Admittedly, I should not be using the same variable names. I've fixed that.
[15:12:51] the_drow: has joined #ruby
[15:13:05] apeiros: given that you use an erb executable, it may even be that they're not even running on the same ruby version… I have no idea whether that 2.1.0 in that version string denotes the ruby version or not…
[15:13:12] mensvaga: Mah brain went, "Stuff is... leaking."
[15:13:38] maucar: has joined #ruby
[15:15:05] apeiros: ah, it's not
[15:15:07] apeiros: `echo '<%= RUBY_VERSION %>' | erb`
[15:15:12] apeiros: that'll give you the ruby version
[15:15:17] apeiros: I bet it differs
[15:15:30] edwinvdgraaf: has joined #ruby
[15:16:14] dionysus69: has joined #ruby
[15:16:16] apeiros: where `erb` is of course whatever you use to run erb…
[15:17:12] romistrub: off-topic question: how many hours a day do you spend coding or doing something related to coding?
[15:17:18] kareeoleez: has joined #ruby
[15:17:28] matp: has joined #ruby
[15:17:28] tish: has joined #ruby
[15:18:04] romistrub: time expansion in dreams
[15:18:31] mensvaga: The versions of ruby are different.
[15:18:43] mensvaga: But, I knew that.
[15:18:43] apeiros: remember how that was my first question?
[15:18:57] mensvaga: Yes. I have some drab in the middle about being wrong about the versions matching.
[15:19:05] the_drow: has joined #ruby
[15:19:23] apeiros: well… your loss. could have saved you ~2h if you'd told me :-p
[15:20:06] nettoweb: has joined #ruby
[15:20:42] mensvaga: (09:42:49 AM) mensvaga: *sigh* it's my fault.
[15:21:04] mensvaga: Almost 2 hours ago. I did find the versions were different.
[15:21:05] mattwashere: has joined #ruby
[15:21:19] apeiros: ah I didn't gather from that that the versions were different
[15:21:32] mensvaga: I didn't directly address you either ;)
[15:21:39] mensvaga: Err, I should/could have
[15:21:40] the_drow: has joined #ruby
[15:21:44] mensvaga: but, then I went down the rabbit hole.
[15:21:47] apeiros: I mean, ruby versions
[15:22:00] apeiros: you found it
[15:22:04] apeiros: that's what matters, I guess
[15:22:10] jancel: has joined #ruby
[15:22:15] edwinvdg_: has joined #ruby
[15:22:33] mensvaga: major scoping change from one major version to the next. I might have even read about it in the past.
[15:22:33] sandstrom: has joined #ruby
[15:23:11] sergio_101: has joined #ruby
[15:23:21] apeiros: yes, ruby 1.8 to ruby 1.9 changed quite a bit
[15:23:32] tjbiddle: has joined #ruby
[15:28:23] jaguarmagenta: has joined #ruby
[15:28:56] tmtwd: has joined #ruby
[15:29:39] highbass: has joined #ruby
[15:29:57] highbass: in ruby i got something as such to get path to root of the project "pwd = File.expand_path("../..", __FILE__)"
[15:30:21] highbass: for one of my rb.. what i want to know is if its possible to capture the path from where the command is actually executing...
[15:30:40] highbass: instead of capture the path of the file being executed and hacking to get the root of the project
[15:30:44] mensvaga: current working directory?
[15:30:52] highbass: yes i think that would do it
[15:31:04] mensvaga: http://ruby-doc.org/core-2.3.1/Dir.html#method-c-pwd
[15:32:14] highbass: hmm actually Dir.pwd gives the directory where the script is ... so forexample ... if i am at the root of my director say '/' and i run the following command ... ruby /test/xx.rb; .. Dir.pwd will return /test
[15:32:26] highbass: even though the execution took place in '/'
[15:32:30] nankyokusei: has joined #ruby
[15:35:21] highbass: hmm i might be wrong on thsi one
[15:35:31] highbass: mensvaga: thanks for the article
[15:38:59] d0nn1e: has joined #ruby
[15:41:29] bmurt: has joined #ruby
[15:41:52] palms: has joined #ruby
[15:42:07] chouhoulis: has joined #ruby
[15:42:33] alfiemax: has joined #ruby
[15:42:47] tjbiddle_: has joined #ruby
[15:43:56] Vile`: has joined #ruby
[15:45:02] chouhoulis: has joined #ruby
[15:45:33] RegulationD: has joined #ruby
[15:45:53] mdw: has joined #ruby
[15:50:12] flashpoint9: has joined #ruby
[15:52:03] Madplatypus: has joined #ruby
[15:53:12] gizmore: has joined #ruby
[15:53:49] the_drow: has joined #ruby
[15:54:23] mensvaga: you need getwd
[15:54:41] mensvaga: err, wait. never mind. gtg. didn't read.
[15:55:20] amclain: has joined #ruby
[15:55:42] digneety: has joined #ruby
[15:55:50] mattwashere: has joined #ruby
[15:57:16] SilverKey: has joined #ruby
[15:58:03] whathappens: has joined #ruby
[16:00:05] digneety: has joined #ruby
[16:00:17] codecop: has joined #ruby
[16:00:18] tjohnson: has joined #ruby
[16:01:12] chipotle: has joined #ruby
[16:01:52] mattwashere: has joined #ruby
[16:02:26] chipotle: has joined #ruby
[16:04:24] Yiota: has joined #ruby
[16:04:25] synthroid: has joined #ruby
[16:06:04] marr: has joined #ruby
[16:06:11] Amnez777: has joined #ruby
[16:06:33] amclain: has joined #ruby
[16:06:36] jhass: getcwd and pwd are the same and what you asked for
[16:07:31] the_drow: has joined #ruby
[16:08:55] wrkrcoop: has joined #ruby
[16:09:04] SCHAAP137: has joined #ruby
[16:09:08] wrkrcoop: Anyone know how to unhash my hmac?
[16:09:52] hahuang61: has joined #ruby
[16:10:05] the_drow: has joined #ruby
[16:10:13] jhass: the purpose of a good cryptographic hash function is to be one way
[16:10:38] wrkrcoop: jhass so how does the receiver know its legit?
[16:10:52] jhass: by doing the same computation again
[16:10:53] wrkrcoop: and not just a random hmac where the secret doesn’t match?
[16:11:00] wrkrcoop: but do they have the message?
[16:11:05] wrkrcoop: oh i guess …
[16:11:09] jhass: if they don't they can't verify it
[16:11:42] elton: has joined #ruby
[16:14:37] vuoto: has joined #ruby
[16:16:14] romistrub: is python more popular than Ruby? I've been looking for good Ruby books at my local bookstore and there are a dozen Python books but literally no Ruby books
[16:16:20] wrkrcoop: i’m writing this spec where i say expect(a == b).to be false
[16:16:25] fiifi: has joined #ruby
[16:16:31] wrkrcoop: feels wrong, but i didnt see a to not_equal
[16:16:54] alfiemax: romistrub, yes
[16:17:03] wrkrcoop: romistrub: ppl will disagree but it seems older people like python, python is also used at google, and its used in colleges to teach programming
[16:17:07] elomatreb: romistrub: Ruby has the problem that everyone thinks it's just for webdev
[16:17:10] havenwood: romistrub: Someone bought all the Ruby books I suppose!
[16:17:18] wrkrcoop: ruby seems to be more popualr in silicon valley and web dev
[16:17:29] B1n4r10: has joined #ruby
[16:17:53] alfiemax: python is most widely used in scientific computing and places where ruby slows down
[16:18:26] wrkrcoop: i dont like pythons white space stuff but i’ve only used it for a week
[16:18:41] alfiemax: white space stuff?
[16:18:50] wrkrcoop: white space sensitive
[16:19:01] fiifi: ruby outwits python on syntax sugar
[16:19:09] elomatreb: Programming languages naturally evolve into their niches. Python has a lot of good statistics libraries/toolsets, ruby not so much
[16:19:25] alfiemax: oh, you mean python has strict indentation
[16:19:42] fiifi: ruby syntax is really cool
[16:19:43] juanfra: has joined #ruby
[16:20:13] elomatreb: fiifi: this. Also blocks feel so nice to use, even compared to languages like JS that also use something similar
[16:20:33] fiifi: python is also a great language but its indentation is boring
[16:20:55] fiifi: elomatreb: yeah blocks are great
[16:20:59] danostrowski: has joined #ruby
[16:21:09] wrkrcoop: alfiemax: i dont mind that but it should do it for you like in Go where they use go format
[16:21:32] King_DuckZ: has joined #ruby
[16:22:11] wrkrcoop: else programmers spend time trying to find where the whitespace issue is
[16:22:12] romistrub: havenwood, Hah! a likely story ;)
[16:22:31] fiifi: wrkrcoop: hehehe
[16:22:48] shevy: whitespace
[16:23:04] elomatreb: wrkrcoop: Re your spec question: Isn't there expect().to_not ?
[16:23:10] jhass: wrkrcoop: expect(a).not_to eq(b)
[16:23:28] King_DuckZ: hi, I already know some ruby from a few years ago, and I recently learned postgresql and redis - now I'd like to try and write some simple website where you have a textbox for example and the server will store data submitted by the user, can somebody point me to some tutorial?
[16:23:40] King_DuckZ: something like nginx+ruby or something like that
[16:24:32] matp: has joined #ruby
[16:24:35] jhass: King_DuckZ: http://recipes.sinatrarb.com/p/models/sequel
[16:24:39] wrkrcoop: elomatreb: jhass thanks
[16:25:17] tAn: has joined #ruby
[16:25:18] wrkrcoop: jhass: wouldn’t u say thats a bad test though
[16:25:28] wrkrcoop: your just testing its not 1 thing instead of testing it is 1 thing
[16:25:47] jhass: depends on context
[16:27:15] Brklyn: has joined #ruby
[16:27:33] AlexRussia: has joined #ruby
[16:32:25] smathy: has joined #ruby
[16:33:20] certainty: has joined #ruby
[16:35:41] iamayam: has joined #ruby
[16:36:08] madgen: has joined #ruby
[16:36:49] millerti: has joined #ruby
[16:37:52] Canucktux: has left #ruby: ("http://quassel-irc.org - Chat comfortably. Anywhere.")
[16:38:44] shevy: atmosx how are you doing? busy at work?
[16:39:32] palms: has joined #ruby
[16:40:31] TomyLobo: has joined #ruby
[16:41:36] whathapp_: has joined #ruby
[16:42:34] flashpoint9: has joined #ruby
[16:43:39] pwnd_nsfw`: has joined #ruby
[16:44:40] the_drow: has joined #ruby
[16:45:18] sunn: has joined #ruby
[16:47:09] the_drow: has joined #ruby
[16:47:46] snebel: has joined #ruby
[16:47:48] Coldblackice: has joined #ruby
[16:49:01] pilne: has joined #ruby
[16:49:29] moeabdol: has joined #ruby
[16:54:43] B1n4r10: has joined #ruby
[16:56:05] madgen_: has joined #ruby
[16:56:58] aegis3121: has joined #ruby
[16:57:51] alfiemax: has joined #ruby
[16:58:44] mikecmpbll: has joined #ruby
[16:59:38] SilverKey: has joined #ruby
[17:00:33] choke: has joined #ruby
[17:01:36] crdpink: has joined #ruby
[17:01:41] ramfjord: has joined #ruby
[17:02:19] Zackio: has joined #ruby
[17:03:04] blackmesa: has joined #ruby
[17:03:14] JakFrist: has joined #ruby
[17:05:29] freerobby: has joined #ruby
[17:05:44] theasdfman: has joined #ruby
[17:06:11] theasdfman: has left #ruby: ()
[17:07:11] SilverKey: has joined #ruby
[17:07:11] craigp: has joined #ruby
[17:07:24] hahuang61: has joined #ruby
[17:08:06] ChiefAlexander: has joined #ruby
[17:08:28] madgen: has joined #ruby
[17:10:37] Yiota: has joined #ruby
[17:10:40] dstarh: has joined #ruby
[17:11:50] jancel: has joined #ruby
[17:12:36] smccarthy: has joined #ruby
[17:12:48] zotherstupidguy: has joined #ruby
[17:13:08] nankyokusei: has joined #ruby
[17:13:25] smccarthy: I am running some tests that are written in ruby, and I noticed the logs are not getting printed to the console until AFTER the test finishes. Is there something I can look for to have it print out the logs as they come in?
[17:13:40] romistrub: what does the ext subdirectory mean in a gem directory?
[17:16:57] synthroid: has joined #ruby
[17:17:31] ceej: has joined #ruby
[17:18:48] norc_: smccarthy, can you be more specific about what you are doing?
[17:19:04] [Butch]: has joined #ruby
[17:20:06] smccarthy: I have a Rakefile, and running the tests via a rake task. Inside of my tests, there are a lot of log.info, and I see "Logging.logger.root.appenders = Logging.appenders.stdout" as well. I just read , http://stackoverflow.com/questions/11631951/jenkins-console-output-not-in-realtime , and maybe its related
[17:20:53] norc_: smccarthy, gist some code for us to see. Also tell us which Logger class you are using, and which test suite (minitest, rspec)
[17:21:04] mdw: has joined #ruby
[17:22:08] norc_: smccarthy, though you could try setting STDOUT.sync to true, which will force flushes each time its written to.
[17:22:23] norc_: If that won't solve it, then you have my curiosity.
[17:24:12] last_staff: has joined #ruby
[17:25:02] smccarthy: norc_: ok thanks, Will try that and if it doesn't work, will post a gist
[17:25:58] scorphus: has joined #ruby
[17:27:19] replay: has joined #ruby
[17:27:36] spudowiar1: has joined #ruby
[17:28:15] rcvalle: has joined #ruby
[17:32:44] LoneHerm_: has joined #ruby
[17:33:09] techietrash: has joined #ruby
[17:34:03] certainty: has joined #ruby
[17:34:33] SilverKey: has joined #ruby
[17:35:36] VeryBewitching: has joined #ruby
[17:36:21] spider-mario: has joined #ruby
[17:38:30] minimalism: has joined #ruby
[17:42:35] hahuang61: has joined #ruby
[17:42:37] bodgix: has left #ruby: ()
[17:42:37] lxsameer: has joined #ruby
[17:43:11] aegis3121: has joined #ruby
[17:44:08] skade: has joined #ruby
[17:44:56] mistermocha: has joined #ruby
[17:47:00] romistrub_: has joined #ruby
[17:48:10] kgrz: has joined #ruby
[17:52:08] jancel: has joined #ruby
[17:54:37] Dreamer3: has joined #ruby
[17:56:52] Dreamer3: has joined #ruby
[17:59:05] Dreamer3: has joined #ruby
[18:01:52] SilverKey: has joined #ruby
[18:05:14] spudowiar: has joined #ruby
[18:05:20] spudowiar: hmm, I need some help here
[18:05:40] spudowiar: I've basically got a method (which I don't control) that tries to access the instance variable `content` by `content`
[18:05:50] spudowiar: I want to create a getter for content that calls this method
[18:06:02] spudowiar: The dilemma is that it isn't using `@content` so it'd be recursive
[18:06:20] toretore: spudowiar: code?
[18:06:29] spudowiar: toretore: it's part of Jekyll
[18:06:44] toretore: so there is no code whatsoever?
[18:06:50] spudowiar: toretore: but basically, the `transform` method has the line ` converters.reduce(content) do |output, converter|`
[18:07:02] spudowiar: toretore: and I'm creating a `content` method that calls `transform`
[18:07:22] spudowiar: toretore: but the dilemma is that `content` will call `transform` which will call `content`, etc.
[18:07:23] kirun: has joined #ruby
[18:08:30] solars: has joined #ruby
[18:08:32] toretore: code is many times easier to read than human language; you are making it much harder for me by not sharing code
[18:08:59] robot: has joined #ruby
[18:09:00] spudowiar: toretore: it's part of Jekyll, let me link it here
[18:09:00] norc_: spudowiar, content is not an instance variable.
[18:09:11] spudowiar: norc_: it is, I'm overriding it with a method
[18:09:18] norc_: spudowiar, Ruby enforces instance variables to have @ in their names.
[18:09:20] [Butch]_: has joined #ruby
[18:09:31] toretore: spudowiar: case in point: i have no idea without context what any of the code you're showing me here is supposed to do
[18:09:31] spudowiar: norc_: it can be accessed from @content
[18:09:38] spudowiar: toretore: ok, just a second
[18:09:40] spudowiar: toretore: finding it
[18:09:43] norc_: spudowiar, content != @content
[18:09:54] spudowiar: norc_: hmm, that's odd, it's working like that though
[18:10:24] norc_: spudowiar, content could be a method that just happens to provide you with the object inside @content
[18:10:41] nankyokusei: has joined #ruby
[18:10:46] spudowiar: norc_: there is no method content :/
[18:10:50] spudowiar: https://github.com/jekyll/jekyll/
[18:10:58] spudowiar: it's using self.content
[18:11:08] norc_: spudowiar, and that is a method invocation.
[18:11:10] spudowiar: which would be a method, right?
[18:11:15] spudowiar: so this doesn't make sense
[18:11:25] norc_: spudowiar, yes.
[18:11:48] spudowiar: found the attr_accessor :)
[18:12:12] spudowiar: basically, can I have a getter that reacts differently externally from the class to internally?
[18:12:13] norc_: spudowiar, great. That is just a short cut for def a(); @a; end; def a=(o); @a = o; end
[18:12:28] norc_: spudowiar, you can have anything you want.
[18:12:50] spudowiar: norc_: could you perhaps hint me towards the method of doing so? :)
[18:13:02] norc_: spudowiar, there is an undocumented feature in Ruby.
[18:13:11] norc_: It uses the keyword "def" to do fairly magical things.
[18:13:14] norc_: Like defining methods.
[18:13:42] norc_: spudowiar, couple it with method visibility (make it private) and you have a nice internal function.
[18:14:32] norc_: spudowiar, though it won't solve your problem which is you have bad code.
[18:14:40] spudowiar: norc_: I'm monkey patching though
[18:14:46] spudowiar: norc_: it's a Jekyll plugin
[18:14:58] xlegoman: has joined #ruby
[18:14:58] toretore: spudowiar: so how about that code?
[18:15:04] spudowiar: toretore: I linked it
[18:15:10] spudowiar: toretore: https://github.com/jekyll/jekyll
[18:15:15] norc_: spudowiar, is that a bad joke?
[18:15:16] spudowiar: toretore: it's the file lib/jekyll/layout.rb
[18:15:21] spudowiar: norc_: what?
[18:15:21] toretore: i'm not going to look through the entire jekyll repo for something i don't know where is
[18:15:28] norc_: ^- what toretore just said.
[18:15:33] spudowiar: 19:15:16 <spudowiar> toretore: it's the file lib/jekyll/layout.rb
[18:15:37] norc_: spudowiar, then please link the file.
[18:15:42] iceden: has left #ruby: ("Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is")
[18:15:45] chipotle: has joined #ruby
[18:15:56] spudowiar: https://github.com/jekyll/jekyll/lib/jekyll/layout.rb
[18:16:04] spudowiar: https://github.com/jekyll/jekyll/blob/master/lib/jekyll/layout.rb
[18:16:25] norc_: spudowiar, that is not your code that has problems.
[18:16:26] toretore: spudowiar: ok, so now after 100 lines of rambling i can see that part of the code. now i need to see your own code that uses this
[18:16:40] spudowiar: I don't have any code yet
[18:16:42] c_nick: has joined #ruby
[18:16:48] Dimik: has joined #ruby
[18:16:58] spudowiar: But the code will essentially be `def content\n transform\n end`
[18:17:15] toretore: why are you doing this? we can't read your mind
[18:17:34] iceden: has joined #ruby
[18:17:39] ricer2: has joined #ruby
[18:17:53] toretore: i have no context whatsoever here, and i have no idea what it is you want to do
[18:17:58] spudowiar: Because Jekyll doesn't transform layouts by default, I need the layouts transformed at a certain point (e.g. the initializer is too early)
[18:18:02] digneety: has joined #ruby
[18:18:19] spudowiar: Well, there's another solution, copy and edit a method :/
[18:20:16] spudowiar: Sorry I'm not being very good at asking for help here :(
[18:20:22] spudowiar: Just forget I asked :)
[18:20:47] norc_: spudowiar, if you monkey patch methods like you do, you will break things.
[18:21:00] spudowiar: well, you have to in a Jekyll plugin
[18:21:04] spudowiar: and just forget I asked :)
[18:21:44] spudowiar: Terribly sorry for wasting your time norc_ and toretore
[18:21:49] codecop: has joined #ruby
[18:22:03] SilverKey: has joined #ruby
[18:22:36] spiette: has joined #ruby
[18:23:46] kgrz: has joined #ruby
[18:24:43] ChiefAlexander: has joined #ruby
[18:24:47] aberen: has joined #ruby
[18:24:55] c_nick: I was looking at the old colleage notes .. and i saw the famous Star Problem __* _** *** when length given is 3 .. How i know how to get this done in C++ i am a bit confused in Ruby what do we use to set teh size in ruby
[18:25:20] zeroDi: has joined #ruby
[18:25:56] arlek: has joined #ruby
[18:26:09] spudowiar: c_nick: you are trying to pad a string?
[18:26:59] c_nick: yeah bingo
[18:27:15] spudowiar: c_nick: ('*' * 2).rjust(3, '_') == "_**"
[18:27:16] c_nick: is that right(3)
[18:27:31] spudowiar: c_nick: ('*' * 1).rjust(3, '_') == "__*"
[18:28:15] c_nick: thanks spudowiar
[18:28:25] nankyokusei: has joined #ruby
[18:28:47] c_nick: has left #ruby: ()
[18:28:55] norc_: "famous star problem" ?
[18:29:07] whathapp_: has joined #ruby
[18:30:52] tristanp: has joined #ruby
[18:31:14] Mon_Ouie: has joined #ruby
[18:31:24] yos7ph: has joined #ruby
[18:32:19] ReK2: has joined #ruby
[18:32:19] ReK2: has joined #ruby
[18:32:23] toretore: spudowiar: if you want to monkeypatch Jekyll::Layout#content you just do module Jekyll; class Layout; def content; transform(@content); end; end; end
[18:32:38] spudowiar: toretore: but transform doesn't take an argument?
[18:32:46] toretore: where is transform from?
[18:32:56] spudowiar: toretore: convertible.rb
[18:33:04] spudowiar: toretore: anyway, leave it
[18:33:32] cdg: has joined #ruby
[18:33:47] blaxter: has joined #ruby
[18:33:51] toretore: so you just return from content whatever you want, and transform will take that
[18:33:54] yos7ph: has joined #ruby
[18:34:19] spudowiar: toretore: but I want to return transform from content :)
[18:34:38] spudowiar: toretore: and it's fine, I'll solve it by taking the method content is used from and patching that
[18:34:48] spudowiar: but that's annoying :(
[18:34:49] certainty: has joined #ruby
[18:35:00] spudowiar: because I have to keep the method up to date
[18:35:50] spudowiar: patching this doesn't fully fix the problem
[18:35:58] toretore: alias it first
[18:36:07] jackjackdripper: has joined #ruby
[18:36:14] jackjackdripper: has joined #ruby
[18:36:18] toretore: alias whatever old_whatever; def whatever; something(old_whatever); end
[18:36:56] spudowiar: toretore: no, it's in the middle
[18:37:11] toretore: what's in the middle?
[18:37:23] spudowiar: toretore: it's place_in_layouts in renderer.rb and I need to patch the middle of the method
[18:39:50] jenrzzz: has joined #ruby
[18:39:50] jenrzzz: has joined #ruby
[18:42:03] xlegoman: has joined #ruby
[18:42:56] multi_io: has joined #ruby
[18:43:39] B1n4r10: has joined #ruby
[18:47:39] jenrzzz: has joined #ruby
[18:48:17] Bloodshot: has joined #ruby
[18:48:56] suchness: How can I detect what class a method was called from?
[18:49:12] wrkrcoop: suchness: i asked that question yesterday
[18:49:14] ivanskie: has joined #ruby
[18:49:22] shevy: the answer yesterday was via .owner right
[18:49:23] wrkrcoop: if you look in history i think jhass answered it
[18:49:37] wrkrcoop: or maybe shevy idk
[18:49:38] norc_: suchness, class?
[18:49:49] norc_: suchness, you mean which class the current method belongs to?
[18:49:58] shevy: http://stackoverflow.com/questions/3492679/ruby-determining-method-origins
[18:50:13] alnewkirk: has joined #ruby
[18:50:27] norc_: suchness, then please be more specific about what you want.
[18:50:43] suchness: I can only type so fast.
[18:51:00] norc_: suchness, in Ruby a class is basically just a container for methods (and some other stuff that is not relevant for this)
[18:51:16] slackbotgz: has joined #ruby
[18:52:27] digneety: has joined #ruby
[18:52:41] suchness: norc_: Haha, I am well aware. Here is my issue. I am building an extension for Prawn to detect when content is split between pages, the extention basically adds a method to the pdf class which takes a block, I am trying to figure out a way to detect what pdf class I am in without expressly passing it, given the nature of how this detection needs to be made the original class is essential.
[18:52:45] suchness: I think I will just pass it.
[18:53:06] norc_: suchness, "what class you are in" what do you mean?
[18:53:22] smathy: self.class ?
[18:53:29] suchness: Oh wow I am an idiot
[18:53:34] suchness: I am included, I know my class
[18:53:44] suchness: I have been at this desk too long
[18:54:35] yfeldblum: has joined #ruby
[18:54:48] jancel: has joined #ruby
[18:54:56] spudowiar: suchness: :)
[18:55:09] spudowiar: I've been at school all day, and it's made me dumb :)
[18:55:28] suchness: spudowiar: I hear you
[18:55:53] suchness: I have been to far into a metaprogramming rabbit hole today to remember the basics of just normal programming.
[18:56:56] norc_: So I wonder whether there is a trivial hack to instantiate a Module... :o
[18:58:50] jackjackdripper: has joined #ruby
[18:59:02] suchness: Besides Module.new ?
[19:02:32] madgen: has joined #ruby
[19:02:46] norc_: suchness, I want a Module#new
[19:03:06] norc_: I mean all I need to do is give it an allocator..
[19:03:34] Mon_Ouie: Class.new { include m }.new
[19:03:45] norc_: That is cheating.
[19:04:39] Silthias: has joined #ruby
[19:05:36] jgt1: has joined #ruby
[19:08:46] yqt: has joined #ruby
[19:13:06] alfiemax: has joined #ruby
[19:15:53] moeabdol: has joined #ruby
[19:17:57] blackmesa: has joined #ruby
[19:18:02] ncthom91: has joined #ruby
[19:22:50] norc_: Mon_Ouie, https://eval.in/589017
[19:23:00] norc_: That was simpler than I thought.
[19:23:12] norc_: Somehow segfaults when trying to call initialize, but who needs initialized objects anyway.
[19:23:46] araujo_: has joined #ruby
[19:24:56] nofxx: has joined #ruby
[19:25:37] norc_: In fact it seg faults a lot when trying to do anything with methods..
[19:26:56] norc_: Oh I think I may not why.
[19:27:09] SCHAAP137: has joined #ruby
[19:28:04] ramfjord: has joined #ruby
[19:28:44] choke: has joined #ruby
[19:28:58] danostrowski: has joined #ruby
[19:29:39] heinrich5991: has joined #ruby
[19:29:43] jaguarmagenta: has joined #ruby
[19:34:47] eljimbo: has joined #ruby
[19:35:08] the_drow: has joined #ruby
[19:35:36] certainty: has joined #ruby
[19:36:17] aswen: has joined #ruby
[19:36:21] the_drow: has joined #ruby
[19:37:25] spiette: has joined #ruby
[19:39:25] edwinvdgraaf: has joined #ruby
[19:40:58] Es0teric: has joined #ruby
[19:40:58] ekinmur: has joined #ruby
[19:44:15] chris3492: has joined #ruby
[19:44:24] tildes: has joined #ruby
[19:46:31] whathappens: has joined #ruby
[19:47:14] tristanp: has joined #ruby
[19:47:16] sebstrax: has joined #ruby
[19:47:57] tristanp: has joined #ruby
[19:48:24] tish: has joined #ruby
[19:48:45] Spami: has joined #ruby
[19:49:20] heinrich5991: has joined #ruby
[19:55:11] Silthias: has joined #ruby
[19:55:20] theery: has joined #ruby
[19:55:58] joonty: has joined #ruby
[19:56:53] karmatr0n: has joined #ruby
[19:57:14] Dreamer3: has joined #ruby
[19:57:19] Dreamer3_: has joined #ruby
[19:57:25] blackgoat: has joined #ruby
[19:59:20] lxsameer: has joined #ruby
[19:59:39] Dreamer3_: has joined #ruby
[20:00:44] tristanp: has joined #ruby
[20:01:55] arajakul1: has joined #ruby
[20:03:39] rueben: has joined #ruby
[20:04:25] flashpoint9: has joined #ruby
[20:07:10] roamingdog: has joined #ruby
[20:08:16] sameerynho: has joined #ruby
[20:11:43] lightt: has joined #ruby
[20:13:00] hahuang62: has joined #ruby
[20:13:03] alfiemax: has joined #ruby
[20:14:49] madgen_: has joined #ruby
[20:15:29] ur5us: has joined #ruby
[20:16:14] choke: has joined #ruby
[20:16:54] jenrzzz: has joined #ruby
[20:16:55] jenrzzz: has joined #ruby
[20:19:58] danostrowski: has joined #ruby
[20:22:17] crystal77: has joined #ruby
[20:24:21] FooMunki: has joined #ruby
[20:26:18] jgt1: has joined #ruby
[20:26:21] rueben: has joined #ruby
[20:28:44] the_drow_: has joined #ruby
[20:29:20] vuoto: has joined #ruby
[20:29:23] sandstrom: has joined #ruby
[20:30:02] ramfjord: has joined #ruby
[20:30:35] the_drow_: has joined #ruby
[20:33:07] SilverKey: has joined #ruby
[20:33:08] jhack: has joined #ruby
[20:33:35] wrkrcoop: has joined #ruby
[20:35:10] the_drow: has joined #ruby
[20:35:47] pawnbox: has joined #ruby
[20:36:14] lightt: has joined #ruby
[20:36:19] certainty: has joined #ruby
[20:36:54] hutch34: has joined #ruby
[20:37:21] flashpoint9: has joined #ruby
[20:39:14] aryaching: has joined #ruby
[20:41:45] the_drow: has joined #ruby
[20:45:05] David27: has joined #ruby
[20:45:28] the_drow: has joined #ruby
[20:49:13] madgen: has joined #ruby
[20:51:14] the_drow: has joined #ruby
[20:51:29] JakFrist: has joined #ruby
[20:52:08] the_drow: has joined #ruby
[20:54:05] postmodern: has joined #ruby
[20:54:59] the_drow: has joined #ruby
[20:55:42] B1n4r10: has joined #ruby
[20:55:49] Mon_Ouie: has joined #ruby
[20:55:51] shevy: has left #ruby: ("I'll be back ... maybe")
[20:55:55] the_drow: has joined #ruby
[20:55:55] shevy: has joined #ruby
[20:56:11] vuoto_: has joined #ruby
[20:56:35] nankyokusei: has joined #ruby
[20:56:50] moeabdol: has joined #ruby
[20:58:50] aberen: has joined #ruby
[20:59:53] the_drow: has joined #ruby
[21:01:41] devsterknight|ZN: has joined #ruby
[21:01:41] meal: has joined #ruby
[21:01:58] Edulix: has joined #ruby
[21:02:02] mdw: has joined #ruby
[21:02:11] the_drow: has joined #ruby
[21:02:29] thejoecarroll: has joined #ruby
[21:02:33] angelixd: has joined #ruby
[21:02:38] Affix: has joined #ruby
[21:02:45] kspencer: has joined #ruby
[21:04:00] mustmodify: has joined #ruby
[21:04:01] diegok: has joined #ruby
[21:05:15] sandstrom: has joined #ruby
[21:05:42] arooni: has joined #ruby
[21:05:53] SilverKey: has joined #ruby
[21:06:29] edwardly: has joined #ruby
[21:06:29] edwardly: has joined #ruby
[21:06:57] matp: has joined #ruby
[21:07:23] solars: has joined #ruby
[21:08:54] ramfjord: has joined #ruby
[21:12:23] whathappens: has joined #ruby
[21:12:33] senayar: has joined #ruby
[21:12:33] senayar: has joined #ruby
[21:13:20] kobain: has joined #ruby
[21:13:20] elton: has joined #ruby
[21:13:30] Saloun: has joined #ruby
[21:13:31] Saloun: has joined #ruby
[21:14:28] vuoto: has joined #ruby
[21:14:30] Darkwater: has joined #ruby
[21:16:05] jgt1: has joined #ruby
[21:16:37] snapcase: has joined #ruby
[21:17:24] bmurt: has joined #ruby
[21:20:24] SilverKey: has joined #ruby
[21:20:50] yfeldblum: has joined #ruby
[21:21:16] tristanp: has joined #ruby
[21:21:19] the_drow: has joined #ruby
[21:21:51] dcunit3d: has joined #ruby
[21:22:10] the_drow: has joined #ruby
[21:24:15] choke: has joined #ruby
[21:25:45] the_drow: has joined #ruby
[21:26:05] vuoto__: has joined #ruby
[21:26:53] iamvery: has joined #ruby
[21:27:00] vuoto___: has joined #ruby
[21:27:58] xlegoman: has joined #ruby
[21:29:12] the_drow: has joined #ruby
[21:29:25] lightt: has joined #ruby
[21:30:41] jaguarmagenta: has joined #ruby
[21:30:46] ceej_: has joined #ruby
[21:31:02] kobain: has joined #ruby
[21:33:32] kareeoleez: has joined #ruby
[21:34:10] diegoaguilar: has joined #ruby
[21:36:47] mikecmpbll: has joined #ruby
[21:36:56] benutzer_: has joined #ruby
[21:37:03] certainty: has joined #ruby
[21:37:05] danostrowski: has joined #ruby
[21:37:26] the_drow: has joined #ruby
[21:37:36] ksu: hi is there someone from Germany or Switzerland
[21:37:55] mustmodify: has left #ruby: ()
[21:37:57] flashpoint9: has joined #ruby
[21:38:21] ruby[bot]: ksu: this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
[21:39:00] the_drow: has joined #ruby
[21:40:43] the_drow: has joined #ruby
[21:42:40] Lord_of_Life: has joined #ruby
[21:43:08] lictor36: has joined #ruby
[21:43:17] kobain: has joined #ruby
[21:45:24] SilverKey: has joined #ruby
[21:45:53] fiifi: has joined #ruby
[21:45:59] vuoto: has joined #ruby
[21:46:22] kobain: has joined #ruby
[21:49:45] the_drow: has joined #ruby
[21:50:51] MarcWeber: has joined #ruby
[21:50:52] vuoto_: has joined #ruby
[21:51:18] MarcWeber: Is rubygems package gone? gem install doesn't seem to find it?
[21:51:40] bougyman: if you're using gem, you already have 'rubygems'
[21:52:17] MarcWeber: Then I just wrote code for an old version ..
[21:52:28] vuoto: has joined #ruby
[21:52:52] baweaver: 1.8.x wants it
[21:52:59] baweaver: but that's been deprecated for a long while
[21:55:36] MarcWeber: No, just had old ruby in path, everytihng is fine: Even works with 2.3 :) Thanks
[21:56:23] Synthead: has joined #ruby
[21:56:37] fiifi: has joined #ruby
[21:56:41] nettoweb: has joined #ruby
[21:57:00] vuoto: has joined #ruby
[21:57:28] the_drow: has joined #ruby
[21:57:34] startupality: has joined #ruby
[21:58:02] rkoller: has joined #ruby
[22:00:32] aberen: has joined #ruby
[22:01:07] startupality: has joined #ruby
[22:02:10] the_drow: has joined #ruby
[22:02:11] eljimbo: has joined #ruby
[22:02:16] flashpoint9: has joined #ruby
[22:02:19] firstdayonthejob: has joined #ruby
[22:02:25] crystal77: has joined #ruby
[22:03:35] mattwashere: has joined #ruby
[22:05:16] the_drow: has joined #ruby
[22:06:14] aeterne: has joined #ruby
[22:07:01] davedev24: has joined #ruby
[22:07:13] dcunit3d: has joined #ruby
[22:07:59] Azure: has joined #ruby
[22:09:59] kobain: has joined #ruby
[22:18:27] vdamewood: has joined #ruby
[22:22:47] pr0ton: has joined #ruby
[22:23:11] solocshaw: has joined #ruby
[22:23:38] whathapp_: has joined #ruby
[22:24:17] Darkwater: has joined #ruby
[22:28:41] jhack: has joined #ruby
[22:29:40] snath: has joined #ruby
[22:30:28] CloCkWeRX: has joined #ruby
[22:31:12] nettoweb: has joined #ruby
[22:31:45] jancel: has joined #ruby
[22:33:56] alotofnoodles: has joined #ruby
[22:34:51] allcentury: has joined #ruby
[22:35:21] swills: has joined #ruby
[22:37:52] certainty: has joined #ruby
[22:38:34] lightt: has joined #ruby
[22:41:16] matp: has joined #ruby
[22:42:21] startupality: has joined #ruby
[22:44:39] Sashimi: has joined #ruby
[22:47:51] tvw: has joined #ruby
[22:48:37] nettoweb: has joined #ruby
[22:50:06] pwnd_nsfw: has joined #ruby
[22:53:58] LoneHerm_: has joined #ruby
[22:54:27] jackjackdripper: has joined #ruby
[22:55:06] Synthead: is there a way to call a proc with different params? proc.call(1, 2, 3) doesn't seem to work
[22:55:15] elementaru: has joined #ruby
[22:56:51] matp: has joined #ruby
[22:56:59] Radar: Synthead: How did you define the proc in the first place?
[22:57:05] gnufied: has joined #ruby
[22:57:20] Synthead: Radar: it's coming from an around_perform job in RoR
[22:57:25] Synthead: I put a binding.pry in it to play with it
[22:58:34] Synthead: the first param to around_perform is the job, the second is the proc that you'd supposedly call somewhere in the block
[22:59:20] jhass: expand on "doesn't seem to work", what do you expect, what do you get
[22:59:59] Synthead: jhass: I expect the proc to be called with the param 1 if I run that_proc.call(1)
[23:00:24] tildes: has joined #ruby
[23:00:27] Synthead: but I'm beginning to think that "perform" is called from somewhere else with other arguments and that it's actually a RoR framework question
[23:01:16] Synthead: like there's an *args in whatever is getting called from the proc, and those args aren't used in calling perform
[23:01:20] aberen: has joined #ruby
[23:04:36] jhass: not too unreasonable
[23:04:47] jancel: has joined #ruby
[23:06:18] jhass: Synthead: https://github.com/rails/rails/blob/77c0256409d48c23b0b208f95191973e8c1dfd7f/activejob/lib/active_job/execution.rb#L31
[23:07:01] Synthead: hahaha, yup
[23:07:05] Synthead: thanks, jhass
[23:09:26] jhass: Synthead: https://github.com/rails/rails/blob/77c0256409d48c23b0b208f95191973e8c1dfd7f/activejob/lib/active_job/core.rb#L7
[23:09:36] jhass: should be able to munge the job's arguments there
[23:10:00] Synthead: jhass: yeah I could ... starting to encroach into code smell territory though, I think
[23:10:09] Synthead: might just make a wrapper method
[23:10:34] jhass: yeah, no idea why it has that callback at all tbh
[23:10:41] jgt2: has joined #ruby
[23:14:13] elton: has joined #ruby
[23:17:42] hahuang62: has joined #ruby
[23:20:51] centrx: has joined #ruby
[23:22:30] lightt: has joined #ruby
[23:27:10] Brklyn: has joined #ruby
[23:27:15] rkazak: has joined #ruby
[23:27:16] jackjackdripper: has joined #ruby
[23:27:36] karmatr0n: has joined #ruby
[23:29:45] jancel: has joined #ruby
[23:31:27] jaguarmagenta: has joined #ruby
[23:35:24] pr0ton: has joined #ruby
[23:38:38] certainty: has joined #ruby
[23:39:11] koooge: has joined #ruby
[23:39:38] lightt: has joined #ruby
[23:40:00] alotofnoodles: has joined #ruby
[23:41:13] Cohedrin: has joined #ruby
[23:42:13] startupality: has joined #ruby
[23:42:28] phrozen77: has joined #ruby
[23:42:44] hutch34: has joined #ruby
[23:47:45] AndyBotwin: has joined #ruby
[23:55:31] higher: has joined #ruby
[23:56:08] arescorpio: has joined #ruby
[23:56:12] higher: has left #ruby: ()
[23:59:11] Brklyn_: has joined #ruby
[23:59:14] cisco: has joined #ruby