Cache_Money

Activity Graph

Page 1 of 13 | Next »

2019-05-23

[21:02:19] Cache_Money: has joined #ruby
[21:03:45] Cache_Money: I have an array of hashes. Inside each hash is a `values` key with an array of floats. I’d like to order the hash objects inside the outter array by the last item in the `values` key. Can anyone help me with a way to go about this?
[21:08:01] Cache_Money: jhass: Awesome, that worked perfectly! Thanks!!
[23:41:54] Cache_Money: Quit: Cache_Money

2019-05-22

[21:37:26] Cache_Money: has joined #RubyOnRails
[21:51:40] Cache_Money: Remote host closed the connection
[21:52:31] Cache_Money: has joined #RubyOnRails
[21:56:54] Cache_Money: has left #RubyOnRails: ()

2018-08-09

[00:03:38] Cache_Money: Quit: Cache_Money
[15:28:08] Cache_Money: has joined #RubyOnRails
[22:05:13] Cache_Money: Quit: Cache_Money

2018-08-08

[15:53:01] Cache_Money: has joined #RubyOnRails
[22:37:42] Cache_Money: Quit: Cache_Money
[23:37:28] Cache_Money: has joined #RubyOnRails

2018-08-04

[16:57:38] Cache_Money: has joined #RubyOnRails
[22:38:11] Cache_Money: Quit: Cache_Money

2018-08-03

[00:11:31] Cache_Money: Quit: Cache_Money

2018-08-02

[00:43:55] Cache_Money: Quit: Cache_Money
[16:45:03] Cache_Money: has joined #RubyOnRails

2018-08-01

[20:02:40] Cache_Money: has joined #RubyOnRails
[21:35:28] Cache_Money: I need to migrate a column from integer to biginteger. I should use an `up` and `down` method in case i need to rollback, correct?
[21:38:03] Cache_Money: fryguy: So, if I use the `change` method approach (instead of `up` and `down`) in this example it should be fine? https://tosbourn.com/rails-migrate-change-column-type/
[21:42:18] Cache_Money: fryguy: It will know to revert back to an :integer if all I supply is `change_column :monthly_video_plays, :seconds_viewed, :bigint`?
[21:42:51] Cache_Money: okay, i’ll use the `up` and `down` methods approach

2018-06-08

[00:23:17] Cache_Money: Quit: Cache_Money
[17:02:46] Cache_Money: has joined #RubyOnRails
[18:31:40] Cache_Money: Ping timeout: 260 seconds

2018-06-07

[18:52:06] Cache_Money: has joined #RubyOnRails

2018-05-31

[17:13:21] Cache_Money: has joined #RubyOnRails

2018-05-30

[21:13:39] Cache_Money: has joined #RubyOnRails
[23:53:40] Cache_Money: Quit: Cache_Money

2018-05-29

[21:51:34] Cache_Money: has joined #RubyOnRails
[22:56:52] Cache_Money: Quit: Cache_Money

2018-05-21

[16:46:52] Cache_Money: Quit: Cache_Money
[17:07:17] Cache_Money: has joined #RubyOnRails
[17:16:00] Cache_Money: Quit: Cache_Money

2018-05-19

[07:24:34] Cache_Money: Quit: Cache_Money
[18:23:23] Cache_Money: has joined #RubyOnRails
[18:28:03] Cache_Money: Ping timeout: 256 seconds
[18:38:31] Cache_Money: has joined #RubyOnRails
[18:43:09] Cache_Money: Ping timeout: 256 seconds
[18:47:58] Cache_Money: has joined #RubyOnRails

2018-05-18

[00:18:29] Cache_Money: has joined #RubyOnRails
[00:22:39] Cache_Money: I'm creating a view that when requested hits the Weather Underground API and then displays the data in a table. I've figured out successfully hit the API endpoint but I'm not sure how I should store the API Key.. I'd like to keep it out of source control but I'm not sure how to go about it
[02:05:42] Cache_Money: Quit: Cache_Money
[22:37:12] Cache_Money: has joined #RubyOnRails

2018-05-17

[18:44:51] Cache_Money: has joined #RubyOnRails
[22:07:55] Cache_Money: Quit: Cache_Money

2018-05-07

[17:50:01] Cache_Money: has joined #RubyOnRails
[18:14:37] Cache_Money: I'm having trouble summing and grouping an ActiveRecord query. Is it possible to get one record for each month? Here's how my query is currently constructed: https://gist.github.com/SuperFexy/7ea71b9cead1cbff88c9fd24ea49ce2b
[20:31:49] Cache_Money: Is it possible for me to construct my query in a way that will return me just one record for each month? Right now I'm getting two because I'm isolating two specific players: https://gist.github.com/SuperFexy/7ea71b9cead1cbff88c9fd24ea49ce2b
[23:00:58] Cache_Money: Quit: Cache_Money

2018-05-02

[00:06:21] Cache_Money: ^ Here are the models and my exising queries: https://gist.github.com/SuperFexy/83bf2b506b22842de890b287691e0784
[00:29:36] Cache_Money: Radar: The last query gives me the sum of all `brightcove_video_views` for both BrightcovePlayers for all months this year. I'd like to get those brightcove_video_views broken out by month
[00:33:40] Cache_Money: Radar: That worked! Before I was trying to do BrightcovePlayer.where("site_abbreviation = ?", 'se').where(brightcove_player_id: @brightcove_player_ids).joins(:monthly_brightcove_video_plays).where("year = ?", 2018).group(&:month).pluck("sum(brightcove_video_views)") but it wouldn't work. I saw in that link you provided that they just used .group('month') and now I'm good
[01:08:31] Cache_Money: Quit: Cache_Money
[16:21:41] Cache_Money: has joined #RubyOnRails
[16:26:45] Cache_Money: Ping timeout: 264 seconds
[16:57:57] Cache_Money: has joined #RubyOnRails
[17:32:07] Cache_Money: Quit: Cache_Money
[17:32:28] Cache_Money: has joined #RubyOnRails
[18:10:03] Cache_Money: has joined #RubyOnRails
[20:47:19] Cache_Money: Quit: Cache_Money
[20:58:57] Cache_Money: has joined #RubyOnRails
[21:23:55] Cache_Money: Quit: Cache_Money
[22:13:49] Cache_Money: has joined #RubyOnRails

2018-05-01

[00:52:39] Cache_Money: Quit: Cache_Money
[02:23:30] Cache_Money: has joined #RubyOnRails
[23:43:28] Cache_Money: has joined #RubyOnRails
[23:54:34] Cache_Money: I have a query that returns the sum of plays for this year, `BrightcovePlayer.where("site_abbreviation = ?", 'se').where(brightcove_player_id: @brightcove_player_ids).joins(:monthly_brightcove_video_plays).where("year = ?", 2018).pluck("sum(brightcove_video_views)")`. I can't figure out how to sum that column by month. Anyone have an idea?

2018-04-30

[19:30:32] Cache_Money: has joined #RubyOnRails
[19:33:34] Cache_Money: I have a column (string) with unique values and I'd like to select those records if that column value is within an array of strings. Is there an easy way to do this within my controller?
[19:35:53] Cache_Money: nzst: Sweet, I'll give that a try. Thanks!

2018-04-28

[05:15:08] Cache_Money: Quit: Cache_Money
[07:37:55] Cache_Money: has joined #RubyOnRails
[08:06:17] Cache_Money: I need some help with a SQL/ActiveRecord query. Here are my models: https://gist.github.com/SuperFexy/5eedb7fa124c63fdc5f11cd8ab8148d7
[08:06:57] Cache_Money: For a given site (site_abbreviation), I'd like to sum up all metrics by month (for 1 or more BrightcovePlayer instances)
[08:07:17] Cache_Money: Having trouble thinking about how to solve this within one of my controllers
[08:13:57] Cache_Money: qyliss: No, I'm looking at the sum of video views for all of the @brightcove_players
[08:14:11] Cache_Money: ^ grouped together by month
[08:17:46] Cache_Money: qyliss: I have two separate models. I'm looking for MonthlyBrightcoveVideoPlay.video_views for each of the @brightcove_players
[08:19:02] Cache_Money: qyliss: That looks right! Let me check it out in my rails console
[08:20:52] Cache_Money: qyliss: Sweet, that's exactly what I'm looking for! I forgot about the .join() method
[08:20:56] Cache_Money: I appreciate it!
[08:44:21] Cache_Money: Quit: Cache_Money
[23:09:27] Cache_Money: has joined #RubyOnRails
[23:22:40] Cache_Money: Quit: Cache_Money

2018-04-27

[08:06:09] Cache_Money: Ping timeout: 256 seconds
[09:16:27] Cache_Money: has joined #RubyOnRails

2018-04-26

[21:51:59] Cache_Money: has joined #RubyOnRails
[22:41:31] Cache_Money: I craeted a new model (using rails g model ...) and it created the model file but the migration got kinda messed up (I'm assuming) because I tried to rollback and it started to rollback one of my previous migrations. When I run $ rake db:migrate it's trying to create that model file again and it gets hung up. Any tips on how to fix this?
[23:18:31] Cache_Money: Radar: Here's the output from the console when I try to run the migration https://gist.github.com/SuperFexy/3601340c137b4202cebb10fe816e677e
[23:20:14] Cache_Money: Radar: Because I waited 10 minutes and nothing happened. Usually a migration will finish in seconds
[23:21:16] Cache_Money: Radar: I added the migration here: https://gist.github.com/SuperFexy/3601340c137b4202cebb10fe816e677e
[23:22:19] Cache_Money: I had another terminal tab open with iPython open that was connected to the same database. I closed the connection and that tab and tried running the migration again but no luck
[23:24:06] Cache_Money: Radar: I added the end of that log file and included the most recent successful migration https://gist.github.com/SuperFexy/3601340c137b4202cebb10fe816e677e
[23:34:29] Cache_Money: Radar: I tried to stop my rails server and restart it and I'm getting this: "A server is already running.". Do you think that has something to do with it?
[23:40:40] Cache_Money: Radar: I'm not sure what was happening, so I closed my terminal and opened a new instance. I was able to successfully start a new rails server and then reverted to a previous commit and the new migration worked. ¯\_(ツ)_/¯

2018-04-09

[18:39:29] Cache_Money: has joined #RubyOnRails
[19:21:32] Cache_Money: Quit: Cache_Money

2018-03-28

[01:13:15] Cache_Money: Quit: Cache_Money
[01:41:30] Cache_Money: has joined #RubyOnRails
[01:55:44] Cache_Money: Quit: Cache_Money
[15:16:14] Cache_Money: has joined #RubyOnRails
[15:28:27] Cache_Money: Quit: Cache_Money
[15:33:19] Cache_Money: has joined #RubyOnRails

2018-03-27

[17:17:40] Cache_Money: has joined #RubyOnRails
[20:49:29] Cache_Money: Quit: Cache_Money
[20:50:50] Cache_Money: has joined #RubyOnRails

2018-03-26

[19:34:09] Cache_Money: has joined #RubyOnRails
[22:21:11] Cache_Money: Quit: Cache_Money

2018-03-19

[21:57:24] Cache_Money: has joined #RubyOnRails
[23:41:18] Cache_Money: Quit: Cache_Money

2018-03-11

[18:44:24] Cache_Money: has joined #RubyOnRails

2018-03-10

[19:44:53] Cache_Money: Quit: Cache_Money

2018-03-09

[02:02:06] Cache_Money: Quit: Cache_Money
[17:08:15] Cache_Money: has joined #RubyOnRails
[21:54:33] Cache_Money: Ping timeout: 268 seconds
[21:57:47] Cache_Money: has joined #RubyOnRails
[22:11:05] Cache_Money: Ping timeout: 240 seconds
[22:33:28] Cache_Money: has joined #RubyOnRails
[23:08:39] Cache_Money: Ping timeout: 256 seconds
[23:13:34] Cache_Money: has joined #RubyOnRails

2018-03-08

[22:34:32] Cache_Money: has joined #RubyOnRails

2018-03-07

[01:39:23] Cache_Money: Quit: Cache_Money
[18:08:22] Cache_Money: has joined #RubyOnRails
[18:31:22] Cache_Money: Quit: Cache_Money

2018-03-06

[01:29:17] Cache_Money: has joined #RubyOnRails
[02:30:14] Cache_Money: Quit: Cache_Money
[03:44:54] Cache_Money: has joined #RubyOnRails
[04:49:54] Cache_Money: Quit: Cache_Money
[05:03:24] Cache_Money: has joined #RubyOnRails
[18:02:52] Cache_Money: has joined #RubyOnRails

2018-03-05

[18:55:58] Cache_Money: has joined #RubyOnRails
[23:23:10] Cache_Money: Quit: Cache_Money

2018-02-27

[01:48:33] Cache_Money: Quit: Cache_Money

2018-02-26

[17:39:21] Cache_Money: Quit: Cache_Money
[17:59:33] Cache_Money: has joined #RubyOnRails

2018-02-23

[02:17:48] Cache_Money: Quit: Cache_Money
[17:49:21] Cache_Money: has joined #RubyOnRails
[19:34:57] Cache_Money: Quit: Cache_Money
[20:07:26] Cache_Money: has joined #RubyOnRails
[21:09:55] Cache_Money: Quit: Cache_Money
[21:20:04] Cache_Money: has joined #RubyOnRails
[21:54:52] Cache_Money: Quit: Cache_Money
[22:16:43] Cache_Money: has joined #RubyOnRails

2018-02-22

[02:09:14] Cache_Money: Quit: Cache_Money
[17:30:21] Cache_Money: has joined #RubyOnRails
[18:49:29] Cache_Money: Quit: Cache_Money
[19:16:58] Cache_Money: has joined #RubyOnRails
[19:47:36] Cache_Money: Quit: Cache_Money
[19:48:33] Cache_Money: has joined #RubyOnRails

2018-02-21

[00:15:35] Cache_Money: has left #RubyOnRails: ()
[19:30:36] Cache_Money: has joined #RubyOnRails

2018-02-20

[04:15:18] Cache_Money: has joined #RubyOnRails
[07:21:36] Cache_Money: Quit: Cache_Money
[16:45:14] Cache_Money: has joined #RubyOnRails
[17:00:13] Cache_Money: has joined #RubyOnRails
[17:01:58] Cache_Money: has joined #RubyOnRails
[17:52:45] Cache_Money: has joined #RubyOnRails

2018-02-19

[03:37:44] Cache_Money: has joined #RubyOnRails
[03:42:42] Cache_Money: Ping timeout: 268 seconds
[03:44:00] Cache_Money: has joined #RubyOnRails
[03:48:47] Cache_Money: Ping timeout: 256 seconds
[04:28:30] Cache_Money: has joined #RubyOnRails
[05:14:59] Cache_Money: Ping timeout: 260 seconds
[05:19:45] Cache_Money: has joined #RubyOnRails
[10:07:25] Cache_Money: Quit: Cache_Money

2018-02-18

[21:24:20] Cache_Money: has joined #RubyOnRails
[21:56:09] Cache_Money: Quit: Cache_Money

2018-02-17

[08:21:35] Cache_Money: Ping timeout: 240 seconds
[08:22:57] Cache_Money: has joined #RubyOnRails

2018-02-09

[01:42:21] Cache_Money: Quit: Cache_Money
[03:04:58] Cache_Money: has joined #RubyOnRails
[04:33:29] Cache_Money: Quit: Cache_Money
[04:51:14] Cache_Money: has joined #RubyOnRails
[06:10:35] Cache_Money: Quit: Cache_Money
[18:16:32] Cache_Money: has joined #RubyOnRails

2018-02-08

[01:43:58] Cache_Money: Quit: Cache_Money
[03:38:50] Cache_Money: has joined #RubyOnRails
[17:37:04] Cache_Money: Quit: Cache_Money
[18:04:31] Cache_Money: has joined #RubyOnRails

2018-02-07

[01:21:39] Cache_Money: Quit: Cache_Money
[04:59:51] Cache_Money: has joined #RubyOnRails
[06:42:21] Cache_Money: Quit: Cache_Money
[18:00:19] Cache_Money: has joined #RubyOnRails

2018-02-06

[02:01:20] Cache_Money: Quit: Cache_Money
[05:21:32] Cache_Money: has joined #RubyOnRails
[07:41:30] Cache_Money: Quit: Cache_Money
[19:28:54] Cache_Money: has joined #RubyOnRails

2018-02-05

[18:22:49] Cache_Money: has joined #RubyOnRails

2018-02-02

[01:50:57] Cache_Money: Quit: Cache_Money

2018-01-14

[01:29:06] Cache_Money: has joined #RubyOnRails
[02:28:46] Cache_Money: Quit: Cache_Money
[02:33:12] Cache_Money: has joined #RubyOnRails
[02:37:56] Cache_Money: Ping timeout: 276 seconds
[06:40:41] Cache_Money: has joined #RubyOnRails
[06:45:20] Cache_Money: Ping timeout: 248 seconds
[06:56:04] Cache_Money: has joined #RubyOnRails
[07:00:24] Cache_Money: Ping timeout: 256 seconds
[07:10:45] Cache_Money: has joined #RubyOnRails
[07:15:27] Cache_Money: Ping timeout: 256 seconds
[07:25:59] Cache_Money: has joined #RubyOnRails
[07:30:39] Cache_Money: Ping timeout: 248 seconds
[08:10:37] Cache_Money: has joined #RubyOnRails

2018-01-13

[04:12:25] Cache_Money: has joined #RubyOnRails
[04:17:38] Cache_Money: Ping timeout: 276 seconds
[04:26:44] Cache_Money: has joined #RubyOnRails
[04:28:04] Cache_Money: has joined #RubyOnRails
[04:32:55] Cache_Money: Ping timeout: 256 seconds
[05:00:18] Cache_Money: has joined #RubyOnRails
[05:04:39] Cache_Money: Ping timeout: 256 seconds
[14:12:20] Cache_Money: has joined #RubyOnRails
[14:17:35] Cache_Money: Ping timeout: 276 seconds

2018-01-12

[04:02:03] Cache_Money: Quit: Cache_Money
[21:50:50] Cache_Money: has joined #RubyOnRails
[21:55:41] Cache_Money: Ping timeout: 256 seconds
[22:05:37] Cache_Money: has joined #RubyOnRails
[22:10:23] Cache_Money: Ping timeout: 276 seconds
[22:20:41] Cache_Money: has joined #RubyOnRails
[22:25:24] Cache_Money: Ping timeout: 256 seconds
[22:35:37] Cache_Money: has joined #RubyOnRails
[22:39:57] Cache_Money: Ping timeout: 240 seconds
[22:50:49] Cache_Money: has joined #RubyOnRails
[22:55:20] Cache_Money: Ping timeout: 260 seconds
[23:32:19] Cache_Money: has joined #RubyOnRails

2018-01-11

[21:05:53] Cache_Money: Quit: Cache_Money
[21:47:05] Cache_Money: has joined #RubyOnRails
[21:51:37] Cache_Money: Ping timeout: 256 seconds
[21:53:13] Cache_Money: has joined #RubyOnRails
[21:57:27] Cache_Money: Ping timeout: 240 seconds
[22:02:18] Cache_Money: has joined #RubyOnRails
[22:06:57] Cache_Money: Ping timeout: 264 seconds
[22:31:52] Cache_Money: has joined #RubyOnRails
[23:10:45] Cache_Money: Quit: Cache_Money
[23:29:07] Cache_Money: has joined #RubyOnRails