codezomb

Activity Graph

Page 1 of 2 | Next »

2017-06-30

[06:35:14] codezomb: has joined #RubyOnRails
[17:19:11] codezomb: Read error: Connection reset by peer

2017-06-06

[17:24:53] codezomb: has joined #RubyOnRails
[17:34:17] codezomb: Quit: Textual IRC Client: www.textualapp.com

2017-05-05

[01:14:23] codezomb: Ping timeout: 255 seconds

2017-05-04

[22:35:42] codezomb: has joined #RubyOnRails

2017-04-11

[00:23:32] codezomb: has joined #RubyOnRails
[02:24:54] codezomb: Quit: Textual IRC Client: www.textualapp.com

2017-04-05

[23:32:35] codezomb: has joined #RubyOnRails
[23:37:19] codezomb: Client Quit

2017-03-30

[19:22:08] codezomb: has joined #RubyOnRails
[22:54:11] codezomb: Quit: Textual IRC Client: www.textualapp.com

2017-03-19

[02:25:30] codezomb: has joined #RubyOnRails
[07:21:12] codezomb: Quit: Textual IRC Client: www.textualapp.com

2016-07-27

[07:34:36] codezomb: Read error: Connection reset by peer

2016-07-26

[18:32:58] codezomb: has joined #ruby
[18:32:58] codezomb: has joined #RubyOnRails
[18:33:35] codezomb: Max SendQ exceeded
[18:34:03] codezomb: has joined #ruby
[18:34:03] codezomb: has joined #RubyOnRails
[18:35:32] codezomb: is there a place to override Rails.env ? docker compose likes to set non-existent env variables to empty strings, which rails now thinks the environment is ""
[18:36:03] codezomb: Not sure why rails isn't checking `String.blank?`, but I'd like to override that behavior if I can.

2016-07-18

[19:16:54] codezomb: has joined #ruby
[19:16:54] codezomb: has joined #RubyOnRails
[23:34:50] codezomb: Quit: Textual IRC Client: www.textualapp.com

2016-07-16

[00:03:25] codezomb: has joined #ruby
[00:03:25] codezomb: has joined #RubyOnRails
[05:18:06] codezomb: Quit: Textual IRC Client: www.textualapp.com
[19:11:54] codezomb: has joined #ruby
[19:11:54] codezomb: has joined #RubyOnRails
[20:01:41] codezomb: Quit: Textual IRC Client: www.textualapp.com

2016-07-01

[02:15:40] codezomb: Quit: Textual IRC Client: www.textualapp.com

2016-06-30

[21:13:42] codezomb: has joined #ruby
[21:13:42] codezomb: has joined #RubyOnRails

2016-06-03

[20:54:27] codezomb: has joined #ruby
[20:54:27] codezomb: has joined #RubyOnRails
[22:29:52] codezomb: Quit: Textual IRC Client: www.textualapp.com

2016-05-25

[21:30:03] codezomb: Quit: Textual IRC Client: www.textualapp.com

2016-05-24

[19:10:39] codezomb: has joined #ruby
[19:10:39] codezomb: has joined #RubyOnRails

2016-04-15

[08:45:44] codezomb: Read error: Connection reset by peer

2016-04-13

[23:25:09] codezomb: has joined #ruby
[23:25:09] codezomb: has joined #RubyOnRails

2016-04-09

[22:04:18] codezomb: Quit: Textual IRC Client: www.textualapp.com

2016-04-08

[20:08:28] codezomb: has joined #ruby
[20:08:28] codezomb: has joined #RubyOnRails

2016-04-07

[02:15:06] codezomb: Quit: Textual IRC Client: www.textualapp.com
[20:28:34] codezomb: has joined #ruby
[20:28:34] codezomb: has joined #RubyOnRails
[21:47:34] codezomb: Quit: Textual IRC Client: www.textualapp.com

2016-04-06

[18:57:39] codezomb: has joined #ruby
[18:57:39] codezomb: has joined #RubyOnRails

2016-04-05

[04:01:57] codezomb: Quit: Textual IRC Client: www.textualapp.com

2016-04-04

[20:00:36] codezomb: has joined #ruby
[20:00:36] codezomb: has joined #RubyOnRails
[20:01:10] codezomb: anyone aware of a way to filter url segments from the rails log? filter_parameters just handles parameters, but i need to filter a url segment as well.
[20:03:48] codezomb: smathy: yes, unfortunately we needed to create a URL that incorporates a short lived access token.
[20:06:09] codezomb: definitely is, and hopefully we'll resolve this issue soon so it's not a concern. however, I'm faced w/ a pending deployment that needs it :/
[20:06:56] codezomb: getting ready to start stashing our logs in elasticsearch as well, and I definitely don't want them in there.
[20:07:21] codezomb: hadn't thought about that.
[20:08:26] codezomb: I found this, but I couldn't find any usage examples: https://github.com/rails/rails/blob/fe8a6ba3a12452c9ba9cd4da554e65b08df2155c/actionpack/lib/action_dispatch/http/filter_parameters.rb#L46
[20:08:43] codezomb: won't work either.
[20:09:05] codezomb: just a method for filter_parameters haha
[20:17:09] codezomb: smathy, that's a valid point. I'm just not a fan of that kind of data laying around. My ideal situation would be for it to be hidden, however at the same time if someone had enough access to obtain this data we really would have bigger problems to be concerned with.
[20:17:43] codezomb: normally this information exists in headers only.
[20:26:19] codezomb: yeah, I'll probably just archive the logs for good measure once the url issue is no longer valid.
[20:26:27] codezomb: thanks for the feedback

2016-03-16

[04:38:39] codezomb: has joined #ruby
[04:38:39] codezomb: has joined #RubyOnRails
[04:56:38] codezomb: Quit: Textual IRC Client: www.textualapp.com

2016-02-08

[07:21:36] codezomb: has joined #ruby
[07:21:36] codezomb: has joined #RubyOnRails

2016-02-05

[04:36:25] codezomb: has joined #ruby
[04:36:25] codezomb: has joined #RubyOnRails
[21:15:19] codezomb: Quit: Textual IRC Client: www.textualapp.com

2016-02-02

[04:34:21] codezomb: Quit: Textual IRC Client: www.textualapp.com

2016-02-01

[06:29:16] codezomb: has joined #RubyOnRails
[06:29:20] codezomb: has joined #ruby
[09:31:24] codezomb: Quit: Textual IRC Client: www.textualapp.com
[22:39:33] codezomb: has joined #RubyOnRails
[22:39:35] codezomb: has joined #ruby

2016-01-30

[00:32:17] codezomb: has joined #ruby
[00:32:30] codezomb: has joined #RubyOnRails
[00:33:15] codezomb: trying to use Resolv::DNS and getresources in my system. However, it doesn't seem to resolve anything. Would there be any system level dependency that I could possibly be missing?
[00:33:47] codezomb: nslookup exists, and can resolve the addresses
[00:33:54] codezomb: ruby 2.2.4p230
[00:35:54] codezomb: @drbrain: Resolv::DNS.open { |dns| dns.getresources('google.com', Resolv::DNS::Resource::IN::MX) }
[00:36:06] codezomb: returns an empty array
[00:38:09] codezomb: drbrain right, I know it should resolve. It resolves in my plain vm. However, trying it within a docker container (alpine linux) I get an empty result set. I assumed I could be missing some system dependency.
[00:38:36] codezomb: if nslookup works, I would assume this should work :/
[00:39:05] codezomb: drbrain `nameserver 10.0.2.3`, which is my docker host. This host can also resolve.
[00:39:12] codezomb: from a system level it all resolves
[00:41:06] codezomb: yeah, I just changed my resolv.conf to 8.8.8.8, and it seems to work...
[00:41:25] codezomb: back to flipping tables I suppose (??????????????????? ?????????
[00:41:42] codezomb: thanks for the sanity check :)
[04:12:36] codezomb: Ping timeout: 250 seconds

2016-01-29

[06:23:53] codezomb: Quit: Textual IRC Client: www.textualapp.com

2016-01-28

[09:09:08] codezomb: has joined #RubyOnRails
[09:09:58] codezomb: If my rails app (json api only) is not serving static assets, is there any good reason to include nginx between rails and aws elb?
[09:10:24] codezomb: I've always done this "just because", and I'm wondering if it's even necessary with a json api.

2015-12-31

[06:26:54] codezomb: has joined #RubyOnRails
[18:47:38] codezomb: Quit: Textual IRC Client: www.textualapp.com

2015-12-04

[05:02:36] codezomb: has joined #RubyOnRails
[09:38:04] codezomb: Quit: Textual IRC Client: www.textualapp.com

2015-12-01

[02:38:42] codezomb: has joined #RubyOnRails
[23:31:47] codezomb: Remote host closed the connection

2015-11-25

[06:52:38] codezomb: has joined #RubyOnRails
[10:54:42] codezomb: Quit: Textual IRC Client: www.textualapp.com

2015-11-21

[10:25:33] codezomb: Quit: Textual IRC Client: www.textualapp.com

2015-11-20

[05:58:57] codezomb: has joined #RubyOnRails

2015-11-19

[05:32:20] codezomb: has joined #RubyOnRails
[07:50:22] codezomb: Quit: Textual IRC Client: www.textualapp.com

2015-11-12

[21:38:57] codezomb: Ping timeout: 265 seconds

2015-11-11

[21:00:30] codezomb: has joined #RubyOnRails

2015-11-09

[04:14:42] codezomb: Quit: Textual IRC Client: www.textualapp.com

2015-11-08

[06:40:12] codezomb: has joined #RubyOnRails
[07:27:12] codezomb: Quit: Textual IRC Client: www.textualapp.com
[07:36:37] codezomb: has joined #RubyOnRails

2015-11-03

[04:16:41] codezomb: has joined #RubyOnRails
[05:41:19] codezomb: Quit: Textual IRC Client: www.textualapp.com

2015-10-29

[01:45:11] codezomb: Quit: Textual IRC Client: www.textualapp.com

2015-10-28

[09:05:26] codezomb: has joined #RubyOnRails

2015-10-21

[08:14:58] codezomb: has joined #RubyOnRails
[08:39:59] codezomb: Quit: Textual IRC Client: www.textualapp.com

2015-10-17

[00:24:23] codezomb: Quit: Textual IRC Client: www.textualapp.com

2015-10-16

[03:22:46] codezomb: has joined #RubyOnRails
[05:41:25] codezomb: Quit: Textual IRC Client: www.textualapp.com
[06:25:32] codezomb: has joined #RubyOnRails
[16:39:14] codezomb: Quit: Textual IRC Client: www.textualapp.com
[17:56:41] codezomb: has joined #RubyOnRails
[17:57:03] codezomb: Can anyone give me a solid reason this might be a bad idea? https://gist.github.com/codezomb/c6d9cf7d1884dcb8596e
[17:57:14] codezomb: Trying to automate a docker deployment
[17:58:00] codezomb: from what I can see... db:create is idempotent, and checking the current version of the migration is a pretty fail-safe way to determine if the database is already established.
[17:58:47] codezomb: tubbo: db:rebuild has been added to the gist
[17:58:57] codezomb: it's basically a reset
[18:00:19] codezomb: I've had issues w/ reset in the past
[18:00:54] codezomb: tubbo: I've updated the gist for schema:load
[18:01:57] codezomb: tubbo: both
[18:02:20] codezomb: basically, I want to say... Does the database exist? Yes? Run the latest migrations and update the indexes
[18:02:27] codezomb: No? Create the database, and the indexes
[18:02:44] codezomb: We have a need here to deal w/ both scenarios
[18:02:50] codezomb: as we do on-site installations via docker
[18:06:01] codezomb: right, for us all of that exists already... The one part of the deployment I _always_ have to do is handle migrations and index updates.
[18:06:11] codezomb: in both new and existing deployments
[18:06:26] codezomb: This basically just runs before `foreman start`
[18:06:33] codezomb: in a launch script
[18:07:25] codezomb: my main concern here is data loss
[18:07:39] codezomb: just wanted another pair of eyes to ensure the checks were solid

2015-10-13

[05:50:07] codezomb: has joined #RubyOnRails

2015-10-06

[22:26:45] codezomb: has joined #RubyOnRails
[22:27:49] codezomb: When using <Model>.connection.execute(sql), is there a way to convert arrays (from postgres using array_agg) which come back as strings, into actual arrays?
[22:28:08] codezomb: for example, my result comes back with `{4,3,2}`
[23:35:29] codezomb: Ping timeout: 246 seconds

2015-08-07

[04:25:46] codezomb: Quit: Textual IRC Client: www.textualapp.com

2015-08-06

[07:25:19] codezomb: has joined #RubyOnRails
[07:57:07] codezomb: interesting issue... running `rails c` all of the sudden gives me the help output for `rails new`
[07:57:19] codezomb: so does any command I type starting with `rails`
[07:57:31] codezomb: been working on this project for a year
[07:58:03] codezomb: ... you know what... someone overwrite `/bin/rails` with a shell script. :/
[07:58:11] codezomb: nvm, nothing to see here
[18:37:48] codezomb: anyone seen this issue w/ Faraday gem? `Faraday::SSLError: SSL_connect returned=1 errno=0 state=error: certificate verify failed`. My certificate is valid on the remote side, I've verified it multiple ways. However, Faraday throws a fit.
[18:38:23] codezomb: tubbo: nope, comodo ssl
[18:38:43] codezomb: wildcard used in multiple servers, works fine everywhere... except for faraday

2015-08-05

[03:08:31] codezomb: Quit: Textual IRC Client: www.textualapp.com

2015-08-04

[05:33:59] codezomb: Quit: Textual IRC Client: www.textualapp.com
[22:41:19] codezomb: has joined #RubyOnRails

2015-08-02

[05:24:46] codezomb: Quit: Textual IRC Client: www.textualapp.com
[20:21:57] codezomb: has joined #RubyOnRails

2015-08-01

[19:14:09] codezomb: Quit: Textual IRC Client: www.textualapp.com
[19:22:06] codezomb: has joined #RubyOnRails

2015-07-31

[00:03:06] codezomb: Quit: Textual IRC Client: www.textualapp.com
[22:12:44] codezomb: has joined #RubyOnRails

2015-07-29

[08:03:51] codezomb: has joined #RubyOnRails

2015-07-16

[18:19:20] codezomb: has joined #RubyOnRails
[18:28:18] codezomb: Quit: Textual IRC Client: www.textualapp.com

2015-06-13

[06:40:34] codezomb: has joined #RubyOnRails
[07:29:00] codezomb: Quit: Textual IRC Client: www.textualapp.com

2015-06-09

[16:42:12] codezomb: has joined #RubyOnRails
[20:19:19] codezomb: Quit: Textual IRC Client: www.textualapp.com

2015-05-30

[20:20:50] codezomb: Quit: Textual IRC Client: www.textualapp.com

2015-05-29

[20:56:05] codezomb: has joined #RubyOnRails

2015-05-20

[19:57:19] codezomb: has joined #RubyOnRails
[19:57:35] codezomb: yo, can anyone explain to me how name is nil here? https://gist.github.com/codezomb/57ee6fb969c39414f33f
[19:57:43] codezomb: s/nil/blank/
[19:59:03] codezomb: umgrosscol: nah, the error is just humanized
[20:00:13] codezomb: Rikle_S: https://coderwall.com/p/spo6bq/default-no-ri-no-rdoc-on-ruby-gem-installation
[20:00:51] codezomb: Depili: how so?
[20:02:06] codezomb: Depili: because the email column is a postgres array field
[20:02:30] codezomb: hmm, let me try
[20:08:16] codezomb: rhizome: yeah that doesn't work when there are multiple email addresses. The gist of what I'm trying to say is "If a user exists with this name and has this email", not "all emails equal"
[20:09:17] codezomb: many emails in an array column, not all are present in the input data, which is why I had the `@> ARRAY[:email]` call, as it just looks for any 1 match
[20:11:07] codezomb: rhizome: lets say the user (Joe User) has 2 emails... joe@foo.com and joe@bar.com. I need to look for Joe User with joe@foo.com. joe@bar.com is unknown in the current context.
[20:11:44] codezomb: using where(email: '{joe@foo.com}') looks explicitly for an array containing just that email.
[20:12:42] codezomb: a user import script... the user may already exist in the system with more than one email. I need to find the user by name, and with the given email, or create a new one.
[20:13:05] codezomb: rhizome: the database is postgres, the email field is an array
[20:17:10] codezomb: rhizome: added a table layout, and description to the gist: https://gist.github.com/codezomb/57ee6fb969c39414f33f
[20:18:16] codezomb: rhizome: nvm, I'll just do a standard query, and explicit create if empty.
[20:24:26] codezomb: rhizome: yeah, recognized as valid in postgres syntax... "To write an array value as a literal constant, enclose the element values within curly braces and separate them by commas"
[22:22:22] codezomb: Quit: Textual IRC Client: www.textualapp.com

2015-01-20

[04:42:37] codezomb: anyone here ever seen an issue where fog + aws instance profiles would not refresh the token after 24 hours? every 24 hours my app has to be restarted for fog to start working again.

2015-01-09

[00:26:01] codezomb: can someone take a look at this, and tell me why my creates are scoped to the right condition, but not my deletes? https://gist.github.com/codezomb/8680b5902c33abca7c69
[00:26:22] codezomb: I really think it's a rails bug, but I'd like to be sure
[00:37:23] codezomb: hmm, I suppose I'll open a rails ticket
[18:36:03] codezomb: would someone mind taking a look at this ticket, and tell me if I'm crazy? https://github.com/rails/rails/issues/18424
[18:36:32] codezomb: two days trying to figure out what's going wrong, and I just keep coming back to it being a possible rails bug
[18:37:04] codezomb: bricker: did you find a work around?
[18:37:50] codezomb: much appreciated.
[18:39:21] codezomb: thanks anyway. definitely makes it hard to use collection_select
[19:55:05] codezomb: pipework: nope

2015-01-08

[22:04:15] codezomb: does memoization not work in helpers?
[22:04:32] codezomb: I assume not, since it's a module, right?
[22:04:39] codezomb: sorry, view heleprs.
[23:44:57] codezomb: hmm, interesting behavior when using a condition w/ has_many :through... On creation -> `something_ids = [1] and something_else_ids = [1]` this works fine... however, on remove the object is deleted but not scoped to the condition.
[23:45:27] codezomb: which means if you set `something_else_ids = []` then something_ids is now also []

2015-01-04

[20:16:32] codezomb: is there a way to temporarily disable dirty tracking for an attribute? I'm checking a changed value, and running some calculations on it, then modifying the same value. I end up w/ a stack level too deep error. It would be nice to disable dirty tracking for that attribute, then re-enable it after the save.

2014-11-13

[22:52:32] codezomb: would someone mind taking a look at this issue here? https://gist.github.com/codezomb/d2a0c9ef2f6388e86bbf I'm trying to override a method on a model using association blocks. However, it doesn't seem to work as expected.
[22:55:12] codezomb: Radar: typo, fixed
[22:58:02] codezomb: Radar, the goal is to override the method for that particular `Link` instance being associated with the `Site`. However when referencing `link_options` within a `Link` instance method, it's not override.
[22:58:12] codezomb: s/override/overriden/
[22:59:08] codezomb: Radar: updated another typo :/
[22:59:45] codezomb: Radar: defaults
[23:00:25] codezomb: Radar: Let's say there's another model called Foo, that also has_one link, but it's okay with the link_options the way they are.
[23:00:41] codezomb: The site model however, wants to override that method
[23:03:02] codezomb: Radar: I know in ruby I can override instance methods, I'm basically just trying to find a way to do it on a rails association :/
[23:09:06] codezomb: Radar: didn't realize there was a rule for example code, maybe this will help a bit. I've included 3 files (2 models, and 1 class to bring them together) https://gist.github.com/codezomb/d2a0c9ef2f6388e86bbf. I'm definitely open for other ways of doing this, I just figured this *might* work, and then got confused by the result.
[23:13:36] codezomb: Radar: The idea here was that we would be embedding resources in quite a few models, so the `resourceable` module just tries to dry it up a bit. The link_options here was hopefully to allow each call to `embeds_resource` to specify it's own options to s3, like acl, or link expiration time, etc...
[23:14:18] codezomb: no worries, thanks for the look

2014-09-29

[21:18:01] codezomb: is there a way to find where a class is being loaded?
[21:18:39] codezomb: I suspect a gem keeps loading some uneeded classes, and short of removing them one by one, I cannot figure out how to tell which one is doing it.
[21:21:44] codezomb: heh, yeah :/
[21:24:58] codezomb: ActiveSupport gave me what I needed
[21:25:02] codezomb: ActiveSupport.on_load(:active_record)
[21:25:11] codezomb: turns out rspec-rails is doing it :

2014-09-24

[21:19:16] codezomb: I keep running into a wall
[21:19:52] codezomb: they idea is to remove any duplicate keys, and merge the player_ids from those duplicates into an array.
[21:23:35] codezomb: apeiros: right, and during the merge the player_ids need to be pushed into an array
[21:27:07] codezomb: apeiros: I've updated the gist with my last attempt, it returns a single hash
[21:27:19] codezomb: which is where I got myself confused, and decided to ask for help :)
[21:38:19] codezomb: aha, very nice. I was just working on a similar approach, thanks.
[21:38:33] codezomb: The issue is the data is coming from a join table, and the data itself is fed to me this way.
[22:01:49] codezomb: apeiros: thanks again, that worked out really well.
[22:03:22] codezomb: apeiros: it took me a minute to mean when you said normalizing player_id to an array. That was actually what I wanted, and I just hadn't that far ahead yet :)
[22:03:29] codezomb: it definitely cleaned up the code