« Back to channel list

#ruby - 24 December 2017

« Back 1 day Forward 1 day »
[00:01:37] Kilo`byte: has joined #ruby
[00:09:16] nadir: has joined #ruby
[00:10:27] cdg: has joined #ruby
[00:19:43] jnollette: has joined #ruby
[00:29:38] tomphp: has joined #ruby
[00:34:01] tAn: has joined #ruby
[00:34:53] LocaMocha: has joined #ruby
[00:40:47] cschneid_: has joined #ruby
[00:47:56] nicesignal: has joined #ruby
[00:50:23] oleo2: has joined #ruby
[00:51:30] infernix: has joined #ruby
[00:55:38] neo95: has joined #ruby
[01:00:00] ur5us: has joined #ruby
[01:15:24] tAn: has joined #ruby
[01:15:29] cdg: has joined #ruby
[01:15:29] hdaugherty: has joined #ruby
[01:15:29] hdaugherty_90: has joined #ruby
[01:16:11] cschneid_: has joined #ruby
[01:19:13] TomyLobo2: has joined #ruby
[01:19:35] hdaugherty: has joined #ruby
[01:20:21] cdg_: has joined #ruby
[01:23:14] cdg: has joined #ruby
[01:25:16] CrazyEddy: has joined #ruby
[01:26:11] cdg_: has joined #ruby
[01:27:30] dviola: has joined #ruby
[01:29:13] bkxd: has joined #ruby
[01:41:57] ur5us: has joined #ruby
[01:42:51] ur5us: has joined #ruby
[01:45:32] chocoelho: has joined #ruby
[01:45:37] bkxd_: has joined #ruby
[01:46:27] bkxd_: has joined #ruby
[01:46:29] QualityAddict: has joined #ruby
[01:47:14] bkxd_: has joined #ruby
[01:48:02] bkxd_: has joined #ruby
[01:54:03] cschneid_: has joined #ruby
[02:00:20] GraphR: has joined #ruby
[02:00:32] jenrzzz: has joined #ruby
[02:00:32] jenrzzz: has joined #ruby
[02:06:47] cdg: has joined #ruby
[02:07:02] tAn: has joined #ruby
[02:10:21] Puffball: has joined #ruby
[02:16:12] dviola: has joined #ruby
[02:16:25] cschneid_: has joined #ruby
[02:19:29] cschneid_: has joined #ruby
[02:21:11] alfiemax: has joined #ruby
[02:21:45] k0mpa: has joined #ruby
[02:33:08] selim: has joined #ruby
[02:34:39] herbmillerjr: has joined #ruby
[02:34:48] gizmore|2: has joined #ruby
[02:37:40] Dreamer3: has joined #ruby
[02:44:14] ramfjord: has joined #ruby
[02:44:40] dviola: has joined #ruby
[02:45:07] lxsameer: has joined #ruby
[02:53:32] Dreamer3: has joined #ruby
[02:53:38] tAn: has joined #ruby
[02:54:13] alfiemax: has joined #ruby
[02:55:19] cdg: has joined #ruby
[02:59:05] cdg_: has joined #ruby
[03:01:40] cdg: has joined #ruby
[03:06:43] cdg: has joined #ruby
[03:13:20] cdg: has joined #ruby
[03:16:21] cdg_: has joined #ruby
[03:32:16] therealGent: has joined #ruby
[03:32:26] enterprisey: has joined #ruby
[03:36:56] tAn: has joined #ruby
[03:43:23] ur5us: has joined #ruby
[03:44:20] shinnya: has joined #ruby
[03:48:21] DmitryBochkarev: has joined #ruby
[03:52:17] pastorinni: has joined #ruby
[03:53:31] meesles: has joined #ruby
[03:54:13] QualityAddict: has joined #ruby
[03:58:32] lupine: has joined #ruby
[04:04:19] bkxd: has joined #ruby
[04:05:12] cdg: has joined #ruby
[04:07:23] cdg_: has joined #ruby
[04:09:18] cschneid_: has joined #ruby
[04:10:22] Asher: has joined #ruby
[04:14:23] gix-: has joined #ruby
[04:22:10] alfiemax: has joined #ruby
[04:23:14] tAn: has joined #ruby
[04:24:07] TinkerTyper: has joined #ruby
[04:25:59] pilne: has joined #ruby
[04:26:57] noobineer: has joined #ruby
[04:29:06] cadillac_: has joined #ruby
[04:39:04] Jameser: has joined #ruby
[04:42:13] cdg: has joined #ruby
[04:55:42] pastorinni: has joined #ruby
[05:12:23] alfiemax: has joined #ruby
[05:27:32] duderonomy: has joined #ruby
[05:33:24] tAn: has joined #ruby
[05:40:44] dionysus69: has joined #ruby
[05:44:08] ur5us: has joined #ruby
[05:44:39] nofxx: has joined #ruby
[05:48:54] kies: has joined #ruby
[05:53:13] konsolebox: has joined #ruby
[05:55:10] todd: has joined #ruby
[06:09:18] rippa: has joined #ruby
[06:12:43] alfiemax: has joined #ruby
[06:16:31] eroux: has joined #ruby
[06:21:05] nso95: has joined #ruby
[06:24:32] tAn: has joined #ruby
[06:26:03] DmitryBochkarev: has joined #ruby
[06:27:35] alfiemax: has joined #ruby
[06:36:39] Emmanuel_Chanel: has joined #ruby
[06:37:18] A124: has joined #ruby
[06:44:50] nso95: has joined #ruby
[07:03:10] _whitelogger: has joined #ruby
[07:06:40] alfiemax: has joined #ruby
[07:10:57] sdfgsdfg: has joined #ruby
[07:11:01] elphe: has joined #ruby
[07:13:30] tAn: has joined #ruby
[07:14:31] sdfgsdfg: has joined #ruby
[07:17:13] pastorinni: has joined #ruby
[07:27:01] lupine: has joined #ruby
[07:27:55] adac: has joined #ruby
[07:29:28] morfin: has joined #ruby
[07:30:26] morfin: ok, i am going to try this gem again...
[07:30:47] morfin: i remember that somehow managed to install gem manually
[07:34:55] yokel: has joined #ruby
[07:40:40] Dimik: has joined #ruby
[07:44:37] ur5us: has joined #ruby
[07:48:51] alfiemax: has joined #ruby
[07:53:35] Ropeney: has joined #ruby
[07:56:05] tAn: has joined #ruby
[07:56:37] alex``: has joined #ruby
[08:06:30] ur5us: has joined #ruby
[08:13:34] darkhanb: has joined #ruby
[08:21:47] InfinityFye: has joined #ruby
[08:25:10] InfinityFye: has left #ruby: ()
[08:26:07] andrevan: has joined #ruby
[08:34:13] guardianx: has joined #ruby
[08:37:50] al2o3-cr: has joined #ruby
[08:38:39] tAn: has joined #ruby
[08:45:10] _whitelogger: has joined #ruby
[08:47:17] stealth[]: has joined #ruby
[09:00:46] Mia: has joined #ruby
[09:00:46] Mia: has joined #ruby
[09:02:31] mtkd: has joined #ruby
[09:05:21] zwliew: has joined #ruby
[09:08:51] tAn: has joined #ruby
[09:09:25] Mia: has joined #ruby
[09:10:15] guardianx: has joined #ruby
[09:10:31] yokel: has joined #ruby
[09:16:58] marr: has joined #ruby
[09:20:11] Mia: has joined #ruby
[09:20:48] yokel: has joined #ruby
[09:27:15] yokel: has joined #ruby
[09:31:42] DmitryBochkarev: has joined #ruby
[09:34:13] quobo: has joined #ruby
[09:35:07] tAn: has joined #ruby
[09:36:40] tAn: has joined #ruby
[09:37:51] tAn: has joined #ruby
[09:38:12] tAn: has joined #ruby
[09:43:21] yokel: has joined #ruby
[09:53:09] guardianx: has joined #ruby
[09:54:28] claudiuinberlin: has joined #ruby
[09:55:34] JaccoP: has joined #ruby
[09:58:48] yokel: has joined #ruby
[10:03:38] ltem: has joined #ruby
[10:05:06] mikecmpbll: has joined #ruby
[10:07:41] vyorkin: has joined #ruby
[10:08:17] ur5us: has joined #ruby
[10:12:58] yokel: has joined #ruby
[10:20:11] tAn: has joined #ruby
[10:23:17] dionysus69: has joined #ruby
[10:24:29] tAn: has joined #ruby
[10:24:33] elphe: has joined #ruby
[10:27:01] heftig: has joined #ruby
[10:27:23] tvw: has joined #ruby
[10:37:10] rabajaj: has joined #ruby
[10:42:58] A124: has joined #ruby
[10:43:17] alfiemax_: has joined #ruby
[10:47:44] aufi: has joined #ruby
[10:50:45] stealth[]``: has joined #ruby
[10:51:00] alfiemax: has joined #ruby
[11:06:00] tAn: has joined #ruby
[11:20:42] marr: has joined #ruby
[11:24:05] RyanMcCoskrie: has joined #ruby
[11:28:15] alfiemax: has joined #ruby
[11:29:34] user3: has joined #ruby
[11:29:48] user3: hi everyone
[11:30:06] tAn: has joined #ruby
[11:30:14] user3: i need of little help
[11:30:53] lxsameer: has joined #ruby
[11:35:08] user3: i have read that when statement in ruby is an equivalent of ===() but when i try to use it with an if-else and comparing an Net::HTTPResponse object with Net::HTTPSuccess work only with when statement, so in what they differs ? (im sorry for my bad english)
[11:36:33] tomphp: has joined #ruby
[11:44:37] alfiemax: has joined #ruby
[11:48:18] konsolebox: has joined #ruby
[11:48:38] tomphp: has joined #ruby
[11:50:23] elphe: has joined #ruby
[11:53:14] Jameser: has joined #ruby
[11:57:32] Jameser: has joined #ruby
[12:00:24] amatas: has joined #ruby
[12:06:19] tomphp: has joined #ruby
[12:08:53] ur5us: has joined #ruby
[12:09:48] tomphp: has joined #ruby
[12:20:08] AJA4350: has joined #ruby
[12:20:40] alfiemax: has joined #ruby
[12:21:24] sdfgsdf: has joined #ruby
[12:30:57] InfinityFye: has joined #ruby
[12:31:04] InfinityFye: has left #ruby: ()
[12:34:14] tomphp: has joined #ruby
[12:37:55] mtkd: has joined #ruby
[12:38:58] dionysus69: has joined #ruby
[12:39:29] sdfgsdfg: has joined #ruby
[12:41:39] yokel: has joined #ruby
[12:42:08] DmitryBochkarev: has joined #ruby
[12:44:46] banisterfiend: has joined #ruby
[12:53:14] Sandlayth: has left #ruby: ("WeeChat 1.9.1")
[12:58:25] yokel: has joined #ruby
[13:00:13] alfiemax: has joined #ruby
[13:12:22] Ropeney: has joined #ruby
[13:14:03] handicraftsman: has joined #ruby
[13:14:09] handicraftsman: Merry ruby 2.5.0!
[13:14:42] handicraftsman: has left #ruby: ("Leaving")
[13:18:19] apeiros_: has joined #ruby
[13:21:38] synthroid: has joined #ruby
[13:25:32] TomyLobo: has joined #ruby
[13:26:00] matthewd: user3: The order of the comparison is significant; you probably need it the other way around
[13:26:28] matthewd: user3: `case x when y` is equivalent to `if y === x`
[13:30:23] KeyJoo: has joined #ruby
[13:31:29] al2o3-cr: has joined #ruby
[13:33:03] yokel: has joined #ruby
[13:36:33] dminuoso: o/ matthewd
[13:36:43] dminuoso: You were assumed to have died in a horrible accident.
[13:37:01] dminuoso: Your absence was noted!
[13:37:27] JaccoP: has joined #ruby
[13:37:35] elphe: has joined #ruby
[13:37:50] alex``: has joined #ruby
[13:37:50] matthewd: Nothing quite that exciting.. been busy getting up to speed at new job
[13:38:03] dminuoso: What do you do at your new job?
[13:38:40] matthewd: Currently, a Rails upgrade; 3.2 to .. something newer
[13:39:07] dminuoso: Sounds.. exciting...
[13:39:33] matthewd: It's a good way to get a handle on the codebase while doing something I'm already familiar with ¯\_(ツ)_/¯
[13:41:20] vqrs: has joined #ruby
[13:48:24] Jameser: has joined #ruby
[13:49:02] banisterfiend: has joined #ruby
[14:01:58] Jameser: has joined #ruby
[14:02:01] GodFather: has joined #ruby
[14:05:58] bauruine: has joined #ruby
[14:09:11] anisha: has joined #ruby
[14:09:25] ur5us: has joined #ruby
[14:16:46] Jameser: has joined #ruby
[14:22:40] alfiemax: has joined #ruby
[14:24:28] neo95: has joined #ruby
[14:26:26] QualityAddict: has joined #ruby
[14:30:32] user3: matthewd no, i have make the comparison in the same order, but dosn't matter anymore
[14:31:51] banisterfiend: has joined #ruby
[14:33:45] chocoelho: has joined #ruby
[14:36:48] Jameser: has joined #ruby
[14:46:53] InfinityFye: has joined #ruby
[15:00:50] Jameser: has joined #ruby
[15:04:05] ltem: has joined #ruby
[15:05:25] nofxx: has joined #ruby
[15:05:47] QualityAddict: has joined #ruby
[15:06:39] cadillac_: has joined #ruby
[15:09:26] safetypin: has joined #ruby
[15:13:23] nofxx: has joined #ruby
[15:14:56] nofxx: 2.5.0 today? reverse order backtrace finally?
[15:16:21] Ropeney: has joined #ruby
[15:16:31] nofxx: Trying to convert this snippet, missing something =/, -> https://gist.github.com/nofxx/9b2ea3f3a0629fd7012cd4610ddd335d
[15:25:13] InfinityFye: has left #ruby: ("Leaving")
[15:27:01] cdg: has joined #ruby
[15:30:35] jnollette: has joined #ruby
[15:31:00] alfiemax: has joined #ruby
[15:31:19] Ishido: has joined #ruby
[15:33:10] elphe: has joined #ruby
[15:40:11] vichib: has joined #ruby
[15:51:44] dminuoso: nofxx: Yeah its missing Rubyism.
[15:52:05] dminuoso: You dont have to handcraft HTTP frames in Ruby. ;o
[15:53:18] nofxx: dminuoso, just found out: was #hexdigest vs #digest. But what do you mean?
[15:53:27] JaccoP: has joined #ruby
[15:53:39] nofxx: that's just one header, I'm using Net::HTTP::Post
[15:53:53] cdg: has joined #ruby
[15:54:22] nofxx: it's a crazy auth thing, I'm not creating the http frame
[15:55:29] dminuoso: Oh. Just looked as if you were kind of reimplementing that PHP Script line by line..
[16:04:19] nofxx: dminuoso, sorry made you look (PHP) but it's good sometimes, you can't know happiness if you don't know sadness said the poet
[16:04:38] dminuoso: nofxx: I have no issues with PHP really.
[16:05:21] dminuoso: As long as languages like PHP or Go exist, those braindead monkeys asking really stupid questions have their own channel, sub-reddit and SO tags.
[16:05:32] nofxx: dminuoso, I prefer $ before my numbers, is my common answer. But the dollar thing was nasty, this -> everywwhere thing is absurd
[16:06:08] dminuoso: nofxx: Honestly the visuals is the smallest thing. Ruby has some horrid things on its own, but its not really a meaningful factor in the quality of a language.
[16:07:07] nofxx: disagree... visuals is great, at a glance you get a lot from (well written) ruby code
[16:07:23] nofxx: also read it out loud™
[16:07:38] nofxx: remember Why? heh
[16:07:53] dminuoso: `unless` is one of the worst perversions in Ruby.
[16:08:01] ur5us: has joined #ruby
[16:08:13] dminuoso: When your code is designed to read like a natural language, it leads to poorer abstractions.
[16:08:34] nofxx: dminuoso, got an example of horrid ruby structure?
[16:09:35] dminuoso: nofxx: Mostly everything revolving around method calls, optional/non-optional parens, blocks/hash
[16:09:46] dminuoso: Its nothing I get worked up over, but its not clean
[16:11:17] dminuoso: nofxx: and then there's small things that Ive began to hate like how Ruby has poor support for real first-class functions.
[16:11:47] dminuoso: But that I've addressed in a library. Now I can actually do arr.map(f) :=)
[16:13:41] nofxx: yeah, singletons are ugly... parens could be consensus in your team, but w/o args kinda urgly. And blocks are nice, dunno a better way heh
[16:14:06] heliumk: has joined #ruby
[16:14:19] nofxx: what's that library?
[16:14:24] dminuoso: Not published yet
[16:14:35] dminuoso: Its basically a better version of https://github.com/lazebny/ramda-ruby
[16:14:58] dminuoso: One that offers core extensions to patch.. basically anything that takes a block.
[16:15:13] dminuoso: (anything that takes a block but not a lambda/proc)
[16:16:56] dminuoso: That library suffers from multiple problems (which also arise from Ruby issues)
[16:17:04] dminuoso: l.() is an annoyance
[16:17:50] dminuoso: and when you have to do l.(a).(b).. well lets just say I curry "the right way™"
[16:18:07] dminuoso: So you can do l.(a, b) regardless of l's arity (and being a lambda)
[16:20:36] coderxin: has joined #ruby
[16:23:42] coderxin: has joined #ruby
[16:32:21] danguita: has joined #ruby
[16:45:04] nofxx: has joined #ruby
[16:52:12] dviola: has joined #ruby
[17:01:58] banisterfiend: has joined #ruby
[17:04:29] dionysus69: has joined #ruby
[17:07:34] jamesaxl: has joined #ruby
[17:12:14] pastorinni: has joined #ruby
[17:21:22] ShekharReddy: has joined #ruby
[17:22:07] amatas: has joined #ruby
[17:34:42] heliumk: has joined #ruby
[17:40:48] raynold: has joined #ruby
[17:43:11] mohamed: has joined #ruby
[17:48:52] kculpis: has joined #ruby
[18:01:44] pastorinni: has joined #ruby
[18:08:34] DTZUZO: has joined #ruby
[18:08:44] dinfuehr: has joined #ruby
[18:15:45] minimalism: has joined #ruby
[18:18:00] Dimik: has joined #ruby
[18:25:58] VladGh: has joined #ruby
[18:37:23] Guest35368: has joined #ruby
[18:38:43] ec: has joined #ruby
[18:50:41] webguynow: has joined #ruby
[18:56:52] darkhanb: has joined #ruby
[19:01:03] mtkd: has joined #ruby
[19:02:24] AJA4350: has joined #ruby
[19:02:55] ResidentBiscuit: has joined #ruby
[19:04:21] tomphp: has joined #ruby
[19:10:48] pastorinni: has joined #ruby
[19:11:39] DrCode: has joined #ruby
[19:13:52] DrCode: has joined #ruby
[19:22:39] vichib: has joined #ruby
[19:24:38] eragon: has joined #ruby
[19:29:34] dionysus69: does anyone know how does p2p file transfer work technically? I am most interested in how can parts of file be downloaded from multiple sources at once and then combined
[19:29:59] dminuoso: dionysus69: The mechanisms differ.
[19:30:10] Papierkorb: dionysus69: the Torrent protocol is publicly documented
[19:30:36] dionysus69: how complex would it be to build something like that in ruby, say one pc is downloading 1 file from 2 other pc-s should I start from there? :S
[19:30:50] Papierkorb: Nothing to do much with Ruby
[19:30:53] dionysus69: after that, tracker lists and stuff like that is piece of cake
[19:31:01] dminuoso: Do you want to implement an existing algorithm or roll your own?
[19:31:12] dionysus69: just roll my own from ground up
[19:31:20] Papierkorb: has left #ruby: ("Konversation terminated!")
[19:31:26] dminuoso: dionysus69: I recommend implementing some existing ones first.
[19:31:42] dminuoso: Just to give you an idea of how some of the problems are implemented.
[19:31:42] dionysus69: thing is I want to create such tool so I can build stuff on top of it, crypto world influence here hehe
[19:31:50] JaccoP: has joined #ruby
[19:31:51] conta: has joined #ruby
[19:32:38] dminuoso: dionysus69: https://wiki.theory.org/index.php/BitTorrentSpecification
[19:32:44] dminuoso: This should give you an idea of how BT works.
[19:33:11] dionysus69: thanks allot, cause I was looking for implementing from scratch articles/tutorials and results werent that helpful
[19:34:37] lytol_: has joined #ruby
[19:40:01] growp: has joined #ruby
[19:57:30] cdg: has joined #ruby
[19:57:32] growp: has joined #ruby
[20:01:11] conta: has joined #ruby
[20:03:42] pastorinni: has joined #ruby
[20:25:02] hays: has joined #ruby
[20:25:02] hays: has joined #ruby
[20:27:14] elphe: has joined #ruby
[20:37:07] elphe: has joined #ruby
[20:41:36] pastorinni: has joined #ruby
[20:44:20] quobo: has joined #ruby
[20:52:48] konsolebox: has joined #ruby
[20:53:34] dionysus69: there's divmod but it doesnt show how many times the divisor fits in the the number it is dividing
[20:54:12] dionysus69: ok nvm I am just sleepy
[20:54:33] dminuoso: >> 10.divmod 3
[20:54:34] ruby[bot]: dminuoso: # => [3, 1] (https://eval.in/924812)
[20:55:10] dionysus69: yep, just realized, I am just unable to clearly think atm xD
[20:55:21] dionysus69: its a handy method, just found out about it ^.^
[21:00:40] nibbo: has joined #ruby
[21:02:15] elphe: has joined #ruby
[21:05:04] gigetoo: has joined #ruby
[21:15:21] mtkd: has joined #ruby
[21:20:03] dionysus69: dminuoso: sorry for ping but this is cool :D https://gist.github.com/webzorg/0723e58ddce6b99bf6f711cbcd6387cc
[21:20:31] dionysus69: I just created a download accelerator, and an important part of p2p file transfer :)
[21:21:29] safetypin: has joined #ruby
[21:26:43] gigetoo: has joined #ruby
[21:27:53] elphe: has joined #ruby
[21:37:03] bkxd: has joined #ruby
[21:40:49] Guest90: has joined #ruby
[21:42:53] neo95: has joined #ruby
[21:48:39] gizmore: has joined #ruby
[21:49:30] safetypin: has joined #ruby
[21:53:32] elphe: has joined #ruby
[21:56:03] neo95: has joined #ruby
[22:07:58] neo95: has joined #ruby
[22:08:55] quobo: has joined #ruby
[22:13:44] mtkd: has joined #ruby
[22:20:56] kies: has joined #ruby
[22:21:20] marr: has joined #ruby
[22:39:08] mjolnird: has joined #ruby
[22:45:13] adac: has joined #ruby
[22:48:43] vichib: has joined #ruby
[22:49:37] tabula_0x00: has joined #ruby
[22:49:52] gizmore: self.tap{|o|o.no}
[22:50:10] gizmore: looking forward to ruby5
[22:50:23] gizmore: merry xmas too
[22:50:53] miskatonic: has joined #ruby
[23:01:41] Azure: has joined #ruby
[23:02:23] elphe: has joined #ruby
[23:13:23] elphe: has joined #ruby
[23:21:52] _aeris_: has joined #ruby
[23:24:06] alfiemax: has joined #ruby
[23:24:07] tomphp: has joined #ruby
[23:28:22] tomphp: has joined #ruby
[23:39:17] zautomata: has joined #ruby
[23:57:07] darkhanb: has joined #ruby