mikecmpbll

Activity Graph

Page 1 of 184 | Next »

2019-05-24

[00:33:56] mikecmpbll: Quit: inabit. zz.
[08:02:28] mikecmpbll: has joined #ruby-offtopic
[08:02:36] mikecmpbll: has joined #RubyOnRails
[08:03:02] mikecmpbll: has joined #ruby
[15:11:46] mikecmpbll: Quit: inabit. zz.

2019-05-23

[08:01:56] mikecmpbll: has joined #RubyOnRails
[08:02:28] mikecmpbll: has joined #ruby-offtopic
[08:02:36] mikecmpbll: has joined #ruby
[10:10:40] mikecmpbll: Ping timeout: 248 seconds
[10:28:16] mikecmpbll: has joined #ruby
[10:28:56] mikecmpbll: has joined #RubyOnRails
[10:29:00] mikecmpbll: has joined #ruby-offtopic
[15:59:53] mikecmpbll: Quit: inabit. zz.
[22:38:02] mikecmpbll: has joined #ruby
[22:38:10] mikecmpbll: has joined #RubyOnRails
[22:38:48] mikecmpbll: has joined #ruby-offtopic

2019-05-22

[07:39:30] mikecmpbll: has joined #ruby-offtopic
[07:40:00] mikecmpbll: has joined #RubyOnRails
[07:40:10] mikecmpbll: has joined #ruby
[10:23:57] mikecmpbll: Ping timeout: 258 seconds
[10:38:25] mikecmpbll: has joined #ruby-offtopic
[10:38:25] mikecmpbll: has joined #RubyOnRails
[10:38:57] mikecmpbll: has joined #ruby
[16:50:09] mikecmpbll: Quit: inabit. zz.
[17:58:37] mikecmpbll: has joined #RubyOnRails
[17:58:53] mikecmpbll: has joined #ruby-offtopic
[17:58:57] mikecmpbll: has joined #ruby
[20:59:17] mikecmpbll: nevada1 : what's all the reversing about?
[21:00:08] mikecmpbll: ah, so the incomplete group is always at the front?
[21:04:50] mikecmpbll: i see, yeah.
[21:05:15] mikecmpbll: there is a way without dealing with strings but i'm doubtful it'll be more elegant.
[21:38:45] mikecmpbll: never knew digits :>
[21:48:17] mikecmpbll: should be poss with a regexp but i'm useless at it.
[22:05:49] mikecmpbll: how about ...
[22:05:56] mikecmpbll: do you need them in that reverse order, or?
[22:09:47] mikecmpbll: &>> num = 1326767; (0...num.to_s.size).step(3).map{ |i| (num/10**i) % 1000 }
[22:09:55] mikecmpbll: that's my fav :p
[22:34:11] mikecmpbll: |a, b = 0, c = 0|: 440984.8 i/s - 1.48x slower >> in ruby 2.5.1
[22:34:50] mikecmpbll: (than step(3).map)
[22:41:39] mikecmpbll: all benched on 2.5.1 here anyways; https://gist.github.com/mikecmpbll/a1523af6b84d2cf1553b6b89050740df
[22:42:03] mikecmpbll: most readable is slowest ;))
[22:42:20] mikecmpbll: i'm sure that speed is critical to your application!
[22:42:57] mikecmpbll: question is, is b = 0, c = 0 on 2.6 faster than step(3) on 2.5 ?
[22:56:11] mikecmpbll: Quit: inabit. zz.

2019-05-21

[15:43:53] mikecmpbll: has joined #ruby-offtopic
[15:44:31] mikecmpbll: has joined #ruby
[15:44:39] mikecmpbll: has joined #RubyOnRails
[16:39:44] mikecmpbll: Quit: inabit. zz.
[20:05:29] mikecmpbll: has joined #RubyOnRails
[20:05:40] mikecmpbll: has joined #ruby-offtopic
[20:05:45] mikecmpbll: has joined #ruby
[20:30:48] mikecmpbll: Remote host closed the connection
[20:32:03] mikecmpbll: has joined #ruby
[20:32:05] mikecmpbll: has joined #RubyOnRails
[20:32:09] mikecmpbll: has joined #ruby-offtopic
[21:10:23] mikecmpbll: Quit: inabit. zz.

2019-05-15

[08:04:18] mikecmpbll: has joined #RubyOnRails
[08:04:24] mikecmpbll: has joined #ruby
[08:04:38] mikecmpbll: has joined #ruby-offtopic
[11:01:26] mikecmpbll: Read error: Connection reset by peer

2019-05-14

[07:56:05] mikecmpbll: has joined #ruby
[07:56:19] mikecmpbll: has joined #RubyOnRails
[07:56:41] mikecmpbll: has joined #ruby-offtopic
[16:32:59] mikecmpbll: Quit: inabit. zz.
[18:58:45] mikecmpbll: has joined #RubyOnRails
[18:58:47] mikecmpbll: has joined #ruby-offtopic
[18:58:49] mikecmpbll: has joined #ruby
[22:38:08] mikecmpbll: Quit: inabit. zz.

2019-05-13

[02:12:24] mikecmpbll: Quit: inabit. zz.
[07:57:06] mikecmpbll: has joined #RubyOnRails
[08:04:15] mikecmpbll: has joined #ruby-offtopic
[08:04:34] mikecmpbll: has joined #ruby
[08:04:52] mikecmpbll: has joined #RubyOnRails
[16:32:19] mikecmpbll: Quit: inabit. zz.
[17:04:19] mikecmpbll: has joined #RubyOnRails
[17:04:27] mikecmpbll: has joined #ruby-offtopic
[17:04:35] mikecmpbll: has joined #ruby
[18:26:49] mikecmpbll: Quit: inabit. zz.
[22:14:34] mikecmpbll: has joined #RubyOnRails
[22:14:54] mikecmpbll: has joined #ruby
[22:15:10] mikecmpbll: has joined #ruby-offtopic
[22:36:02] mikecmpbll: Quit: inabit. zz.

2019-05-12

[01:13:57] mikecmpbll: Quit: inabit. zz.
[07:55:24] mikecmpbll: has joined #ruby
[07:55:30] mikecmpbll: has joined #ruby-offtopic
[07:55:50] mikecmpbll: has joined #RubyOnRails
[10:34:09] mikecmpbll: Quit: inabit. zz.
[13:32:52] mikecmpbll: has joined #ruby
[13:33:00] mikecmpbll: has joined #ruby-offtopic
[13:33:00] mikecmpbll: has joined #RubyOnRails

2019-05-11

[02:38:36] mikecmpbll: Quit: inabit. zz.
[09:23:49] mikecmpbll: has joined #ruby-offtopic
[09:24:01] mikecmpbll: has joined #ruby
[09:24:23] mikecmpbll: has joined #RubyOnRails

2019-05-10

[00:46:11] mikecmpbll: Quit: inabit. zz.
[07:39:07] mikecmpbll: has joined #RubyOnRails
[07:39:25] mikecmpbll: has joined #ruby
[07:39:39] mikecmpbll: has joined #ruby-offtopic
[16:02:32] mikecmpbll: Ping timeout: 245 seconds
[18:27:33] mikecmpbll: has joined #ruby-offtopic
[18:27:33] mikecmpbll: has joined #RubyOnRails
[18:28:11] mikecmpbll: has joined #ruby

2019-05-09

[08:07:12] mikecmpbll: has joined #RubyOnRails
[08:07:14] mikecmpbll: has joined #ruby-offtopic
[08:07:22] mikecmpbll: has joined #ruby
[17:32:28] mikecmpbll: Quit: inabit. zz.
[19:24:04] mikecmpbll: has joined #RubyOnRails
[19:24:16] mikecmpbll: has joined #ruby-offtopic
[19:24:20] mikecmpbll: has joined #ruby

2019-05-08

[07:29:52] mikecmpbll: has joined #ruby-offtopic
[07:29:52] mikecmpbll: has joined #RubyOnRails
[07:29:54] mikecmpbll: has joined #ruby
[16:31:29] mikecmpbll: Quit: inabit. zz.
[18:52:12] mikecmpbll: has joined #RubyOnRails
[18:52:13] mikecmpbll: has joined #ruby-offtopic
[18:52:38] mikecmpbll: has joined #ruby
[23:03:21] mikecmpbll: Quit: inabit. zz.

2019-05-07

[07:05:54] mikecmpbll: has joined #ruby
[07:05:56] mikecmpbll: has joined #ruby-offtopic
[07:06:30] mikecmpbll: has joined #RubyOnRails
[16:31:58] mikecmpbll: Quit: inabit. zz.
[22:56:13] mikecmpbll: has joined #ruby-offtopic
[22:56:27] mikecmpbll: has joined #ruby
[22:56:49] mikecmpbll: has joined #RubyOnRails
[23:17:03] mikecmpbll: Quit: inabit. zz.

2019-05-06

[06:44:04] mikecmpbll: has joined #ruby-offtopic
[06:44:10] mikecmpbll: has joined #RubyOnRails
[06:44:30] mikecmpbll: has joined #ruby
[08:22:11] mikecmpbll: Quit: inabit. zz.
[11:27:45] mikecmpbll: has joined #RubyOnRails
[11:27:51] mikecmpbll: has joined #ruby
[11:27:55] mikecmpbll: has joined #ruby-offtopic
[21:37:50] mikecmpbll: Quit: inabit. zz.

2019-05-05

[02:05:24] mikecmpbll: Quit: inabit. zz.
[13:04:22] mikecmpbll: has joined #ruby-offtopic
[13:04:24] mikecmpbll: has joined #RubyOnRails
[13:04:52] mikecmpbll: has joined #ruby
[14:43:37] mikecmpbll: Quit: inabit. zz.
[16:31:21] mikecmpbll: has joined #ruby-offtopic
[16:31:51] mikecmpbll: has joined #RubyOnRails
[16:31:59] mikecmpbll: has joined #ruby
[21:39:01] mikecmpbll: Quit: inabit. zz.

2019-05-04

[07:45:37] mikecmpbll: has joined #ruby
[07:46:07] mikecmpbll: has joined #ruby-offtopic
[07:46:11] mikecmpbll: has joined #RubyOnRails
[08:10:02] mikecmpbll: Read error: Connection timed out
[08:10:35] mikecmpbll: has joined #ruby-offtopic
[08:11:13] mikecmpbll: has joined #RubyOnRails
[08:11:19] mikecmpbll: has joined #ruby

2019-05-03

[01:00:42] mikecmpbll: Quit: inabit. zz.
[07:50:53] mikecmpbll: has joined #RubyOnRails
[07:50:53] mikecmpbll: has joined #ruby
[07:51:09] mikecmpbll: has joined #ruby-offtopic
[15:13:29] mikecmpbll: Quit: inabit. zz.
[16:38:55] mikecmpbll: has joined #ruby
[16:39:10] mikecmpbll: has joined #ruby-offtopic
[16:39:12] mikecmpbll: has joined #RubyOnRails
[17:38:45] mikecmpbll: old_relik : just depends what you want to happen. usually the advice is to make a job idempotent.
[17:39:24] mikecmpbll: so, for each id it should only send the sms if the database record doesn't already exist?
[17:39:26] mikecmpbll: then a job can retry and not cause duplication.
[17:44:51] mikecmpbll: not sure in what way you mean. perhaps would benefit from an example :)
[18:10:00] mikecmpbll: cek : i'm an expert
[18:10:04] mikecmpbll: on everything
[18:11:34] mikecmpbll: pretty much makes SMSScheduler irrelevant
[18:11:43] mikecmpbll: just schedule the SMSSender jobs off the bat
[18:14:09] mikecmpbll: you'd be surprised how little job overhead actually is.
[18:14:31] mikecmpbll: in fact. you'll likely get speed benefit due to job parallelism ..
[18:14:57] mikecmpbll: unless you know each job is going to be consistently large, in which case there's an argument for that.
[18:15:35] mikecmpbll: and you're running many at a time?
[18:15:57] mikecmpbll: do you need it to retry if one item in the job fails?
[18:16:39] mikecmpbll: but if item 14,000/100k fails
[18:16:49] mikecmpbll: 86k items will be missed ..
[18:17:26] mikecmpbll: ok, so you don't mind if item 14,000 never succeeds?
[18:17:36] mikecmpbll: or if it fails, it's never likely to suceed?
[18:18:01] mikecmpbll: oh fine. so just do that :D
[18:18:40] mikecmpbll: yeah, well that's the design answer.
[18:18:58] mikecmpbll: if a failure is absolute and expected, then rescue and skip.
[18:19:51] mikecmpbll: it should be idempotent anyway, regardless of this discussion.
[18:20:05] mikecmpbll: because the failure might not be because the item failure
[18:20:29] mikecmpbll: (the predictable, absolute failure)
[18:22:20] mikecmpbll: batched/unbatched isn't particularly important. unbatched is cleaner, as adam illudes to, but there's good reasons to do batched too.
[18:22:24] mikecmpbll: very much depends on the workload.
[18:24:13] mikecmpbll: are you dealing with something where you have an Active Record representation and an external API call?
[18:24:22] mikecmpbll: best to have some status in the Active Record, if that's the case
[18:24:51] mikecmpbll: it gets updated in the job, and you skip ones that are already x status .. which i think is probably what you were getting at with paste
[18:25:52] mikecmpbll: not sure what you mean about leaking. if Model is always a specific Model, then there's no worry about coupling the sidekiq job to that.
[18:26:42] mikecmpbll: unless you store whether or not send_sms has happened yet, you'll never be able to make the job idempotent.
[18:29:36] mikecmpbll: i can't really comprehend how those conditions could differ if it's the same model, but if so then you'd expect them to have a unified interface at least
[18:30:27] mikecmpbll: a `sent?` method that behaves correctly for the different cases? for example
[20:07:55] mikecmpbll: Quit: inabit. zz.
[20:12:52] mikecmpbll: has joined #RubyOnRails
[20:13:03] mikecmpbll: has joined #ruby-offtopic
[20:13:19] mikecmpbll: has joined #ruby
[22:36:16] mikecmpbll: Quit: inabit. zz.

2019-05-02

[08:15:47] mikecmpbll: has joined #ruby
[08:15:54] mikecmpbll: has joined #ruby-offtopic
[08:15:56] mikecmpbll: has joined #RubyOnRails
[16:36:12] mikecmpbll: Quit: inabit. zz.
[18:32:53] mikecmpbll: has joined #RubyOnRails
[18:32:59] mikecmpbll: has joined #ruby
[18:33:05] mikecmpbll: has joined #ruby-offtopic

2019-05-01

[08:09:55] mikecmpbll: has joined #RubyOnRails
[08:10:10] mikecmpbll: has joined #ruby
[08:10:20] mikecmpbll: has joined #ruby-offtopic
[08:39:09] mikecmpbll: Read error: Connection reset by peer
[08:39:35] mikecmpbll: has joined #RubyOnRails
[08:39:45] mikecmpbll: has joined #ruby
[08:39:59] mikecmpbll: has joined #ruby-offtopic
[10:28:45] mikecmpbll: views on squashing vs not squashing?
[10:28:50] mikecmpbll: merge requests
[17:17:06] mikecmpbll: Quit: inabit. zz.
[18:22:19] mikecmpbll: has joined #ruby
[18:22:19] mikecmpbll: has joined #RubyOnRails
[18:22:36] mikecmpbll: has joined #ruby-offtopic
[22:34:27] mikecmpbll: Quit: inabit. zz.

2019-04-25

[08:00:57] mikecmpbll: has joined #ruby-offtopic
[08:01:14] mikecmpbll: has joined #RubyOnRails
[08:01:24] mikecmpbll: has joined #ruby
[15:33:55] mikecmpbll: Quit: inabit. zz.
[15:39:45] mikecmpbll: has joined #RubyOnRails
[15:40:14] mikecmpbll: has joined #ruby
[15:40:16] mikecmpbll: has joined #ruby-offtopic
[15:48:32] mikecmpbll: Ping timeout: 250 seconds
[15:49:45] mikecmpbll: has joined #RubyOnRails
[15:50:22] mikecmpbll: has joined #ruby-offtopic
[15:50:30] mikecmpbll: has joined #ruby
[16:44:19] mikecmpbll: Quit: inabit. zz.
[17:08:58] mikecmpbll: has joined #ruby
[17:09:00] mikecmpbll: has joined #ruby-offtopic
[17:09:07] mikecmpbll: has joined #RubyOnRails
[21:16:22] mikecmpbll: Quit: inabit. zz.

2019-04-24

[22:41:43] mikecmpbll: has joined #RubyOnRails
[22:51:02] mikecmpbll: Quit: inabit. zz.
[22:56:44] mikecmpbll: has joined #ruby-offtopic
[22:56:54] mikecmpbll: has joined #ruby
[22:56:58] mikecmpbll: has joined #RubyOnRails
[23:04:37] mikecmpbll: Quit: inabit. zz.
[23:06:12] mikecmpbll: has joined #ruby