kirillzh

Activity Graph

Page 1 of 4 | Next »

2016-04-15

[00:31:52] kirillzh: has joined #ruby
[00:31:53] kirillzh: has joined #RubyOnRails
[00:37:11] kirillzh: Is it possible to use ActionCable server on native iOS/Android app?
[00:38:31] kirillzh: @FailBit I want to implement chat on server side (never done it before)
[00:42:13] kirillzh: I found this framework https://github.com/cloverstudio/Spika
[00:42:16] kirillzh: It works pretty good on iOS and Android
[00:42:17] kirillzh: But server side sucks
[00:42:20] kirillzh: Since my backend is already written on RoR, I thought about rewriting chat server side on Rails with ActionCable
[00:45:29] kirillzh: @Arcaire it supports Ruby/Rails?
[00:47:32] kirillzh: I'm using RubyMine
[00:58:17] kirillzh: Ping timeout: 260 seconds
[06:36:50] kirillzh: has joined #RubyOnRails
[06:36:50] kirillzh: has joined #ruby
[06:58:49] kirillzh: Ping timeout: 250 seconds
[19:37:02] kirillzh: has joined #RubyOnRails
[19:37:02] kirillzh: has joined #ruby
[20:06:27] kirillzh: Quit: Textual IRC Client: www.textualapp.com

2016-04-06

[21:38:17] kirillzh: has joined #RubyOnRails
[21:38:17] kirillzh: has joined #ruby
[21:38:34] kirillzh: Client Quit

2016-03-29

[06:36:01] kirillzh: has joined #RubyOnRails
[06:36:01] kirillzh: has joined #ruby
[08:27:36] kirillzh: Max SendQ exceeded
[17:54:09] kirillzh: has joined #ruby
[17:54:10] kirillzh: has joined #RubyOnRails
[19:05:21] kirillzh: Quit: My Mac has gone to sleep. ZZZzzz…
[20:42:46] kirillzh: has joined #ruby
[20:42:47] kirillzh: has joined #RubyOnRails
[20:43:08] kirillzh: Client Quit

2016-03-25

[18:49:24] kirillzh: has joined #RubyOnRails
[18:49:24] kirillzh: has joined #ruby
[18:49:42] kirillzh: How to upload files directly to S3 in Rails API?
[18:51:31] kirillzh: I've tried Paperclip and CarrierWave, but they seem to be overcomplicated, all I want to do is upload file directly to S3 over Rails server and return AWS url.
[18:55:05] kirillzh: Quit: Textual IRC Client: www.textualapp.com

2016-03-23

[03:32:21] kirillzh: has joined #RubyOnRails
[03:32:21] kirillzh: has joined #ruby
[03:32:57] kirillzh: Max SendQ exceeded
[03:33:30] kirillzh: has joined #RubyOnRails
[03:33:30] kirillzh: has joined #ruby
[03:34:05] kirillzh: Max SendQ exceeded
[03:34:46] kirillzh: has joined #RubyOnRails
[03:34:46] kirillzh: has joined #ruby
[03:43:35] kirillzh: Quit: My Mac has gone to sleep. ZZZzzz…
[03:59:04] kirillzh: has joined #RubyOnRails
[03:59:04] kirillzh: has joined #ruby
[09:18:20] kirillzh: Quit: My Mac has gone to sleep. ZZZzzz…
[14:57:11] kirillzh: has joined #ruby
[14:57:12] kirillzh: has joined #RubyOnRails
[14:57:47] kirillzh: Max SendQ exceeded
[14:58:24] kirillzh: has joined #RubyOnRails
[14:58:24] kirillzh: has joined #ruby
[16:13:23] kirillzh: Quit: Textual IRC Client: www.textualapp.com

2016-03-21

[07:05:01] kirillzh: Quit: Textual IRC Client: www.textualapp.com

2016-03-20

[20:04:53] kirillzh: has joined #RubyOnRails
[20:04:53] kirillzh: has joined #ruby
[20:05:41] kirillzh: What is the best way to cache data by request parameters and current user?
[20:09:03] kirillzh: Rails.cache.fetch([@user, params.to_h.to_query, 'products']) { @user.products }

2016-03-18

[01:03:51] kirillzh: Quit: My Mac has gone to sleep. ZZZzzz…
[03:17:32] kirillzh: has joined #RubyOnRails
[03:17:32] kirillzh: has joined #ruby
[05:47:40] kirillzh: Quit: My Mac has gone to sleep. ZZZzzz…

2016-03-17

[04:52:44] kirillzh: has joined #RubyOnRails
[04:52:44] kirillzh: has joined #ruby
[08:03:09] kirillzh: Quit: My Mac has gone to sleep. ZZZzzz…
[08:04:41] kirillzh: has joined #RubyOnRails
[08:04:41] kirillzh: has joined #ruby
[08:43:17] kirillzh: Max SendQ exceeded
[17:34:02] kirillzh: has joined #RubyOnRails
[17:34:02] kirillzh: has joined #ruby
[17:46:10] kirillzh: Quit: My Mac has gone to sleep. ZZZzzz…
[17:47:00] kirillzh: has joined #RubyOnRails
[17:47:00] kirillzh: has joined #ruby
[18:28:52] kirillzh: Quit: My Mac has gone to sleep. ZZZzzz…
[19:04:51] kirillzh: has joined #RubyOnRails
[19:04:51] kirillzh: has joined #ruby
[21:03:37] kirillzh: Quit: My Mac has gone to sleep. ZZZzzz…
[21:08:28] kirillzh: has joined #RubyOnRails
[21:08:28] kirillzh: has joined #ruby
[21:10:14] kirillzh: Client Quit
[21:52:31] kirillzh: has joined #RubyOnRails
[21:52:31] kirillzh: has joined #ruby
[23:06:17] kirillzh: Ping timeout: 260 seconds
[23:15:22] kirillzh: has joined #RubyOnRails
[23:15:22] kirillzh: has joined #ruby

2016-03-13

[07:38:06] kirillzh: has joined #RubyOnRails
[07:38:06] kirillzh: has joined #ruby
[08:34:56] kirillzh: Quit: My Mac has gone to sleep. ZZZzzz…
[18:13:29] kirillzh: has joined #RubyOnRails
[18:13:29] kirillzh: has joined #ruby
[20:49:07] kirillzh: Quit: Textual IRC Client: www.textualapp.com

2016-03-12

[00:37:56] kirillzh: Quit: My Mac has gone to sleep. ZZZzzz…
[01:03:23] kirillzh: has joined #RubyOnRails
[01:03:23] kirillzh: has joined #ruby
[03:07:39] kirillzh: Quit: Textual IRC Client: www.textualapp.com

2016-03-11

[06:24:40] kirillzh: has joined #RubyOnRails
[06:24:40] kirillzh: has joined #ruby
[09:15:19] kirillzh: Quit: My Mac has gone to sleep. ZZZzzz…
[09:16:21] kirillzh: has joined #ruby
[09:16:22] kirillzh: has joined #RubyOnRails
[09:56:15] kirillzh: Quit: My Mac has gone to sleep. ZZZzzz…
[17:48:57] kirillzh: has joined #RubyOnRails
[17:48:57] kirillzh: has joined #ruby
[17:56:12] kirillzh: Quit: My Mac has gone to sleep. ZZZzzz…
[18:32:48] kirillzh: has joined #RubyOnRails
[18:32:48] kirillzh: has joined #ruby
[18:35:25] kirillzh: Client Quit
[18:35:42] kirillzh: has joined #RubyOnRails
[18:35:42] kirillzh: has joined #ruby
[18:53:00] kirillzh: Quit: My Mac has gone to sleep. ZZZzzz…
[18:59:55] kirillzh: has joined #ruby
[18:59:56] kirillzh: has joined #RubyOnRails
[19:50:51] kirillzh: Quit: My Mac has gone to sleep. ZZZzzz…
[19:57:41] kirillzh: has joined #RubyOnRails
[19:57:41] kirillzh: has joined #ruby
[20:00:54] kirillzh: How to get records with common columns based on single record? Kind of common interests.
[20:01:18] kirillzh: Client Quit
[20:55:12] kirillzh: has joined #RubyOnRails
[20:55:12] kirillzh: has joined #ruby
[21:58:28] kirillzh: Quit: Textual IRC Client: www.textualapp.com
[22:03:17] kirillzh: has joined #RubyOnRails
[22:03:17] kirillzh: has joined #ruby
[22:04:43] kirillzh: How to find records which attributes intersect with specific record (for example current_user)
[22:05:29] kirillzh: Say current_user has products attribute, an array of products, I need other users which have common products as current_user.
[22:09:03] kirillzh: For example this table https://learneroo-images.s3.amazonaws.com/main/many-to-many-likes.png
[22:10:58] kirillzh: Here is desired result for this example: https://gist.github.com/anonymous/f66488700a392411be3f
[22:11:11] kirillzh: Considering current_user is "Jim" with id 1
[22:16:41] kirillzh: So far that's what I got, except for additional virtual attribute "products" (or it could be "common_products"): User.where.not(id: @user.id).select {|x| (x.products & @user.products).present?}
[22:45:24] kirillzh: Quit: My Mac has gone to sleep. ZZZzzz…
[22:47:21] kirillzh: has joined #RubyOnRails
[22:47:21] kirillzh: has joined #ruby
[22:48:13] kirillzh: Client Quit
[23:00:17] kirillzh: has joined #RubyOnRails
[23:00:17] kirillzh: has joined #ruby

2016-03-07

[06:11:36] kirillzh: has joined #RubyOnRails
[06:11:36] kirillzh: has joined #ruby
[06:17:58] kirillzh: Is there a way to check if string contains hours and minutes using Time or Date parser? For example "2016-03-13" doesn't contains hours and minutes whereas "2016-03-13 10:00AM" does.
[06:18:19] kirillzh: doesn't contain*
[07:35:55] kirillzh: Quit: Textual IRC Client: www.textualapp.com

2016-03-05

[02:38:50] kirillzh: Quit: My Mac has gone to sleep. ZZZzzz…
[03:20:31] kirillzh: has joined #RubyOnRails
[03:20:31] kirillzh: has joined #ruby
[09:09:52] kirillzh: Quit: Textual IRC Client: www.textualapp.com

2016-03-04

[00:33:20] kirillzh: Quit: My Mac has gone to sleep. ZZZzzz…
[00:55:57] kirillzh: has joined #RubyOnRails
[00:55:57] kirillzh: has joined #ruby
[01:40:49] kirillzh: Quit: My Mac has gone to sleep. ZZZzzz…
[04:09:23] kirillzh: has joined #RubyOnRails
[04:09:23] kirillzh: has joined #ruby
[05:18:03] kirillzh: Ping timeout: 276 seconds
[07:33:07] kirillzh: has joined #RubyOnRails
[07:33:07] kirillzh: has joined #ruby
[07:34:07] kirillzh: Client Quit
[07:44:17] kirillzh: has joined #RubyOnRails
[07:44:17] kirillzh: has joined #ruby
[08:02:32] kirillzh: Read error: Connection reset by peer
[08:04:20] kirillzh: has joined #RubyOnRails
[08:04:20] kirillzh: has joined #ruby
[08:19:24] kirillzh: Ping timeout: 276 seconds
[08:24:11] kirillzh: has joined #RubyOnRails
[08:24:11] kirillzh: has joined #ruby
[08:34:31] kirillzh: Ping timeout: 244 seconds
[08:44:28] kirillzh: has joined #RubyOnRails
[08:44:28] kirillzh: has joined #ruby
[08:45:16] kirillzh: Max SendQ exceeded
[08:58:26] kirillzh: has joined #ruby
[08:58:27] kirillzh: has joined #RubyOnRails
[09:05:22] kirillzh: Ping timeout: 260 seconds
[09:20:48] kirillzh: has joined #RubyOnRails
[09:20:48] kirillzh: has joined #ruby
[09:31:10] kirillzh: Quit: My Mac has gone to sleep. ZZZzzz…
[10:02:20] kirillzh: has joined #RubyOnRails
[10:02:20] kirillzh: has joined #ruby
[10:54:04] kirillzh: Quit: My Mac has gone to sleep. ZZZzzz…
[19:21:54] kirillzh: has joined #RubyOnRails
[19:21:54] kirillzh: has joined #ruby
[19:22:30] kirillzh: Max SendQ exceeded
[19:23:00] kirillzh: has joined #RubyOnRails
[19:23:00] kirillzh: has joined #ruby
[19:37:10] kirillzh: Quit: My Mac has gone to sleep. ZZZzzz…
[19:39:51] kirillzh: has joined #RubyOnRails
[19:39:51] kirillzh: has joined #ruby
[23:07:25] kirillzh: Quit: My Mac has gone to sleep. ZZZzzz…
[23:36:55] kirillzh: has joined #RubyOnRails
[23:36:55] kirillzh: has joined #ruby
[23:38:33] kirillzh: Client Quit
[23:38:51] kirillzh: has joined #RubyOnRails
[23:38:51] kirillzh: has joined #ruby

2016-03-03

[00:58:29] kirillzh: Quit: My Mac has gone to sleep. ZZZzzz…
[01:17:43] kirillzh: has joined #RubyOnRails
[01:17:43] kirillzh: has joined #ruby
[01:21:07] kirillzh: Read error: Connection reset by peer
[01:21:42] kirillzh: has joined #RubyOnRails
[01:21:42] kirillzh: has joined #ruby
[06:15:43] kirillzh: Quit: Textual IRC Client: www.textualapp.com
[06:18:33] kirillzh: has joined #RubyOnRails
[06:18:33] kirillzh: has joined #ruby
[08:47:07] kirillzh: Quit: My Mac has gone to sleep. ZZZzzz…
[18:34:48] kirillzh: has joined #RubyOnRails
[18:34:48] kirillzh: has joined #ruby
[18:39:34] kirillzh: Ping timeout: 244 seconds
[19:01:03] kirillzh: has joined #RubyOnRails
[19:01:03] kirillzh: has joined #ruby
[19:17:12] kirillzh: Quit: My Mac has gone to sleep. ZZZzzz…
[19:18:08] kirillzh: has joined #RubyOnRails
[19:18:08] kirillzh: has joined #ruby
[22:04:44] kirillzh: Quit: My Mac has gone to sleep. ZZZzzz…
[22:31:51] kirillzh: has joined #RubyOnRails
[22:31:51] kirillzh: has joined #ruby
[22:40:08] kirillzh: Quit: My Mac has gone to sleep. ZZZzzz…
[22:47:48] kirillzh: has joined #RubyOnRails
[22:47:48] kirillzh: has joined #ruby
[23:37:06] kirillzh: Quit: My Mac has gone to sleep. ZZZzzz…
[23:46:30] kirillzh: has joined #RubyOnRails
[23:46:30] kirillzh: has joined #ruby

2016-03-02

[21:46:31] kirillzh: has joined #RubyOnRails
[21:46:31] kirillzh: has joined #ruby
[21:47:00] kirillzh: Client Quit
[21:49:08] kirillzh: has joined #ruby
[21:49:09] kirillzh: has joined #RubyOnRails
[21:49:48] kirillzh: How to move this functionality into separate method so I can reuse it? https://gist.github.com/kirillzh/a1726059822b183760a6
[21:50:31] kirillzh: https://gist.github.com/anonymous/05ceaa4c7e6577e7db31
[22:01:56] kirillzh: norc specifically this block of code
[22:02:48] kirillzh: norc or is there a better way to cache only if certain condition is met?
[22:06:06] kirillzh: smathy agreed. Never mind the first one.
[22:12:33] kirillzh: smathy I understood that as well. Trying to write method using read and write without fetch.
[22:25:41] kirillzh: smathy thanks! That's what I got. https://gist.github.com/anonymous/05ceaa4c7e6577e7db31#gistcomment-1713302
[22:27:58] kirillzh: smathy in one case I just call Rails.cache.fetch_request(request), in another case I want to modify response, store it in cache and return
[22:28:38] kirillzh: Quit: My Mac has gone to sleep. ZZZzzz…
[22:57:59] kirillzh: has joined #RubyOnRails
[22:57:59] kirillzh: has joined #ruby
[23:33:38] kirillzh: Quit: My Mac has gone to sleep. ZZZzzz…
[23:42:52] kirillzh: has joined #RubyOnRails
[23:42:52] kirillzh: has joined #ruby

2016-03-01

[00:17:05] kirillzh: has joined #ruby
[00:17:06] kirillzh: has joined #RubyOnRails
[01:02:13] kirillzh: Quit: My Mac has gone to sleep. ZZZzzz…
[02:19:40] kirillzh: has joined #RubyOnRails
[02:19:40] kirillzh: has joined #ruby
[02:20:34] kirillzh: Max SendQ exceeded
[02:21:21] kirillzh: has joined #RubyOnRails
[02:21:21] kirillzh: has joined #ruby
[03:21:28] kirillzh: Quit: Textual IRC Client: www.textualapp.com

2016-02-29

[22:56:06] kirillzh: Max SendQ exceeded
[22:56:36] kirillzh: has joined #RubyOnRails
[22:56:36] kirillzh: has joined #ruby
[22:56:49] kirillzh: How to do the same but keep order? https://eval.in/private/2b7e69ad99535d
[22:59:56] kirillzh: Better naming: https://eval.in/private/a787f2e4596497
[23:07:33] kirillzh: Ox0dea, thanks a lot!
[23:48:49] kirillzh: Quit: My Mac has gone to sleep. ZZZzzz…