« Back to channel list

#ruby - 07 April 2018

« Back 1 day Forward 1 day »
[00:00:33] n0m4d1c__: has joined #ruby
[00:03:09] eckhardt: has joined #ruby
[00:03:25] schneider: has joined #ruby
[00:03:27] mroutis: has left #ruby: ()
[00:04:07] mroutis: has joined #ruby
[00:14:21] schneider: has joined #ruby
[00:15:48] nadir: has joined #ruby
[00:20:50] Azure: has joined #ruby
[00:21:49] dr3wo: has joined #ruby
[00:23:32] schneider: has joined #ruby
[00:24:13] jenrzzz: has joined #ruby
[00:24:13] jenrzzz: has joined #ruby
[00:27:02] weaksauce: oh wait. that's the one i use
[00:27:09] weaksauce: that one is ~100 lines of shell
[00:28:01] mjolnird: has joined #ruby
[00:29:28] darkhanb: has joined #ruby
[00:31:34] schneider: has joined #ruby
[00:35:44] sameerynho: has joined #ruby
[00:38:21] drale2k_: has joined #ruby
[00:40:23] coderphive: has joined #ruby
[00:40:40] noobineer: has joined #ruby
[00:40:47] schneider: has joined #ruby
[00:43:47] Psybur: has joined #ruby
[00:48:17] konsolebox: has joined #ruby
[00:49:53] schneider: has joined #ruby
[00:50:26] _aeris_: has joined #ruby
[00:53:05] jnollette: has joined #ruby
[00:53:26] erlend: has joined #ruby
[00:55:09] orbyt_: has joined #ruby
[00:57:03] ramfjord: has joined #ruby
[00:58:05] Puffball: has joined #ruby
[00:58:58] schneider: has joined #ruby
[01:00:25] kurko_: has joined #ruby
[01:01:09] jenrzzz: has joined #ruby
[01:01:10] jenrzzz: has joined #ruby
[01:06:33] jenrzzz: has joined #ruby
[01:06:33] jenrzzz: has joined #ruby
[01:08:00] schneider: has joined #ruby
[01:16:36] duderonomy: has joined #ruby
[01:17:11] schneider: has joined #ruby
[01:17:14] kurko_: has joined #ruby
[01:17:48] jenrzzz: has joined #ruby
[01:17:49] jenrzzz: has joined #ruby
[01:23:08] ResidentBiscuit: has joined #ruby
[01:24:22] jenrzzz: has joined #ruby
[01:24:22] jenrzzz: has joined #ruby
[01:26:15] schneider: has joined #ruby
[01:30:08] jenrzzz: has joined #ruby
[01:30:09] jenrzzz: has joined #ruby
[01:30:23] gizmore|2: has joined #ruby
[01:31:19] amar: has joined #ruby
[01:35:21] schneider: has joined #ruby
[01:37:23] jenrzzz: has joined #ruby
[01:37:24] jenrzzz: has joined #ruby
[01:42:00] workmad3: has joined #ruby
[01:42:44] bdnelson: has joined #ruby
[01:44:22] schneider: has joined #ruby
[01:48:15] char_var[buffer]: has joined #ruby
[01:48:26] rf: has joined #ruby
[01:49:31] char_var[buffer]: has joined #ruby
[01:51:27] coderphive: has joined #ruby
[01:51:48] jenrzzz: has joined #ruby
[01:51:49] jenrzzz: has joined #ruby
[01:53:28] schneider: has joined #ruby
[01:53:54] marius: has joined #ruby
[01:55:14] marius: has joined #ruby
[01:56:31] weaksauce: has joined #ruby
[01:59:25] jenrzzz: has joined #ruby
[01:59:25] jenrzzz: has joined #ruby
[02:02:13] dinfuehr: has joined #ruby
[02:02:34] schneider: has joined #ruby
[02:05:40] jenrzzz: has joined #ruby
[02:05:40] jenrzzz: has joined #ruby
[02:07:44] weaksauce: has joined #ruby
[02:10:39] kapil___: has joined #ruby
[02:11:10] jenrzzz: has joined #ruby
[02:11:11] jenrzzz: has joined #ruby
[02:11:22] jrabe: has joined #ruby
[02:11:38] schneider: has joined #ruby
[02:12:56] harryk_: has joined #ruby
[02:16:13] noobineer: has joined #ruby
[02:19:49] jamesyu: has joined #ruby
[02:20:43] schneider: has joined #ruby
[02:25:47] yxhuvud: has joined #ruby
[02:29:51] schneider: has joined #ruby
[02:36:12] jamesyu: has joined #ruby
[02:38:57] schneider: has joined #ruby
[02:44:37] bmurt: has joined #ruby
[02:48:06] schneider: has joined #ruby
[02:53:56] jenrzzz: has joined #ruby
[02:53:57] jenrzzz: has joined #ruby
[02:57:04] ramfjord: has joined #ruby
[02:58:13] sanscoeur: has joined #ruby
[02:58:33] nertzy2: has joined #ruby
[02:58:47] vondruch: has joined #ruby
[02:59:03] schneider: has joined #ruby
[02:59:11] ged_: has joined #ruby
[03:00:11] cadillac_: has joined #ruby
[03:01:17] baweaver: has joined #ruby
[03:01:17] baweaver: has joined #ruby
[03:01:20] armyriad: has joined #ruby
[03:01:28] Cyrus1: has joined #ruby
[03:01:54] konsolebox: has joined #ruby
[03:02:09] erlend: has joined #ruby
[03:02:28] herbmillerjr: has joined #ruby
[03:02:46] yeticry: has joined #ruby
[03:03:20] vondruch: has joined #ruby
[03:03:24] SeepingN: has joined #ruby
[03:04:50] n3b: has joined #ruby
[03:06:27] jalcine: has joined #ruby
[03:08:12] schneider: has joined #ruby
[03:08:30] char_var[buffer]: has joined #ruby
[03:11:03] _seanc_: has joined #ruby
[03:13:59] amar: has joined #ruby
[03:16:52] Jacky: has joined #ruby
[03:19:10] schneider: has joined #ruby
[03:28:19] schneider: has joined #ruby
[03:29:00] herbmillerjr: has joined #ruby
[03:29:08] ramfjord: has joined #ruby
[03:29:56] gix: has joined #ruby
[03:32:25] apparition: has joined #ruby
[03:34:36] orbyt_: has joined #ruby
[03:34:36] psmolen: has joined #ruby
[03:37:10] guacamole: has joined #ruby
[03:37:11] guacamole: has joined #ruby
[03:37:24] schneider: has joined #ruby
[03:40:46] ciscam: has joined #ruby
[03:41:07] psmolen: has joined #ruby
[03:41:33] workmad3: has joined #ruby
[03:46:03] Azure: has joined #ruby
[03:48:19] schneider: has joined #ruby
[03:54:50] char_var[buffer]: has joined #ruby
[03:55:49] coderphive: has joined #ruby
[03:57:07] cam27: has joined #ruby
[03:57:25] schneider: has joined #ruby
[04:01:19] alfiemax: has joined #ruby
[04:06:29] schneider: has joined #ruby
[04:14:52] cadillac__: has joined #ruby
[04:15:35] schneider: has joined #ruby
[04:21:25] zapata: has joined #ruby
[04:21:54] Dimik: has joined #ruby
[04:22:04] rivalomega: has joined #ruby
[04:23:02] alfiemax: has joined #ruby
[04:23:26] sucks: has joined #ruby
[04:23:34] nicesignal: has joined #ruby
[04:26:35] schneider: has joined #ruby
[04:32:19] jenrzzz: has joined #ruby
[04:32:20] jenrzzz: has joined #ruby
[04:34:00] alfiemax: has joined #ruby
[04:34:47] guacamole: has joined #ruby
[04:35:38] schneider: has joined #ruby
[04:37:39] redlegion: has joined #ruby
[04:43:07] eckhardt: has joined #ruby
[04:44:49] schneider: has joined #ruby
[04:47:50] jenrzzz: has joined #ruby
[04:47:50] jenrzzz: has joined #ruby
[04:49:45] shinnya: has joined #ruby
[04:55:45] schneider: has joined #ruby
[04:58:33] mtkd: has joined #ruby
[05:00:33] dviola: has joined #ruby
[05:00:57] rabajaj: has joined #ruby
[05:04:47] schneider: has joined #ruby
[05:04:55] alfiemax: has joined #ruby
[05:10:51] erlend: has joined #ruby
[05:11:16] jenrzzz: has joined #ruby
[05:13:54] schneider: has joined #ruby
[05:14:08] KeyJoo: has joined #ruby
[05:14:54] KeyJoo: has joined #ruby
[05:15:46] amar_: has joined #ruby
[05:23:07] sauvin: has joined #ruby
[05:25:05] schneider: has joined #ruby
[05:25:59] sanscoeur: has joined #ruby
[05:27:48] cadillac_: has joined #ruby
[05:31:09] jenrzzz: has joined #ruby
[05:31:09] jenrzzz: has joined #ruby
[05:34:00] schneider: has joined #ruby
[05:37:44] jamesyu: has joined #ruby
[05:41:08] workmad3: has joined #ruby
[05:41:30] jenrzzz: has joined #ruby
[05:42:29] schneider: has joined #ruby
[05:42:57] venmx: has joined #ruby
[05:44:21] redlegion: has joined #ruby
[05:51:32] schneider: has joined #ruby
[05:52:03] jenrzzz: has joined #ruby
[05:52:04] jenrzzz: has joined #ruby
[05:59:03] jamesaxl: has joined #ruby
[06:02:32] schneider: has joined #ruby
[06:04:43] omps: has joined #ruby
[06:09:16] karapetyan: has joined #ruby
[06:11:39] schneider: has joined #ruby
[06:14:25] jenrzzz: has joined #ruby
[06:14:26] jenrzzz: has joined #ruby
[06:15:05] Axsuul: has joined #ruby
[06:17:47] ramfjord: has joined #ruby
[06:20:50] schneider: has joined #ruby
[06:26:06] jenrzzz: has joined #ruby
[06:26:06] jenrzzz: has joined #ruby
[06:31:09] Some-body_: has joined #ruby
[06:32:02] schneider: has joined #ruby
[06:34:50] jenrzzz: has joined #ruby
[06:34:51] jenrzzz: has joined #ruby
[06:36:03] redlegion: has joined #ruby
[06:41:05] schneider: has joined #ruby
[06:42:32] sanscoeur: has joined #ruby
[06:44:08] jenrzzz: has joined #ruby
[06:44:09] jenrzzz: has joined #ruby
[06:47:00] alex``: has joined #ruby
[06:52:06] schneider: has joined #ruby
[06:53:50] jenrzzz: has joined #ruby
[06:53:50] jenrzzz: has joined #ruby
[06:57:49] claudiuinberlin: has joined #ruby
[06:58:24] song46: has joined #ruby
[06:58:48] reber: has joined #ruby
[07:00:49] cptAngry: has joined #ruby
[07:01:12] schneider: has joined #ruby
[07:03:30] jenrzzz: has joined #ruby
[07:06:05] biberu: has joined #ruby
[07:07:04] mrx: has joined #ruby
[07:10:20] schneider: has joined #ruby
[07:10:59] ramfjord: has joined #ruby
[07:13:48] jenrzzz: has joined #ruby
[07:13:48] jenrzzz: has joined #ruby
[07:19:25] schneider: has joined #ruby
[07:19:35] erlend: has joined #ruby
[07:20:32] suukim: has joined #ruby
[07:21:51] redlegion: has joined #ruby
[07:28:31] schneider: has joined #ruby
[07:33:01] apparition: has joined #ruby
[07:33:04] tvw: has joined #ruby
[07:35:55] mrx: has joined #ruby
[07:37:05] mrx: has joined #ruby
[07:39:30] schneider: has joined #ruby
[07:40:37] workmad3: has joined #ruby
[07:41:48] jenrzzz: has joined #ruby
[07:41:48] jenrzzz: has joined #ruby
[07:44:17] cam27: has joined #ruby
[07:48:34] schneider: has joined #ruby
[07:51:17] DTZUZO: has joined #ruby
[07:53:32] phaul: has joined #ruby
[07:55:15] mtkd: has joined #ruby
[07:57:33] conta: has joined #ruby
[07:57:42] schneider: has joined #ruby
[08:00:53] jrafanie_: has joined #ruby
[08:04:47] hurricanehrndz: has joined #ruby
[08:08:38] schneider: has joined #ruby
[08:13:31] zautomata: has joined #ruby
[08:17:45] schneider: has joined #ruby
[08:25:53] alfiemax: has joined #ruby
[08:26:51] schneider: has joined #ruby
[08:27:53] jenrzzz: has joined #ruby
[08:27:53] jenrzzz: has joined #ruby
[08:29:56] amar_: has joined #ruby
[08:33:06] Gabemo: has joined #ruby
[08:36:23] schneider: has joined #ruby
[08:39:42] nowhere_man: has joined #ruby
[08:45:43] schneider: has joined #ruby
[08:49:46] anisha_: has joined #ruby
[08:50:19] roshanavand: has joined #ruby
[08:54:40] schneider: has joined #ruby
[08:56:08] Gabemo: has joined #ruby
[09:03:41] schneider: has joined #ruby
[09:08:23] Mike11: has joined #ruby
[09:08:32] nadir: has joined #ruby
[09:10:48] venmx: has joined #ruby
[09:11:26] ramfjord: has joined #ruby
[09:13:01] schneider: has joined #ruby
[09:14:23] mikecmpbll: has joined #ruby
[09:15:34] mynameisdebian: has joined #ruby
[09:15:42] mynameisdebian: I have a VPS that I am logged into the desktop of, over RDP (like VNC). I also have an SSH window open to the same server. When I run export DISPLAY=10.0 ; firefox I see firefox launch as expected in the RDP window. However, when I run a Ruby script to open the browser it does not open. When I run "ps -ef" I see: ubuntu 4980 4978 5 09:06 pts/0 00:00:01 [firefox] <defunct> . Anyone have any idea how I can get
[09:15:42] mynameisdebian: my Ruby script (with Selenium) to open a Firefox window on the server?
[09:16:36] darix: mynameisdebian: maybe consider headless chrome for running tests
[09:16:55] darix: mynameisdebian: https://about.gitlab.com/2017/12/19/moving-to-headless-chrome/
[09:17:04] darix: just to name one example. you will find plenty more
[09:20:47] mynameisdebian: darix: I'm using FF 47 with Selenium 2.53 after trying all that BS geckodriver and chromdriver crap. I spent a good 100 frustrating hours or so trying to find the right combination of Linux distr+version/Selenium/ChromeDriver/Firefox to no avail, trying every posted workaround I could find. What I gather is there are basically just a ton of bugs and nothing is working. I even tried the most recent official Selenium Docker
[09:20:47] mynameisdebian: Firefox container which also did not work out of the box. I decided on this solution because it is suitable for the purpose I have in mind, and because I can see my tests run in realtime.
[09:21:32] mynameisdebian: And because this combination has never had any real issues for me over several years. I prefer to use what works over what I cannot get working after 100 wasted hours.
[09:21:57] darix: mynameisdebian: FF 47 ... how many years ago is that?:)
[09:22:09] schneider: has joined #ruby
[09:23:11] mynameisdebian: darix: I'm not sure, but I just use Selenium to automate business processes and I have yet to have a use case that this combo does not work with. I don't come from a QA background, but I could see how QA people would need to use the more current browsers
[09:24:24] darix: if the automation doesnt require javascript
[09:24:28] darix: then you could use mechanize
[09:26:13] mynameisdebian: darix: The project I'm working on involves interacting with about 30 different domain registrars. I originally started writing things in Mechanize but roughly half the sites required some JS to do what I needed to do, and I decided I could just get it all done quicker in Selenium on an actual FF window
[09:26:36] darix: headless chrome then
[09:26:53] sameerynho: has joined #ruby
[09:26:59] mynameisdebian: I don't want it headless
[09:27:33] mynameisdebian: I want a cron job to run a ruby script that opens a FF window in an existing XFCE session
[09:27:41] n008f4g_: has joined #ruby
[09:27:51] schneider: has joined #ruby
[09:28:21] erlend: has joined #ruby
[09:28:45] mynameisdebian: And if anyone can tell me how to do that I will be super happy
[09:29:18] darix: do you set the DISPLAY var in your ruby script?
[09:29:32] darix: does it have access to the magic cookie ?
[09:29:41] darix: or do you allow access from localhost to that X server?
[09:29:54] mynameisdebian: darix: yes to the DISPLAY, I don't know what the magic cookie is
[09:30:20] mynameisdebian: First I tried running "export DISPLAY=10.0 ; firefox" in the shell and that worked
[09:30:42] mynameisdebian: then I wrote a Ruby script and had that spit out the DISPLAY variable, which was still "10.0"
[09:30:56] mynameisdebian: then I modified the script to launch FF with Selenium, and that did not work
[09:32:15] karapetyan: has joined #ruby
[09:33:34] alfiemax: has joined #ruby
[09:34:15] jenrzzz: has joined #ruby
[09:34:16] jenrzzz: has joined #ruby
[09:34:44] mynameisdebian: The Ruby script hangs and when I run "ps -ef" I see ubuntu 4980 4978 5 09:06 pts/0 00:00:01 [firefox] <defunct>
[09:36:14] clemens3_: has joined #ruby
[09:40:13] workmad3: has joined #ruby
[09:41:52] schneider: has joined #ruby
[09:52:47] schneider: has joined #ruby
[09:59:17] psychicist__: has joined #ruby
[10:01:55] schneider: has joined #ruby
[10:02:41] dr3wo: has joined #ruby
[10:02:52] mtkd: has joined #ruby
[10:10:31] ciscam: has joined #ruby
[10:11:00] schneider: has joined #ruby
[10:17:06] mtkd: has joined #ruby
[10:17:15] schneider: has joined #ruby
[10:17:47] karapetyan: has joined #ruby
[10:19:22] cschneid_: has joined #ruby
[10:26:33] cam27: has joined #ruby
[10:29:17] Fysicus: has joined #ruby
[10:36:38] jenrzzz: has joined #ruby
[10:36:39] jenrzzz: has joined #ruby
[10:41:26] schneider: has joined #ruby
[10:42:14] TomyLobo: has joined #ruby
[10:44:25] conta: has joined #ruby
[10:45:49] tomphp: has joined #ruby
[10:49:12] wolfshappen: has joined #ruby
[10:50:34] schneider: has joined #ruby
[10:51:35] cadillac_: has joined #ruby
[10:53:51] tAn: has joined #ruby
[10:59:35] schneider: has joined #ruby
[11:01:55] RougeR: has joined #ruby
[11:01:55] RougeR: has joined #ruby
[11:04:52] \void: has joined #ruby
[11:08:42] schneider: has joined #ruby
[11:09:23] mhorstmann: has joined #ruby
[11:11:36] ramfjord: has joined #ruby
[11:11:53] n13z: has joined #ruby
[11:14:13] n13z: has joined #ruby
[11:17:50] schneider: has joined #ruby
[11:20:55] jenrzzz: has joined #ruby
[11:20:56] jenrzzz: has joined #ruby
[11:24:12] tAn: has joined #ruby
[11:26:55] schneider: has joined #ruby
[11:29:09] ltem: has joined #ruby
[11:29:13] dn`: has joined #ruby
[11:30:27] karapetyan: has joined #ruby
[11:36:20] schneider: has joined #ruby
[11:37:02] erlend: has joined #ruby
[11:39:49] workmad3: has joined #ruby
[11:42:02] AJA4350: has joined #ruby
[11:43:21] dr3wo: has joined #ruby
[11:45:04] amatas: has joined #ruby
[11:45:08] schneider: has joined #ruby
[11:46:28] roshanavand: has joined #ruby
[11:50:55] clemens3_: has joined #ruby
[11:51:29] zautomata: has joined #ruby
[11:52:03] herbmillerjr: has joined #ruby
[11:54:13] schneider: has joined #ruby
[11:55:44] jenrzzz: has joined #ruby
[11:55:44] jenrzzz: has joined #ruby
[12:00:53] tAn: has joined #ruby
[12:02:41] trautwein: has joined #ruby
[12:03:20] schneider: has joined #ruby
[12:08:43] jenrzzz: has joined #ruby
[12:08:43] jenrzzz: has joined #ruby
[12:12:27] schneider: has joined #ruby
[12:12:45] tcopeland: has joined #ruby
[12:14:38] cam27: has joined #ruby
[12:17:34] ramfjord: has joined #ruby
[12:21:07] mtkd: has joined #ruby
[12:27:51] phaul: has joined #ruby
[12:29:06] jenrzzz: has joined #ruby
[12:29:06] jenrzzz: has joined #ruby
[12:30:22] trautwein: has joined #ruby
[12:32:40] govg: has joined #ruby
[12:33:01] trautwein: has joined #ruby
[12:35:38] marr: has joined #ruby
[12:38:37] apparition: has joined #ruby
[12:43:13] tAn: has joined #ruby
[12:44:13] danguita: has joined #ruby
[12:46:13] trautwein: has joined #ruby
[12:46:55] schneider: has joined #ruby
[12:47:05] trautwein: has joined #ruby
[12:47:15] _aeris_: has joined #ruby
[12:48:27] konsolebox: has joined #ruby
[12:49:22] trautwein: has joined #ruby
[12:50:22] MasterAsia: has joined #ruby
[12:52:27] n008f4g_: has joined #ruby
[12:53:11] leonthemisfit: has joined #ruby
[12:55:57] trautwein: has joined #ruby
[13:00:23] shoogz: has joined #ruby
[13:04:27] mtkd: has joined #ruby
[13:10:40] jenrzzz: has joined #ruby
[13:10:40] jenrzzz: has joined #ruby
[13:15:45] Zaab1t: has joined #ruby
[13:24:34] elementaru: has joined #ruby
[13:27:54] tAn: has joined #ruby
[13:30:53] tAn: has joined #ruby
[13:34:12] MasterAsia: has joined #ruby
[13:35:15] ellcs: has joined #ruby
[13:36:56] coderphive: has joined #ruby
[13:37:33] leitz: has joined #ruby
[13:37:46] Ryzokuken: has joined #ruby
[13:38:49] ltem: has joined #ruby
[13:39:20] workmad3: has joined #ruby
[13:39:41] leitz: Any idea why this rspec test shows failure, and not "pending"? Using rspec 3.7 and Ruby 2.6. https://github.com/makhidkarun/rb_tools/blob/master/spec/planet_spec.rb#L48-L50
[13:41:23] karapetyan: has joined #ruby
[13:41:28] leitz: Reading "Effective testing with Rspec3".
[13:45:20] erlend: has joined #ruby
[13:45:59] jenrzzz: has joined #ruby
[13:45:59] jenrzzz: has joined #ruby
[13:46:42] Utkarsh_: has joined #ruby
[13:46:51] Azure: has joined #ruby
[13:47:43] jeffreylevesque: has joined #ruby
[13:49:47] shoogz: has joined #ruby
[13:49:56] n0m4d1c: has joined #ruby
[13:55:05] IanMalcolm: has joined #ruby
[14:03:07] cam27: has joined #ruby
[14:06:12] mtkd: has joined #ruby
[14:10:58] NorthLumberJack: has joined #ruby
[14:13:08] NorthLumberJack: hello masters, I am new to metaprgramming, I am trying to make a Predictable module, when I include this module into a class I want certain methods to raise NotImplimentedError if the methods are not overwritten in the including class...
[14:13:22] tAn: has joined #ruby
[14:13:34] NorthLumberJack: I am having a tough time figuring it out.
[14:14:26] havenwood: NorthLumberJack: Show us what you have so far?
[14:17:39] ramfjord: has joined #ruby
[14:18:10] NorthLumberJack: @havenwood https://www.pastiebin.com/5ac8d30da97b4
[14:19:25] leitz: Someone missed the header. :)
[14:19:27] kapil___: has joined #ruby
[14:19:53] leitz: NorthLumberJack, a few folks dislike Pastebin. Just so you know.
[14:20:28] leitz: Do you see the reference to "gist" in the header?
[14:20:33] suukim: has joined #ruby
[14:20:35] yeticry: has joined #ruby
[14:21:20] leitz: No worries. It's nice to the folks you're asking. Most won't yell at you but some might not answer that would otherwise.
[14:22:20] NorthLumberJack: @havewood https://gist.github.com/JerryArns/5d62f18a480017cfa6d9240055b93a8a
[14:22:22] Azure: has joined #ruby
[14:22:25] havenwood: NorthLumberJack: Consider the following: https://gist.github.com/havenwood/2409d79d83dfb6a9e531094141a0d956
[14:22:58] NorthLumberJack: @havewood thanks
[14:23:15] NorthLumberJack: are public gist a bad idea? private?
[14:23:48] leitz: I usually do private. I also clean them up now and again.
[14:24:05] NorthLumberJack: @leitz thank you sir
[14:24:33] amar: has joined #ruby
[14:24:38] leitz: Check out the "Books" note above. It's baweaver's public gist. Very good form.
[14:24:54] DTZUZO: has joined #ruby
[14:25:06] leitz: NorthLumberJack, we all have to start somewhere. ;)
[14:26:51] tAn: has joined #ruby
[14:32:01] _aeris_: has joined #ruby
[14:37:56] jrafanie: has joined #ruby
[14:39:26] ramfjord: has joined #ruby
[14:45:44] hypercore: has joined #ruby
[14:45:48] hypercore: anyone here?
[14:45:55] havenwood: hypercore: always
[14:46:17] apeiros: no, I don't think anyone is currently online
[14:46:41] gigetoo: has joined #ruby
[14:46:54] hypercore: how would i implement a split function? e.g. split([1,2,3,4,5], 3) returns [[1,2,3], [4,5]]
[14:47:06] hypercore: recursively
[14:47:25] jrafanie: has joined #ruby
[14:47:36] havenwood: hypercore: What do you have so far?
[14:47:42] leitz: ACTION is never quite "all here"...
[14:49:16] venmx: has joined #ruby
[14:49:39] apeiros: leitz: are you a cloud?
[14:50:28] leitz: apeiros, my head is often there. Figuratively, not computatively.
[14:51:29] havenwood: hypercore: Are you familiar with the Enumerable#slice_when method?
[14:52:02] havenwood: hypercore: Recursion isn't turned to as often in Ruby as in some langs.
[14:53:18] hypercore: havenwood: i guess i'm asking more about the logic of how it would be done, not the code specifically
[14:53:29] hypercore: trying to do it without using any modules
[14:53:43] nadir: has joined #ruby
[14:55:14] _seanc_: has joined #ruby
[14:58:23] rfoust: has joined #ruby
[15:00:02] havenwood: hypercore: Here's a non-recursive implementation: https://gist.github.com/havenwood/6f5a65bbf5c6be4fc46441af126d1ea5
[15:01:37] havenwood: hypercore: Maybe try changing that implementation to work like you want it to, then modify it to be a recursive solution.
[15:01:45] hypercore: thanks, i'll have a look
[15:03:00] havenwood: >> [1,2,3,4,5].slice_when { |n| n == 3 }.to_a
[15:03:01] ruby[bot]: havenwood: # => [[1, 2, 3], [4, 5]] (https://eval.in/985644)
[15:05:21] dr3wo: has joined #ruby
[15:05:31] hypercore: havenwood: trying to do it using only if statements, can't use slice_when or similar functions
[15:06:02] yeticry: has joined #ruby
[15:06:24] havenwood: hypercore: That sounds like an interview question. ;-P
[15:06:43] leitz: Or a class.
[15:07:05] NorthLumberJack: @havenwood So Im trying your code from https://gist.github.com/havenwood/2409d79d83dfb6a9e531094141a0d956 and its thowing errors from other modules that their methods are not available, why would that be?
[15:07:54] havenwood: NorthLumberJack: Show us how you're using it? I may have misunderstood what you're trying to do.
[15:08:00] NorthLumberJack: im basically trying to make Rails model classes have a set of my Predicatble methods
[15:08:27] NorthLumberJack: which the rails models classes have to overwrite
[15:09:10] NorthLumberJack: and return stadardized data
[15:09:29] havenwood: NorthLumberJack: Should the methods all be defined at the time this module is included? Do you want only the first to raise, or should it say which all are missing? Do the arguments have to be right, or it just needs to respond to the method?
[15:09:35] havenwood: NorthLumberJack: Show us an example of using it?
[15:10:52] havenwood: dminuoso: ^ this reminds me of... some crazy code you were working on: https://gist.github.com/havenwood/55a3399e62bc3f6ab8d27bc46d74ceb3
[15:11:28] havenwood: heh, I don't think 🤔 that was the latest version of it either
[15:12:59] havenwood: we should really have cut that into a gem of some sorts
[15:13:32] jimmylu2333-fedo: has joined #ruby
[15:14:48] awebdev: has joined #ruby
[15:16:31] NorthLumberJack: @havenwood here you go https://gist.github.com/JerryArns/3a40ac8f85a97f00f2c8a2a6a9abcf8f
[15:18:30] user2: has joined #ruby
[15:19:07] jamesaxl: has joined #ruby
[15:20:19] ramfjord: has joined #ruby
[15:21:03] NorthLumberJack: havenwood: oh man that example code of the crazy project just blows my mind, would take me an hr to read through.
[15:21:46] mtkd: has joined #ruby
[15:23:58] noobineer: has joined #ruby
[15:24:08] leitz: ACTION needs to read more code...
[15:24:59] NorthLumberJack: havenwood: The only thing that Predictable is doing so far is making sure the including class is implimenting certain methods, I guess i would check their returned data for uniformity in the future
[15:26:19] leitz: I've spent the morning refactoring and re-learning rspec basics. Time for a break.
[15:26:23] havenwood: NorthLumberJack: Ah, you're checking if instance methods exist, not class methods.
[15:26:52] havenwood: NorthLumberJack: that makes sense, actually - sec
[15:30:52] havenwood: NorthLumberJack: updated the gist
[15:32:05] NorthLumberJack: havenwood: that is beutifull, thanks, let me use it quick
[15:32:54] karapetyan: has joined #ruby
[15:33:03] desperek: uh, any of you sirs are into haml? any idea why form_for renders <form></form> and rest of fields outside?
[15:33:21] desperek: even though it does work
[15:33:23] tomphp: has joined #ruby
[15:34:50] ResidentBiscuit: has joined #ruby
[15:35:13] cam27: has joined #ruby
[15:40:10] cadillac_: has joined #ruby
[15:45:35] NorthLumberJack: havenwood: so i have to include the module after my method definitions, does that seem right?
[15:46:03] coderphive: has joined #ruby
[15:46:51] havenwood: NorthLumberJack: yes
[15:47:22] havenwood: NorthLumberJack: or reopen the class and do it (but either way, it does have to be after)
[15:48:26] cadillac_: has joined #ruby
[15:49:21] NorthLumberJack: havenwood: ok thanks
[15:53:32] erlend: has joined #ruby
[15:59:20] jenrzzz: has joined #ruby
[15:59:21] jenrzzz: has joined #ruby
[16:01:10] NorthLumberJack: havenwood: this metaprogramming stuff is fantastic, i need to learn more
[16:01:24] tomphp: has joined #ruby
[16:02:17] ellcs: has joined #ruby
[16:05:34] dviola: has joined #ruby
[16:06:24] cadillac__: has joined #ruby
[16:07:58] Axy: has joined #ruby
[16:15:24] ukd1: has joined #ruby
[16:16:36] ukd1: has joined #ruby
[16:17:01] ukd1: has joined #ruby
[16:17:37] trautwein: has joined #ruby
[16:17:42] conta: has joined #ruby
[16:17:49] ukd1: has joined #ruby
[16:18:30] trautwein: has joined #ruby
[16:18:46] John_Ivan: has joined #ruby
[16:18:47] John_Ivan: has joined #ruby
[16:19:37] imode: has joined #ruby
[16:23:40] alfiemax: has joined #ruby
[16:24:29] clemens3_: has joined #ruby
[16:25:08] orbyt_: has joined #ruby
[16:29:22] trautwein: has joined #ruby
[16:34:41] jenrzzz: has joined #ruby
[16:34:41] jenrzzz: has joined #ruby
[16:34:44] amatas: has joined #ruby
[16:38:32] jdan: has joined #ruby
[16:39:57] n008f4g_: has joined #ruby
[16:43:15] amatas: has joined #ruby
[16:44:41] karapetyan: has joined #ruby
[16:45:18] Psybur: has joined #ruby
[16:50:57] cout: has joined #ruby
[16:52:28] redlegion: has joined #ruby
[16:52:28] user2: has joined #ruby
[16:52:34] sauvin: has joined #ruby
[16:54:11] tomphp: has joined #ruby
[16:55:34] shoogz: has joined #ruby
[16:56:46] Safouane: has joined #ruby
[16:58:08] n13z: has joined #ruby
[17:00:17] trautwein: has joined #ruby
[17:02:24] alfiemax: has joined #ruby
[17:02:39] ramfjord: has joined #ruby
[17:06:18] trautwein: has joined #ruby
[17:07:22] trautwein: has joined #ruby
[17:08:19] enot: has joined #ruby
[17:11:27] char_var[buffer]: has joined #ruby
[17:12:18] trautwein: has joined #ruby
[17:12:51] tomphp: has joined #ruby
[17:13:04] jenrzzz: has joined #ruby
[17:13:08] n13z: has joined #ruby
[17:13:12] char_var[buffer]: has joined #ruby
[17:14:39] amelliaa: has joined #ruby
[17:15:16] char_var[buffer]: has joined #ruby
[17:17:03] _aeris_: has joined #ruby
[17:22:19] trautwein: has joined #ruby
[17:22:19] ciscam: has joined #ruby
[17:25:44] coderphive: has joined #ruby
[17:26:30] venmx: has joined #ruby
[17:28:17] n13z: has joined #ruby
[17:30:04] _aeris_: has joined #ruby
[17:32:48] bdnelson: has joined #ruby
[17:33:51] alfiemax: has joined #ruby
[17:34:10] bdnelson: has joined #ruby
[17:37:03] amar: has joined #ruby
[17:38:02] mtkd: has joined #ruby
[17:38:21] workmad3: has joined #ruby
[17:39:10] mtkd: has joined #ruby
[17:44:02] nowhere_man: has joined #ruby
[17:44:45] NorthLumberJack: havewood: The code works greats just wanted to say thanks and had one question. When a method is not included the raise NotImplimentedError is called, why does the including class throw udefined method errors for existing class methods?
[17:45:17] NorthLumberJack: just out of interest...
[17:45:56] NorthLumberJack: but when all methods are defined then no errors are throwen
[17:47:02] Dimik: has joined #ruby
[17:47:39] dionysus69: has joined #ruby
[17:49:24] jenrzzz: has joined #ruby
[17:49:24] jenrzzz: has joined #ruby
[17:53:42] desperek: heeeeelp, i need somebody, cause form_for in each loop doesnt render properly with haml
[17:53:57] tdy: has joined #ruby
[17:54:31] apeiros: ?rails desperek
[17:54:31] ruby[bot]: desperek: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[17:54:48] NorthLumberJack: yes that is raisl
[17:55:14] desperek: oh okay, sent gist to ror channel once again
[18:00:01] Creatornator: has joined #ruby
[18:01:03] ogres: has joined #ruby
[18:02:16] erlend: has joined #ruby
[18:06:08] mtkd: has joined #ruby
[18:07:09] mroutis: has joined #ruby
[18:07:30] cagomez: has joined #ruby
[18:08:26] schneider: has joined #ruby
[18:08:49] phate408: has joined #ruby
[18:11:01] dr3wo: has joined #ruby
[18:11:56] tomphp: has joined #ruby
[18:16:06] trautwein: has joined #ruby
[18:16:10] schneider: has joined #ruby
[18:17:01] dviola: has joined #ruby
[18:17:15] quobo: has joined #ruby
[18:17:48] devilsadvocate: has joined #ruby
[18:19:37] devilsadvocate: does anyone know if there's a gem that wraps http://curator.apache.org/getting-started.html
[18:20:09] trautwein: has joined #ruby
[18:21:15] mroutis: has joined #ruby
[18:26:43] goatish: has joined #ruby
[18:28:20] n13z: has joined #ruby
[18:29:08] BTRE: has joined #ruby
[18:32:34] jenrzzz: has joined #ruby
[18:32:35] jenrzzz: has joined #ruby
[18:51:25] _seanc_: has joined #ruby
[18:52:09] Safouane: has left #ruby: ()
[18:59:02] orbyt_: has joined #ruby
[19:02:46] ramfjord: has joined #ruby
[19:10:30] minimalism: has joined #ruby
[19:13:30] jenrzzz: has joined #ruby
[19:15:24] cagomez: has joined #ruby
[19:18:57] leah2: has joined #ruby
[19:28:22] jrm: has joined #ruby
[19:34:16] tomphp: has joined #ruby
[19:37:41] karapetyan: has joined #ruby
[19:37:54] workmad3: has joined #ruby
[19:39:32] sucks: has joined #ruby
[19:42:20] weaksauce: has joined #ruby
[19:44:16] tomphp: has joined #ruby
[19:44:49] workmad3: has joined #ruby
[19:45:24] mroutis: has joined #ruby
[19:49:09] jenrzzz: has joined #ruby
[19:49:09] jenrzzz: has joined #ruby
[19:56:18] shinnya: has joined #ruby
[19:56:54] claudiuinberlin: has joined #ruby
[20:03:36] RougeR: has joined #ruby
[20:03:40] _seanc_: has joined #ruby
[20:03:52] n0m4d1c: has joined #ruby
[20:05:30] Creatornator: has joined #ruby
[20:07:06] raynold: has joined #ruby
[20:07:37] cyberg: has joined #ruby
[20:10:26] erlend: has joined #ruby
[20:10:57] mtkd: has joined #ruby
[20:15:11] _whitelogger: has joined #ruby
[20:15:50] cagomez: has joined #ruby
[20:22:51] elementaru_: has joined #ruby
[20:26:11] jenrzzz: has joined #ruby
[20:26:11] jenrzzz: has joined #ruby
[20:29:59] elementaru_: has joined #ruby
[20:36:30] elementaru: has joined #ruby
[20:36:47] elementaru_: has joined #ruby
[20:42:03] Azure: has joined #ruby
[20:42:23] hndk: has joined #ruby
[20:45:09] dviola: has joined #ruby
[21:01:52] trautwein: has joined #ruby
[21:02:45] jenrzzz: has joined #ruby
[21:02:46] jenrzzz: has joined #ruby
[21:02:54] ramfjord: has joined #ruby
[21:07:52] herbmillerjr: has joined #ruby
[21:09:00] ahuman: has joined #ruby
[21:12:45] cyberg: has joined #ruby
[21:18:51] venmx: has joined #ruby
[21:24:05] imode: has joined #ruby
[21:24:28] cyberg: has joined #ruby
[21:25:33] Creatornator: has joined #ruby
[21:26:26] karapetyan: has joined #ruby
[21:27:22] n0m4d1c: has joined #ruby
[21:30:45] coderphive: has joined #ruby
[21:38:23] schickung: has joined #ruby
[21:40:06] jenrzzz: has joined #ruby
[21:40:06] jenrzzz: has joined #ruby
[21:40:53] n0m4d1c: has joined #ruby
[21:42:46] EXCHGR: has joined #ruby
[21:43:18] vondruch: has joined #ruby
[21:45:28] trautwein: has joined #ruby
[21:48:16] karapetyan: has joined #ruby
[21:54:02] conta: has joined #ruby
[22:00:13] n0m4d1c: has joined #ruby
[22:00:22] cyberg: has joined #ruby
[22:10:12] dr3wo: has joined #ruby
[22:12:09] n0m4d1c: has joined #ruby
[22:13:00] amatas: has joined #ruby
[22:16:00] mtkd: has joined #ruby
[22:18:31] amatas: has joined #ruby
[22:18:52] gs: has joined #ruby
[22:19:11] erlend: has joined #ruby
[22:20:52] jenrzzz: has joined #ruby
[22:26:35] cagomez: has joined #ruby
[22:29:02] n008f4g_: has joined #ruby
[22:29:06] qyliss: has joined #ruby
[22:30:39] conta: has joined #ruby
[22:35:34] jenrzzz: has joined #ruby
[22:35:35] jenrzzz: has joined #ruby
[22:39:36] gnotc: has joined #ruby
[22:42:23] jenrzzz: has joined #ruby
[22:42:24] jenrzzz: has joined #ruby
[22:45:08] schickung_: has joined #ruby
[22:51:02] Mia: has joined #ruby
[22:51:02] Mia: has joined #ruby
[22:53:25] cagomez: has joined #ruby
[22:58:15] TinkerT: has joined #ruby
[22:58:36] jenrzzz: has joined #ruby
[23:03:03] ramfjord: has joined #ruby
[23:04:59] conta: has joined #ruby
[23:06:43] hndk: has left #ruby: ("Leaving")
[23:08:42] jenrzzz: has joined #ruby
[23:08:43] jenrzzz: has joined #ruby
[23:11:48] coderphive: has joined #ruby
[23:13:23] amatas_: has joined #ruby
[23:16:18] zapata: has joined #ruby
[23:19:32] mikecmpbll: has joined #ruby
[23:25:37] dviola: has joined #ruby
[23:25:48] qyliss: has joined #ruby
[23:26:59] jenrzzz: has joined #ruby
[23:26:59] jenrzzz: has joined #ruby
[23:34:36] jordanm: has joined #ruby
[23:37:56] bkxd: has joined #ruby
[23:38:17] conta: has joined #ruby
[23:42:35] phate408: has joined #ruby
[23:43:23] jenrzzz: has joined #ruby
[23:43:24] jenrzzz: has joined #ruby
[23:46:04] ciscam: has joined #ruby
[23:48:56] gr33n7007h: has joined #ruby
[23:50:03] cagomez: has joined #ruby
[23:51:11] safetypin: has joined #ruby
[23:51:13] cagomez: has joined #ruby
[23:57:25] jenrzzz: has joined #ruby
[23:57:25] jenrzzz: has joined #ruby