Page 1 of 5 | Next »
[15:56:27] mrgreenfur: I keep getting *** ActiveModel::RangeError Exception: 5682012932 is out of range for ActiveModel::Type::Integer with limit 4 bytes on an attribute that is text in model and in DB.
[15:54:49] mrgreenfur: Random redis question: AppSignal tells me during a new account signup flow, that i’m allocated 2.4mm ruby objects across 54,000 redis calls. This seems very bad and slow. Int he code, i cache a single rails model to redis. Anyone know where to look to find all these others?
[16:36:39] mrgreenfur: Man, redis-cache is following endless empty cursors from redis, even when there are no results
[16:48:00] mrgreenfur: turns out it’s how redis works. Using deletE_matched will always iterate through ALL keys , just with a cursor
[16:48:28] mrgreenfur: anyone have tips for better namespaceing redis keys? E.g. I’m caching computed values for an account and saving them with the account ID in the key name, then using delete_matched periodically to erase them all
[16:51:29] mrgreenfur: but when you do a delete with a wildcard, it scans every key using a cursor to find matching ones
[16:54:31] mrgreenfur: i love it, i wonder how to make rails.cache.fetch work with this, maybe i’ll monkey patch it in
[16:56:08] mrgreenfur: yeah, that works for some computed values. I also have some infrequently changing settings that i read a lot but don’t write frequently. When they change I need to erase them all.
[18:01:26] mrgreenfur: Whats the best way to test a flow between multiple controllers? A feature spec?
[18:04:23] mrgreenfur: tbuehlmann: I tried a quick one but found it was missing stuff I’m used to in controller specs: @request, devise sign_in methods, etc. Any tips ot bring that stuff back?
[13:23:09] mrgreenfur: Morning everyone! I’d like to moniotr my app for errors in production, how do folks keep on top of errors and problems that happen in prod?
[13:32:28] mrgreenfur: sounds like there’s no clear winner, i’ll pick on ui and price then I suppose
[23:05:10] mrgreenfur: Anyone here a genius at redids/sidekiq? Something happened in the last few days and now I can’t look at the sidekiq UI and there are tons of errors like: Error fetching job: Error connecting to Redis on x.x.x.x:6380 (Errno::ECONNREFUSED)
[23:06:18] mrgreenfur: yeah, but i can’t figure how where to look. I can connect from host to redis via redis-cli AND via a shell using the Redis.new....
[23:08:35] mrgreenfur: let me try. As far as I can see jobs ar estill enqueuing and de-queueing just fine, just the web UI barfs
[23:16:48] mrgreenfur: i dont relaly know either. I can see the 500 in the web page and then there are workers failling to connect
[14:43:44] mrgreenfur: I have a multi-tenant rails app and I’m thinking of makign per-tenant materialized views to make the experience and db resulsts faster. The tables would be something like ABC_tenant_id. Anyone ever tried having a dynamic table_name in a model before?
[17:59:49] mrgreenfur: I’m trying ot get started with the facebook API, but the SDK is only in python and php. Should I write my own wrapper or use the python one?
[13:23:04] mrgreenfur: anyone know how to include regular rails helpers to be used in Mailers? I’ve tried everything and can’t seem to figure it out. Currently onto “include DatesHelper” in the Mailer class
[16:48:56] mrgreenfur: Anyone know how to fire JS in a template only once? E.g. after turbolinks loads once, but not on every time.
[00:42:51] mrgreenfur: I had it turned off nicely in dev , but in production I can’ tseem to turn it off
[00:43:51] mrgreenfur: I added a controller concern, then did an after_action on some views to delete hte value
[00:44:12] mrgreenfur: I’ve also tried that, but per chrome network tab, it’s sending both ALLOWALL and DENY
[00:46:05] mrgreenfur: Maybe chome is annoyingly caching, but i’ve tried hard refreshing and an incog window
[00:47:18] mrgreenfur: I’ve searched my code a few times couldn’t find it either. Maybe there’s a plugin interferring
[10:54:00] mrgreenfur: Radar: In case you’re curious (for your book?), ‘ALLOWALL’ isn’t a valid x-frame-options value and chrome will still block the content. The header needs to be removed, which in rails is case sensitive, so you have to match how the defaults added it.