« Back to channel list

#ruby - 24 November 2018

« Back 1 day Forward 1 day »
[00:03:55] kapil____: has joined #ruby
[00:06:21] Arkantos: has joined #ruby
[00:10:34] nchambers: has joined #ruby
[00:13:23] dbz: has joined #ruby
[00:13:37] jottr_: has joined #ruby
[00:35:07] dbz: has joined #ruby
[00:48:45] Azure: has joined #ruby
[01:02:24] Exuma: has joined #ruby
[01:08:24] code_zombie: has joined #ruby
[01:11:26] orbyt_: has joined #ruby
[01:26:32] code_zombie_: has joined #ruby
[01:27:18] arescorpio: has joined #ruby
[01:29:26] bmurt: has joined #ruby
[01:36:06] orbyt_: has joined #ruby
[01:41:48] jottr_: has joined #ruby
[01:50:48] armyriad: has joined #ruby
[02:08:14] akemot: has joined #ruby
[02:28:24] dbz: has joined #ruby
[02:44:17] dbz: has joined #ruby
[02:46:04] tdy: has joined #ruby
[02:52:34] Arkantos: has joined #ruby
[02:58:07] jaddison: has joined #ruby
[02:59:29] orbyt_: has joined #ruby
[03:05:42] peirama: has joined #ruby
[03:14:08] elphe: has joined #ruby
[03:14:49] peirama: has joined #ruby
[03:23:56] peirama: has joined #ruby
[03:27:29] hutch: has joined #ruby
[03:33:03] peirama: has joined #ruby
[03:36:30] Arkantos: has joined #ruby
[03:42:09] peirama: has joined #ruby
[03:43:47] armyriad: has joined #ruby
[03:46:50] jottr: has joined #ruby
[03:51:20] peirama: has joined #ruby
[03:57:31] jottr: has joined #ruby
[04:00:20] peirama: has joined #ruby
[04:08:52] Exuma: has joined #ruby
[04:09:07] braincrash: has joined #ruby
[04:09:33] peirama: has joined #ruby
[04:14:43] kapil____: has joined #ruby
[04:18:39] peirama: has joined #ruby
[04:27:46] peirama: has joined #ruby
[04:32:23] luminous: has joined #ruby
[04:35:53] jaddison: has joined #ruby
[04:36:52] peirama: has joined #ruby
[04:46:00] peirama: has joined #ruby
[04:55:05] peirama: has joined #ruby
[05:04:15] peirama: has joined #ruby
[05:13:03] peirama: has joined #ruby
[05:17:13] peirama: has joined #ruby
[05:26:23] brandonkal: has joined #ruby
[05:34:54] hutch: has joined #ruby
[05:41:53] sp3ncer: has joined #ruby
[05:50:10] sp3ncer: has joined #ruby
[05:54:36] dbz: has joined #ruby
[05:56:54] sp3ncer: has joined #ruby
[05:58:35] jottr: has joined #ruby
[06:25:42] dbz: has joined #ruby
[06:45:41] asphyxia: has joined #ruby
[07:06:28] Nilium: has joined #ruby
[07:13:22] perique: has joined #ruby
[07:15:12] reber: has joined #ruby
[07:25:40] rippa: has joined #ruby
[07:27:26] cnsvc: has joined #ruby
[07:37:24] akemot: has joined #ruby
[07:45:20] lomex: has joined #ruby
[07:59:28] jottr: has joined #ruby
[08:00:35] dellavg_: has joined #ruby
[08:10:16] jottr: has joined #ruby
[08:20:54] gix: has joined #ruby
[08:25:42] Exuma: has joined #ruby
[08:44:21] OrangeManBad: has joined #ruby
[08:48:03] Fusl: has joined #ruby
[08:49:50] akemot: has joined #ruby
[08:51:50] Exuma: has joined #ruby
[08:52:51] akemot: has joined #ruby
[08:55:30] cnsvc: has joined #ruby
[09:00:11] _whitelogger: has joined #ruby
[09:12:54] akemot: has joined #ruby
[09:15:56] BH23: has joined #ruby
[09:23:37] clemens3: has joined #ruby
[09:29:03] cnsvc: has joined #ruby
[09:31:17] RougeR: has joined #ruby
[09:35:53] cnsvc: has joined #ruby
[09:45:11] Fr4n: has joined #ruby
[09:57:51] phaul: has joined #ruby
[10:01:21] dhollin3: has joined #ruby
[10:03:36] LinuxKnight: has joined #ruby
[10:06:34] conta: has joined #ruby
[10:09:35] kapil____: has joined #ruby
[10:15:12] akemot: has joined #ruby
[10:25:22] lxsameer: has joined #ruby
[10:25:30] Fr4n: has joined #ruby
[10:28:43] mikecmpbll: has joined #ruby
[10:30:39] cnsvc: has joined #ruby
[10:41:45] hiroaki: has joined #ruby
[10:48:15] jottr: has joined #ruby
[10:49:03] funnel: has joined #ruby
[10:59:11] jottr: has joined #ruby
[11:08:47] dbz: has joined #ruby
[11:21:57] jottr: has joined #ruby
[11:35:01] Nicmavr: has joined #ruby
[11:36:23] Sylario: has joined #ruby
[11:45:13] Inline: has joined #ruby
[11:56:22] desperek: has joined #ruby
[12:00:18] vondruch: has joined #ruby
[12:02:28] cnsvc: has joined #ruby
[12:03:04] irdr: has joined #ruby
[12:04:55] AJA4350: has joined #ruby
[12:06:38] cajone: has joined #ruby
[12:07:09] cajone: has left #ruby: ()
[12:08:21] conta: has joined #ruby
[12:12:39] elphe: has joined #ruby
[12:21:22] roshanavand: has joined #ruby
[12:23:28] burgestrand: has joined #ruby
[12:26:24] Ropeney: has joined #ruby
[12:27:01] smutnysy1: has joined #ruby
[12:42:06] doubledup: has joined #ruby
[12:47:05] yxhuvud: has joined #ruby
[12:49:25] foxxx0: has joined #ruby
[13:06:18] Inline: has joined #ruby
[13:36:00] lomex: has joined #ruby
[13:37:29] TheBloke: has joined #ruby
[13:42:28] cnsvc: has joined #ruby
[13:44:29] cajone: has joined #ruby
[13:44:33] cajone: has left #ruby: ()
[14:20:55] Tom-_: has joined #ruby
[14:23:28] eb0t: has joined #ruby
[14:41:36] Dbugger: has joined #ruby
[14:44:13] luminous: has joined #ruby
[14:55:18] reber: has joined #ruby
[14:56:52] darix: has joined #ruby
[14:58:32] cow[moo]: has joined #ruby
[15:02:43] cenysor: has joined #ruby
[15:03:53] hiroaki: has joined #ruby
[15:04:20] cnsvc: has joined #ruby
[15:04:30] hiroaki: has joined #ruby
[15:08:48] cenysor: Hi! I am trying to install the neocities cli (https://neocities.org/cli). When I run 'sudo gem install neocities' I get the following error: https://pastebin.com/rYC32Zrj. How can I solve this?
[15:08:49] ruby[bot]: cenysor: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
[15:20:11] darix: has joined #ruby
[15:20:43] hutch: has joined #ruby
[15:32:05] mikecmpbll: has joined #ruby
[15:34:27] eb0t: has joined #ruby
[15:34:30] smutnysy1: has joined #ruby
[15:41:08] darthfork: has joined #ruby
[16:02:56] hutch: has joined #ruby
[16:08:00] cnsvc: has joined #ruby
[16:12:12] keden: has joined #ruby
[16:20:20] pavelz: has joined #ruby
[16:27:19] chussenot: has joined #ruby
[16:39:00] akemot: has joined #ruby
[16:45:18] dbz: has joined #ruby
[16:52:04] RougeR: has joined #ruby
[16:53:44] zapata: has joined #ruby
[16:58:14] venmx: has joined #ruby
[17:09:47] phaul: has joined #ruby
[17:11:04] akemot: has joined #ruby
[17:13:52] akemot: has joined #ruby
[17:20:28] shadeslayer: has joined #ruby
[17:20:33] orbyt_: has joined #ruby
[17:24:30] hutch: has joined #ruby
[17:25:14] elphe: has joined #ruby
[17:27:00] cnsvc: has joined #ruby
[17:33:54] eb0t: has joined #ruby
[17:34:07] def_jam: has joined #ruby
[17:43:41] clemens3: has joined #ruby
[17:44:58] brkkyk: has joined #ruby
[17:48:31] GodFather: has joined #ruby
[17:49:59] Arkaniad: has joined #ruby
[17:51:17] jordila: has joined #ruby
[17:56:48] nchambers: is rake installed?
[17:59:05] cenysor: yeah. I solved it by running gem install rake :)
[18:11:46] lomex: has joined #ruby
[18:30:39] za1b1tsu: has joined #ruby
[18:31:09] dbz: has joined #ruby
[18:40:39] chussenot: has joined #ruby
[18:52:32] brkkyk: has joined #ruby
[18:58:01] cnsvc: has joined #ruby
[18:58:40] chussenot: has joined #ruby
[19:01:10] hiroaki: has joined #ruby
[19:07:20] hiroaki: has joined #ruby
[19:08:16] jordila: has joined #ruby
[19:10:06] chussenot: has joined #ruby
[19:11:15] chussenot: has left #ruby: ()
[19:13:00] Deesl: has joined #ruby
[19:13:26] hutch: has joined #ruby
[19:13:35] elphe: has joined #ruby
[19:18:07] NpcOrangeManBad: has joined #ruby
[19:19:45] LiftLeft: has joined #ruby
[19:23:22] johnsillings: has joined #ruby
[19:26:01] im0nde: has joined #ruby
[19:28:53] dbz: has joined #ruby
[19:31:14] TheRealMattM: has joined #ruby
[19:32:03] chussenot: has joined #ruby
[19:32:54] dbz: has joined #ruby
[19:48:50] tdy: has joined #ruby
[19:49:43] nchambers: has joined #ruby
[19:56:41] dbz: has joined #ruby
[20:07:13] dbz: has joined #ruby
[20:13:35] dviola: has joined #ruby
[20:13:37] Exuma: has joined #ruby
[20:18:05] dbz: has joined #ruby
[20:24:25] elphe: has joined #ruby
[20:39:10] cd: has joined #ruby
[20:43:47] dbz: has joined #ruby
[20:45:46] cnsvc: has joined #ruby
[20:51:39] \void: has joined #ruby
[20:51:59] venmx: has joined #ruby
[21:01:27] chussenot: has joined #ruby
[21:06:45] dbz: has joined #ruby
[21:21:28] pskosinski: Hello. I have a hash like: foo = { "bar" => {:A => 2, :B => 7}, "baz" => {:A => 1, :B => 3}} How can I sort it by the value of :B?
[21:21:56] evdubs: has joined #ruby
[21:23:14] pskosinski: To be clear: I want to switch "baz" with "bar".
[21:25:11] dbz: has joined #ruby
[21:26:13] wnd: sorting a hash doesn't quite sound right to me, but Hash[foo.sort_by { |_, v| v[:B] }] might do inefficiently what you wanted.
[21:28:28] pskosinski: I will care about efficiency when I'll have working code. :p Thanks for help, I think it will work
[21:29:03] nowhereman: has joined #ruby
[21:30:36] armyriad: has joined #ruby
[21:32:03] phaul: let's ask the bot
[21:32:25] nchambers: why do you want to sort a hash?
[21:32:41] phaul: &>> foo = { "bar" => {:A => 2, :B => 7}, "baz" => {:A => 1, :B => 3}}; Hash[foo.sort_by { |_, v| v[:B] }]
[21:32:45] rubydoc: # => {"baz"=>{:A=>1, :B=>3}, "bar"=>{:A=>2, :B=>7}} (https://carc.in/#/r/5mdf)
[21:34:35] Arkantos: has joined #ruby
[21:37:18] pskosinski: Thanks guys, I know that may be a bad solution, I'm just learning Ruby, doing some simple exercises on Exercism and doing it like that was the first thing that came to my head. When I'll have working code and will try to make it more efficient I'll surely ask a few more questions! ;) For now, thanks for help. :)
[21:37:49] pskosinski: It's not going to be any production code. ;)
[21:38:25] phaul: pskosinski: don't feel bad, I think Ruby is to be blamed here. It's a bit philosophical, but why is Hash sortable in the first place..
[21:39:20] phaul: if it's sortable it's natural someone wants to sort it :)
[21:46:38] desperek: has joined #ruby
[22:00:09] keden: has joined #ruby
[22:05:11] cnsvc: has joined #ruby
[22:10:20] Arkantos: has joined #ruby
[22:14:41] Nicmavr: has joined #ruby
[22:19:17] RougeR: has joined #ruby
[22:43:22] Arkantos: has joined #ruby
[22:47:47] Exuma: has joined #ruby
[22:59:11] y0u: has joined #ruby
[23:18:46] hutch: has joined #ruby
[23:20:18] pskosinski: has joined #ruby
[23:21:20] pskosinski: has joined #ruby
[23:50:07] jaddison: has joined #ruby