crankharder

Activity Graph

Page 1 of 10 | Next »

2018-11-14

[18:40:53] crankharder: Ping timeout: 244 seconds

2018-11-11

[22:39:27] crankharder: Ping timeout: 240 seconds
[22:46:54] crankharder: has joined #ruby
[22:46:54] crankharder: has joined #RubyOnRails

2018-11-09

[15:58:12] crankharder: syndikate: not sure what 'javascript fetch' is - but you probably shouldn't be redirecting async endpoints. Those endpoints need to return something that your javascript callback can handle. Then you have the JS callback update the browser's location with something like window.location.href = '/some/new/path';
[16:50:50] crankharder: syndikate: yea see that 'then(function(response){...' callback here? https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch -- you want to handle the response object there. Have rails return some json that you can work with in your controller: 'render json: {path: root_path}'
[16:52:35] crankharder: hnanon: look at the tables that rails has created - what are they doing?
[16:55:10] crankharder: I imagine it's probably best to keep their table the way they recommended
[17:08:04] crankharder: samort7: I would iterate over your list of books and create a form using form_for(@book, url: path_to_favorite_update_path) and f.hidden_field(:book_id) -- in that controller action you could do something like... BooksUser.find_or_initialize_by(user_id: current_user.id, book_id: params[:book_id]).update_attributes!(favorite: true) - somethin like that
[22:30:16] crankharder: merzu1: group explicitly adds GROUP BY to your sql. read up on some active record: https://guides.rubyonrails.org/active_record_basics.html
[22:31:07] crankharder: aarkerio: for an API or for a normal form reseponse?
[22:31:50] crankharder: you want your users to just get an error page?

2018-11-05

[21:54:28] crankharder: I want to include an association with a scope on that relationship in a query. So, say: Foo has_many :bars, and Bar has a scope :baz. I want to Foo.includes(Bar.baz) or some such so that I can Foo.includes(Bar.baz).each{|foo| foo.bars.baz} and it won't n+1. I know I can define another association on Foo that uses the scope to accomplish this. Is there a way to do this without defining that
[21:54:34] crankharder: intermediate assoc?
[22:01:03] crankharder: link_to foo_path(params)
[22:01:41] crankharder: (params are just params - no such thing as "GET params")

2018-10-31

2018-10-30

[15:07:50] crankharder: has joined #ruby
[15:07:50] crankharder: has joined #RubyOnRails
[16:15:48] crankharder: Ping timeout: 252 seconds
[16:35:26] crankharder: has joined #ruby
[16:35:26] crankharder: has joined #RubyOnRails
[18:28:44] crankharder: Quit: leaving
[18:31:23] crankharder: has joined #ruby
[18:31:23] crankharder: has joined #RubyOnRails

2018-10-25

[06:39:22] crankharder: has joined #ruby
[06:39:22] crankharder: has joined #RubyOnRails
[11:38:38] crankharder: Remote host closed the connection
[11:39:42] crankharder: has joined #ruby
[11:39:42] crankharder: has joined #RubyOnRails

2018-10-24

[18:48:52] crankharder: *.net *.split

2018-10-17

[11:52:41] crankharder: has joined #ruby
[11:52:41] crankharder: has joined #RubyOnRails
[11:57:13] crankharder: Ping timeout: 246 seconds
[12:07:39] crankharder: has joined #RubyOnRails
[12:07:40] crankharder: has joined #ruby
[12:26:39] crankharder: Ping timeout: 252 seconds
[13:08:02] crankharder: has joined #ruby
[13:08:02] crankharder: has joined #RubyOnRails
[14:34:11] crankharder: Quit: leaving
[14:34:24] crankharder: has joined #RubyOnRails
[14:34:25] crankharder: has joined #ruby

2018-09-11

[07:03:33] crankharder: Ping timeout: 252 seconds
[07:05:41] crankharder: has joined #ruby
[07:05:41] crankharder: has joined #RubyOnRails

2018-09-05

[04:31:22] crankharder: Ping timeout: 268 seconds
[04:31:35] crankharder: has joined #ruby
[04:31:35] crankharder: has joined #RubyOnRails

2018-08-10

[14:21:58] crankharder: how can i modify the webpacker environment for only one pack? i need to prepend jquery, but dont want that to apply to all my packs
[14:22:05] crankharder: e.g. somethin like this: environment.plugins.set('Provide', new webpack.ProvidePlugin({jQuery: 'jquery'})

2018-07-31

[23:18:00] crankharder: Remote host closed the connection

2018-07-29

[22:10:20] crankharder: has joined #ruby
[22:10:20] crankharder: has joined #RubyOnRails

2018-07-28

[01:23:37] crankharder: has joined #ruby
[01:23:37] crankharder: has joined #RubyOnRails
[01:28:40] crankharder: Ping timeout: 256 seconds
[01:33:42] crankharder: has joined #ruby
[01:33:42] crankharder: has joined #RubyOnRails
[01:38:27] crankharder: Ping timeout: 240 seconds

2018-07-27

[07:06:45] crankharder: has joined #ruby
[07:06:45] crankharder: has joined #RubyOnRails
[07:11:29] crankharder: Ping timeout: 248 seconds
[13:13:59] crankharder: has joined #ruby
[13:13:59] crankharder: has joined #RubyOnRails
[20:49:52] crankharder: Ping timeout: 256 seconds
[20:56:09] crankharder: has joined #RubyOnRails
[20:56:10] crankharder: has joined #ruby
[21:26:34] crankharder: Ping timeout: 256 seconds
[21:37:36] crankharder: has joined #ruby
[21:37:36] crankharder: has joined #RubyOnRails
[22:12:05] crankharder: Ping timeout: 240 seconds

2018-07-26

[22:52:47] crankharder: Remote host closed the connection

2018-07-25

[01:18:06] crankharder: has joined #ruby
[01:18:06] crankharder: has joined #RubyOnRails
[01:48:52] crankharder: Quit: leaving
[01:49:16] crankharder: has joined #ruby
[01:49:16] crankharder: has joined #RubyOnRails

2018-07-24

[15:16:57] crankharder: Ping timeout: 240 seconds
[15:17:22] crankharder: has joined #ruby
[15:17:22] crankharder: has joined #RubyOnRails
[15:22:24] crankharder: Quit: leaving
[15:22:48] crankharder: has joined #ruby
[15:22:48] crankharder: has joined #RubyOnRails
[16:13:49] crankharder: Ping timeout: 260 seconds
[16:27:49] crankharder: has joined #ruby
[16:27:49] crankharder: has joined #RubyOnRails
[17:21:30] crankharder: Ping timeout: 256 seconds
[17:25:20] crankharder: has joined #ruby
[17:25:20] crankharder: has joined #RubyOnRails
[20:29:29] crankharder: Ping timeout: 244 seconds
[20:32:19] crankharder: has joined #ruby
[20:32:19] crankharder: has joined #RubyOnRails
[22:07:48] crankharder: Ping timeout: 268 seconds

2018-07-20

[00:07:00] crankharder: *.net *.split
[00:15:26] crankharder: has joined #RubyOnRails
[00:15:37] crankharder: has joined #ruby

2018-07-17

[06:20:12] crankharder: has joined #ruby
[06:20:12] crankharder: has joined #RubyOnRails
[06:24:39] crankharder: Ping timeout: 260 seconds
[13:02:49] crankharder: has joined #RubyOnRails
[13:02:50] crankharder: has joined #ruby
[13:28:33] crankharder: Quit: leaving
[13:28:59] crankharder: has joined #ruby
[13:28:59] crankharder: has joined #RubyOnRails
[13:30:56] crankharder: Thunderbird regularly triggers OSX alerts for emails that came in yesterday up to a week ago. I would think notifications should be reserved for *new* emails. Can that be configured somehow?
[13:57:34] crankharder: in my head, I'm wherever I need to be

2018-07-16

[13:04:24] crankharder: Disconnected by services
[15:55:23] crankharder: Ping timeout: 268 seconds
[16:17:53] crankharder: has joined #ruby
[16:17:53] crankharder: has joined #RubyOnRails
[17:40:07] crankharder: Ping timeout: 256 seconds
[17:44:36] crankharder: has joined #ruby
[17:44:36] crankharder: has joined #RubyOnRails
[20:24:20] crankharder: Ping timeout: 256 seconds
[20:53:50] crankharder: has joined #ruby
[20:53:50] crankharder: has joined #RubyOnRails
[21:59:13] crankharder: Ping timeout: 268 seconds

2018-07-14

[21:53:01] crankharder: has joined #ruby
[21:53:01] crankharder: has joined #RubyOnRails

2018-07-13

[16:27:42] crankharder: Ping timeout: 268 seconds

2018-07-10

[22:41:06] crankharder: Remote host closed the connection
[22:52:22] crankharder: has joined #ruby
[22:52:22] crankharder: has joined #RubyOnRails

2018-07-06

[07:24:57] crankharder: Ping timeout: 264 seconds
[07:26:52] crankharder: has joined #ruby
[07:26:52] crankharder: has joined #RubyOnRails

2018-07-03

[06:47:01] crankharder: Ping timeout: 268 seconds
[06:48:20] crankharder: has joined #ruby
[06:48:20] crankharder: has joined #RubyOnRails

2018-07-02

[13:09:33] crankharder: Remote host closed the connection
[18:29:21] crankharder: has joined #ruby
[18:29:21] crankharder: has joined #RubyOnRails

2018-06-29

[12:07:19] crankharder: Remote host closed the connection
[12:17:27] crankharder: has joined #ruby
[12:17:27] crankharder: has joined #RubyOnRails

2018-06-27

[08:01:27] crankharder: Ping timeout: 245 seconds
[08:03:19] crankharder: has joined #ruby
[08:03:19] crankharder: has joined #RubyOnRails
[22:46:06] crankharder: Remote host closed the connection
[23:06:53] crankharder: has joined #ruby
[23:06:53] crankharder: has joined #RubyOnRails

2018-06-26

[09:56:53] crankharder: Ping timeout: 256 seconds
[13:04:37] crankharder: has joined #ruby
[13:04:37] crankharder: has joined #RubyOnRails
[18:36:45] crankharder: Remote host closed the connection
[18:41:50] crankharder: has joined #ruby
[18:41:50] crankharder: has joined #RubyOnRails
[20:39:38] crankharder: Remote host closed the connection
[21:17:49] crankharder: has joined #ruby
[21:17:49] crankharder: has joined #RubyOnRails

2018-06-25

[14:14:05] crankharder: Ping timeout: 240 seconds
[16:29:45] crankharder: has joined #ruby
[16:29:45] crankharder: has joined #RubyOnRails
[23:00:09] crankharder: Quit: leaving
[23:01:01] crankharder: has joined #ruby
[23:01:01] crankharder: has joined #RubyOnRails
[23:03:06] crankharder: has joined #ruby
[23:03:06] crankharder: has joined #RubyOnRails

2018-06-19

[03:39:18] crankharder: Remote host closed the connection
[03:42:40] crankharder: has joined #ruby
[03:42:40] crankharder: has joined #RubyOnRails
[13:47:13] crankharder: RougeR: same way you style large text boxes in any other framework

2018-06-13

[08:48:22] crankharder: Ping timeout: 264 seconds
[08:49:17] crankharder: has joined #ruby
[08:49:17] crankharder: has joined #RubyOnRails

2018-06-07

[00:11:36] crankharder: has joined #ruby
[00:11:36] crankharder: has joined #RubyOnRails

2018-06-02

[14:53:27] crankharder: Remote host closed the connection

2018-05-29

[02:44:51] crankharder: *.net *.split
[02:45:19] crankharder: has joined #ruby
[02:45:20] crankharder: has joined #RubyOnRails
[02:46:59] crankharder: *.net *.split
[02:47:44] crankharder: has joined #RubyOnRails
[02:47:53] crankharder: has joined #ruby

2018-05-26

[09:47:45] crankharder: Ping timeout: 264 seconds
[09:54:53] crankharder: has joined #ruby
[09:54:53] crankharder: has joined #RubyOnRails

2018-05-16

[00:17:12] crankharder: has joined #ruby
[00:17:12] crankharder: has joined #RubyOnRails
[05:25:02] crankharder: Ping timeout: 276 seconds
[07:59:13] crankharder: has joined #ruby
[07:59:13] crankharder: has joined #RubyOnRails
[08:30:05] crankharder: Ping timeout: 265 seconds
[08:43:02] crankharder: has joined #ruby
[08:43:02] crankharder: has joined #RubyOnRails

2018-05-12

[17:15:38] crankharder: Ping timeout: 250 seconds

2018-05-10

[00:24:05] crankharder: Ping timeout: 240 seconds
[00:37:55] crankharder: has joined #RubyOnRails
[00:37:56] crankharder: has joined #ruby
[00:51:10] crankharder: Ping timeout: 250 seconds
[00:58:49] crankharder: has joined #ruby
[00:58:49] crankharder: has joined #RubyOnRails

2018-04-25

[12:26:00] crankharder: *.net *.split
[12:27:18] crankharder: has joined #ruby
[12:27:33] crankharder: has joined #RubyOnRails
[15:01:30] crankharder: *.net *.split
[15:03:05] crankharder: has joined #RubyOnRails
[15:03:19] crankharder: has joined #ruby

2018-04-14

[19:35:45] crankharder: Ping timeout: 264 seconds
[19:48:41] crankharder: has joined #ruby
[19:48:41] crankharder: has joined #RubyOnRails

2018-04-04

[06:55:33] crankharder: has joined #RubyOnRails
[06:55:34] crankharder: has joined #ruby

2018-03-26

[00:03:43] crankharder: how can I debug a ruby process (rails console - idle. not doing anything.) that pegs my CPU? i've done this in the past by systematically removing huge chunks of the app, and gems/initializers/etc, but I would think there might be a better way to introspect what is happening in the process that is causing all this CPU usage.

2018-03-24

[08:57:36] crankharder: Ping timeout: 256 seconds
[08:59:17] crankharder: has joined #ruby

2018-03-22

[00:00:44] crankharder: Ping timeout: 260 seconds
[00:15:30] crankharder: has joined #ruby
[00:15:30] crankharder: has joined #RubyOnRails
[00:20:45] crankharder: Ping timeout: 264 seconds
[00:25:01] crankharder: has joined #ruby
[00:25:01] crankharder: has joined #RubyOnRails
[00:29:53] crankharder: Ping timeout: 248 seconds
[00:40:29] crankharder: has joined #ruby
[00:40:29] crankharder: has joined #RubyOnRails
[00:44:53] crankharder: Ping timeout: 240 seconds
[02:16:43] crankharder: has joined #ruby
[02:16:43] crankharder: has joined #RubyOnRails
[02:26:46] crankharder: Disconnected by services
[07:26:21] crankharder: *.net *.split
[07:26:50] crankharder: has joined #ruby

2018-03-21

[13:09:27] crankharder: Ping timeout: 240 seconds
[17:11:36] crankharder: has joined #ruby
[17:11:36] crankharder: has joined #RubyOnRails
[19:26:27] crankharder: Ping timeout: 240 seconds
[19:49:58] crankharder: has joined #RubyOnRails
[19:49:59] crankharder: has joined #ruby
[22:27:45] crankharder: Ping timeout: 248 seconds
[22:53:30] crankharder: has joined #ruby
[22:53:30] crankharder: has joined #RubyOnRails
[22:58:05] crankharder: Ping timeout: 240 seconds
[23:06:19] crankharder: has joined #ruby
[23:06:19] crankharder: has joined #RubyOnRails
[23:11:09] crankharder: Ping timeout: 260 seconds
[23:31:53] crankharder: has joined #ruby
[23:31:53] crankharder: has joined #RubyOnRails
[23:36:49] crankharder: Ping timeout: 260 seconds
[23:48:35] crankharder: has joined #ruby
[23:48:35] crankharder: has joined #RubyOnRails
[23:53:45] crankharder: Ping timeout: 264 seconds
[23:55:38] crankharder: has joined #ruby
[23:55:38] crankharder: has joined #RubyOnRails

2018-03-19

[15:43:45] crankharder: has joined #ruby
[15:43:45] crankharder: has joined #RubyOnRails

2018-02-27

[22:28:30] crankharder: has joined #ruby
[22:28:30] crankharder: has joined #RubyOnRails
[23:37:12] crankharder: Quit: Lost terminal