codesoda

Activity Graph

Page 1 of 4 | Next »

2016-06-17

[16:47:10] codesoda: has joined #RubyOnRails
[18:59:07] codesoda: Remote host closed the connection

2016-05-13

[03:07:17] codesoda: has joined #RubyOnRails
[03:08:05] codesoda: Who commits their .rspec file? Just inherited a repo with one in the project, but think it shouldn't be in the repo and is a personal preference
[03:11:38] codesoda: is that for the whole team?
[03:12:03] codesoda: I have a .rspec file in my dotfiles, so the local one clobbers it
[03:15:53] codesoda: fair enough
[03:54:17] codesoda: Remote host closed the connection

2016-05-12

[20:36:25] codesoda: has joined #RubyOnRails
[20:41:21] codesoda: Ping timeout: 276 seconds
[21:47:02] codesoda: has joined #RubyOnRails
[21:47:21] codesoda: Any Guard ninjas around?
[22:20:08] codesoda: Hi all, I'm hoping someone might have seen a particular guard+rspec error I am getting "cannot load such file -- bundler/setup (LoadError)". Full details are at https://gist.github.com/codesoda/374202bfb2460b7ac3328061e66c7544
[22:30:28] codesoda: has joined #RubyOnRails
[23:16:39] codesoda: Remote host closed the connection
[23:22:33] codesoda: has joined #RubyOnRails

2016-04-29

[02:15:21] codesoda: Remote host closed the connection
[02:15:31] codesoda: has joined #RubyOnRails
[02:27:01] codesoda: Remote host closed the connection
[02:27:33] codesoda: has joined #RubyOnRails
[03:45:00] codesoda: Remote host closed the connection
[03:46:06] codesoda: has joined #RubyOnRails
[04:28:14] codesoda: has left #RubyOnRails: ("Leaving...")

2016-04-28

[03:27:34] codesoda: has joined #RubyOnRails
[05:15:28] codesoda: Remote host closed the connection
[15:01:05] codesoda: has joined #RubyOnRails
[15:01:30] codesoda: Remote host closed the connection
[15:16:23] codesoda: has joined #RubyOnRails
[15:37:50] codesoda: LastWhisper____: you'll need to loop through top level keys and the choose the node which has a message key
[15:38:20] codesoda: LastWhisper____: P.S. if that isn't some legacy data, I'd suggest refactoring the setup into something more predictable
[18:35:25] codesoda: Remote host closed the connection
[18:36:00] codesoda: has joined #RubyOnRails
[19:08:22] codesoda: Remote host closed the connection
[19:08:58] codesoda: has joined #RubyOnRails

2016-03-03

[00:08:58] codesoda: Remote host closed the connection
[02:29:40] codesoda: has joined #RubyOnRails
[02:40:20] codesoda: Remote host closed the connection
[02:42:18] codesoda: has joined #RubyOnRails
[06:56:15] codesoda: Remote host closed the connection
[06:56:48] codesoda: has joined #RubyOnRails
[16:12:19] codesoda: Ping timeout: 250 seconds
[17:52:26] codesoda: has joined #RubyOnRails
[20:14:09] codesoda: Quit: Leaving...

2016-03-02

[02:59:32] codesoda: Remote host closed the connection
[03:00:20] codesoda: has joined #RubyOnRails
[03:07:35] codesoda: Ping timeout: 250 seconds
[19:43:11] codesoda: has joined #RubyOnRails
[19:54:57] codesoda: Remote host closed the connection
[22:15:25] codesoda: has joined #RubyOnRails

2016-03-01

[00:05:44] codesoda: Remote host closed the connection
[00:06:17] codesoda: has joined #RubyOnRails
[00:20:10] codesoda: Remote host closed the connection
[00:21:14] codesoda: has joined #RubyOnRails
[00:25:30] codesoda: Remote host closed the connection
[00:25:38] codesoda: has joined #RubyOnRails
[03:09:14] codesoda: Remote host closed the connection
[03:34:37] codesoda: has joined #RubyOnRails
[05:49:07] codesoda: Remote host closed the connection
[15:13:47] codesoda: has joined #RubyOnRails
[16:46:31] codesoda: Remote host closed the connection
[16:46:39] codesoda: has joined #RubyOnRails

2016-02-29

[16:32:59] codesoda: has joined #RubyOnRails

2016-02-28

[01:52:48] codesoda: has joined #RubyOnRails
[02:30:34] codesoda: Read error: Connection reset by peer

2016-02-27

[04:15:24] codesoda: Remote host closed the connection
[04:16:08] codesoda: has joined #RubyOnRails
[05:53:23] codesoda: Remote host closed the connection
[19:55:12] codesoda: has joined #RubyOnRails
[20:42:44] codesoda: Remote host closed the connection
[21:33:35] codesoda: has joined #RubyOnRails
[22:24:03] codesoda: Ping timeout: 252 seconds
[23:25:06] codesoda: has joined #RubyOnRails
[23:51:48] codesoda: Remote host closed the connection

2016-02-26

[01:10:12] codesoda: Remote host closed the connection
[01:10:58] codesoda: has joined #RubyOnRails
[05:23:59] codesoda: Ping timeout: 240 seconds
[06:48:32] codesoda: has joined #RubyOnRails
[16:09:59] codesoda: Ping timeout: 240 seconds
[18:50:13] codesoda: has joined #RubyOnRails
[21:23:46] codesoda: Remote host closed the connection
[21:32:01] codesoda: has joined #RubyOnRails

2016-02-25

[00:29:59] codesoda: Remote host closed the connection
[00:30:47] codesoda: has joined #RubyOnRails
[03:20:21] codesoda: Ping timeout: 250 seconds
[08:13:58] codesoda: has joined #RubyOnRails
[14:26:29] codesoda: Ping timeout: 240 seconds
[17:07:55] codesoda: has joined #RubyOnRails
[19:34:06] codesoda: Remote host closed the connection
[19:48:38] codesoda: has joined #RubyOnRails
[19:49:03] codesoda: Remote host closed the connection
[19:49:09] codesoda: has joined #RubyOnRails
[20:15:16] codesoda: Remote host closed the connection
[20:17:48] codesoda: has joined #RubyOnRails
[20:21:32] codesoda: Remote host closed the connection
[23:41:40] codesoda: has joined #RubyOnRails

2016-02-24

[23:54:32] codesoda: has joined #RubyOnRails

2016-02-15

[02:18:04] codesoda: has joined #RubyOnRails
[02:18:24] codesoda: has joined #ruby
[02:21:42] codesoda: @Technodrome: check your application.css
[02:22:40] codesoda: does it say active admin anywhere?
[02:24:14] codesoda: @Technodrome I don't think require_tree should be pulling in active admin, but try remove it and see if you skip the active admin files
[02:24:36] codesoda: you shouldn't have any active admin css files, they come from the gem
[02:25:49] codesoda: perhaps you added it because you were getting a pre-compilation error with active admin?
[02:26:51] codesoda: might be the latest version/s of active admin that do that, I avoid it
[02:27:32] codesoda: i just checked an old project, you are correct
[02:28:03] codesoda: so make a folder for your normal assets, then require that as a tree
[02:28:15] codesoda: app/assets/stylesheets/app
[02:28:31] codesoda: then in application.scss just require_tree app
[02:31:40] codesoda: nah, you will using 2 seperate stylesheets
[02:31:55] codesoda: application.scss shouldn't pull in active admin styles
[02:32:09] codesoda: and activeadmin should only pull in activeadmin
[02:32:58] codesoda: it is probably expecting it to end up in /assets/active_admin.(css/js)
[02:33:23] codesoda: which vendor/assets or app/assets/(stylesheets/javascripts) would solve
[02:33:56] codesoda: that will work, but vendoring a stylesheet is normally a different process
[02:34:09] codesoda: i'd recommend a folder and leave active admin where it was
[02:34:27] codesoda: so if you upgrade active admin, you can just rake install again to update it
[02:34:54] codesoda: sprockets will build css files and put them in /assets after bundle assets
[02:35:55] codesoda: You should check out http://guides.rubyonrails.org/asset_pipeline.html#asset-organization
[02:36:28] codesoda: it loads that css file, but that will be the compiled version of the file
[02:37:26] codesoda: once you deploy to a server, this will probably break
[02:37:48] codesoda: as @sevenseacat suggested, you'll need a seperate manifest
[02:38:14] codesoda: (and add it to the list of manifests to be compiled)
[02:39:02] codesoda: something like that
[02:40:38] codesoda: there is definately a lot of little magical things that kick your butt the first time you experience them
[02:59:46] codesoda: you are using the wrong route
[03:00:10] codesoda: probably using contacts_path, instead of contact_path(contact)
[03:01:01] codesoda: are you trampling the route though?
[03:01:36] codesoda: did you add this? get 'contact' => 'contacts#new'
[03:03:14] codesoda: I'm confused, is this within active admin, or unrelated
[03:03:47] codesoda: @radar lolz
[05:06:18] codesoda: Quit: Leaving...

2015-10-28

[00:24:31] codesoda: Remote host closed the connection
[02:00:38] codesoda: has joined #RubyOnRails
[03:31:17] codesoda: Remote host closed the connection
[03:38:38] codesoda: has joined #RubyOnRails
[03:43:11] codesoda: Remote host closed the connection
[03:43:18] codesoda: has joined #RubyOnRails
[05:26:34] codesoda: Quit: Leaving...

2015-10-27

[18:48:46] codesoda: has joined #RubyOnRails
[21:06:21] codesoda: Remote host closed the connection
[21:07:28] codesoda: has joined #RubyOnRails

2015-10-15

[00:04:32] codesoda: Remote host closed the connection
[02:38:28] codesoda: has joined #RubyOnRails
[02:39:48] codesoda: Remote host closed the connection
[02:44:06] codesoda: has joined #RubyOnRails
[03:09:23] codesoda: Quit: Leaving...

2015-10-14

[03:41:42] codesoda: has joined #RubyOnRails
[03:56:12] codesoda: Hi all, has one actually gotten "rails panel" in chrome to work?
[04:00:54] codesoda: havenwood: have you not seen https://github.com/dejan/rails_panel?
[04:01:51] codesoda: havenwood: I've followed the instructions, but still deosn't seem to work, kinda hard to diagnose as well
[09:07:48] codesoda: Remote host closed the connection
[09:08:19] codesoda: has joined #RubyOnRails
[13:54:33] codesoda: Remote host closed the connection
[13:54:40] codesoda: has joined #RubyOnRails
[14:02:41] codesoda: Remote host closed the connection
[14:03:18] codesoda: has joined #RubyOnRails
[14:26:19] codesoda: Ping timeout: 240 seconds
[15:19:55] codesoda: has joined #RubyOnRails
[15:24:29] codesoda: Ping timeout: 250 seconds
[16:32:50] codesoda: has joined #RubyOnRails
[18:32:29] codesoda: Remote host closed the connection
[19:05:26] codesoda: has joined #RubyOnRails
[19:20:07] codesoda: Remote host closed the connection
[19:38:04] codesoda: has joined #RubyOnRails
[20:00:45] codesoda: Remote host closed the connection
[20:03:10] codesoda: has joined #RubyOnRails
[20:44:04] codesoda: Remote host closed the connection
[20:47:05] codesoda: has joined #RubyOnRails
[21:04:30] codesoda: Remote host closed the connection
[22:19:12] codesoda: has joined #RubyOnRails
[22:29:53] codesoda: Remote host closed the connection
[22:53:55] codesoda: has joined #RubyOnRails
[23:04:49] codesoda: Remote host closed the connection
[23:11:09] codesoda: has joined #RubyOnRails
[23:12:08] codesoda: Remote host closed the connection
[23:43:45] codesoda: has joined #RubyOnRails

2015-06-09

[05:03:42] codesoda: has joined #RubyOnRails
[05:03:42] codesoda: has joined #polyhack
[05:59:54] codesoda: has anyone ever programmatically configured postfix from a ruby app?
[07:44:17] codesoda: Quit: Leaving...

2015-06-05

[04:55:50] codesoda: has joined #RubyOnRails
[04:55:50] codesoda: has joined #polyhack
[05:17:18] codesoda: does anyone have any general love/hate for different approaches to API's with ruby these days, e.g. grape, rails, railsapi, sinatra
[05:38:49] codesoda: Radar: have you tried building something directly with rack before?
[05:39:38] codesoda: Radar: so you're a fan of Rails over Rails::API
[07:46:43] codesoda: Quit: Leaving...

2015-03-20

[04:35:02] codesoda: who are people buying their "company" domain names with lately?
[04:36:06] codesoda: Radar: any particualr reason why you are using them? I was considering markmonitor
[04:37:01] codesoda: hey all, who is everyone using for the "company" domain registrations?
[04:38:04] codesoda: Radar: okay, dnsimple and namecheap are both pretty simple as well, I guess I'm not convinced they are companies I want my company assets (domains) registered with though
[04:41:44] codesoda: thanks s1w, are you using any privacy / brand protection services with your domains?
[04:43:19] codesoda: cool, thanks
[04:44:25] codesoda: FYI, i'm consolidating a bunch of our corporate domains and want to make sure they are with a reputable registrar and have privacy across them etc
[04:46:32] codesoda: s1w: gandi was my current preference
[04:46:46] codesoda: I like dnsimple, but they've had a few issues in the last 12 months
[04:57:34] codesoda: blackdog: ha ha, keep pushing :)
[05:02:33] codesoda: x44x45x41x4E: have you tried using a postgres follower then disconnecting it and then using that to test staging?
[05:03:07] codesoda: x44x45x41x4E: also snapshots and replayable event logs is a nice way to rebuild a staging env
[05:03:35] codesoda: x44x45x41x4E: search for event sourcing with rails
[05:04:28] codesoda: x44x45x41x4E: this all gets a lot harder when you db is bigger than terrabytes
[05:21:59] codesoda: balr0g: the fragment (everything after #) in a url is never sent to the server
[05:23:28] codesoda: its called a fragment
[05:24:41] codesoda: don't render a # in the return_to piece
[05:36:18] codesoda: nicholasf: let me know if you're keen for a beer in sf, or want a desk while you are ehre
[05:37:03] codesoda: (alternate desk)
[05:38:52] codesoda: nicholasf: @codesoda on the twitters
[05:50:19] codesoda: diegoviola: you don't need the "if user.failed_login >= 5" on line 8, you already did that check
[05:50:51] codesoda: diegoviola: line 14, should be user.save!
[05:51:28] codesoda: diegoviola: alternatively, use user.update(failed_login: user.failed_login++)
[05:52:17] codesoda: diegoviola: you could potentially ru into issues where "save" runs validations, but you have old data that now doesn't validate, it's always a good practice to update the minimum fields required
[05:53:46] codesoda: diegoviola: before line 10 you should also reset the failed_login count

2014-12-06

[06:26:57] codesoda: Is anyone doing something other than sinatra or rails?
[06:41:54] codesoda: soahccc: i don't think that's just chrome, anything with an id='....' is populating the global scope (window)
[06:43:48] codesoda: lbrf: have you ever gotten that to work?
[06:48:47] codesoda: soahccc: how did you install it? I have meta_request as a development group gem, and the extension, but alas nothing
[06:50:46] codesoda: soahccc: same, not sure what its wacked
[07:06:34] codesoda: arup_r: use elasticsearch and https://github.com/ankane/searchkick
[07:07:58] codesoda: arup_r: you could make a seperate column for your indexed columns
[07:09:34] codesoda: on save, take the text of all those fields and save it into one text field
[07:09:44] codesoda: kind of like poor mans elastic search
[07:12:08] codesoda: soahccc: you can add ngrams and stemming to make it a little more flexible
[07:12:56] codesoda: this is going to be pretty slow as well
[07:32:13] codesoda: RyanV: have you considered checking if the methods already exist?
[07:38:58] codesoda: just checking if I have any examples
[07:39:20] codesoda: the only problem i see is expectation of what the methods do
[07:39:57] codesoda: if you add some functionality, and it ends up that method already exists, then it might not work how you originally wanted to them to
[07:40:16] codesoda: so perhaps you would want it to fail instead
[07:43:55] codesoda: This might be a good reference https://github.com/rsl/stringex
[07:52:39] codesoda: without knowing what you specifically want to add that might be safest

2014-11-28

[19:03:32] codesoda: Has anyone ever coded or seen an example of generating sequential ids across tenants in a multi-tenant application, so tenant 1, gets id 1,2,3 and tenant2 also gets id 1,2,3
[19:03:47] codesoda: obviously with a seperate identifier which is unique across all tenants
[19:33:41] codesoda: mrbubbles_: always haml

2014-10-13

[06:23:10] codesoda: reviewing code
[06:24:00] codesoda: yeah, i think they are expecting people to assume its created
[06:24:12] codesoda: (which is what it does)
[06:24:53] codesoda: there is another one, which is interesting
[06:25:04] codesoda: Model.updated_since(duration)
[06:25:30] codesoda: this one is actually quite cool
[06:26:21] codesoda: yeah, duration is a weird param, should be a hard date, but the implementation is smart
[06:27:15] codesoda: scope :updated_since, -> (duration) { where('created_at <> updated_at and updated_at > ?', duration.ago) }
[06:27:33] codesoda: the created_at <> updated_at is a cool gotcha
[06:27:43] codesoda: because it hasn't been updated if that didn't change
[06:42:24] codesoda: sevenseacat: I'm suggesting updated_after, and expect a date