« Back to channel list

#ruby - 08 September 2017

« Back 1 day Forward 1 day »
[00:00:54] Yonk: has joined #ruby
[00:01:45] raul782: has joined #ruby
[00:04:46] raul782: has joined #ruby
[00:11:39] umaaji: has joined #ruby
[00:12:05] bvcosta: has joined #ruby
[00:12:32] Caerus: has joined #ruby
[00:15:00] pharma_joe: has joined #ruby
[00:16:21] goyox86: has joined #ruby
[00:16:52] jdbrowne: has joined #ruby
[00:17:32] juria_roberts: has joined #ruby
[00:17:58] alveric3: has joined #ruby
[00:20:08] wlycdgr1: has joined #ruby
[00:20:50] mim1k_: has joined #ruby
[00:21:30] pharma_joe: has joined #ruby
[00:22:17] bruce_lee: has joined #ruby
[00:22:40] jottr: has joined #ruby
[00:27:02] nicesignal: has joined #ruby
[00:27:35] bronson: has joined #ruby
[00:28:09] herbmillerjr: has joined #ruby
[00:28:41] bmurt: has joined #ruby
[00:30:50] alveric3: has joined #ruby
[00:31:43] cconstantine_: has joined #ruby
[00:35:21] cagomez: has joined #ruby
[00:35:52] neo95: has joined #ruby
[00:36:29] FastJack: has joined #ruby
[00:40:24] charliesome: has joined #ruby
[00:51:47] haraoka: has joined #ruby
[00:53:21] tcopeland: has joined #ruby
[00:53:58] zephiro: has joined #ruby
[00:54:19] charliesome: has joined #ruby
[00:55:30] enterprisey: has joined #ruby
[00:58:29] alveric3: has joined #ruby
[00:59:24] sp4rrow: has joined #ruby
[01:01:25] konsolebox: has joined #ruby
[01:06:19] bvcosta: has joined #ruby
[01:14:26] davic_: has joined #ruby
[01:14:37] wlycdgr1: has joined #ruby
[01:15:05] GodFather: has joined #ruby
[01:15:32] juggler: has joined #ruby
[01:17:40] lexruee_: has joined #ruby
[01:18:30] davic: has joined #ruby
[01:20:36] govg: has joined #ruby
[01:23:23] jottr: has joined #ruby
[01:23:46] kies: has joined #ruby
[01:27:03] gizmore: has joined #ruby
[01:27:03] alveric3: has joined #ruby
[01:28:05] ornerymoose: has joined #ruby
[01:30:02] AndBobsYourUncle: has joined #ruby
[01:35:18] ixti: has joined #ruby
[01:35:21] brent__: has joined #ruby
[01:37:10] jenrzzz: has joined #ruby
[01:37:10] jenrzzz: has joined #ruby
[01:37:57] ornerymoose: has joined #ruby
[01:40:44] bmurt: has joined #ruby
[01:42:18] kwd: has joined #ruby
[01:43:24] sp4rrow: has joined #ruby
[01:44:53] Ziarkaen: has joined #ruby
[01:44:58] neo95: has joined #ruby
[01:56:27] pi4: has joined #ruby
[01:56:50] raul782: has joined #ruby
[01:56:50] mtkd: has joined #ruby
[01:57:23] d^sh: has joined #ruby
[01:58:31] DrCode: has joined #ruby
[01:59:39] Silthias: has joined #ruby
[02:00:14] bvcosta: has joined #ruby
[02:02:54] eightlimbed: has joined #ruby
[02:07:56] harai: has joined #ruby
[02:09:12] wlycdgr1: has joined #ruby
[02:10:38] apparition: has joined #ruby
[02:11:12] gusrub: has joined #ruby
[02:12:39] neo95: has joined #ruby
[02:16:26] orbyt_: has joined #ruby
[02:16:48] Jameser: has joined #ruby
[02:17:32] alveric3: has joined #ruby
[02:17:48] tcopeland: has joined #ruby
[02:21:01] skweek: has joined #ruby
[02:24:08] jottr: has joined #ruby
[02:28:46] bronson: has joined #ruby
[02:31:19] ensyde: has joined #ruby
[02:35:06] orbyt_: has joined #ruby
[02:38:36] umaaji: has joined #ruby
[02:42:19] alveric3: has joined #ruby
[02:42:41] mim1k: has joined #ruby
[02:48:28] cagomez: has joined #ruby
[02:48:42] alveric3: has joined #ruby
[02:52:17] neo95: has joined #ruby
[02:54:21] bvcosta: has joined #ruby
[02:57:54] Guest24: has joined #ruby
[03:00:15] cadillac_: has joined #ruby
[03:03:37] wlycdgr1: has joined #ruby
[03:05:53] neo95: has joined #ruby
[03:06:09] Guest24_: has joined #ruby
[03:08:52] Xiti: has joined #ruby
[03:09:23] AndBobsYourUncle: has joined #ruby
[03:13:59] alveric3: has joined #ruby
[03:14:57] Guest24: has joined #ruby
[03:15:31] PaulCapestany: has joined #ruby
[03:17:02] arescorpio: has joined #ruby
[03:21:23] govg: has joined #ruby
[03:21:44] alveric3: has joined #ruby
[03:23:11] Guest24: has joined #ruby
[03:23:36] al2o3-cr: has joined #ruby
[03:23:45] ornerymoose: has joined #ruby
[03:24:30] Guest24_: has joined #ruby
[03:24:54] jottr: has joined #ruby
[03:25:01] nowhere_man: has joined #ruby
[03:26:30] jenrzzz: has joined #ruby
[03:26:30] jenrzzz: has joined #ruby
[03:26:41] cagomez: has joined #ruby
[03:27:58] pharma_joe: has joined #ruby
[03:29:19] FastJack: has joined #ruby
[03:29:58] neo95: has joined #ruby
[03:34:11] Ikri: has joined #ruby
[03:39:21] gix: has joined #ruby
[03:45:45] Ziarkaen: has joined #ruby
[03:45:47] desnudopenguino: has joined #ruby
[03:46:41] Jameser: has joined #ruby
[03:48:11] neo95: has joined #ruby
[03:48:28] bvcosta: has joined #ruby
[03:53:18] uZiel: has joined #ruby
[03:53:31] tehgoldsnitch: has joined #ruby
[03:53:40] tehgoldsnitch: hello! i am looking for Shia LaBeouf!!!
[03:53:44] tehgoldsnitch: has anyone seen Shia LaBeouf???
[03:53:45] guille-moe: has joined #ruby
[03:53:51] tehgoldsnitch: guille-moe: are you Shia LaBeouf???
[03:53:53] havenwood: ?offtopic tehgoldsnitch
[03:53:53] ruby[bot]: tehgoldsnitch: this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
[03:54:02] tehgoldsnitch: ruby[bot]: you are confused. :)
[03:54:11] tehgoldsnitch: ruby[bot]: but can you help me find Shia LaBeouf?
[03:54:19] gusrub: has joined #ruby
[03:54:27] tehgoldsnitch: gusrub: hi! are you Shia LaBeouf???
[03:54:34] tehgoldsnitch: i need him because he is the most non-divisive man in the world!!!
[03:54:38] havenwood: !troll tehgoldsnitch
[03:54:38] ruby[bot]: +bbb $a:tehgoldsnitch$#ruby-banned tehgoldsnitch!*@*$#ruby-banned *!*@S01069050ca2b0293.wp.shawcable.net$#ruby-banned
[03:54:53] ruby[bot]: ruby[bot] kicked tehgoldsnitch: is a bannable offense, see http://ruby-community.com/pages/user_rules
[03:56:13] d5sx43: has joined #ruby
[03:58:10] wlycdgr1: has joined #ruby
[03:58:15] paradisaeidae: has joined #ruby
[03:58:19] paradisaeidae_: has joined #ruby
[03:59:11] Jameser: has joined #ruby
[04:00:19] DTZUZO: has joined #ruby
[04:00:35] sarbs: has joined #ruby
[04:01:34] mtkd: has joined #ruby
[04:03:13] PaulCapestany: has joined #ruby
[04:05:26] balazs_: has joined #ruby
[04:08:31] kapil___: has joined #ruby
[04:11:42] nopolitica: has joined #ruby
[04:14:12] maxschwenk: has joined #ruby
[04:15:40] ornerymoose: has joined #ruby
[04:15:45] alveric3: has joined #ruby
[04:16:17] Defenestrate: has joined #ruby
[04:25:37] jottr: has joined #ruby
[04:30:23] alveric3: has joined #ruby
[04:30:31] bronson: has joined #ruby
[04:35:16] harai: has joined #ruby
[04:37:58] alveric3: has joined #ruby
[04:42:34] bvcosta: has joined #ruby
[04:45:21] alveric3: has joined #ruby
[04:48:13] MyMind: has joined #ruby
[04:52:42] wlycdgr1: has joined #ruby
[04:53:56] f32: has joined #ruby
[04:55:06] alveric3: has joined #ruby
[05:04:48] alveric3: has joined #ruby
[05:06:54] AndBobsYourUncle: has joined #ruby
[05:07:42] taurgal: has joined #ruby
[05:12:01] charliesome: has joined #ruby
[05:12:01] abrcdbr: has joined #ruby
[05:13:37] ramfjord: has joined #ruby
[05:13:38] ramfjord_: has joined #ruby
[05:20:29] aihwh: has joined #ruby
[05:23:25] desnudopenguino: has left #ruby: ()
[05:25:44] opekktar: has joined #ruby
[05:26:22] jottr: has joined #ruby
[05:26:43] brent__: has joined #ruby
[05:28:44] alveric3: has joined #ruby
[05:29:11] Bock: has joined #ruby
[05:31:11] eckhardt: has joined #ruby
[05:36:34] bvcosta: has joined #ruby
[05:42:57] FahmeF: has joined #ruby
[05:43:42] mgorbach: has joined #ruby
[05:46:47] Ziarkaen: has joined #ruby
[05:47:14] wlycdgr1: has joined #ruby
[05:51:15] dionysus69: has joined #ruby
[05:52:19] jenrzzz: has joined #ruby
[05:53:10] Macaveli: has joined #ruby
[05:56:19] alveric3: has joined #ruby
[06:04:55] rabajaj: has joined #ruby
[06:05:44] anas: has joined #ruby
[06:07:06] mtkd: has joined #ruby
[06:08:23] cagomez: has joined #ruby
[06:10:30] paranoicsan: has joined #ruby
[06:14:18] roshanavand: has joined #ruby
[06:14:39] Hanmac: has joined #ruby
[06:23:24] neo95: has joined #ruby
[06:27:02] naprimer2: has joined #ruby
[06:27:28] jottr: has joined #ruby
[06:29:13] nephelo: has joined #ruby
[06:31:11] bronson: has joined #ruby
[06:33:41] alex``: has joined #ruby
[06:34:14] jackjackdripper: has joined #ruby
[06:34:53] war_pigs: has joined #ruby
[06:36:59] jordanm: has joined #ruby
[06:37:20] charliesome: has joined #ruby
[06:37:26] cadillac_: has joined #ruby
[06:37:27] conta: has joined #ruby
[06:38:23] abrcdbr: has joined #ruby
[06:38:32] alveric3: has joined #ruby
[06:39:50] war_pigs: has joined #ruby
[06:41:42] wlycdgr1: has joined #ruby
[06:47:23] ur5us: has joined #ruby
[06:51:32] jenrzzz: has joined #ruby
[06:51:32] jenrzzz: has joined #ruby
[06:52:32] r7c: has joined #ruby
[06:54:26] harfangk: has joined #ruby
[06:59:47] Ishido: has joined #ruby
[07:00:04] vondruch: has joined #ruby
[07:03:21] chouhoulis: has joined #ruby
[07:03:55] vondruch: has joined #ruby
[07:09:03] faelkle: has joined #ruby
[07:09:20] aufi: has joined #ruby
[07:09:24] mtkd: has joined #ruby
[07:11:47] sysvalve: has joined #ruby
[07:15:42] Silthias: has joined #ruby
[07:15:45] burgestrand: has joined #ruby
[07:19:31] TomyWork: has joined #ruby
[07:19:56] cconstantine: has joined #ruby
[07:20:55] mikecmpb_: has joined #ruby
[07:23:13] jenrzzz: has joined #ruby
[07:23:13] jenrzzz: has joined #ruby
[07:24:23] neo95: has joined #ruby
[07:24:23] vondruch: has joined #ruby
[07:24:27] bvcosta: has joined #ruby
[07:24:39] biberu: has joined #ruby
[07:24:42] mark_66: has joined #ruby
[07:25:30] claudiuinberlin: has joined #ruby
[07:28:14] jottr: has joined #ruby
[07:28:55] vondruch: has joined #ruby
[07:29:30] taurgal: has joined #ruby
[07:34:24] vondruch: has joined #ruby
[07:35:14] Nicmavr: has joined #ruby
[07:36:11] wlycdgr1: has joined #ruby
[07:37:00] mjolnird: has joined #ruby
[07:42:35] brent__: has joined #ruby
[07:43:55] vondruch: has joined #ruby
[07:47:25] charliesome: has joined #ruby
[07:47:37] Ziarkaen: has joined #ruby
[07:49:23] vondruch: has joined #ruby
[07:49:38] zeitchef: has joined #ruby
[07:53:53] vondruch: has joined #ruby
[07:59:21] vondruch: has joined #ruby
[08:00:18] sysvalve: has joined #ruby
[08:04:31] guille-moe: has joined #ruby
[08:05:14] anas: has joined #ruby
[08:07:05] charliesome: has joined #ruby
[08:09:13] Bish: hello, can somebody tell me how i would make a makefile rule like "%.o: %.c" in rake?
[08:09:20] Bish: i only find entry level tutorials
[08:09:44] TastyTrout: what do those rules do?
[08:10:04] Jameser: has joined #ruby
[08:10:14] Bish: if you tell make to build a file ending in ".o" it will add the ".c" file as dependency and built it, if not done already
[08:10:24] Bish: so a general rule how to compile c files for example
[08:10:51] claudiuinberlin: has joined #ruby
[08:10:51] TastyTrout: yeah it's possible
[08:10:57] Bish: checking if i want to replace make
[08:11:01] Bish: with rake in all cases
[08:11:06] dminuoso: Bish: not like that
[08:11:15] Bish: because i often end up writing huge makefile with weird bash substrings
[08:11:24] TastyTrout: did you check out extconf?
[08:11:31] Bish: dminuoso: how comes, i mean ruby would be really powerful in expressing such rules
[08:12:39] guille-moe: has joined #ruby
[08:12:48] WeiJunLi: has joined #ruby
[08:13:29] Siyfion: has joined #ruby
[08:13:33] TastyTrout: what is this ridiculous bs http://www.rubydoc.info/stdlib/rake/2.1.6
[08:13:43] TastyTrout: they decided to remove all documentation for rake?
[08:13:54] vondruch: has joined #ruby
[08:14:02] TastyTrout: http://www.rubydoc.info/stdlib/rake/1.9.3 works
[08:14:35] mikecmpbll: has joined #ruby
[08:15:17] TastyTrout: Bish: there's a rake API for the very particular thing you want to do. via task dependencies: task :foo => [:dep1, ..] do; end.
[08:15:29] TastyTrout: but i can't remember the API specific to files
[08:15:50] mikecmpbll: has joined #ruby
[08:15:52] jenrzzz: has joined #ruby
[08:15:52] jenrzzz: has joined #ruby
[08:16:17] Bish: i feel like writing a ruby script that just does it would be easier than reading the documentation ^^
[08:17:14] claudiuinberlin: has joined #ruby
[08:17:57] TastyTrout: http://www.rubydoc.info/stdlib/rake/1.9.3/Rake/FileCreationTask
[08:18:00] mikecmpbll: has joined #ruby
[08:19:40] TastyTrout: sorry. but i don't know what toplevel method exposes this, try file 'foo.rb' do;end though. i have to do other things now.
[08:23:02] KeyJoo: has joined #ruby
[08:23:24] TastyTrout: Bish: https://github.com/rake-compiler/rake-compiler useful too perhaps
[08:23:50] potatoe: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[08:24:26] marr: has joined #ruby
[08:25:12] neo95: has joined #ruby
[08:28:21] Beams: has joined #ruby
[08:28:58] jottr: has joined #ruby
[08:30:43] wlycdgr1: has joined #ruby
[08:31:48] frozengeek: has joined #ruby
[08:31:51] Nicmavr: has joined #ruby
[08:32:20] bronson: has joined #ruby
[08:34:23] vondruch: has joined #ruby
[08:34:53] charliesome: has joined #ruby
[08:35:30] Bish: TastyTrout: that looks complicated, but thanks
[08:38:23] jokke: i'm having a little trouble with capistrano. I have a rather tricky deployment: one server is hosting an api and runs nginx as a proxy to the app. another server hosts the same api but should receive only requests to a certain route of the api. I deploy the nginx config via capistrano (it's an erb template). To deploy the api to the server which will only handle the one route I was thinking about using a
[08:38:25] jokke: seperate capistrano stage. However to deploy the nginx config i would need to access some variables of that stage (even though i'm deploying another). Is this somehow possible?
[08:38:53] vondruch: has joined #ruby
[08:42:51] crst: has joined #ruby
[08:44:11] lxsameer: has joined #ruby
[08:45:03] crst: Hi, is it possible to make a one liner out of this snippet https://pastebin.com/9tFzR4Eu ?
[08:45:03] ruby[bot]: crst: as I told you already, please use https://gist.github.com
[08:47:25] wlycdgr1: has joined #ruby
[08:48:24] Ziarkaen: has joined #ruby
[08:48:34] charliesome: has joined #ruby
[08:49:20] uZiel: has joined #ruby
[08:53:48] charliesome: has joined #ruby
[08:58:01] bvcosta: has joined #ruby
[08:59:24] vondruch: has joined #ruby
[09:01:30] snickers: has joined #ruby
[09:01:52] paranoicsan: has joined #ruby
[09:03:38] KeyJoo: has joined #ruby
[09:03:55] vondruch: has joined #ruby
[09:04:46] anisha: has joined #ruby
[09:04:47] tomphp: has joined #ruby
[09:07:57] Jameser: has joined #ruby
[09:09:59] pandaant: has joined #ruby
[09:10:41] charliesome: has joined #ruby
[09:11:22] jinie: has joined #ruby
[09:11:27] tomphp: has joined #ruby
[09:12:54] Nicmavr: has joined #ruby
[09:15:11] mim1k: has joined #ruby
[09:15:48] tvw: has joined #ruby
[09:17:12] FastJack_: has joined #ruby
[09:18:25] howdoi: has joined #ruby
[09:19:22] charliesome: has joined #ruby
[09:23:33] guille-moe: has joined #ruby
[09:23:58] aglorei1: has joined #ruby
[09:24:33] FastJack: has joined #ruby
[09:24:35] kreantos: has joined #ruby
[09:26:38] neo95: has joined #ruby
[09:28:31] workmad3: has joined #ruby
[09:29:43] jottr: has joined #ruby
[09:31:01] charliesome: has joined #ruby
[09:41:44] Serpent7776: has joined #ruby
[09:42:08] runescape07rsps: has joined #ruby
[09:42:57] kreantos: has joined #ruby
[09:44:20] vondruch: has joined #ruby
[09:45:22] FahmeF: has joined #ruby
[09:47:18] jenrzzz: has joined #ruby
[09:47:18] jenrzzz: has joined #ruby
[09:47:40] GodFather: has joined #ruby
[09:48:24] kreantos: has joined #ruby
[09:48:52] vondruch: has joined #ruby
[09:49:13] Reverend: has joined #ruby
[09:49:16] Reverend: hey boys and girls
[09:49:20] Reverend: need a favor.
[09:50:12] Reverend: how would you do: "if $file exists; save it's contents to $environments; fi"
[09:50:26] Reverend: i don't know ruby, but working on a quick fix for something :P
[09:50:55] frozengeek: has joined #ruby
[09:51:51] f32: random question
[09:51:54] mtkd: has joined #ruby
[09:51:59] f32: https requests in ruby https://pastebin.com/Q8n4pgF0
[09:52:00] ruby[bot]: f32: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/a6611558f7be3639b98e1ec15711d11b
[09:52:00] ruby[bot]: f32: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[09:52:01] f32: no idea
[09:52:42] eroux: has joined #ruby
[09:53:58] jenrzzz: has joined #ruby
[09:53:58] jenrzzz: has joined #ruby
[09:55:22] Fraeon: has joined #ruby
[09:56:12] Reverend: https://hastebin.com/gewazijavo.rb <-- could someone just sanity check that for me by any chance?
[09:56:20] Reverend: looks okay to me... but I don't know any ruby at all :P
[09:58:28] brent__: has joined #ruby
[09:59:22] vondruch: has joined #ruby
[10:03:55] vondruch: has joined #ruby
[10:04:20] bruno-: has joined #ruby
[10:05:04] bruno-_: has joined #ruby
[10:09:29] danieli_: has joined #ruby
[10:10:14] ledestin: has joined #ruby
[10:10:55] tomphp_: has joined #ruby
[10:11:28] alan_w: has joined #ruby
[10:12:41] daveomcd: has joined #ruby
[10:12:59] csaunders: has joined #ruby
[10:14:20] Asher: has joined #ruby
[10:15:05] charliesome: has joined #ruby
[10:17:32] bruno-: has joined #ruby
[10:17:47] bruno-_: has joined #ruby
[10:17:49] bogdanteleaga: has joined #ruby
[10:18:25] AKPWD: has joined #ruby
[10:19:01] WeiJunLi: has joined #ruby
[10:19:24] vondruch: has joined #ruby
[10:21:10] opekktar_: has joined #ruby
[10:22:52] pi4: has joined #ruby
[10:23:23] opekktar_: has joined #ruby
[10:23:52] vondruch: has joined #ruby
[10:24:25] paranoicsan: f32: `exists?` stated as deprecated. I suggest to change it to `.exist?`
[10:25:08] opekktar: has joined #ruby
[10:26:00] guille-moe: has joined #ruby
[10:26:15] ShalokShalom_: has joined #ruby
[10:27:32] neo95: has joined #ruby
[10:28:55] paranoicsan: f32: sorry, message was for Reverend
[10:29:20] f32: paranoicsan: any ideas on the https question tho?
[10:29:34] f32: bit lost to find solid up to date ruby documentation
[10:30:23] kreantos_: has joined #ruby
[10:30:29] jottr: has joined #ruby
[10:30:36] workboy: has joined #ruby
[10:31:28] al2o3-cr: f32: is your endpoint a http or https?
[10:31:46] f32: al2o3-cr: id like to support both
[10:31:54] f32: but in this instance, https
[10:31:55] tcopeland: has joined #ruby
[10:32:12] al2o3-cr: f32: you need to specify http.use_ssl = true then
[10:32:38] f32: al2o3-cr: does that support both http and https?
[10:33:03] f32: so i need to check the protocol
[10:33:09] claudiuinberlin: has joined #ruby
[10:33:11] f32: that's ok, i can get that from the Uri?
[10:33:16] Reverend: paranoicsan - perfect! thanks.
[10:33:28] bronson: has joined #ruby
[10:33:31] paranoicsan: Reverend: welcome
[10:33:32] al2o3-cr: but http.use_ssl = uri.scheme == "https" will
[10:34:00] al2o3-cr: f32: correct
[10:34:23] vondruch: has joined #ruby
[10:35:48] paranoicsan: f32: looks ok. Also can be simplified a bit http://ruby-doc.org/stdlib-2.4.1/libdoc/net/http/rdoc/Net/HTTP.html#method-c-post
[10:36:08] f32: paranoicsan: awesome, thanks for that
[10:36:20] f32: thanks to all \o/ !
[10:37:07] mson: has joined #ruby
[10:38:36] charliesome: has joined #ruby
[10:38:53] vondruch: has joined #ruby
[10:40:37] aihwh: has left #ruby: ()
[10:41:06] Reverend: has left #ruby: ()
[10:43:29] mkali: has joined #ruby
[10:49:24] vondruch: has joined #ruby
[10:49:31] abrcdbr: has joined #ruby
[10:52:19] jgt: has joined #ruby
[10:53:11] DrCode: has joined #ruby
[11:00:36] charliesome: has joined #ruby
[11:06:33] charliesome_: has joined #ruby
[11:07:52] biberu\: has joined #ruby
[11:08:55] vondruch: has joined #ruby
[11:09:05] DrCode: has joined #ruby
[11:09:52] pragmatism: has joined #ruby
[11:10:16] belmoussaoui__: has joined #ruby
[11:10:29] \13k: has joined #ruby
[11:10:55] flips: has joined #ruby
[11:11:59] biberu: has joined #ruby
[11:19:08] phinxy: has joined #ruby
[11:20:56] phinxy: has left #ruby: ()
[11:21:45] ferr: has joined #ruby
[11:21:58] belmoussaoui: has joined #ruby
[11:31:13] jottr: has joined #ruby
[11:31:22] __Yiota: has joined #ruby
[11:31:31] dionysus69: has joined #ruby
[11:32:40] guille-moe: has joined #ruby
[11:34:07] ldnunes: has joined #ruby
[11:40:14] vondruch: has joined #ruby
[11:40:31] dionysus69: has joined #ruby
[11:44:22] vondruch: has joined #ruby
[11:44:50] charliesome: has joined #ruby
[11:49:46] charliesome_: has joined #ruby
[11:53:52] vondruch: has joined #ruby
[11:55:50] bvcosta: has joined #ruby
[11:57:32] guille-moe: has joined #ruby
[12:00:02] claudiuinberlin: has joined #ruby
[12:01:33] vondruch: has joined #ruby
[12:06:32] claudiuinberlin: has joined #ruby
[12:16:28] jaruga: has joined #ruby
[12:18:49] DanielI: has joined #ruby
[12:18:52] vondruch: has joined #ruby
[12:19:14] jottr: has joined #ruby
[12:21:34] zautomata: has joined #ruby
[12:21:43] zautomata: what would be your favourite answer to the question: how to analyze an algorithm?
[12:21:49] kreantos: has joined #ruby
[12:22:33] tobiasvl: uuuh that's a vague question. like how to figure out its complecity?
[12:23:07] Bish: zautomata: by not doing it at all?
[12:23:36] Bish: have something like prolog and describe the problem and the algorithm is correct by default
[12:23:41] Bish: that'd be my favourite answer
[12:24:08] Bish: but only in utopia
[12:24:16] chouhoulis: has joined #ruby
[12:24:25] vondruch: has joined #ruby
[12:24:35] Bish: zautomata: but what do you mean.. do you want its correctness, its speed?
[12:24:41] Bish: what do you want to analyze
[12:26:15] soahccc: Hmm any idea on how to "gracefully" kill a net-sftp download? It seems to work event based and due to the chunked nature doesn't use blocks. If I just kill the thread if would have open handles, right? Unfortunately the #abort! method on the downloader seems to do nothing (and I don't understand why)
[12:26:19] chouhoul_: has joined #ruby
[12:26:22] bmurt: has joined #ruby
[12:26:42] zautomata: Bish i mean by analyze in the sense how does it compare to a different algorithm for the same task?
[12:26:57] Bish: regarding what, speed?
[12:27:29] tobiasvl: so comparison of two algorithms
[12:28:56] vondruch: has joined #ruby
[12:30:04] zautomata: Bish regarding the relation between its running time and size of input
[12:30:23] Bish: well thats what big-o notation is for..
[12:30:36] Bish: and it works quite well.. so what is that question about?
[12:30:42] Bish: i dont know what your goal is
[12:30:52] tobiasvl: yeah that's complexity
[12:30:53] ShekharReddy: has joined #ruby
[12:31:27] Bish: zautomata: https://en.wikipedia.org/wiki/Big_O_notation
[12:31:44] Bish: there is no worse/better way to do it, then this. and never will be
[12:32:10] tobiasvl: yep https://en.wikipedia.org/wiki/Analysis_of_algorithms
[12:32:39] tobiasvl: specifically https://en.wikipedia.org/wiki/Analysis_of_algorithms#Orders_of_growth
[12:32:59] Bish: god i hated that in uni
[12:33:07] bmurt: has joined #ruby
[12:33:33] tobiasvl: it's not so bad, pretty easy to apply it to algorithms the way zautomata wants to
[12:33:43] tobiasvl: but yeah when you start dabbling in complexity classes it gets rough
[12:34:07] tobiasvl: PSPACE, EXPTIME, NP-completeness, etc
[12:34:27] bronson: has joined #ruby
[12:34:40] tobiasvl: co-NP-completeness?? I don't even remember what that is
[12:34:44] ramfjord: has joined #ruby
[12:36:14] naprimer2: has joined #ruby
[12:36:49] tcopeland: has joined #ruby
[12:39:23] vondruch: has joined #ruby
[12:41:29] chouhoulis: has joined #ruby
[12:42:22] cgfbee: has joined #ruby
[12:44:02] claudiuinberlin: has joined #ruby
[12:45:43] workmad3: has joined #ruby
[12:53:56] vondruch: has joined #ruby
[12:55:06] ramfjord: has joined #ruby
[12:55:16] bruno-: has joined #ruby
[12:55:28] bruno-_: has joined #ruby
[12:55:42] InfinityFye: has joined #ruby
[12:59:22] vondruch: has joined #ruby
[13:01:11] paranoicsan: has joined #ruby
[13:01:43] cdg_: has joined #ruby
[13:03:53] vondruch: has joined #ruby
[13:03:58] balazs_: has joined #ruby
[13:10:25] TastyTrout: Bish: rake-compiler might be but rake dependencies can be simple and easy.
[13:10:43] ramfjord: has joined #ruby
[13:11:00] TastyTrout: you just need a special type of task for what you want, rake already has designed some for that
[13:11:26] charliesome: has joined #ruby
[13:12:40] TastyTrout: i personally would like a `bundle gem foo` for C extensions.
[13:14:21] vondruch: has joined #ruby
[13:19:08] rippa: has joined #ruby
[13:19:13] soahccc: I build a tool that automates a few things and does so over SSH (net-ssh). It's working fine but I wonder what the easiest way would be to interrupt commands that are executing. Had no luck with trying to send ctrl-c sequence via send_data so I guess I need to find PID somehow and send signal?
[13:19:33] dminuoso: soahccc: Yes.
[13:20:28] dminuoso: soahccc: crtl-c is actually intercepted by the shell and turned into a signal.
[13:20:29] bvcosta: has joined #ruby
[13:20:40] dminuoso: (which is why it does not work for you, because you are not running in the shell)
[13:21:15] soahccc: hmm that makes sense, unfortunately there seems no easy way to get the pid :<
[13:21:25] dminuoso: soahccc: Are you invoking some external command?
[13:21:56] soahccc: define external? I call mysqldump and gzip
[13:22:06] dminuoso: soahccc: A simple way would be to just fork.
[13:22:06] runescape07rsps: has joined #ruby
[13:22:24] dminuoso: That way you obtain the child pid, which you can then sigint whenever you want
[13:22:40] soahccc: fork net-ssh?
[13:22:45] anisha: has joined #ruby
[13:22:48] elsevero: has joined #ruby
[13:23:34] bmurt: has joined #ruby
[13:24:10] dminuoso: soahccc: ah. Mmm.
[13:26:50] oleo: has joined #ruby
[13:28:55] vondruch: has joined #ruby
[13:29:50] soahccc: dminuoso: couldn't I just wrap my command in "bash -c '#{cmd}'" and then send ctrl-c? :< and is `send_data("\C-c")` actually correct?
[13:34:28] TastyTrout: soahccc: write the PID of each command to a file (tmp/myautotool/command.pid), then, start another session to interrupt, with eg: `kill -9 $somepath`.
[13:35:16] soahccc: TastyTrout: I was just thinking about something like this by doing some magic with $cmd & echo $! && fg
[13:35:39] TastyTrout: you could write a small sh function to do that for you, and pipe all commands through it
[13:35:47] TastyTrout: even "currentcmd.pid" might work
[13:36:18] soahccc: well I have a lot of those in parallel
[13:36:44] TastyTrout: well,, you could use the filesystem to organise things.
[13:37:53] soahccc: I mean at the end of the day it's working and when I ctrl-c it will abort inbetween each step. It's just that a step can take quite some time. But I thought it would be as easy as closing the channel but it will wait for the command :(
[13:38:16] TastyTrout: i've never used net-ssh so i really have no clue. :/
[13:40:28] johnmartinez: has joined #ruby
[13:42:40] mson: has joined #ruby
[13:42:45] moei: has joined #ruby
[13:44:24] vondruch: has joined #ruby
[13:48:12] rrichardsr3: has joined #ruby
[13:48:54] vondruch: has joined #ruby
[13:49:19] charliesome_: has joined #ruby
[13:49:57] tsglove: has joined #ruby
[13:50:58] bruce_lee: has joined #ruby
[13:50:58] bruce_lee: has joined #ruby
[13:51:35] dviola: has joined #ruby
[13:52:12] bvcosta: has joined #ruby
[13:54:20] vondruch: has joined #ruby
[14:00:24] __Yiota: has joined #ruby
[14:04:16] twillkens: has joined #ruby
[14:04:32] belmoussaoui_: has joined #ruby
[14:06:07] vondruch: has joined #ruby
[14:08:39] wilbert: has joined #ruby
[14:10:19] ResidentBiscuit: has joined #ruby
[14:12:06] charliesome: has joined #ruby
[14:12:25] Rapture: has joined #ruby
[14:16:03] tcopeland: has joined #ruby
[14:19:02] arup_r: has joined #ruby
[14:19:59] elbuki: has joined #ruby
[14:20:29] zautomata: has joined #ruby
[14:20:32] __Yiota: has joined #ruby
[14:20:39] claudiuinberlin: has joined #ruby
[14:24:36] kreantos: has joined #ruby
[14:25:13] elbuki: has joined #ruby
[14:25:31] t-recx: has joined #ruby
[14:25:52] soahccc: TastyTrout: what was your idea about that shell function?
[14:27:24] abrcdbr: has joined #ruby
[14:28:08] cagomez: has joined #ruby
[14:30:00] claudiuinberlin: has joined #ruby
[14:30:47] twillkens: has joined #ruby
[14:32:12] wilbert: has joined #ruby
[14:33:45] jackjackdripper: has joined #ruby
[14:33:47] mim1k: has joined #ruby
[14:35:34] bronson: has joined #ruby
[14:42:57] A124: has joined #ruby
[14:43:04] claudiuinberlin: has joined #ruby
[14:43:23] polishdub: has joined #ruby
[14:43:25] t-recx: has joined #ruby
[14:45:22] conta: has joined #ruby
[14:45:50] dionysus69: has joined #ruby
[14:47:35] snickers: has joined #ruby
[14:49:27] wilbert: has joined #ruby
[14:49:28] andygeorge: has joined #ruby
[14:50:05] tcopeland: has joined #ruby
[14:52:55] cdg: has joined #ruby
[14:55:58] anisha: has joined #ruby
[14:57:33] cdg_: has joined #ruby
[15:01:40] minimalism: has joined #ruby
[15:02:16] Jameser: has joined #ruby
[15:02:39] centrx: has joined #ruby
[15:02:39] centrx: has joined #ruby
[15:05:55] baroquebobcat: has joined #ruby
[15:06:02] __Yiota: has joined #ruby
[15:14:24] vondruch: has joined #ruby
[15:17:12] cconstantine: has joined #ruby
[15:17:50] cagomez: has joined #ruby
[15:18:52] vondruch: has joined #ruby
[15:19:09] evie_hammond: has joined #ruby
[15:19:10] jottr: has joined #ruby
[15:20:06] mtkd: has joined #ruby
[15:20:39] cagomez: has joined #ruby
[15:21:25] detectiveaoi: has joined #ruby
[15:21:44] nowhere_man: has joined #ruby
[15:22:06] d10n-work: has joined #ruby
[15:22:37] zachk: has joined #ruby
[15:23:14] jgpawletko: has joined #ruby
[15:24:58] Defenestrate: has joined #ruby
[15:24:58] Defenestrate: has joined #ruby
[15:25:01] kreantos: has joined #ruby
[15:27:04] apparition: has joined #ruby
[15:27:49] elbuki: has joined #ruby
[15:30:04] xcesariox: has joined #ruby
[15:33:00] cdg: has joined #ruby
[15:34:05] dionysus69: has joined #ruby
[15:34:47] sekmo: has joined #ruby
[15:36:49] xcesariox: has joined #ruby
[15:37:41] wilbert: has joined #ruby
[15:38:20] bvcosta: has joined #ruby
[15:38:26] brent__: has joined #ruby
[15:38:38] sekmo: Hi folks! Is the behavior of the "merge" method changed by any chance? I'm following the POODR book and I can't figure out why I'm getting different results from the book...
[15:39:39] Derperperd: has joined #ruby
[15:40:43] bmurt: has joined #ruby
[15:41:25] nowhere_man: has joined #ruby
[15:41:57] eckhardt: has joined #ruby
[15:42:03] centrx: sekmo: What are you getting?
[15:42:42] sekmo: I've made a gist here: https://gist.github.com/sekmo/4c0045adbf3e1d3b98f9d9ea761da791
[15:43:46] [Butch]: has joined #ruby
[15:45:45] belmoussaoui_: has left #ruby: ()
[15:46:48] jamiejackson: has joined #ruby
[15:48:01] centrx: sekmo: style is not set
[15:48:02] elbuki: has joined #ruby
[15:48:11] belmoussaoui_: has joined #ruby
[15:48:41] centrx: sekmo: and nothing is done with the front_shock, is that supposed to be merged as well?
[15:50:10] sekmo: yep, that's what I thought too..
[15:50:50] bmurt: has joined #ruby
[15:50:52] sekmo: I even copied the code from the GH repo - the issue is that the book says that it should return the hash with a tire_size: "23"
[15:53:00] sekmo: I'm concerned about the "if style == :road"
[15:53:00] selim: has joined #ruby
[15:54:53] belmoussaoui__: has joined #ruby
[15:57:38] cdg: has joined #ruby
[15:58:38] cdg: has joined #ruby
[15:59:20] vondruch: has joined #ruby
[15:59:56] Derperperd: has joined #ruby
[15:59:58] centrx: sekmo: That's fine, I mean style is never set
[16:00:01] jackjackdripper: has joined #ruby
[16:00:20] centrx: sekmo: Based on what the gist says the book example should be, it looks like you should be passing in style: :road to MountainBike.new
[16:01:48] frozengeek: has joined #ruby
[16:02:38] sekmo: exactly.. but I can't find this issue on the errata and I was going crazy :-)
[16:03:56] vondruch: has joined #ruby
[16:04:27] centrx: yeah could just be a mistake in the book
[16:04:48] snickers: has joined #ruby
[16:06:52] gusrub: has joined #ruby
[16:09:45] war_pigs: has joined #ruby
[16:10:28] sekmo: Thanks for your time :-)
[16:11:34] vondruch: has joined #ruby
[16:12:16] slothbear: has joined #ruby
[16:15:26] wilbert: has joined #ruby
[16:16:03] vondruch: has joined #ruby
[16:16:08] jamesaxl: has joined #ruby
[16:16:23] cdg: has joined #ruby
[16:17:17] nofxxxx: has joined #ruby
[16:18:03] cdg_: has joined #ruby
[16:18:48] cdg: has joined #ruby
[16:23:40] dionysus69: has joined #ruby
[16:23:53] jgt1: has joined #ruby
[16:27:27] alex``: has joined #ruby
[16:28:16] orbyt_: has joined #ruby
[16:29:23] vondruch: has joined #ruby
[16:32:13] kreantos: has joined #ruby
[16:32:50] eckhardt: has joined #ruby
[16:33:52] vondruch: has joined #ruby
[16:34:21] mim1k: has joined #ruby
[16:34:40] orbyt_: has joined #ruby
[16:35:48] kreantos_: has joined #ruby
[16:36:08] cdg: has joined #ruby
[16:36:34] bronson: has joined #ruby
[16:36:58] skweek: has joined #ruby
[16:39:25] vondruch: has joined #ruby
[16:41:11] goyox86_: has joined #ruby
[16:42:56] bruno-__: has joined #ruby
[16:43:04] bruno-___: has joined #ruby
[16:43:14] ltem: has joined #ruby
[16:43:21] ur5us: has joined #ruby
[16:44:19] greenbagels: has joined #ruby
[16:48:56] vondruch: has joined #ruby
[16:54:35] goyox86_: has joined #ruby
[16:56:28] t-recx: has joined #ruby
[16:57:36] goyox86_: has joined #ruby
[17:02:45] wilbert: has joined #ruby
[17:08:34] mikecmpbll: has joined #ruby
[17:09:23] vondruch: has joined #ruby
[17:10:11] jenrzzz: has joined #ruby
[17:10:11] jenrzzz: has joined #ruby
[17:11:02] colstrom: Is there a reasonable way to compare two Procs/Lambdas? By way of example... `(->(x) { x + x }) == (->(x) { x + x })` is essentially what I'd like to be able to do.
[17:11:19] jottr: has joined #ruby
[17:11:42] matthewd: colstrom: No.
[17:12:08] gizmore: colstrom: you can compare their output for same inputs?
[17:12:29] colstrom: @matthewd No there isn't a reasonable way, or no it's strictly impossible because <reason>?
[17:12:44] goyox86: has joined #ruby
[17:12:45] baroquebobcat: has joined #ruby
[17:13:07] matthewd: Somewhere in between, I guess?
[17:13:21] Defenestrate: has joined #ruby
[17:13:21] Defenestrate: has joined #ruby
[17:13:33] matthewd: It's Computers, so there are things you technically could do
[17:13:33] colstrom: @gizmore That's dodgy, because `->(x) { x.even? }` and `->(x) { x < 10 }` both return `true` for inputs of `2`, but are clearly not the same function.
[17:13:56] vondruch: has joined #ruby
[17:15:49] matthewd: colstrom: e.g. you could disassemble it, and try matching the actual instructions
[17:15:57] oncall-pokemon: has joined #ruby
[17:16:31] matthewd: Really depends what you're trying to achieve
[17:16:52] fyrril3: has joined #ruby
[17:16:54] rrichardsr3: has joined #ruby
[17:17:16] guille-moe: has joined #ruby
[17:18:42] claudiuinberlin: has joined #ruby
[17:19:02] _sfiguser: has joined #ruby
[17:19:20] vondruch: has joined #ruby
[17:19:26] TomyLobo: has joined #ruby
[17:19:54] AndBobsYourUncle: has joined #ruby
[17:20:58] colstrom: @matthewd The objective doesn't go much deeper for this one. I'd like to compare two functions that may not be defined in source, for the purposes of comparing two objects that have functions as properties.
[17:24:58] matthewd: Seems tough. There's the whole `x + 1` vs `1 + x` thing too: plenty of actually-same code which isn't literally identical.
[17:25:52] goyox86: has joined #ruby
[17:26:19] colstrom: ACTION nods. I'd be willing to accept `x+1` and `1+x` as not equal.
[17:26:43] colstrom: For now, at least.
[17:28:52] vondruch: has joined #ruby
[17:29:48] matthewd: I think I'd be trying to head-off the requirement somewhere earlier.. before the function gets defined, or something
[17:30:57] Bhootrk_: has joined #ruby
[17:32:06] wmoxam: has joined #ruby
[17:37:23] bmurt: has joined #ruby
[17:37:52] jgpawletko: has joined #ruby
[17:39:21] vondruch: has joined #ruby
[17:39:57] sp4rrow: has joined #ruby
[17:40:22] kies: has joined #ruby
[17:42:51] t-recx: has joined #ruby
[17:43:52] vondruch: has joined #ruby
[17:45:05] tomphp: has joined #ruby
[17:47:59] RedNifre: Hi there. What's the simplest way to parse an ISO date string like "2017-09-30"?
[17:48:12] RedNifre: When I try Time.new I somehow get 2017-01-01.
[17:48:55] havenwood: >> require 'date'; Date.iso8601 '2017-09-30' # RedNifre
[17:48:56] ruby[bot]: havenwood: # => #<Date: 2017-09-30 ((2458027j,0s,0n),+0s,2299161j)> (https://eval.in/858352)
[17:49:07] __Yiota: has joined #ruby
[17:51:05] KeyJoo: has joined #ruby
[17:52:40] orbyt_: has joined #ruby
[17:53:06] bmurt: has joined #ruby
[17:57:45] SeepingN: has joined #ruby
[17:57:47] rrichardsr3: has joined #ruby
[17:58:35] ramfjord: has joined #ruby
[17:58:38] ramfjord_: has joined #ruby
[18:00:00] RedNifre: oh, never mind, ruby's integrated yaml parser already parses 2017-03-02 as date objects. #everythingwentbetterthanexpected
[18:01:41] nb_bez_______: has joined #ruby
[18:05:24] Rapture: has joined #ruby
[18:06:25] TastyTrout: colstrom: check out Rubinius's implementation of Proc, if memory serves me right it provides access to internals & pure Ruby eql? / == impls.
[18:06:35] TastyTrout: could be interesting
[18:08:33] skweek: has joined #ruby
[18:09:21] vondruch: has joined #ruby
[18:10:57] colstrom: @TastyTrout Will do, thanks!
[18:10:59] taurgal: has joined #ruby
[18:12:04] Who: has joined #ruby
[18:13:14] chromis: I have a simple question for the channel, but an important one as I am learning https://pastebin.com/q38B59yv prints out 606060 instead of multiplying 60 x 3, what am I doing wrong?
[18:13:16] ruby[bot]: chromis: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/ed94bd78c4415eea9ca7243a18ed0fcb
[18:13:16] ruby[bot]: chromis: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[18:13:56] vondruch: has joined #ruby
[18:14:13] s00pcan_: pastebin also gets blocked on some company firewalls in my experience
[18:14:18] Dimik: has joined #ruby
[18:14:27] colstrom: @chromis "60" is a string. Ruby is doing what you asked it to do, and gave you the string, 3 times.
[18:14:54] colstrom: 60, on the other hand, is probably what you wanted to use.
[18:14:56] cagomez: has joined #ruby
[18:15:09] chromis: so, my issue is the quotes then
[18:15:32] chromis: that is super helpful, thank you
[18:27:54] cdg_: has joined #ruby
[18:31:28] RedNifre: How do I check if a date was more than 5 days ago?
[18:31:41] FahmeF: has joined #ruby
[18:34:04] abrcdbr: has joined #ruby
[18:34:48] mim1k: has joined #ruby
[18:34:54] mark_on_the_moon: has joined #ruby
[18:34:56] colstrom: @RedNifre require 'date'; some_date < (Date.today - 5)
[18:35:14] RedNifre: ah, makes sense, thanks.
[18:35:50] Tharbakim: has joined #ruby
[18:35:50] Tharbakim: has joined #ruby
[18:37:08] abrcdbr_: has joined #ruby
[18:37:29] bronson: has joined #ruby
[18:39:20] vondruch: has joined #ruby
[18:40:02] cadillac_: has joined #ruby
[18:42:02] salkdjaskld: has joined #ruby
[18:42:38] ramfjord: has joined #ruby
[18:42:40] ramfjord_: has joined #ruby
[18:43:07] salkdjaskld: has joined #ruby
[18:43:34] frozengeek: has joined #ruby
[18:43:38] mtkd: has joined #ruby
[18:43:54] vondruch: has joined #ruby
[18:44:43] uZiel: has joined #ruby
[18:46:18] jamiejackson: has joined #ruby
[18:46:20] cagomez: has joined #ruby
[18:46:27] Tharbakim: has joined #ruby
[18:46:27] Tharbakim: has joined #ruby
[18:49:24] ramfjord: has joined #ruby
[18:49:25] ramfjord_: has joined #ruby
[18:50:30] imode: has joined #ruby
[18:55:36] ramfjord: has joined #ruby
[18:55:39] pi1: has joined #ruby
[18:55:40] ramfjord_: has joined #ruby
[18:59:52] elsevero: has joined #ruby
[19:02:28] ledestin: has joined #ruby
[19:04:11] ramfjord: has joined #ruby
[19:04:16] ramfjord_: has joined #ruby
[19:05:16] dionysus69: has joined #ruby
[19:06:44] karthick: has joined #ruby
[19:10:54] pi4: has joined #ruby
[19:11:10] hahuang65: has joined #ruby
[19:11:56] lxsameer: has joined #ruby
[19:12:22] bmurt: has joined #ruby
[19:12:44] quobo: has joined #ruby
[19:17:30] elsevero: has joined #ruby
[19:18:29] tAn: has joined #ruby
[19:18:55] bronson: has joined #ruby
[19:24:23] vondruch: has joined #ruby
[19:28:56] vondruch: has joined #ruby
[19:30:10] ur5us: has joined #ruby
[19:32:26] cagomez: has joined #ruby
[19:35:16] neo95: has joined #ruby
[19:45:31] orbyt_: has joined #ruby
[19:49:02] banisterfiend: has joined #ruby
[19:49:20] vondruch: has joined #ruby
[19:53:44] twillkens: has joined #ruby
[19:54:47] mtkd: has joined #ruby
[19:58:54] vondruch: has joined #ruby
[20:00:18] truenito: has joined #ruby
[20:04:20] vondruch: has joined #ruby
[20:04:51] dionysus69: has joined #ruby
[20:08:53] vondruch: has joined #ruby
[20:16:37] Lyfe: Anyone ever have "bundle exec irb" throw an error like this? (short version: "Errno::ENOENT: No such file or directory - infocmp") https://paste.ee/p/jaWsM
[20:17:29] brendan-: has joined #ruby
[20:20:04] bmurt: has joined #ruby
[20:21:15] Archrover: has joined #ruby
[20:21:34] vondruch: has joined #ruby
[20:23:52] vondruch: has joined #ruby
[20:24:17] sp4rrow: has joined #ruby
[20:27:35] RedNifre: Are block local functins a thing or does the function simply move to the outer scope?
[20:28:07] cagomez: has joined #ruby
[20:29:29] darix: RedNifre: defining functions within a block?! why?
[20:29:38] Guest50: has joined #ruby
[20:30:17] truenito: has joined #ruby
[20:33:20] ramfjord: has joined #ruby
[20:33:21] ramfjord_: has joined #ruby
[20:34:35] RedNifre: darix, well, it just sort of felt naturally in this case: https://pbs.twimg.com/media/DJOYwBqXcAEPYTp.jpg:large
[20:34:51] TastyTrout: RedNifre: not really, no. you probably want a lambda/Proc for a "block local function". "functions" or methods belong to "self", and if they don't,they're unbound and have to be bound a self to be called.
[20:34:57] RedNifre: (It's software for a raspberry pi that tells me when the garbage cans have a good chance of not being full)
[20:35:15] mim1k: has joined #ruby
[20:35:32] RedNifre: well, it doesn't really 'need' to be block local anyway. It just felt natural to write, i.e. I define which hardware to use at the beginning of the file and then put all my code in the block.
[20:35:49] RedNifre: But it's not really necessary, I guess I'll change the gpio api anyway.
[20:36:22] RedNifre: Any other feedback for the code? :)
[20:36:31] darix: RedNifre: you could stuff it into classes ;)
[20:36:38] TastyTrout: i didn't look sorry but i'm sure others will have feedback
[20:37:08] RedNifre: well, I want to create gems but couldn't find the motivation to learn them yet.
[20:37:37] RedNifre: The standard library seems to include everything so I didn't even NEED gems so far.
[20:38:03] RedNifre: darix what do you mean? What exactly should go into classes?
[20:38:05] bmurt: has joined #ruby
[20:38:45] RedNifre: The code I wrote is a bit magical because in the beginning you define some pins which will then dynamically create methods that you can call in the block because the block is bound to the object with the synthetic methods.
[20:39:06] RedNifre: (Which works great for the garbage schedule, but is kinda weird in the case of the Morse code generator)
[20:39:22] vondruch: has joined #ruby
[20:40:33] mtkd: has joined #ruby
[20:40:48] imode: is there a "designated" gem that I can use to send e-mails programmatically?
[20:42:42] GodFather: has joined #ruby
[20:42:51] TastyTrout: https://rubygems.org/gems/mail
[20:43:56] vondruch: has joined #ruby
[20:44:13] belmoussaoui: has joined #ruby
[20:47:59] truenito: has joined #ruby
[20:50:14] gusrub: has joined #ruby
[20:51:23] abrcdbr: has joined #ruby
[20:51:24] conta: has joined #ruby
[20:54:05] imode: thank you.
[20:55:45] darix: imode: mail is the best one yes
[20:56:33] Pisuke: has joined #ruby
[21:01:39] rhyselsmore: has joined #ruby
[21:11:25] gusrub: has joined #ruby
[21:15:37] tcopeland: RedNifre: FWIW you can `replace File.open(“garbage.yaml", "rb").read` with `File.read(“garbage.yaml")`
[21:16:15] twillkens: has joined #ruby
[21:16:45] RedNifre: tcopeland thanks, no idea where I got the information that I need to do it that way.
[21:17:11] tcopeland: cool, you bet
[21:17:41] RedNifre: tcopeland if you want your name in some random github repo you can create a pull request, it's all here: https://github.com/RedNifre/pi_assistant_garbage
[21:17:47] Seenox: has joined #ruby
[21:17:51] RedNifre: otherwise I'll just change it myself :)
[21:18:27] tcopeland: heh cool no worries thanks, have at it!
[21:19:23] vondruch: has joined #ruby
[21:21:03] runescape07rsps: has joined #ruby
[21:23:55] vondruch: has joined #ruby
[21:24:09] RedNifre: hm, if I dynamically create a method that is named "something=", I create a special setter, right? If I do "something = blabla" in a block that is bound to the object that has that method it should call that method, right? It doesn't in my case so I guess I'm missing something.
[21:25:06] RedNifre: So far I've been using puts statements to debug. There's a chapter about ruby's debugger in the "Programming Ruby" book, is it worth it?
[21:25:28] RedNifre: (I mean I guess it's worth it when debugging large complex programs but is it worth it for 30 lines of simple code?)
[21:27:39] imode: RedNifre: so "something = blah" is different than "foo.something = blah."
[21:28:13] imode: if I have an object named foo, who's class is Foo, and that class has a method called "something=", then foo.something = blah will call foo.something=(blah).
[21:28:31] imode: but something = blah will just create a variable named something and assign to it blah.
[21:28:40] RedNifre: even in a method of foo?
[21:28:54] imode: self.something will call something=.
[21:28:56] RedNifre: So I would need this.something= or self.something = ?
[21:29:23] vondruch: has joined #ruby
[21:29:26] RedNifre: okay, back to the drawing board...
[21:29:38] DanielI: has joined #ruby
[21:30:57] orbyt_: has joined #ruby
[21:31:03] nofxx: has joined #ruby
[21:31:18] mtkd: has joined #ruby
[21:33:54] vondruch: has joined #ruby
[21:33:56] mim1k: has joined #ruby
[21:35:00] runescape07rsps: has joined #ruby
[21:36:10] Danishman: has joined #ruby
[21:39:00] belmoussaoui_: has joined #ruby
[21:39:23] vondruch: has joined #ruby
[21:43:53] vondruch: has joined #ruby
[21:45:32] 18VAB51AU: has joined #ruby
[21:46:17] sanguisdex: has joined #ruby
[21:47:17] sanguisdex: so I have a ruby rake task that I am running via a jenkins job and not matter what the system method fails.
[21:47:40] sanguisdex: is there a way to debug this?
[21:49:24] vondruch: has joined #ruby
[21:53:51] yxhuvud: has joined #ruby
[21:53:53] vondruch: has joined #ruby
[21:59:23] vondruch: has joined #ruby
[21:59:54] harmaahylje: has joined #ruby
[22:03:54] vondruch: has joined #ruby
[22:07:20] abrcdbr_: has joined #ruby
[22:09:23] vondruch: has joined #ruby
[22:09:47] nofxx: has joined #ruby
[22:10:27] cdg: has joined #ruby
[22:10:35] abrcdbr_: has joined #ruby
[22:13:29] Asher: has joined #ruby
[22:13:30] gusrub: has joined #ruby
[22:13:52] vondruch: has joined #ruby
[22:17:52] theunraveler: has joined #ruby
[22:19:04] nofxx: has joined #ruby
[22:19:24] vondruch: has joined #ruby
[22:19:58] GodFather: has joined #ruby
[22:21:51] cagomez: has joined #ruby
[22:23:33] GodFather: has joined #ruby
[22:26:07] GodFather: has joined #ruby
[22:27:52] baroquebobcat: has joined #ruby
[22:39:23] vondruch: has joined #ruby
[22:41:57] neo95: has joined #ruby
[22:44:01] vondruch: has joined #ruby
[22:44:17] xuanrui: has joined #ruby
[22:53:46] selim: has joined #ruby
[22:56:34] Guest53786: has joined #ruby
[22:57:50] Paraxial: has joined #ruby
[23:01:03] tbuehlmann: has joined #ruby
[23:01:03] tbuehlmann: has joined #ruby
[23:04:23] vondruch: has joined #ruby
[23:05:04] cagomez: has joined #ruby
[23:05:57] cagomez: has joined #ruby
[23:07:46] chouhoul_: has joined #ruby
[23:09:26] cagomez: has joined #ruby
[23:10:30] cdg: has joined #ruby
[23:13:11] __Yiota: has joined #ruby
[23:13:55] vondruch: has joined #ruby
[23:15:24] ramfjord: has joined #ruby
[23:15:25] ramfjord_: has joined #ruby
[23:15:35] alveric4: has joined #ruby
[23:18:55] PaulCape_: has joined #ruby
[23:19:24] vondruch: has joined #ruby
[23:21:27] ramfjord: has joined #ruby
[23:21:28] ramfjord_: has joined #ruby
[23:23:18] neo95: has joined #ruby
[23:26:21] nadir: has joined #ruby
[23:27:29] ramfjord: has joined #ruby
[23:27:30] ramfjord_: has joined #ruby
[23:28:29] shimsham: has joined #ruby
[23:28:48] cdg: has joined #ruby
[23:28:55] vondruch: has joined #ruby
[23:28:55] BTRE: has joined #ruby
[23:30:38] PaulCapestany: has joined #ruby
[23:34:23] vondruch: has joined #ruby
[23:41:23] halt: has joined #ruby
[23:43:11] PaulCapestany: has joined #ruby
[23:43:53] vondruch: has joined #ruby
[23:47:22] halt: has joined #ruby
[23:49:20] twillkens: has joined #ruby
[23:53:39] QualityAddict: has joined #ruby
[23:58:04] halt: has joined #ruby
[23:59:23] cosmic: has joined #ruby