drale2k_

Activity Graph

Page 1 of 10 | Next »

2019-01-14

[07:23:58] drale2k_: has joined #RubyOnRails
[07:24:34] drale2k_: has joined #ruby
[07:41:18] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…

2019-01-13

[02:00:25] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…
[15:25:28] drale2k_: has joined #ruby
[15:25:29] drale2k_: has joined #RubyOnRails
[16:40:20] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…
[17:02:58] drale2k_: has joined #ruby
[17:03:07] drale2k_: has joined #RubyOnRails
[19:22:33] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…

2019-01-12

[01:36:22] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…
[02:02:50] drale2k_: has joined #RubyOnRails
[02:03:02] drale2k_: has joined #ruby
[02:04:04] drale2k_: Client Quit
[02:04:40] drale2k_: has joined #ruby
[02:04:40] drale2k_: has joined #RubyOnRails
[03:14:26] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…
[11:49:37] drale2k_: has joined #ruby
[11:50:17] drale2k_: has joined #RubyOnRails
[12:16:59] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…
[13:39:29] drale2k_: has joined #RubyOnRails
[13:39:37] drale2k_: has joined #ruby
[13:45:23] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…
[13:56:52] drale2k_: has joined #RubyOnRails
[13:56:52] drale2k_: has joined #ruby
[16:56:37] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…
[16:58:32] drale2k_: has joined #RubyOnRails
[16:58:35] drale2k_: has joined #ruby
[17:11:02] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…
[21:52:56] drale2k_: has joined #ruby
[21:53:04] drale2k_: has joined #RubyOnRails

2019-01-11

[08:06:25] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…
[10:25:16] drale2k_: has joined #RubyOnRails
[10:25:21] drale2k_: has joined #ruby
[10:28:46] drale2k_: Client Quit
[11:17:53] drale2k_: has joined #RubyOnRails
[11:18:03] drale2k_: has joined #ruby
[11:21:28] drale2k_: Client Quit
[13:32:40] drale2k_: has joined #RubyOnRails
[13:32:55] drale2k_: has joined #ruby
[13:36:02] drale2k_: Client Quit
[13:57:51] drale2k_: has joined #ruby
[13:58:03] drale2k_: has joined #RubyOnRails
[14:02:13] drale2k_: Client Quit
[14:04:46] drale2k_: has joined #RubyOnRails
[14:04:54] drale2k_: has joined #ruby
[14:08:47] drale2k_: Client Quit
[14:12:42] drale2k_: has joined #ruby
[14:13:53] drale2k_: has joined #RubyOnRails
[14:15:54] drale2k_: Client Quit
[14:28:28] drale2k_: has joined #RubyOnRails
[14:28:42] drale2k_: has joined #ruby
[15:02:24] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…
[15:19:31] drale2k_: has joined #RubyOnRails
[15:19:40] drale2k_: has joined #ruby
[15:36:17] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…
[15:38:08] drale2k_: has joined #ruby
[15:38:14] drale2k_: has joined #RubyOnRails
[16:07:19] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…
[16:37:31] drale2k_: has joined #RubyOnRails
[16:38:07] drale2k_: has joined #ruby

2019-01-10

[21:42:47] drale2k_: has joined #RubyOnRails
[21:42:49] drale2k_: has joined #ruby
[21:43:10] drale2k_: Client Quit
[22:08:23] drale2k_: has joined #ruby
[22:08:28] drale2k_: has joined #RubyOnRails
[22:10:34] drale2k_: Client Quit
[22:42:39] drale2k_: has joined #ruby
[22:43:08] drale2k_: has joined #RubyOnRails
[23:20:09] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…
[23:56:49] drale2k_: has joined #ruby
[23:56:51] drale2k_: has joined #RubyOnRails

2019-01-09

[07:48:43] drale2k_: has joined #RubyOnRails
[07:48:43] drale2k_: has joined #ruby
[08:01:04] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…
[08:07:54] drale2k_: has joined #RubyOnRails
[08:07:55] drale2k_: has joined #ruby
[08:08:35] drale2k_: Client Quit
[08:09:31] drale2k_: has joined #RubyOnRails
[08:09:31] drale2k_: has joined #ruby
[08:13:47] drale2k_: Ping timeout: 240 seconds

2019-01-08

[00:03:56] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…
[00:04:52] drale2k_: has joined #ruby
[00:05:03] drale2k_: has joined #RubyOnRails
[02:55:02] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…
[09:20:47] drale2k_: has joined #ruby
[09:21:04] drale2k_: has joined #RubyOnRails
[09:37:57] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…

2019-01-07

[00:50:01] drale2k_: has joined #RubyOnRails
[00:50:09] drale2k_: has joined #ruby
[00:57:38] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…
[01:23:02] drale2k_: has joined #ruby
[01:23:02] drale2k_: has joined #RubyOnRails
[08:21:49] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…
[11:21:54] drale2k_: has joined #RubyOnRails
[11:22:10] drale2k_: has joined #ruby
[11:30:36] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…
[11:33:28] drale2k_: has joined #ruby
[11:34:22] drale2k_: has joined #RubyOnRails
[11:37:38] drale2k_: Client Quit
[23:24:07] drale2k_: has joined #RubyOnRails
[23:24:32] drale2k_: has joined #ruby

2019-01-06

[00:15:25] drale2k_: has joined #RubyOnRails
[00:15:39] drale2k_: has joined #ruby
[02:32:57] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…
[11:37:56] drale2k_: has joined #RubyOnRails
[11:38:14] drale2k_: has joined #ruby
[11:44:56] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…

2019-01-05

[00:39:29] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…
[03:16:22] drale2k_: has joined #RubyOnRails
[03:16:50] drale2k_: has joined #ruby
[03:29:02] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…
[16:32:01] drale2k_: has joined #RubyOnRails
[16:32:05] drale2k_: has joined #ruby
[16:47:21] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…

2019-01-04

[22:53:57] drale2k_: has joined #ruby
[22:54:02] drale2k_: has joined #RubyOnRails
[22:54:24] drale2k_: Man i am having a hard time wrapping my head around Asset Pipeline vs Webpacker
[22:54:44] drale2k_: the main message about Webpack i read is "Webpacker coexists with the asset pipeline, as the primary purpose for webpack is app-like JavaScript, not images, CSS. "
[22:55:05] drale2k_: this confuses me about how to use f.e. Bootstrap, which has JS and CSS files
[22:55:24] drale2k_: do i need to use both, the gem for css,fonts and webpack for JS ?

2018-12-22

[11:45:17] drale2k_: has joined #RubyOnRails
[11:45:27] drale2k_: has joined #ruby
[12:54:11] drale2k_: Ping timeout: 250 seconds

2018-11-08

[08:43:52] drale2k_: has joined #ruby
[08:44:09] drale2k_: has joined #RubyOnRails
[08:52:49] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…
[08:53:44] drale2k_: has joined #RubyOnRails
[08:53:44] drale2k_: has joined #ruby
[10:43:45] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…
[11:03:00] drale2k_: has joined #RubyOnRails
[11:03:35] drale2k_: has joined #ruby
[14:02:06] drale2k_: *.net *.split

2018-11-07

[20:27:39] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…

2018-11-06

[07:31:49] drale2k_: has joined #ruby
[07:31:57] drale2k_: has joined #RubyOnRails
[09:24:19] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…
[09:40:40] drale2k_: has joined #RubyOnRails
[09:40:48] drale2k_: has joined #ruby
[09:48:24] drale2k_: Does anyone know if ActiveSupport::TimeZone[+1] will return the same as ActiveSupport::TimeZone[+2] during Daylight Savings ?
[09:49:07] drale2k_: Or does ActiveSupport::TimeZone[+1] always return the same, independent of DST or not
[09:51:22] drale2k_: Radar: no that's just an example. Generally asking
[09:52:01] drale2k_: well the syntax works, it will return a timezone
[09:52:52] drale2k_: but what i want to know is if i can rely on ActiveSupport::TimeZone[UTC_OFFSET] always returning the correct timezone which would mean it knows about DST
[09:54:43] drale2k_: but Asia/Magadan is +11 so it got the ofset correct
[09:56:53] drale2k_: i have a client windows app which will send the UTC time and the UTC offset. I want to store that properly in rails for each record, so later i can show the time in the context of that PC. I would use start_time.in_time_zone("Asia/Magadan") which i would get when the records comes in, using ActiveSupport::TimeZone[UTC_OFFSET]
[09:59:59] drale2k_: hm, do you have a suggestion? Should i store the utc offset (instead of the region string like "Asia/Magadan") + if DST applies at that moment ?
[10:02:52] drale2k_: ok so you would store UTC + offset in a single field, in my case the "start_time" field
[10:02:58] drale2k_: instead of having a separate field with the timezone
[10:13:32] drale2k_: Rails' default created_at and updated_at fields are "timestamp without time zone". At least for me locally

2018-11-05

[12:17:36] drale2k_: has joined #RubyOnRails
[12:17:52] drale2k_: has joined #ruby
[12:31:05] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…
[13:07:45] drale2k_: has joined #ruby
[13:07:54] drale2k_: has joined #RubyOnRails
[14:26:08] drale2k_: i have records with "start_time" and "end_time" fields and i want those timestamps to store the user timezone
[14:26:26] drale2k_: should i store them as UTC (default) and add the offset ?
[14:26:41] drale2k_: or should i have a separate "timezone" field on each record with the user timezone
[14:34:27] drale2k_: tbuehlmann: so just in UTC +0 ?
[14:39:53] drale2k_: tbuehlmann: the start_time is coming from a client app running on a PC
[14:40:03] drale2k_: i need to preserve the timezone from that PC
[14:41:19] drale2k_: but how does it later know in which timezone the client PC was ?
[14:41:25] drale2k_: i have to store that somewhere
[14:41:54] drale2k_: so would you have a separate "timezone" field or would you add an offset to the start_time timestamp itself ?
[14:43:24] drale2k_: hm right and then use a gem like tzinfo to convert
[14:49:21] drale2k_: tbuehlmann: any idea how i can convert to a format like "Eastern Time (US & Canada)" ?
[14:49:35] drale2k_: from the PC i will get an UTC + offset
[15:04:24] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…
[15:22:59] drale2k_: has joined #RubyOnRails
[15:23:01] drale2k_: has joined #ruby
[16:54:56] drale2k_: can i rely on ActiveSupport::TimeZone[+1] always returning the correct thing? During daylight savings and without ?
[16:55:20] drale2k_: or would this become ActiveSupport::TimeZone[+2] during daylight savings ?
[17:06:22] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…

2018-10-24

[10:10:42] drale2k_: i am using form_with with default settings which uses "data-remote=true" but when i submit the form it does a normal submit instead of an xhr request and the page reloads
[10:11:35] drale2k_: looking at the generated HTML, it definitely say data-remote="true" on the form
[10:11:51] drale2k_: am i missing somehing ?
[10:25:05] drale2k_: rails ujs should be taking care of that
[10:25:30] drale2k_: but i think i found the issue at least. It works when i add a submit button but when i submit the form with JS then it does a normal submit
[10:25:41] drale2k_: i think i have to use Rails.fire
[10:27:00] drale2k_: yes, this solved it!
[10:27:40] drale2k_: so instead of calling this.form.submit() with vanilla js, you have to use Rails.fire(this.form, 'submit')
[10:29:08] drale2k_: https://github.com/rails/rails/issues/29546
[11:36:05] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…
[11:47:17] drale2k_: has joined #RubyOnRails
[11:47:23] drale2k_: has joined #ruby
[18:48:51] drale2k_: *.net *.split

2018-10-23

[06:05:13] drale2k_: has joined #ruby
[06:05:27] drale2k_: has joined #RubyOnRails
[08:28:34] drale2k_: I would like to be able to get a blog post via ID or via "alias". Alias i a field i generated when the blog post is generated
[08:29:02] drale2k_: what is the best way to tell rails to first try alias and then fallback to ID if the param is not found as an alias
[10:38:20] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…
[10:54:01] drale2k_: has joined #ruby
[10:54:11] drale2k_: has joined #RubyOnRails
[12:42:30] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…
[13:13:21] drale2k_: has joined #ruby
[13:13:23] drale2k_: has joined #RubyOnRails
[13:27:32] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…
[13:29:17] drale2k_: has joined #ruby
[13:29:44] drale2k_: has joined #RubyOnRails

2018-10-22

[16:47:02] drale2k_: has joined #RubyOnRails
[16:47:02] drale2k_: has joined #ruby
[16:47:24] drale2k_: Is it possible to add a file from disk to rails via Active Storage ?
[16:58:42] drale2k_: nzst: i am already storing them locally. I am talking about grabbing a file from disk instead a form or API
[17:01:28] drale2k_: ah yes that looks like it, thanks
[17:02:43] drale2k_: nzst: do you by any chance know if this will trigger an upload through the rails stack or just move the file on disk and create a db record ?
[17:14:53] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…

2018-09-05

[13:54:30] drale2k_: has joined #RubyOnRails
[13:54:30] drale2k_: has joined #ruby
[14:04:38] drale2k_: Ping timeout: 245 seconds

2018-09-04

[07:58:36] drale2k_: has joined #ruby
[07:58:51] drale2k_: has joined #RubyOnRails
[09:07:13] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…
[09:23:35] drale2k_: has joined #RubyOnRails
[09:23:41] drale2k_: has joined #ruby
[09:40:26] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…
[10:02:59] drale2k_: has joined #RubyOnRails
[10:02:59] drale2k_: has joined #ruby
[14:25:41] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…
[15:05:08] drale2k_: has joined #RubyOnRails
[15:05:20] drale2k_: has joined #ruby
[20:52:41] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…

2018-09-03

[11:23:20] drale2k_: has joined #ruby
[11:23:21] drale2k_: has joined #RubyOnRails
[14:11:29] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…
[14:36:01] drale2k_: has joined #ruby
[14:36:07] drale2k_: has joined #RubyOnRails
[16:41:05] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…

2018-08-31

[11:02:31] drale2k_: has joined #RubyOnRails
[11:02:37] drale2k_: has joined #ruby
[11:02:53] drale2k_: how come Rails still doesn't have a default assets "fonts" folder -.-
[11:57:30] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…
[11:58:49] drale2k_: has joined #ruby
[11:59:23] drale2k_: has joined #RubyOnRails
[11:59:34] drale2k_: Client Quit

2018-08-21

[08:41:11] drale2k_: has joined #ruby
[09:27:26] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…
[09:39:38] drale2k_: has joined #RubyOnRails
[09:39:43] drale2k_: has joined #ruby
[11:11:41] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…
[11:24:49] drale2k_: has joined #ruby
[11:24:54] drale2k_: has joined #RubyOnRails
[13:12:59] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…
[13:30:03] drale2k_: has joined #ruby
[13:30:03] drale2k_: has joined #RubyOnRails
[15:11:37] drale2k_: Quit: My MacBook has gone to sleep. ZZZzzz…
[15:33:41] drale2k_: has joined #RubyOnRails
[15:33:47] drale2k_: has joined #ruby
[16:25:49] drale2k_: Read error: Connection reset by peer