« Back to channel list

#RubyOnRails - 23 April 2017

« Back 1 day Forward 1 day »
[00:05:31] Technodrome: has joined #RubyOnRails
[00:19:50] mjora7: has joined #RubyOnRails
[00:24:23] rodrigovlds: has joined #RubyOnRails
[00:29:35] cam27: has joined #RubyOnRails
[00:29:56] cam27: has left #RubyOnRails: ()
[00:32:50] Technodrome: has joined #RubyOnRails
[00:32:52] bronson: has joined #RubyOnRails
[00:46:06] cecilgol: has joined #RubyOnRails
[00:51:02] Trynemjoel: has joined #RubyOnRails
[00:52:30] Jameser: has joined #RubyOnRails
[01:01:32] beingjohnm: I have some reports that are taking way too long to load. Individually four or five seconds and the combined report is taking more than 30 which is causing a timeout on Heroku. I'm looking for ways to speed them up and the first thing I noticed is that an associated model is loaded over an over. (e.g. each user has one profile and the profile contains a lot of the business logic that ties everything together. But I see "select profile wh
[01:02:29] havenwood: beingjohnm: Your message got cut short.
[01:02:32] beingjohnm: If they were I gather I can use self.profile.method instead of user.profile.method to avoid loading the profile over and over
[01:03:51] havenwood: beingjohnm: Are you using #includes with the profile?
[01:04:04] Trynemjoel: has joined #RubyOnRails
[01:04:14] havenwood: beingjohnm: Was there more to your first message after?: But I see "select profile wh...
[01:04:44] beingjohnm: havenwood: no
[01:05:00] havenwood: beingjohnm: Make a gist with the relevant code and we can give better suggestions.
[01:05:24] beingjohnm: "select profile where user = x" over and over. But those queries show as CACHE (0.0ms). So I take it those are not actually contributing to the loading time
[01:07:00] beingjohnm: basically question is CACHE (0.0ms) mean there isn't a need to look at that as place to speed up
[01:08:21] beingjohnm: havenwood: I don't think I can make a gist of this particular model
[01:09:59] beingjohnm: I have a couple ideas of places to look at that I think will help but wanted to know if self.profile.method would yield any speed improvement over user.profile.method
[01:15:28] beingjohnm: havenwood: and it looks like includes could yield some gains as well
[01:26:18] DLSteve: has joined #RubyOnRails
[01:36:27] Technodrome: has joined #RubyOnRails
[01:36:37] pwnd_nsfw: has joined #RubyOnRails
[01:36:37] Trynemjoel: has joined #RubyOnRails
[01:39:21] beingjohnm: includs just shaved a second off that one report
[01:43:00] Trynemjoel: has joined #RubyOnRails
[01:43:55] gambl0re: has joined #RubyOnRails
[01:50:43] havenwood: beingjohnm: The Bullet gem is helpful for finding N+1 issues and counter cache optimizations in dev: https://github.com/flyerhzm/bullet
[01:51:21] bronson: has joined #RubyOnRails
[01:51:31] havenwood: beingjohnm: The Scout plugin on Heroku gives you interesting insights into queries.
[02:04:52] libastral: has joined #RubyOnRails
[02:11:40] romeoh_: has joined #RubyOnRails
[02:12:15] mjora7: has joined #RubyOnRails
[02:15:13] Jameser: has joined #RubyOnRails
[02:16:41] beingjohnm: havenwood: I'll take a look at those. Thanks for your help
[02:17:59] ResidentBiscuit: has joined #RubyOnRails
[03:12:18] hndk: has joined #RubyOnRails
[03:13:59] Technodrome: has joined #RubyOnRails
[03:24:37] Trynemjoel: has joined #RubyOnRails
[03:31:54] dps: has joined #RubyOnRails
[03:40:21] Technodrome: anyone here work in rails full time?
[03:49:45] irishfromua: has joined #RubyOnRails
[03:52:09] Trynemjoel: has joined #RubyOnRails
[03:57:42] Radar: Technodrome: Quite a lot of people here do.
[03:57:47] Radar: Technodrome: What is your real question?
[03:58:21] Technodrome: sure I know Radar , well just haven't had a job doing rails since a job I had in 2009, i feel like applying for a rails job is a waste of time
[03:58:41] Technodrome: so i'm stuck at a drupal company, trying to use rails on certain projects
[03:59:10] Technodrome: just not sure what to do that could help me get a job in rails
[04:00:16] Radar: Where are you looking?
[04:00:32] Radar: https://weworkremotely.com/jobs/search?term=rails
[04:00:36] Radar: There's a bunch there
[04:00:42] Radar: It's not like nobody is _hiring_
[04:00:42] baweaver: Either that or go to SF
[04:01:14] baweaver: SF is full of people
[04:01:15] Technodrome: that's not the issue Radar , so many people are applying, and its hard to stand out , like yeah I haven't used rails professionally since 2008
[04:01:41] Radar: Technodrome: So build some apps in a modern Rails stack and use that as a portfoilo?
[04:02:27] Technodrome: yes, I did this, a forum, and a url shortener , themed it, full design etc, the few employers didn't chomp it, one almost acted like i was trying to "trick" them
[04:02:45] Technodrome: This is much harder than you would think Radar
[04:03:03] Technodrome: 5-10 years ago, not at all, i had a rails job, and switched jobs whenever i wanted
[04:03:30] Technodrome: but you have literally just 40 people ready to hit an apply button because of all the hype around web dev, all those rails bootcamps etc, the market is getting worse
[04:03:51] Radar: bbl. baweaver's got this one I reckon.
[04:04:35] Technodrome: I'm not complaining i'm just saying, the competition is very stiff, more than it ever has been
[04:04:50] baweaver: If you have trouble beating out Bootcamp folks, that's not a great sign
[04:04:57] baweaver: considering there's a huge stigma against them
[04:05:10] Technodrome: they don't advertise themselves as that
[04:05:12] baweaver: Where are you applying anyways?
[04:05:19] Technodrome: they act like 23 year old rockstars
[04:06:02] Technodrome: i have applied to 7 rails positions, interviews, on site at a few, remote video for the others , i lost all of those, i almost got a new drupal job (oy vey)
[04:06:27] Technodrome: i worked for a drupal consulting firm for 5 years, so lots of experience there
[04:07:49] baweaver: Because places like Pivotal and Cerner are hiring pretty well anyone who can code.
[04:08:00] baweaver: Go to meetups, make friends
[04:08:05] Technodrome: 3 of them were consulting firms
[04:08:28] baweaver: If you want to ditch the curve you have to know people
[04:08:36] Technodrome: and then i found out, half of their programmers had eastern european names, so maybe hiring me in nyc was never their plan at all
[04:08:38] baweaver: and that means leg work and being social at meetups and other events
[04:08:59] baweaver: that's presumptuous at best and you know it.
[04:09:03] Technodrome: sure, i dont have an issue with that, i pretty much have a client facing role now, quite social
[04:09:18] Technodrome: it is baweaver , just a feeling i got
[04:09:35] Technodrome: another thing is, i dont have a github with any rails code, and thats everyones first question
[04:09:50] baweaver: venture a guess as to what you might want to do?
[04:10:05] Technodrome: well its almost like they expect everyone to be a gem maintainer
[04:10:39] baweaver: So basically you know these things are expected
[04:10:44] baweaver: and you haven't done any of them.
[04:11:01] Technodrome: which things? i mean, just start making gems for the hell of it ?
[04:11:08] baweaver: Not a great way to beat the curve if you're worried about that.
[04:11:18] baweaver: At least get a Github account and push your apps up there
[04:11:23] baweaver: that's low hanging fruit
[04:11:43] baweaver: Make sure they're tested and whatnot for bonus points
[04:11:46] Technodrome: I have one with a bunch of drupal stuff, but having all that in there, almost seems like it will hurt me , so yes, a completely new account is best
[04:12:01] baweaver: Insofar as the gems, they want people to be active in the community a bit
[04:12:11] baweaver: I don't think that'll be an issue
[04:12:31] baweaver: If you have Ruby stuff on there that just shows range and longevity
[04:12:47] Technodrome: so maybe i'll put it on there then
[04:13:11] baweaver: Work through ActiveJob and ActionCable, submit doc patches to them
[04:13:19] baweaver: because they have some really poor coverage
[04:13:30] baweaver: then bang, Rails contributor
[04:14:00] Technodrome: I should have just stuck with Ruby all this time, and not done so much Drupal
[04:14:01] baweaver: Trust me when I say though there are no shortages of Rails jobs, especially in SF
[04:14:34] baweaver: I decided to look for something new and I have 4 interviews already lined up within 2 days for Rails and Rails API jobs
[04:14:47] Technodrome: did you apply ? or network?
[04:15:13] Technodrome: yes network is different
[04:15:19] Technodrome: i could switch drupal companies like crazy
[04:15:24] Technodrome: i know people in 5 or 6 of them
[04:15:25] baweaver: Hence going to meetups.
[04:15:38] Technodrome: but "front dooring" is just extremely hard
[04:17:52] Technodrome: and many times the big issue is just the sheer number of applicants
[04:18:58] baweaver: Then do something about it
[04:19:16] baweaver: You know what they expect, you know that networks help out more in finding jobs
[04:19:23] baweaver: You already know what you need to do, so go do it
[04:19:42] Technodrome: you're so understanding :)
[04:20:45] baweaver: Moreover I don't see the point of all this. If you already know what you're lacking, why aren't you working on exactly that?
[04:21:34] baweaver: Instead you've spend a good 20m complaining about things you well know how to fix. Catharsis or not, you've got to get moving if you want anything to change there.
[04:22:23] mjora7: has joined #RubyOnRails
[04:36:16] Technodrome: the network part is hard and not an overnight thing baweaver
[04:40:33] Technodrome: but as you know, not worth complaining about baweaver
[04:52:20] Jameser: has joined #RubyOnRails
[05:18:29] harfangk: has joined #RubyOnRails
[05:25:34] Technodrome: has joined #RubyOnRails
[05:28:01] srinidhi: has joined #RubyOnRails
[05:30:32] cecilgol: has joined #RubyOnRails
[06:01:20] fschuindt: Is allowed to have two differents gems name one foo_bar and the other foo-bar?
[06:08:48] mjora7: has joined #RubyOnRails
[06:20:02] srinidhi: has joined #RubyOnRails
[06:32:41] Saukk: has joined #RubyOnRails
[06:45:43] ResidentBiscuit: has joined #RubyOnRails
[06:46:09] Technodrome: has joined #RubyOnRails
[06:57:22] v|sh: has joined #RubyOnRails
[07:04:58] Qchmqs: has joined #RubyOnRails
[07:05:36] srinidhi: has joined #RubyOnRails
[07:24:47] v|sh: has joined #RubyOnRails
[07:25:42] SteenJobs: has joined #RubyOnRails
[07:39:02] Technodrome: has joined #RubyOnRails
[07:51:18] shtirlic: has joined #RubyOnRails
[07:54:30] ProofTechnique: has joined #RubyOnRails
[07:56:15] mjora7: has joined #RubyOnRails
[07:58:07] G: has joined #RubyOnRails
[08:00:29] lxsameer: has joined #RubyOnRails
[08:24:34] conta: has joined #RubyOnRails
[08:30:26] armyriad: has joined #RubyOnRails
[08:34:52] blackmesa: has joined #RubyOnRails
[08:40:39] AzaToth: has joined #RubyOnRails
[09:02:14] rgr: has joined #RubyOnRails
[09:03:04] quazimodo: has joined #RubyOnRails
[09:07:15] defsdoor: has joined #RubyOnRails
[09:27:48] wethu: has joined #RubyOnRails
[09:29:07] srinidhi: has joined #RubyOnRails
[10:41:59] hndk: has joined #RubyOnRails
[10:53:58] netzfisch: has joined #RubyOnRails
[11:14:44] ikoma: has joined #RubyOnRails
[11:35:29] SteenJobs: has joined #RubyOnRails
[11:42:44] SteenJobs: has joined #RubyOnRails
[11:55:37] ahrs: has joined #RubyOnRails
[11:57:45] cam27: has joined #RubyOnRails
[12:04:55] uksio: has joined #RubyOnRails
[12:20:54] srinidhi: has joined #RubyOnRails
[12:21:05] ayonkhan: has joined #RubyOnRails
[12:26:33] pLaTo0n: has joined #RubyOnRails
[12:28:20] irishfromua: has joined #RubyOnRails
[12:30:03] ferr: has joined #RubyOnRails
[12:39:25] HoierM: has joined #RubyOnRails
[12:50:42] AntiSpamMeta: has joined #RubyOnRails
[12:59:45] cecilgol: has joined #RubyOnRails
[12:59:56] lxsameer: has joined #RubyOnRails
[13:07:42] mikecmpbll: has joined #RubyOnRails
[13:09:06] cam27: has joined #RubyOnRails
[13:39:54] Jameser: has joined #RubyOnRails
[13:45:48] quazimodo: has joined #RubyOnRails
[13:53:40] raz: has left #RubyOnRails: ("*fump*")
[14:00:25] SteenJobs: has joined #RubyOnRails
[14:03:06] Fernando-Basso: has joined #RubyOnRails
[14:03:10] cecilgol: has joined #RubyOnRails
[14:16:23] ravster: has joined #RubyOnRails
[14:29:03] srinidhi: has joined #RubyOnRails
[14:39:02] Blaze_Boy: has joined #RubyOnRails
[14:39:17] Blaze_Boy: has left #RubyOnRails: ()
[14:39:33] Blaze_Boy: has joined #RubyOnRails
[14:39:34] Fernando-Basso: has joined #RubyOnRails
[14:58:12] Blaze_Boy: has joined #RubyOnRails
[14:59:25] quazimodo: has joined #RubyOnRails
[14:59:56] Blaze_Boy: has joined #RubyOnRails
[15:01:46] SteenJobs: has joined #RubyOnRails
[15:07:10] fschuindt: has joined #RubyOnRails
[15:12:46] ayonkhan: has joined #RubyOnRails
[15:18:27] srinidhi: has joined #RubyOnRails
[15:41:24] [dmp]: has joined #RubyOnRails
[15:49:50] xco: has joined #RubyOnRails
[15:51:03] xco: hi. i’m reading this http://stackoverflow.com/questions/7200554/what-is-a-json-octet-and-why-are-two-required the 2nd guy who answered said he added `application/json` looks like that’s a solution to my problem but where do i add that `application/json`? any idea?
[16:02:13] Technodrome: has joined #RubyOnRails
[16:08:19] blackmesa: has joined #RubyOnRails
[16:11:46] SteenJobs: has joined #RubyOnRails
[16:12:43] akshat: has joined #RubyOnRails
[16:21:01] cecilgol: has joined #RubyOnRails
[16:43:51] SteenJobs: has joined #RubyOnRails
[17:11:06] handicraftsman: has joined #RubyOnRails
[17:14:00] Technodrome: has joined #RubyOnRails
[17:21:28] kristofferR: has joined #RubyOnRails
[17:40:39] cecilgol: has joined #RubyOnRails
[17:41:02] gambl0re: has joined #RubyOnRails
[17:56:49] gusrub: has joined #RubyOnRails
[18:10:13] cerulean: has joined #RubyOnRails
[18:10:15] cerulean: matz hates me
[18:10:18] cerulean: what do i do
[18:10:21] cerulean: i thougt this guy was nice???
[18:12:35] cerulean: has left #RubyOnRails: ()
[18:12:52] catbusters: has joined #RubyOnRails
[18:18:58] gusrub: has joined #RubyOnRails
[18:53:34] xco: has joined #RubyOnRails
[19:05:21] rodrigovlds: has joined #RubyOnRails
[19:09:55] ovaltine: is there a way to use the .joins(:something_polymorphic) syntax if I know the type I want to join on in this case
[19:11:39] ayonkhan_: has joined #RubyOnRails
[19:16:56] quirkycoders: has joined #RubyOnRails
[19:19:41] blackmesa: has joined #RubyOnRails
[19:21:41] mr-spoon: has joined #RubyOnRails
[19:36:21] SteenJobs: has joined #RubyOnRails
[19:36:52] patarr: has joined #RubyOnRails
[19:40:01] quirkycoders: has joined #RubyOnRails
[19:44:12] futilegames: has joined #RubyOnRails
[19:45:13] mr-spoon: has joined #RubyOnRails
[19:45:46] srinidhi: has joined #RubyOnRails
[19:46:14] patarr: has joined #RubyOnRails
[19:47:33] ayonkhan: has joined #RubyOnRails
[19:53:12] Technodrome: has joined #RubyOnRails
[19:53:22] futilegames: has joined #RubyOnRails
[20:00:38] ayonkhan: has joined #RubyOnRails
[20:00:45] futilegames: has left #RubyOnRails: ()
[20:11:36] sunrunner20: has joined #RubyOnRails
[20:14:08] gusrub: has joined #RubyOnRails
[20:14:22] quirkycoders: has joined #RubyOnRails
[20:20:17] srinidhi: has joined #RubyOnRails
[20:29:23] gusrub: has joined #RubyOnRails
[20:32:09] rgr_: has joined #RubyOnRails
[20:36:20] gusrub: has joined #RubyOnRails
[20:38:11] srinidhi: has joined #RubyOnRails
[20:39:47] sunrunner20: has joined #RubyOnRails
[20:49:27] srinidhi: has joined #RubyOnRails
[20:53:31] marr: has joined #RubyOnRails
[20:59:14] mjora7: has joined #RubyOnRails
[21:01:13] mostlybadfly: has joined #RubyOnRails
[21:16:00] sunrunner20: has joined #RubyOnRails
[21:18:39] jeffaustin81: has joined #RubyOnRails
[21:25:28] KSloth: has joined #RubyOnRails
[21:26:35] planigan: has joined #RubyOnRails
[21:27:05] gusrub: has joined #RubyOnRails
[21:32:38] amperry: has joined #RubyOnRails
[21:33:50] KSloth: Hey, I’m quite new to RoR and development. I was wondering if someone could help me with a hopefully simple problem.
[21:34:38] amperry: anyone point me in the direction of a good testing reference? Something other than guides.rubyonrails.org, preferably.
[21:34:49] amperry: KSloth: I'm slightly less new that you, what's the question?
[21:34:58] amperry: s/that/than/
[21:35:26] KSloth: I typed this out earlier, it’s a bit long.
[21:35:34] KSloth: I was wondering if someone could give me a hand with something I feel shoudl be fairly obvious. I’ve googled for an answer for a long time, but I feel like I’m too new to development and my termonology isn’t strong enough to find what I’m looking for… I’m working my way through the hartl tutorial, and I’ve completely messed up a section and I’m trying to wipe out my project so I can start fresh with it. I have a work
[21:35:35] KSloth: git, and through google I have found out that I can get back to my last commit with a reset, and I can clean my local files with a clean -f. The problem is that when I start the section of the tutorial again, one of the first steps is to generate a migration, then >rails db:migrate, which generates an error that there is a duplicate column. I think the database isn’t resetting so I’m just recreating the same columns again and ag
[21:35:36] KSloth: Is there a command to reset the database to my last commit like the git reset?
[21:36:16] KSloth: amperry: Thank you, I feel like it must be simple
[21:36:19] quirkycoders: has joined #RubyOnRails
[21:36:43] amperry: KSloth: I don't know exactly what you're trying to do, but take a look at this: http://jacopretorius.net/2014/02/all-rails-db-rake-tasks-and-what-they-do.html
[21:36:57] amperry: One of those probably does what you're thinking of.
[21:38:04] sunrunner20: has joined #RubyOnRails
[21:38:10] amperry: but now that I see what you're saying, if you're talking abou the data in the db and not the schema, I think that might not help. Someone else might know better.
[21:39:38] Technodrome: has joined #RubyOnRails
[21:40:38] KSloth: amperry: Thanks, for the link, that actually clears up some other questions I have. I am talking about the data unfortunately.
[21:41:05] KSloth: amperry: I’m also wondering if I were to delete all of my local files then download my git again if that would reset it..
[21:41:37] Axsuul: has joined #RubyOnRails
[21:58:04] andywww: has joined #RubyOnRails
[22:02:41] Vircung: has joined #RubyOnRails
[22:08:37] sunrunner20: has joined #RubyOnRails
[22:15:19] beauby: has joined #RubyOnRails
[22:16:52] gusrub: has joined #RubyOnRails
[22:24:28] djbkd: has joined #RubyOnRails
[22:31:12] gusrub: has joined #RubyOnRails
[22:48:05] Radar: GOOD MORNING
[23:01:25] m13io: has joined #RubyOnRails
[23:08:24] bronson: has joined #RubyOnRails
[23:15:32] patarr: has joined #RubyOnRails
[23:15:43] hndk: has joined #RubyOnRails
[23:32:03] mjora7: has joined #RubyOnRails
[23:36:23] Jameser: has joined #RubyOnRails
[23:40:14] ahrs: has joined #RubyOnRails
[23:51:17] mjora7: has joined #RubyOnRails
[23:56:46] hashrocket: has joined #RubyOnRails
[23:57:17] cam27: has joined #RubyOnRails
[23:58:18] uks: has joined #RubyOnRails