rakm

Activity Graph

Page 1 of 15 | Next »

2017-10-09

[03:20:14] rakm: has joined #ruby
[03:20:27] rakm: has left #ruby: ()

2017-10-08

[21:41:51] rakm: has joined #ruby
[21:44:50] rakm: Remote host closed the connection
[21:45:41] rakm: has joined #ruby
[22:07:54] rakm: Read error: Connection reset by peer
[22:13:21] rakm: has joined #ruby
[22:20:06] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[22:23:56] rakm: has joined #ruby
[22:24:23] rakm: Client Quit
[22:24:51] rakm: has joined #ruby
[22:25:10] rakm: Client Quit
[22:25:41] rakm: has joined #ruby
[22:25:57] rakm: Client Quit
[22:26:26] rakm: has joined #ruby
[22:26:45] rakm: Client Quit
[22:27:13] rakm: has joined #ruby
[22:27:33] rakm: Client Quit
[22:28:01] rakm: has joined #ruby
[22:28:20] rakm: Client Quit
[22:29:01] rakm: has joined #ruby
[22:29:08] rakm: Client Quit
[22:29:38] rakm: has joined #ruby
[22:29:55] rakm: Client Quit
[22:30:26] rakm: has joined #ruby
[22:30:43] rakm: Client Quit
[22:32:09] rakm: has joined #ruby
[22:32:18] rakm: Client Quit
[22:32:52] rakm: has joined #ruby
[22:33:05] rakm: Client Quit
[22:33:46] rakm: has joined #ruby
[22:33:52] rakm: Client Quit

2017-10-07

[03:42:29] rakm: has joined #ruby
[03:42:39] rakm: Remote host closed the connection
[03:43:18] rakm: has joined #ruby
[05:12:29] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…

2017-10-06

[00:06:29] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[01:05:50] rakm: has joined #ruby
[01:41:20] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[17:10:33] rakm: has joined #ruby
[17:49:42] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[18:34:15] rakm: has joined #ruby
[18:52:48] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[20:23:13] rakm: has joined #ruby
[21:30:31] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[22:00:31] rakm: has joined #ruby
[23:52:05] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…

2017-10-05

[07:37:25] rakm: has joined #ruby
[07:38:54] rakm: how would I do a while/until look where I assign to an object to a variable and call a method that has a satisfactory return value?
[07:39:58] rakm: e.g. until x = !get_random_number.even? { puts x }
[07:40:16] rakm: sorry, that block syntax is wrong i think
[07:40:37] rakm: but the point is that my get_random_number method returns a number, and i want to call a method on it, but i want to assign the number to the variable
[07:48:38] rakm: tobiasvl that was just a (bad) example. here's something more realistic: https://paste.pound-python.org/show/BJgPyvf98tP6zCVs1TeK/
[07:49:14] rakm: hmm maybe, `x = Person.new until x.get` will work...
[07:50:33] rakm: i have to assign x the first time manually to do that. is there an equivalent oneliner?
[07:51:05] rakm: this works: `x = Person.new; x = Person.new until x.get`
[09:55:42] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[17:14:56] rakm: has joined #ruby
[17:26:50] rakm: Remote host closed the connection
[17:27:25] rakm: has joined #ruby
[18:01:12] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[18:08:37] rakm: has joined #ruby
[22:07:44] rakm: is it possible to call retry in a method and pass different arguments to it?
[22:12:32] rakm: a private method
[22:17:38] rakm: havenwood something like this: https://paste.pound-python.org/show/WEOIno7vnL008Qy0ASWP/
[22:17:52] rakm: was wondering if instead of recalling the method, i could use retry to any advantage
[22:18:37] rakm: sry, indentation on line 9 is messed up
[22:19:41] rakm: not sure if this is recursive...it's a protection against an invalid argument
[22:20:20] rakm: but yeah, I guess looking for better patterns in general
[22:21:33] rakm: sure, we can call it that. i don't know the formal definition of recursion
[22:22:03] rakm: ok, then this is recursion
[22:22:40] rakm: basically, i get person ids from a different source, but the update could fail (in some external code) if the person doesn't meet some conditions
[22:22:46] rakm: i want to assign the thing to someone else in that case
[22:23:14] rakm: getting a random person is expensive, which is why i memoize it and have a refresh option
[22:23:34] rakm: my code will only run twice though
[22:24:06] rakm: i'd like to configure it to run multiple times with an variable that only exists in that method's scope. it looked like retry would be able to do it
[22:24:20] rakm: with an instance-like variable
[22:25:13] rakm: i don't want to keep a count in an @ivar, since that @ivar will not be relevant outside this method
[22:25:31] rakm: i guess i can keep a counter (for number of retries) and pass it in as an argument..
[22:28:15] rakm: i guess this works.. https://paste.pound-python.org/show/wLYSPsFkG5XA2B31TFnc/
[22:28:28] rakm: seems complicated though
[22:53:44] rakm: havenwood thanks, i think that works for me

2017-09-12

[22:08:52] rakm: has joined #RubyOnRails
[23:14:06] rakm: has left #RubyOnRails: ("Textual IRC Client: www.textualapp.com")

2017-09-10

[17:26:49] rakm: has joined #RubyOnRails
[18:19:49] rakm: Remote host closed the connection

2017-09-09

[01:27:27] rakm: Ping timeout: 248 seconds
[05:15:46] rakm: has joined #RubyOnRails
[05:16:04] rakm: Client Quit
[05:16:36] rakm: has joined #RubyOnRails
[05:21:32] rakm: Ping timeout: 260 seconds
[06:17:11] rakm: has joined #RubyOnRails
[10:24:31] rakm: Ping timeout: 248 seconds
[11:22:05] rakm: has joined #RubyOnRails
[20:47:47] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…

2017-09-08

[00:08:40] rakm: has joined #RubyOnRails
[00:27:42] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[01:17:35] rakm: has joined #RubyOnRails
[01:57:59] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[17:34:56] rakm: has joined #RubyOnRails
[19:57:57] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[20:05:09] rakm: has joined #RubyOnRails
[21:14:18] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[22:36:46] rakm: has joined #RubyOnRails

2017-09-07

[02:58:41] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[03:24:56] rakm: has joined #RubyOnRails
[04:30:33] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[17:06:02] rakm: has joined #RubyOnRails
[18:04:17] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[18:11:22] rakm: has joined #RubyOnRails
[18:33:30] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[18:45:01] rakm: has joined #RubyOnRails
[19:30:26] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[19:34:40] rakm: has joined #RubyOnRails
[21:42:31] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[22:09:31] rakm: has joined #RubyOnRails
[23:45:33] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…

2017-09-06

[15:08:34] rakm: has joined #RubyOnRails
[16:34:26] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[16:41:32] rakm: has joined #RubyOnRails
[16:55:26] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[16:57:57] rakm: has joined #RubyOnRails
[17:26:46] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[17:33:43] rakm: has joined #RubyOnRails
[19:50:16] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[20:46:02] rakm: has joined #RubyOnRails

2017-09-05

[16:47:42] rakm: has joined #RubyOnRails
[17:35:43] rakm: does params.require(:test).permit(:metadata) rquire that metadata is the right type for the db column? strong params is ignoring "metadata" key in params when sent as key/val pairs, but seeing it when it's sent as stringified
[17:37:07] rakm: ah never min, i need to permit the scalar value
[17:52:00] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[18:32:14] rakm: has joined #RubyOnRails
[22:43:59] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[22:44:34] rakm: has joined #RubyOnRails
[22:49:37] rakm: Ping timeout: 248 seconds

2017-08-30

[00:38:48] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[07:34:46] rakm: has joined #RubyOnRails
[09:34:40] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…

2017-08-29

[00:14:05] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[00:15:26] rakm: has joined #RubyOnRails
[00:46:26] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[00:54:45] rakm: has joined #RubyOnRails
[01:21:12] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[07:45:34] rakm: has joined #RubyOnRails
[09:31:16] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[13:42:03] rakm: has joined #RubyOnRails
[13:43:52] rakm: Client Quit
[16:40:29] rakm: has joined #RubyOnRails
[20:36:02] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[22:00:32] rakm: has joined #RubyOnRails

2017-08-28

[16:56:50] rakm: has joined #RubyOnRails
[19:19:02] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[19:54:19] rakm: has joined #RubyOnRails
[21:19:23] rakm: good morning

2017-08-27

[00:04:22] rakm: has joined #RubyOnRails
[00:27:57] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[21:41:04] rakm: has joined #RubyOnRails
[21:53:50] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…

2017-08-26

[00:11:29] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…

2017-08-25

[01:02:30] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[16:26:47] rakm: has joined #RubyOnRails
[17:41:20] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[17:47:05] rakm: has joined #RubyOnRails
[18:56:11] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[20:40:06] rakm: has joined #RubyOnRails
[22:00:07] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[22:43:23] rakm: has joined #RubyOnRails
[23:10:33] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[23:11:11] rakm: has joined #RubyOnRails

2017-08-24

[15:56:38] rakm: has joined #RubyOnRails
[19:20:38] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[19:44:42] rakm: has joined #RubyOnRails
[23:32:59] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[23:40:18] rakm: has joined #RubyOnRails

2017-08-17

[00:01:21] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…

2017-08-16

[21:07:27] rakm: has joined #RubyOnRails
[23:25:24] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[23:31:33] rakm: has joined #RubyOnRails

2017-08-14

[06:33:46] rakm: has joined #RubyOnRails
[08:58:05] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[17:31:14] rakm: has joined #RubyOnRails
[17:46:46] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[17:55:26] rakm: has joined #RubyOnRails
[18:00:01] rakm: Ping timeout: 248 seconds
[19:25:04] rakm: has joined #RubyOnRails
[20:05:10] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[22:22:55] rakm: has joined #RubyOnRails
[22:48:43] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[22:50:05] rakm: has joined #RubyOnRails
[23:15:00] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[23:26:36] rakm: has joined #RubyOnRails
[23:56:34] rakm: Remote host closed the connection

2017-08-13

[21:30:06] rakm: has joined #RubyOnRails
[22:30:31] rakm: Ping timeout: 240 seconds

2017-08-12

[00:30:59] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[00:32:04] rakm: has joined #RubyOnRails
[00:32:17] rakm: Client Quit
[00:34:07] rakm: has joined #RubyOnRails
[00:38:35] rakm: Ping timeout: 240 seconds
[00:41:17] rakm: has joined #RubyOnRails
[02:12:50] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…

2017-08-11

[01:41:18] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[16:06:32] rakm: has joined #RubyOnRails
[17:02:43] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[17:09:54] rakm: has joined #RubyOnRails
[19:04:38] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[19:35:53] rakm: has joined #RubyOnRails

2017-08-10

[00:45:16] rakm: has joined #RubyOnRails
[01:06:18] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[16:38:20] rakm: has joined #RubyOnRails
[17:07:35] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[17:11:48] rakm: has joined #RubyOnRails
[18:00:45] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[18:03:53] rakm: has joined #RubyOnRails
[19:05:32] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[20:10:41] rakm: has joined #RubyOnRails

2017-08-09

[01:19:46] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[01:27:17] rakm: has joined #RubyOnRails
[01:45:59] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[17:15:52] rakm: has joined #RubyOnRails
[18:54:53] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[20:11:49] rakm: has joined #RubyOnRails
[23:27:40] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…

2017-08-08

[02:29:53] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[03:07:28] rakm: has joined #RubyOnRails
[04:27:52] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[16:23:49] rakm: has joined #RubyOnRails
[19:24:59] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[20:24:57] rakm: has joined #RubyOnRails
[21:05:08] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[22:13:19] rakm: has joined #RubyOnRails
[23:15:42] rakm: Quit: Textual IRC Client: www.textualapp.com
[23:16:04] rakm: has joined #RubyOnRails

2017-08-07

[16:29:56] rakm: has joined #RubyOnRails
[19:43:30] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[20:27:38] rakm: has joined #RubyOnRails
[20:37:45] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[20:39:41] rakm: has joined #RubyOnRails

2017-08-06

[18:04:00] rakm: has joined #RubyOnRails
[18:24:29] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[22:32:39] rakm: has joined #RubyOnRails
[23:06:31] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[23:33:41] rakm: has joined #RubyOnRails
[23:56:02] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…

2017-08-05

[00:34:23] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[01:13:07] rakm: has joined #RubyOnRails
[02:04:31] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…
[18:23:51] rakm: has joined #RubyOnRails
[18:37:08] rakm: Quit: My MacBook Pro has gone to sleep. ZZZzzz…

2017-08-04

[19:58:35] rakm: has joined #RubyOnRails