remix2000

Activity Graph

Page 1 of 1

2018-03-28

2018-03-26

[07:33:48] remix2000: Quit: The Lounge - https://thelounge.github.io
[07:33:59] remix2000: has joined #ruby
[07:56:28] remix2000: Quit: The Lounge - https://thelounge.github.io
[07:56:38] remix2000: has joined #ruby
[08:01:49] remix2000: Quit: The Lounge - https://thelounge.github.io
[08:01:59] remix2000: has joined #ruby
[08:24:18] remix2000: has joined #ruby

2018-03-22

[09:19:59] remix2000: Quit: The Lounge - https://thelounge.github.io
[09:20:11] remix2000: has joined #ruby

2018-03-16

[18:35:49] remix2000: has left #RubyOnRails: ("The Lounge - https://thelounge.github.io")

2018-03-15

[08:18:34] remix2000: Quit: The Lounge - https://thelounge.github.io
[08:27:59] remix2000: has joined #ruby
[08:28:00] remix2000: has joined #RubyOnRails
[09:11:39] remix2000: Hello! Which framework (not rails) would be the best choice for an app that will use WebSockets?
[09:14:38] remix2000: dminuoso: what does more mean there?
[09:15:08] remix2000: dminuoso: yes
[09:29:47] remix2000: Radar: I think that Rails is an overkill for a simple app.

2018-03-14

[16:24:15] remix2000: Quit: WeeChat 1.6
[16:26:13] remix2000: has joined #ruby
[21:38:28] remix2000: Quit: The Lounge - https://thelounge.github.io
[21:38:37] remix2000: has joined #ruby
[21:38:51] remix2000: has joined #ruby
[21:38:51] remix2000: Changing host
[21:42:26] remix2000: Client Quit
[21:42:35] remix2000: has joined #ruby
[21:43:09] remix2000: has joined #ruby
[21:43:09] remix2000: Changing host
[22:14:27] remix2000: Quit: The Lounge - https://thelounge.github.io
[22:15:04] remix2000: has joined #ruby
[22:15:33] remix2000: has joined #RubyOnRails

2018-03-13

[17:12:38] remix2000: has joined #RubyOnRails
[17:14:32] remix2000: Hiya! Have you experienced problems with HTTPS when using the latest Puma? I got all those errors mentioned in https://git.io/vxUQL
[20:38:37] remix2000: Hey, have you experienced problems with SSL/https when using the latest version of Puma? I have the same problem as described here: https://git.io/vxUQL

2018-03-02

[04:29:37] remix2000: Ping timeout: 256 seconds
[06:28:22] remix2000: has joined #ruby
[06:29:23] remix2000: has joined #ruby
[06:29:23] remix2000: Changing host

2018-02-25

[09:34:48] remix2000: *.net *.split
[09:36:29] remix2000: has joined #ruby
[10:08:18] remix2000: Ping timeout: 256 seconds
[10:09:19] remix2000: has joined #ruby
[10:10:48] remix2000: has joined #ruby
[10:10:48] remix2000: Changing host

2018-02-22

[09:49:26] remix2000: has joined #ruby
[09:49:26] remix2000: Changing host

2018-02-21

[21:36:35] remix2000: Ping timeout: 240 seconds
[22:20:22] remix2000: has joined #ruby

2017-12-30

[18:08:26] remix2000: Ping timeout: 268 seconds

2017-12-18

[12:23:46] remix2000: Ping timeout: 260 seconds
[13:01:17] remix2000: has joined #ruby
[13:11:40] remix2000: Changing host
[13:11:41] remix2000: has joined #ruby

2017-12-16

[12:27:06] remix2000: has joined #ruby
[13:56:45] remix2000: Ping timeout: 264 seconds
[14:16:00] remix2000: has joined #ruby

2017-11-18

[11:16:48] remix2000: Ping timeout: 248 seconds

2017-11-15

[17:05:35] remix2000: Ping timeout: 248 seconds
[20:41:29] remix2000: has joined #ruby
[20:41:37] remix2000: has joined #RubyOnRails

2017-11-12

[20:10:10] remix2000: has joined #RubyOnRails
[20:11:38] remix2000: Hey, how should I handle events like notifying user about update or
[20:12:22] remix2000: *post update or birthday for example
[22:16:08] remix2000: dminuoso: live, triggered by specific event, eg. model update

2017-11-10

[16:09:14] remix2000: Ping timeout: 258 seconds
[16:23:01] remix2000: has joined #ruby

2017-11-06

[08:59:16] remix2000: Where should I `require` service files?
[09:03:58] remix2000: ↑ https://gist.github.com/remi6397/ed87e4d063e85a95443ddee060acca9f
[09:05:12] remix2000: so I need to call it like `PastesService.find_pastes`?
[09:05:40] remix2000: sevenseacat: Why is it incorrect? What should I change?
[09:07:05] remix2000: Hmm… dminuoso told me yesterday, that searching logic doesn't belong to controller and I should put it in a service.
[09:08:21] remix2000: dminuoso, I think so too, it uses more than one model
[09:10:16] remix2000: matthewd: Why not to user where?
[09:10:31] remix2000: Will it affect performance negatively?
[09:14:01] remix2000: matthewd: It seemed to me obvious, that method like this exists.
[09:15:04] remix2000: So why they exposed it to public?
[09:16:56] remix2000: Anyways, `rel = rel.where(…)` looks weird
[09:35:55] remix2000: sevenseacat: what is arel?
[09:57:44] remix2000: Do I need to explicitly validate presence in model while I specified `null: false` in migration?
[09:59:10] remix2000: (when value is not passed by user, but generated in controller)
[10:05:27] remix2000: And when I have devise model with `account_type` that should default to 'user', should I fallback it to `default` in db, or explicitly default it in some way?
[10:14:17] remix2000: Or maybe should I associate user one-to-one with account?
[10:14:37] remix2000: And put stuff like that in account model
[10:20:15] remix2000: If yes, how can I create account for user without touching devise controller?
[12:29:16] remix2000: I was thinking on this for a long while. I want to create dependent model `account` [o-t-o] and add empty instances for every `user` after running migrations. default values have been run. However, no accounts are created. https://gist.github.com/remi6397/0bc4ac7d8729dc11ecf7ab3d05e81571

2017-11-05

[09:50:05] remix2000: Quit: WeeChat 1.6
[09:51:16] remix2000: has joined #ruby
[09:51:26] remix2000: has joined #RubyOnRails
[19:40:57] remix2000: Hmmm… How can I reduce length of this condition? <% @pastes.sort_by { |paste| paste.created_at }.select { |paste| User.find_by(nick: params[:user]).nil? || paste.user == User.find_by(nick: params[:user]) }.select { |paste| paste.user == current_user || paste.visibility == 'public' }.reject { |paste| User.find_by(nick: params[:user]) != current_user && paste.visibility != 'public' }.reject { |paste|
[19:40:59] remix2000: paste.user.nil? && paste.visibility != 'public' }.each do |paste| %>
[19:43:42] remix2000: this was one-liner
[19:48:02] remix2000: dminuoso: You're right, this was stupid attempt :P Users have many pastes, paste belongs to one user
[19:53:10] remix2000: My mind is empty today. I hope my future questions will be more serious.
[20:04:17] remix2000: User has unique nick (which is also index column, but not replacing id). Is there something like Paste.where(user_nick: 'nick')?
[20:20:06] remix2000: dminuoso: Is this ok? https://gist.github.com/remi6397/db812d085326b3b6c2bd7428a8278570
[21:06:20] remix2000: dminuoso: what are the differences except moving it to service?
[21:09:04] remix2000: but this does not handle viewing other users' "pastes"
[21:10:13] remix2000: so the only difference is that it uses id instead of model? why?
[21:11:11] remix2000: ok, thank you ;)

2017-11-03

[16:08:12] remix2000: has joined #RubyOnRails
[16:08:58] remix2000: has joined #ruby