« Back to channel list

#ruby - 05 October 2017

« Back 1 day Forward 1 day »
[00:01:41] Alina-malina: has joined #ruby
[00:02:53] cloutz: has joined #ruby
[00:03:06] bastilian_: has joined #ruby
[00:05:41] milardovich: has joined #ruby
[00:05:41] kanobt61: has joined #ruby
[00:13:16] Alina-malina: has joined #ruby
[00:16:23] chrisgopher: has joined #ruby
[00:18:46] uneeb: has joined #ruby
[00:20:45] paradisaeidae: has joined #ruby
[00:20:52] paradisaeidae_: has joined #ruby
[00:21:18] alnet: has joined #ruby
[00:23:16] Alina-malina: has joined #ruby
[00:30:35] Bhootrk_: has joined #ruby
[00:42:02] amirite: has joined #ruby
[00:42:11] _whitelogger: has joined #ruby
[00:45:47] Alina-malina: has joined #ruby
[00:50:52] milardovich: has joined #ruby
[00:51:10] amirite: has joined #ruby
[00:52:05] bwilson: has joined #ruby
[00:54:19] Azure: has joined #ruby
[00:56:19] Alina-malina: has joined #ruby
[00:56:27] marcux: has joined #ruby
[01:00:04] nofxx: has joined #ruby
[01:00:07] mim1k: has joined #ruby
[01:02:43] nankyoku_: has joined #ruby
[01:02:45] marcux: has joined #ruby
[01:03:44] kanobt61: has joined #ruby
[01:04:47] knight33: has joined #ruby
[01:05:16] Alina-malina: has joined #ruby
[01:05:54] kanobt61: has joined #ruby
[01:06:17] marcux: has joined #ruby
[01:11:51] Miron: has joined #ruby
[01:12:42] Alina-malina: has joined #ruby
[01:13:21] ta: has joined #ruby
[01:16:10] bokayio: has joined #ruby
[01:16:21] d^sh_: has joined #ruby
[01:18:40] Defenestrate: has joined #ruby
[01:27:40] bronson: has joined #ruby
[01:32:06] mgorbach: has joined #ruby
[01:36:09] uZiel: has joined #ruby
[01:47:44] uZiel: has joined #ruby
[01:49:16] enko: has joined #ruby
[01:51:03] aphprentice: has joined #ruby
[01:56:44] gizmore|2: has joined #ruby
[01:56:57] ledestin: has joined #ruby
[01:59:15] nankyokusei: has joined #ruby
[02:01:55] bokayio: has joined #ruby
[02:02:14] ltd: has joined #ruby
[02:02:31] naprimer: has joined #ruby
[02:02:38] iNs: has joined #ruby
[02:02:49] PaulePanter: has joined #ruby
[02:02:58] Caius: has joined #ruby
[02:02:58] Caius: has joined #ruby
[02:03:06] ineb: has joined #ruby
[02:03:39] shaman42: has joined #ruby
[02:06:45] kanobt61: has joined #ruby
[02:08:25] alfiemax: has joined #ruby
[02:12:14] houhoulis: has joined #ruby
[02:15:44] ramfjord: has joined #ruby
[02:15:51] Alina-malina: has joined #ruby
[02:15:57] knight33: has joined #ruby
[02:22:06] ramfjord: has joined #ruby
[02:30:21] oetjenj: has joined #ruby
[02:31:29] Puffball: has joined #ruby
[02:32:08] roshanavand: has joined #ruby
[02:35:58] AnoHito: has joined #ruby
[02:38:52] Alina-malina: has joined #ruby
[02:42:08] _whitelogger: has joined #ruby
[02:49:47] apparition: has joined #ruby
[02:56:51] zautomata: has joined #ruby
[02:57:23] orbyt_: has joined #ruby
[02:57:34] ThomasQM: has joined #ruby
[02:58:05] ta: has joined #ruby
[02:59:20] kanobt61: has joined #ruby
[03:00:09] cadillac_: has joined #ruby
[03:00:31] mim1k: has joined #ruby
[03:00:58] paradisaeidae: has joined #ruby
[03:01:02] paradisaeidae_: has joined #ruby
[03:02:17] Cohedrin_: has joined #ruby
[03:08:09] dreamthese: has joined #ruby
[03:13:59] bronson: has joined #ruby
[03:14:57] bwilson: has joined #ruby
[03:21:15] alnet: has joined #ruby
[03:25:16] gix: has joined #ruby
[03:33:41] bwilson: has joined #ruby
[03:36:37] amirite: has joined #ruby
[03:37:36] CacoS: has joined #ruby
[03:41:13] Jameser: has joined #ruby
[03:44:40] sagax: has joined #ruby
[03:44:52] quobo: has joined #ruby
[03:44:55] sagax: has joined #ruby
[03:48:42] zautomata: has joined #ruby
[03:55:36] imode: has joined #ruby
[03:59:12] paradisaeidae: has joined #ruby
[03:59:14] paradisaeidae_: has joined #ruby
[04:00:20] kanobt61: has joined #ruby
[04:02:21] aidalgol: has left #ruby: ("User left")
[04:05:14] ta: has joined #ruby
[04:08:34] Ropeney: has joined #ruby
[04:23:16] chrisgopher: has joined #ruby
[04:23:16] zautomata: has joined #ruby
[04:31:37] amirite: has joined #ruby
[04:40:34] mahlon: has joined #ruby
[04:45:33] amirite: has joined #ruby
[04:49:46] ramfjord: has joined #ruby
[04:50:05] jenrzzz: has joined #ruby
[04:57:21] govg: has joined #ruby
[04:59:37] alex``: has joined #ruby
[05:00:22] amirite: has joined #ruby
[05:00:59] mim1k: has joined #ruby
[05:01:35] kanobt61: has joined #ruby
[05:02:24] nofxx: has joined #ruby
[05:08:21] Bock: has joined #ruby
[05:08:38] harfangk: has joined #ruby
[05:09:41] ramfjord: has joined #ruby
[05:14:29] aupadhye: has joined #ruby
[05:15:07] knight33: has joined #ruby
[05:15:27] bronson: has joined #ruby
[05:15:50] ElDoggo: has joined #ruby
[05:17:32] ta: has joined #ruby
[05:23:51] jenrzzz: has joined #ruby
[05:23:51] jenrzzz: has joined #ruby
[05:32:36] paranoicsan: has joined #ruby
[05:34:04] aupadhye: has joined #ruby
[05:37:12] amirite: has joined #ruby
[05:40:28] kies: has joined #ruby
[05:41:44] biberu: has joined #ruby
[05:43:00] idiocrash: has joined #ruby
[05:44:30] alfiemax: has joined #ruby
[05:53:59] anisha: has joined #ruby
[06:01:28] paranoicsan: has joined #ruby
[06:03:05] kanobt61: has joined #ruby
[06:03:19] rabajaj: has joined #ruby
[06:04:21] snickers: has joined #ruby
[06:06:07] jenrzzz: has joined #ruby
[06:06:07] jenrzzz: has joined #ruby
[06:07:13] paranoicsan: has joined #ruby
[06:10:53] guardianx: has joined #ruby
[06:11:33] konsolebox: has joined #ruby
[06:14:44] neuraload: has joined #ruby
[06:17:51] ldepandis: has joined #ruby
[06:18:19] amirite: has joined #ruby
[06:27:05] ^mtkd: has joined #ruby
[06:28:58] InfinityFye: has joined #ruby
[06:31:47] mjolnird: has joined #ruby
[06:34:47] oetjenj: has joined #ruby
[06:35:33] eb0t: has joined #ruby
[06:35:59] eblip: has joined #ruby
[06:38:24] enterprisey_: has joined #ruby
[06:39:23] alnet: has joined #ruby
[06:41:55] quobo: has joined #ruby
[06:42:28] conta: has joined #ruby
[06:43:56] shime: has joined #ruby
[06:44:55] Seenox: has joined #ruby
[06:51:13] jphase: has joined #ruby
[06:56:10] mtkd: has joined #ruby
[06:57:50] guille-moe: has joined #ruby
[07:01:23] mim1k: has joined #ruby
[07:03:58] kanobt61: has joined #ruby
[07:04:02] dminuoso_: has joined #ruby
[07:04:17] guardianx: has joined #ruby
[07:06:52] ShekharReddy: has joined #ruby
[07:07:56] alex``: has joined #ruby
[07:09:52] ramfjord: has joined #ruby
[07:10:07] jinie: has joined #ruby
[07:10:50] someuser: has joined #ruby
[07:14:55] DoubleMalt: has joined #ruby
[07:16:04] bronson: has joined #ruby
[07:16:05] ta: has joined #ruby
[07:19:28] mathys: has joined #ruby
[07:20:19] r7c: has joined #ruby
[07:20:24] hs366: has joined #ruby
[07:25:29] claudiuinberlin: has joined #ruby
[07:26:19] mathys: has joined #ruby
[07:28:33] mark_66: has joined #ruby
[07:29:09] DoubleMalt: has joined #ruby
[07:32:42] Alina-malina: has left #ruby: ("Leaving")
[07:35:30] guardianx: has joined #ruby
[07:35:37] mjolnird: has joined #ruby
[07:36:00] dionysus69: has joined #ruby
[07:36:14] sysvalve: has joined #ruby
[07:37:25] rakm: has joined #ruby
[07:38:54] rakm: how would I do a while/until look where I assign to an object to a variable and call a method that has a satisfactory return value?
[07:39:58] rakm: e.g. until x = !get_random_number.even? { puts x }
[07:40:16] rakm: sorry, that block syntax is wrong i think
[07:40:37] rakm: but the point is that my get_random_number method returns a number, and i want to call a method on it, but i want to assign the number to the variable
[07:41:58] zautomata: has joined #ruby
[07:44:41] tobiasvl: rakm: well you can do !(x = get_random_number).even?
[07:44:45] tobiasvl: odd? also exists
[07:46:07] ramfjord: has joined #ruby
[07:46:36] alfiemax: has joined #ruby
[07:47:13] mjolnird: has joined #ruby
[07:47:19] blackmesa: has joined #ruby
[07:47:41] mjolnird: has joined #ruby
[07:48:38] rakm: tobiasvl that was just a (bad) example. here's something more realistic: https://paste.pound-python.org/show/BJgPyvf98tP6zCVs1TeK/
[07:49:14] rakm: hmm maybe, `x = Person.new until x.get` will work...
[07:50:33] rakm: i have to assign x the first time manually to do that. is there an equivalent oneliner?
[07:50:43] shime: has joined #ruby
[07:51:05] rakm: this works: `x = Person.new; x = Person.new until x.get`
[07:55:13] Trynemjoel: has joined #ruby
[07:55:35] DoubleMalt: has joined #ruby
[07:56:58] mjolnird: has joined #ruby
[07:57:26] mjolnird: has joined #ruby
[07:58:13] Silthias: has joined #ruby
[08:01:44] ramfjord: has joined #ruby
[08:02:34] rgr: has joined #ruby
[08:02:49] CrazyEddy: has joined #ruby
[08:04:06] anas: has joined #ruby
[08:05:12] kanobt61: has joined #ruby
[08:08:10] mim1k: has joined #ruby
[08:08:25] dminuoso_: has joined #ruby
[08:08:30] burgestrand: has joined #ruby
[08:10:01] elsevero: has joined #ruby
[08:10:15] burgestrand: has joined #ruby
[08:13:20] mikecmpbll: has joined #ruby
[08:16:01] mjolnird: has joined #ruby
[08:16:29] mjolnird: has joined #ruby
[08:17:17] ElDoggo: has joined #ruby
[08:20:33] dminuoso_: has joined #ruby
[08:21:23] andikr: has joined #ruby
[08:22:10] ramfjord: has joined #ruby
[08:26:28] hahuang65: has joined #ruby
[08:28:20] lxsameer: has joined #ruby
[08:30:26] tvw: has joined #ruby
[08:31:57] cadillac_: has joined #ruby
[08:34:46] workmad3: has joined #ruby
[08:34:47] Harzilein: has joined #ruby
[08:35:05] anisha: has joined #ruby
[08:35:45] Harzilein: so, many gems and their constituting objects implement the api needed for pp... which makes me wonder if there are alternative pp renderers with, say, html output or something
[08:37:34] zautomata: has joined #ruby
[08:44:21] mim1k: has joined #ruby
[08:45:35] marr: has joined #ruby
[08:46:50] claudiuinberlin: has joined #ruby
[08:46:57] blackmesa1: has joined #ruby
[08:47:06] rob_: awesome_print - doesnt output html afaik but it's an alternative to pp
[08:49:54] Harzilein: rob_: does it use the pp callbacks though?
[08:52:05] rob_: not sure
[08:55:15] phaul: has joined #ruby
[08:57:03] Jameser: has joined #ruby
[08:58:50] TomyLobo: has joined #ruby
[09:01:24] Beams: has joined #ruby
[09:01:26] ElDoggo: has joined #ruby
[09:06:16] kanobt61: has joined #ruby
[09:12:05] paranoicsan: has left #ruby: ()
[09:15:44] dminuoso_: has joined #ruby
[09:17:08] yCrazyEdd: has joined #ruby
[09:17:18] bronson: has joined #ruby
[09:19:12] Beams: has joined #ruby
[09:22:51] DoubleMalt: has joined #ruby
[09:30:20] Bhootrk_: has joined #ruby
[09:32:27] Sylario: has joined #ruby
[09:36:07] ferr: has joined #ruby
[09:36:44] charliesome: has joined #ruby
[09:40:10] GodFather: has joined #ruby
[09:49:47] dinfuehr: has joined #ruby
[09:51:55] claudiuinberlin: has joined #ruby
[09:55:06] nowhereman: has joined #ruby
[10:02:39] claudiuinberlin: has joined #ruby
[10:04:19] darix: Harzilein: you probably want rouge or something
[10:06:12] Harzilein: darix: improbable
[10:07:13] kanobt61: has joined #ruby
[10:08:13] Harzilein: darix: i don't want to format code, i want to tap into objects where helpful programmers thought of a pp based presentation. that data would be useful to me when i could control the formatting more
[10:08:13] dionysus69: I have cronjob with ruby path included but I get bundle command not found
[10:08:51] Harzilein: darix: naturally before i go and write a formatter myself, i want to look if someone already did that
[10:08:52] darix: Harzilein: you wanted to render html from code. rouge does that. so
[10:10:50] Harzilein: darix: rouge is for formatting _source code_. i don't want to format source code. as for the building html from it part: i can build html myself well enough. the important part is that i'd prefer to stay ignorant of the pp particulars when there's a gem that already interfaces in the same way as pp does
[10:12:28] Harzilein: so pp works by providing a bunch of callbacks and passing the pp object into a pretty_print function that calls those. i'd have expected at least a dozen formatters based on that very api, providing the same callback methods as pp does
[10:13:20] c0mrad3: has joined #ruby
[10:13:57] huyderman: has joined #ruby
[10:15:00] ferr: has joined #ruby
[10:15:44] Harzilein: darix: to repeat: i _do not_ want source pretty printing. just because something is called a pretty printer it would _not_ involve source highlighting. thank you but no thanks.
[10:15:47] rgr_: has joined #ruby
[10:16:03] Harzilein: +necessarily
[10:18:25] adlerdias: has joined #ruby
[10:19:47] ferr: has joined #ruby
[10:22:21] bruno-: has joined #ruby
[10:22:43] ramfjord: has joined #ruby
[10:26:31] claudiuinberlin: has joined #ruby
[10:27:25] alfiemax: has joined #ruby
[10:35:38] charliesome: has joined #ruby
[10:41:22] workmad3: has joined #ruby
[10:43:23] ramfjord: has joined #ruby
[10:51:15] apparition: has joined #ruby
[10:56:16] Siyfion: has joined #ruby
[11:00:09] dionysus69: has joined #ruby
[11:03:33] ferr: has joined #ruby
[11:04:03] anisha: has joined #ruby
[11:08:12] kanobt61: has joined #ruby
[11:09:40] Ishido: has joined #ruby
[11:15:42] lexruee: has joined #ruby
[11:17:53] claudiuinberlin: has joined #ruby
[11:18:22] bronson: has joined #ruby
[11:20:19] kanobt61: has joined #ruby
[11:20:56] bweston92: has joined #ruby
[11:24:30] dminuoso_: has joined #ruby
[11:25:17] Paraxial: has joined #ruby
[11:25:48] claudiuinberlin: has joined #ruby
[11:28:49] FahmeF: has joined #ruby
[11:29:05] tlaxkit: has joined #ruby
[11:32:01] Paraxial: has joined #ruby
[11:32:35] Ishido: has joined #ruby
[11:35:25] ramfjord: has joined #ruby
[11:37:54] blackmesa1: has joined #ruby
[11:39:39] ldnunes: has joined #ruby
[11:45:30] jurep: has joined #ruby
[11:45:35] jurep: has left #ruby: ()
[11:48:32] shinnya: has joined #ruby
[11:50:39] tvw: has joined #ruby
[11:50:59] ElDoggo: has joined #ruby
[11:51:13] jurep: has joined #ruby
[11:54:32] bruno-: has joined #ruby
[11:56:18] conta1: has joined #ruby
[11:58:00] dionysus69: has joined #ruby
[12:03:36] elsevero: has joined #ruby
[12:08:37] mark_66: has joined #ruby
[12:08:44] ShekharReddy: has joined #ruby
[12:09:32] knight33: has joined #ruby
[12:10:28] houhoulis: has joined #ruby
[12:11:41] ramfjord: has joined #ruby
[12:12:04] Silthias1: has joined #ruby
[12:12:58] claudiuinberlin: has joined #ruby
[12:14:26] hs367: has joined #ruby
[12:16:25] fmcgeough: has joined #ruby
[12:21:19] kanobt61: has joined #ruby
[12:21:48] fmcgeough: has joined #ruby
[12:23:48] tvw: has joined #ruby
[12:28:41] Psy-Q: has left #ruby: ("Leaving")
[12:30:21] simmaniac: has joined #ruby
[12:30:27] bmurt: has joined #ruby
[12:33:18] ldnunes: has joined #ruby
[12:35:20] agimenez: has joined #ruby
[12:37:43] abrcdbr: has joined #ruby
[12:38:31] bastilian_: has joined #ruby
[12:39:30] sysvalve: has joined #ruby
[12:40:21] minimalism: has joined #ruby
[12:43:35] bastilian_: has joined #ruby
[12:44:29] __Yiota: has joined #ruby
[12:44:40] ShalokShalom_: has joined #ruby
[12:45:11] ams__: has joined #ruby
[12:45:16] kanobt61: has joined #ruby
[12:48:00] rfoust: has joined #ruby
[12:50:33] hs366: has joined #ruby
[12:52:48] ironcamel: has joined #ruby
[12:53:38] charliesome: has joined #ruby
[12:54:37] chouhoulis: has joined #ruby
[12:54:46] workmad3: has joined #ruby
[12:55:01] sepp2k: has joined #ruby
[12:55:28] truenito: has joined #ruby
[12:56:36] bazzy: has joined #ruby
[12:57:15] gf3: has joined #ruby
[12:58:02] mson: has joined #ruby
[13:02:39] audy: has joined #ruby
[13:03:24] FastJack: has joined #ruby
[13:06:37] zautomata: has joined #ruby
[13:10:14] snickers: has joined #ruby
[13:11:29] ur5us: has joined #ruby
[13:16:18] tamouse__: has joined #ruby
[13:18:47] paranoicsan: has joined #ruby
[13:19:22] bronson: has joined #ruby
[13:21:00] blackmesa1: has joined #ruby
[13:21:12] __Yiota: has joined #ruby
[13:24:06] rwb: has joined #ruby
[13:27:59] kanobt61_: has joined #ruby
[13:28:11] DLSteve_: has joined #ruby
[13:31:20] Siyfion: has joined #ruby
[13:32:27] edwardly: has joined #ruby
[13:32:27] edwardly: has joined #ruby
[13:41:40] Silthias: has joined #ruby
[13:43:03] bruno-: has joined #ruby
[13:46:47] alfiemax: has joined #ruby
[13:51:01] tsglove: has joined #ruby
[13:51:52] claudiuinberlin: has joined #ruby
[14:00:48] tsglove: has joined #ruby
[14:01:20] jtperreault: has joined #ruby
[14:02:35] charliesome_: has joined #ruby
[14:06:37] jrafanie: has joined #ruby
[14:09:43] Rapture: has joined #ruby
[14:09:54] orbyt_: has joined #ruby
[14:10:58] bmurt: has joined #ruby
[14:17:18] blackmesa1: has joined #ruby
[14:22:46] andikr: has joined #ruby
[14:23:51] BTRE: has joined #ruby
[14:24:48] __Yiota: has joined #ruby
[14:27:18] Azure: has joined #ruby
[14:27:39] neuraload: has joined #ruby
[14:31:52] cgfbee: has joined #ruby
[14:34:57] sekmo: has joined #ruby
[14:35:50] jphase: has joined #ruby
[14:36:34] tamouse__: has joined #ruby
[14:40:01] bronson: has joined #ruby
[14:41:13] AgentVenom: has joined #ruby
[14:43:48] charliesome: has joined #ruby
[14:50:50] polishdub: has joined #ruby
[14:51:11] jrafanie: has joined #ruby
[14:54:45] moei: has joined #ruby
[14:56:35] cdg: has joined #ruby
[14:57:14] rippa: has joined #ruby
[14:57:17] Trynemjoel: has joined #ruby
[15:01:36] bwilson: has joined #ruby
[15:02:19] __Yiota: has joined #ruby
[15:04:47] eaxxae: has joined #ruby
[15:06:09] ThomasQM: has joined #ruby
[15:08:20] marr: has joined #ruby
[15:11:57] alex``: has joined #ruby
[15:14:06] zapata: has joined #ruby
[15:15:16] ElDoggo: has joined #ruby
[15:19:02] imode: has joined #ruby
[15:19:22] ElDoggo: has joined #ruby
[15:24:16] johno84: has joined #ruby
[15:26:52] claudiuinberlin: has joined #ruby
[15:27:32] FahmeF: has joined #ruby
[15:29:12] cagomez: has joined #ruby
[15:36:43] claudiuinberlin: has joined #ruby
[15:38:43] FrostCandy: has joined #ruby
[15:42:24] snickers: has joined #ruby
[15:54:15] chouhoulis: has joined #ruby
[15:54:51] herbmillerjr: has joined #ruby
[15:55:37] alfiemax: has joined #ruby
[15:55:57] alfiemax: has joined #ruby
[15:58:26] bruno-: has joined #ruby
[16:00:35] fChanX: has joined #ruby
[16:03:00] cdg_: has joined #ruby
[16:03:15] fChanX: What do you guys use Ruby for? :)
[16:03:26] fChanX: Sorry for the newb question lol
[16:04:34] cdg__: has joined #ruby
[16:07:46] orbyt_: has joined #ruby
[16:09:09] __Yiota: has joined #ruby
[16:09:18] Zarthus: i use it to cure my migraines
[16:10:10] blackmesa: has joined #ruby
[16:11:19] havenwood: fChanX: All sorts of things. It's general purpose.
[16:11:47] havenwood: fChanX: It's not particularly good for GUI bindings or high FPS-related things.
[16:12:07] havenwood: fChanX: It's not a system language or embeddable (though there's mruby for the latter).
[16:15:25] [Butch]: has joined #ruby
[16:15:51] setient: what about crystal or using ruby llvm stuff to compile down to a binary :) i am kidding.
[16:17:02] kies: has joined #ruby
[16:18:26] FahmeF_: has joined #ruby
[16:23:52] cschneid_: has joined #ruby
[16:24:20] dviola: has joined #ruby
[16:24:37] cschneid_: Is there a gem or helper to edit Gemfiles? Operations like: "insert <xyz gem> after <existing gem> into <dev, test> groups"?
[16:27:54] troys: has joined #ruby
[16:28:08] fChanX: has left #ruby: ()
[16:29:45] darix: cschneid_: vim
[16:30:17] gusrub: has joined #ruby
[16:31:45] roshanavand: has joined #ruby
[16:32:24] Rapture: has joined #ruby
[16:33:22] cschneid_: darix: trying to automate the setup of a lot of docker images, with different versions of gems & such - basically a CI type system, but locally. "Here's the base Gemfile, but then plug in unicorn plz".
[16:33:28] cschneid_: So automated, not just a one-off editor thing
[16:33:57] darix: cschneid_: see what redmine e.g. does with a Gemfile.local
[16:34:02] darix: you could do something like that
[16:34:11] darix: and then dump container specific Gemfile.local files
[16:36:22] cschneid_: interesting. Looking, but it may end up with me just doing silly sed commands...
[16:39:06] spt0: has joined #ruby
[16:42:37] edwardly: has joined #ruby
[16:42:37] edwardly: has joined #ruby
[16:44:00] amirite: has joined #ruby
[16:45:48] SeepingN: has joined #ruby
[16:46:25] alfiemax: has joined #ruby
[16:46:30] chmurifree: has joined #ruby
[16:47:37] tuelz: has joined #ruby
[16:48:28] tpendragon: has joined #ruby
[16:48:37] cdg: has joined #ruby
[16:52:09] bronson: has joined #ruby
[16:54:13] cagomez: has joined #ruby
[16:55:54] naftilos76: has joined #ruby
[16:55:57] Ishido: has joined #ruby
[16:59:38] mostlybadfly: has joined #ruby
[17:01:26] mikecmpbll: has joined #ruby
[17:03:27] amirite: has joined #ruby
[17:05:40] neuraload: has joined #ruby
[17:06:04] bathtub_shark: has joined #ruby
[17:06:25] eckhardt: has joined #ruby
[17:08:21] bmurt: has joined #ruby
[17:14:32] alfiemax: has joined #ruby
[17:14:56] rakm: has joined #ruby
[17:16:55] mtkd: has joined #ruby
[17:21:04] tcopeland: has joined #ruby
[17:26:38] rgr: has joined #ruby
[17:27:20] dmtd: has joined #ruby
[17:27:25] rakm: has joined #ruby
[17:28:46] dreamthese: has joined #ruby
[17:31:47] dminuoso_: has joined #ruby
[17:31:52] jrafanie: has joined #ruby
[17:45:19] graft: has joined #ruby
[17:52:31] bronson: has joined #ruby
[17:53:24] orbyt_: has joined #ruby
[17:54:59] rfmind: has joined #ruby
[18:01:14] bmurt: has joined #ruby
[18:02:18] Cohedrin_: has joined #ruby
[18:03:49] graft: has joined #ruby
[18:03:49] graft: has joined #ruby
[18:03:55] tamouse__: has joined #ruby
[18:04:58] lele: has joined #ruby
[18:08:01] FahmeF: has joined #ruby
[18:08:37] rakm: has joined #ruby
[18:09:36] dionysus69: has joined #ruby
[18:10:28] jenrzzz: has joined #ruby
[18:12:15] shinnya: has joined #ruby
[18:13:15] oetjenj: has joined #ruby
[18:16:54] ledestin: has joined #ruby
[18:17:22] oetjenj: has joined #ruby
[18:22:01] jinie: has joined #ruby
[18:23:42] Guest97372: has joined #ruby
[18:30:23] ramfjord: has joined #ruby
[18:35:24] FastJack: has joined #ruby
[18:43:12] shime: has joined #ruby
[18:48:19] bruno-: has joined #ruby
[18:50:52] simmaniac: has joined #ruby
[18:57:56] ruby_n00b: has joined #ruby
[19:00:44] bathtub_shark: has joined #ruby
[19:02:03] jrafanie: has joined #ruby
[19:02:23] claudiuinberlin: has joined #ruby
[19:02:57] bathtub_shark: has joined #ruby
[19:04:49] edward_: has joined #ruby
[19:05:34] selim: has joined #ruby
[19:06:25] cagomez: has joined #ruby
[19:06:49] ryandevilla: has joined #ruby
[19:07:03] Cohedrin_: has joined #ruby
[19:07:15] bathtub_shark: has joined #ruby
[19:09:18] bmurt: has joined #ruby
[19:10:22] bathtub_shark: has joined #ruby
[19:11:07] ta: has joined #ruby
[19:13:03] bathtub_shark: has joined #ruby
[19:14:03] FahmeF: has joined #ruby
[19:14:05] bathtub_shark: has joined #ruby
[19:16:20] theunraveler: has joined #ruby
[19:18:49] cdg_: has joined #ruby
[19:21:02] mtkd: has joined #ruby
[19:31:05] dviola: has joined #ruby
[19:32:34] dviola: has joined #ruby
[19:33:30] Cohedrin_: has joined #ruby
[19:34:56] AlexRussia: has joined #ruby
[19:40:34] blackmesa: has joined #ruby
[19:43:28] gusrub_: has joined #ruby
[19:44:10] claudiuinberlin: has joined #ruby
[19:46:01] rabajaj: has joined #ruby
[19:48:21] orbyt_: has joined #ruby
[19:48:39] cagomez: has joined #ruby
[19:49:46] Xiti: has joined #ruby
[19:50:29] cagomez: has joined #ruby
[19:51:05] jenrzzz: has joined #ruby
[19:51:05] jenrzzz: has joined #ruby
[19:52:25] adlerdias: has left #ruby: ()
[19:52:52] conta: has joined #ruby
[19:53:31] bronson: has joined #ruby
[19:55:58] cagomez: has joined #ruby
[19:57:05] jenrzzz_: has joined #ruby
[20:04:44] tamouse__: has joined #ruby
[20:07:10] jrafanie: has joined #ruby
[20:07:51] hahuang65: has joined #ruby
[20:15:08] Dimik: has joined #ruby
[20:16:02] tamouse__: has joined #ruby
[20:16:20] ur5us: has joined #ruby
[20:19:12] tvw: has joined #ruby
[20:22:05] zachk: has joined #ruby
[20:23:16] Prutheus: has joined #ruby
[20:23:23] bmurt: has joined #ruby
[20:23:55] dinfuehr: has joined #ruby
[20:24:37] charliesome: has joined #ruby
[20:25:45] Prutheus: Hello. I need to solve a difficult task. It is a web scraping task. I want to use mechanize. I need to login to this page by entering the right captcha: https://vcheck.ttc.lacounty.gov/ the problem is, the captcha is not loaded directly but later via javascript. I got extracted the image already by getting some variables and urls. But my form submit seems to not work, when i inter the right captcha and submit via mechanize, it retur
[20:25:49] Prutheus: ng the new html
[20:25:55] Prutheus: here you can check my code to extract the image
[20:26:09] claudiuinberlin: has joined #ruby
[20:26:19] Prutheus: https://bpaste.net/show/5c1c52643c8d
[20:26:29] Prutheus: maybe someone has an idea?
[20:31:47] milardovich: has joined #ruby
[20:33:41] cadillac_: has joined #ruby
[20:36:56] eam: prutheus: you should be aware, circumventing a captcha in this way may constitute a felony
[20:37:17] eam: (it's a bit of a grey area)
[20:37:36] eckhardt: has joined #ruby
[20:38:33] claudiuinberlin: has joined #ruby
[20:39:00] Prutheus: eam: why? what is forbiddin on that way? i view the image and enter it
[20:40:05] eam: you've read the terms of service on that page? It's not criminal to ignore terms of service (civil matter, reasonable outcome of winning) but it can potentially be criminal to bypass a restriction mechanism -- the captcha
[20:42:46] prutheus_: has joined #ruby
[20:42:50] guardianx: has joined #ruby
[20:42:58] prutheus_: eam: have you answered already?
[20:43:01] prutheus_: i had a disconnect
[20:43:45] teatime: prutheus_: if you're in the US, the CFAA can be read to make all kinds of ridiculous things criminal.
[20:44:29] prutheus_: well, that is no problem at all, because I do not bypass the captcha illegally. I view it and enter the code manually. So this is legit in sense of the captcha is blocking violential access.
[20:44:43] prutheus_: please help me submitting the captcha
[20:45:47] tamouse__: has joined #ruby
[20:46:29] enterprisey: has joined #ruby
[20:46:40] ryandevilla: has joined #ruby
[20:47:23] maciej: has joined #ruby
[20:47:56] jphase: has joined #ruby
[20:48:11] eam: you may find your theories don't hold when push comes to shove, but hey, no skin off my back
[20:48:56] milardovich: has joined #ruby
[20:49:21] prutheus_: eam, i am no native american, so could you please explain me what you mean?
[20:50:18] tamouse__: has joined #ruby
[20:50:33] eam: prutheus_: their terms request that you not scrape and the captcha is a restriction mechanism attempting to enforce those terms. Violating their terms isn't criminal, but bypassing a control mechanism may be
[20:50:45] eam: it's a grey area
[20:51:18] prutheus_: ok, but this is my problem i think ^^ could you please help me breaking the captcha problem i meintioned?
[20:51:36] eam: I'm no good with frontend stuff, so no :) But I wish you luck
[20:52:45] havenwood: prutheus_: We have this nasty thing called the DMCA that criminalizes circumventing even feeble technical protections for copyrighted work.
[20:53:13] prutheus_: havenwood: what do you want me to say?
[20:53:24] havenwood: prutheus_: If you can lawfully do what you're trying to do, maybe look at Selenium.
[20:53:38] eam: interestingly though, and contrary to the claims on that page, I do not think the content in question is under copyright
[20:53:54] prutheus_: selenium is no option for me :/
[20:54:23] eam: for two reasons: 1) can't copyright facts, and 2) California is one of the states which generally prohibits its government from copyrighting its own works
[20:54:55] eam: I still wouldn't try to mechanize the captcha though
[20:55:11] rgr: has joined #ruby
[20:55:46] eam: I wonder if you can send them an FOIA and just ask for a database dump
[20:55:57] teatime: a lot of times that second thing is gotten around by hiring a private contractor to create the work.
[20:56:04] bmurt: has joined #ruby
[20:57:00] milardovich: has joined #ruby
[20:57:15] ResidentBiscuit: has joined #ruby
[20:57:40] ResidentBiscuit: has joined #ruby
[20:57:58] eam: honestly, we should just publish the data
[20:58:22] prutheus_: eam, so you mean I should stop working on that?
[20:58:27] eam: prutheus_: up to you
[20:58:40] claudiuinberlin: has joined #ruby
[20:58:48] eam: it may or may not even be an issue if you're not in the US -- just offering advice
[20:58:52] prutheus_: well the problem is noone of you guys are helping me :D
[20:59:07] eam: I would, if I were any good at javascript and web stuff!
[20:59:30] eam: havenwood suggested Selenium
[21:00:58] prutheus_: problem is that noone want to use selenium for web scraping :D it is also too slow
[21:01:07] cdg: has joined #ruby
[21:01:17] prutheus_: i mean i get mechanize nearly workiiiiiiing, there is just one little blob missing to get my problem solved i think
[21:03:31] eam: well I have to thank you because this conversation reminded me to pay my 2017 property taxes ...
[21:03:54] Cohedrin_: has joined #ruby
[21:07:38] prutheus_: teatime: you may have any other ideas?
[21:09:07] eam: $3 to process an ACH, what a ripoff
[21:09:52] hahuang65: has joined #ruby
[21:12:38] bmurt: has joined #ruby
[21:21:18] AndBobsYourUncle: has joined #ruby
[21:21:29] rwb: has joined #ruby
[21:22:51] sepp2k: has joined #ruby
[21:24:27] milardovich: has joined #ruby
[21:24:34] milardovich: has joined #ruby
[21:25:27] ryandevilla: has joined #ruby
[21:26:20] wattt: has joined #ruby
[21:29:23] thomasv314: has joined #ruby
[21:30:20] jenrzzz: has joined #ruby
[21:33:12] eckhardt: has joined #ruby
[21:41:25] mim1k: has joined #ruby
[21:41:58] thomasv314: has joined #ruby
[21:44:16] scottj: has joined #ruby
[21:46:49] bronson: has joined #ruby
[21:49:51] cdg_: has joined #ruby
[21:56:02] perniciouscaffei: has joined #ruby
[21:58:25] jrafanie: has joined #ruby
[21:58:43] shime: has joined #ruby
[21:58:46] eckhardt: has joined #ruby
[21:58:51] chouhoul_: has joined #ruby
[22:01:27] orbyt_: has joined #ruby
[22:02:52] AndBobsYourUncle: has joined #ruby
[22:04:54] amirite: has joined #ruby
[22:06:58] iszak: has joined #ruby
[22:06:58] iszak: has joined #ruby
[22:07:44] rakm: is it possible to call retry in a method and pass different arguments to it?
[22:11:02] matthewd: rakm: That's not what retry does, so.. no.
[22:11:16] tamouse__: has joined #ruby
[22:12:09] havenwood: rakm: but you could check the arity of the current method and call it again with different arguments - where do the alternative arguments come from?
[22:12:32] rakm: a private method
[22:12:48] havenwood: rakm: method(__method__).parameters
[22:13:08] havenwood: rakm: You'll have to show some code or describe more what you're doing for us to give better answers.
[22:13:41] havenwood: rakm: You can check what your current method allows for parameters from inside the method like above ^
[22:14:03] havenwood: rakm: and of course you can call it with your params
[22:16:50] havenwood: >> def example argument, another_argument = nil, keyword: true; method(__method__).parameters end; example 42 # rakm
[22:16:51] ruby[bot]: havenwood: # => [[:req, :argument], [:opt, :another_argument], [:key, :keyword]] (https://eval.in/874600)
[22:17:15] havenwood: If you know how many arguments/keywords, just call it.
[22:17:38] rakm: havenwood something like this: https://paste.pound-python.org/show/WEOIno7vnL008Qy0ASWP/
[22:17:48] ryandevilla: has joined #ruby
[22:17:52] rakm: was wondering if instead of recalling the method, i could use retry to any advantage
[22:18:37] rakm: sry, indentation on line 9 is messed up
[22:19:05] havenwood: rakm: So you have a recursive method and are looking for possible better solutions?
[22:19:41] rakm: not sure if this is recursive...it's a protection against an invalid argument
[22:19:42] havenwood: So basically is there a better pattern than recursing in the rescue?
[22:20:20] rakm: but yeah, I guess looking for better patterns in general
[22:20:23] havenwood: rakm: It seems like flow control recursion to me. Hmm.
[22:20:48] havenwood: I mean errors as flow control with recursion.
[22:21:33] rakm: sure, we can call it that. i don't know the formal definition of recursion
[22:21:44] havenwood: rakm: calling oneself until a condition occurs
[22:21:48] havenwood: something like that
[22:22:03] rakm: ok, then this is recursion
[22:22:30] amirite: has joined #ruby
[22:22:40] rakm: basically, i get person ids from a different source, but the update could fail (in some external code) if the person doesn't meet some conditions
[22:22:46] rakm: i want to assign the thing to someone else in that case
[22:23:14] rakm: getting a random person is expensive, which is why i memoize it and have a refresh option
[22:23:34] rakm: my code will only run twice though
[22:23:54] havenwood: rakm: that's nice, since you'll have no issues with stack level too deep
[22:24:06] rakm: i'd like to configure it to run multiple times with an variable that only exists in that method's scope. it looked like retry would be able to do it
[22:24:20] rakm: with an instance-like variable
[22:24:47] havenwood: rakm: yeah, if you want to change one thing and retry, that might be a good way to go
[22:25:13] rakm: i don't want to keep a count in an @ivar, since that @ivar will not be relevant outside this method
[22:25:31] rakm: i guess i can keep a counter (for number of retries) and pass it in as an argument..
[22:26:45] tamouse__: has joined #ruby
[22:28:15] rakm: i guess this works.. https://paste.pound-python.org/show/wLYSPsFkG5XA2B31TFnc/
[22:28:28] rakm: seems complicated though
[22:30:58] bmurt: has joined #ruby
[22:31:50] havenwood: >> def example; meth = :explode; begin; send(meth, 'rakm'); rescue NoMethodError; meth = :puts; retry; end; end; example
[22:31:51] ruby[bot]: havenwood: # => rakm ...check link for more (https://eval.in/874603)
[22:32:47] havenwood: rakm: instance variables aren't required ^, but anything you set in the rescue will get stomped on if redefined *after* the `begin`.
[22:33:57] RickHull: has joined #ruby
[22:34:46] RickHull: Hi, I'm trying to debug this travis failure, which I think is an old bug in some combination of Ruby 2.1, rubygems, and bundler versions https://travis-ci.org/rickhull/loremarkov/jobs/283055198
[22:34:52] tamouse__: has joined #ruby
[22:35:16] RickHull: `bundle install` fails with NoMethodError: undefined method `spec' for nil:NilClass
[22:35:38] RickHull: These look related: https://github.com/bundler/bundler/issues/3558 https://github.com/bundler/bundler/pull/3559
[22:36:45] RickHull: here is my .travis.yml -- the failing run corresponds to `rvm: - 2.1.2` https://github.com/rickhull/loremarkov/blob/master/.travis.yml
[22:37:50] RickHull: I'm planning on updating to newer rvm entries. 2.0 is EOL'd I think, but it also doesn't hurt to test against it
[22:45:58] RickHull: it looks like travis now supports installing without bundler; trying that since I have no deps
[22:48:50] sagax: has joined #ruby
[22:49:46] jphase: has joined #ruby
[22:53:24] thomasv314: has joined #ruby
[22:53:27] d^sh: has joined #ruby
[22:53:44] rakm: havenwood thanks, i think that works for me
[22:56:18] alfiemax: has joined #ruby
[22:58:35] ryandevilla: has joined #ruby
[22:59:15] bmurt: has joined #ruby
[23:00:01] Emmanuel_Chanel: has joined #ruby
[23:00:21] orbyt_: has joined #ruby
[23:02:06] cschneid_: has joined #ruby
[23:04:48] knight33: has joined #ruby
[23:05:58] thinkpad: has joined #ruby
[23:11:04] perniciouscaffei: has joined #ruby
[23:16:23] DarthGandalf: has joined #ruby
[23:20:02] bwilson: has joined #ruby
[23:24:02] bathtub_shark: has joined #ruby
[23:24:18] irick: has joined #ruby
[23:25:44] Olipro: has joined #ruby
[23:27:14] tamouse__: has joined #ruby
[23:28:47] RickHull: solved by not using bundler
[23:31:47] bmurt: has joined #ruby
[23:31:51] jenrzzz: has joined #ruby
[23:32:10] jenrzzz: has joined #ruby
[23:35:07] __Yiota: has joined #ruby
[23:35:45] Olipro: has joined #ruby
[23:37:09] eckhardt: has joined #ruby
[23:39:53] Qommand0r: has joined #ruby
[23:41:48] mim1k: has joined #ruby
[23:44:08] FahmeF: has joined #ruby
[23:50:02] orbyt_: has joined #ruby
[23:52:10] techn1cs: has joined #ruby
[23:52:10] techn1cs: has joined #ruby
[23:52:24] conta1: has joined #ruby
[23:53:57] eckhardt_: has joined #ruby
[23:55:32] milardovich: has joined #ruby
[23:55:42] AndBobsYourUncle: has joined #ruby
[23:59:45] rfoust: has joined #ruby
[23:59:48] bronson: has joined #ruby