NivenHuH

Activity Graph

Page 1 of 1

2018-12-12

[17:42:47] NivenHuH: has joined #RubyOnRails
[17:48:16] NivenHuH: Ping timeout: 246 seconds

2018-12-07

[00:57:45] NivenHuH: Quit: My MacBook has gone to sleep. ZZZzzz…

2018-12-06

[00:07:05] NivenHuH: has joined #RubyOnRails
[00:08:39] NivenHuH: Client Quit
[03:54:01] NivenHuH: has joined #RubyOnRails
[04:00:07] NivenHuH: Quit: My MacBook has gone to sleep. ZZZzzz…
[20:37:39] NivenHuH: has joined #RubyOnRails
[22:00:35] NivenHuH: Quit: My MacBook has gone to sleep. ZZZzzz…
[22:01:29] NivenHuH: has joined #RubyOnRails
[22:05:23] NivenHuH: Client Quit
[22:06:54] NivenHuH: has joined #RubyOnRails
[22:08:21] NivenHuH: Client Quit
[22:13:07] NivenHuH: has joined #RubyOnRails

2018-12-04

[00:37:18] NivenHuH: Quit: My MacBook has gone to sleep. ZZZzzz…
[06:56:12] NivenHuH: has joined #RubyOnRails
[07:02:21] NivenHuH: Quit: My MacBook has gone to sleep. ZZZzzz…

2018-12-03

[17:41:35] NivenHuH: has joined #RubyOnRails
[17:44:05] NivenHuH: Client Quit
[17:44:33] NivenHuH: has joined #RubyOnRails
[18:06:01] NivenHuH: Quit: My MacBook has gone to sleep. ZZZzzz…
[18:22:52] NivenHuH: has joined #RubyOnRails
[18:57:54] NivenHuH: Quit: My MacBook has gone to sleep. ZZZzzz…
[18:59:06] NivenHuH: has joined #RubyOnRails
[19:11:09] NivenHuH: Quit: My MacBook has gone to sleep. ZZZzzz…
[19:15:11] NivenHuH: has joined #RubyOnRails
[20:36:10] NivenHuH: Quit: My MacBook has gone to sleep. ZZZzzz…
[23:41:07] NivenHuH: has joined #RubyOnRails

2018-12-02

[02:28:24] NivenHuH: Quit: My MacBook has gone to sleep. ZZZzzz…
[03:48:28] NivenHuH: has joined #RubyOnRails
[06:15:34] NivenHuH: Quit: My MacBook has gone to sleep. ZZZzzz…

2018-12-01

[20:38:17] NivenHuH: has joined #RubyOnRails

2018-11-30

[19:29:52] NivenHuH: has joined #RubyOnRails
[19:49:15] NivenHuH: Quit: My MacBook has gone to sleep. ZZZzzz…
[22:18:09] NivenHuH: has joined #RubyOnRails
[22:18:12] NivenHuH: Client Quit

2018-11-29

[02:37:13] NivenHuH: has joined #RubyOnRails
[02:51:12] NivenHuH: Quit: My MacBook has gone to sleep. ZZZzzz…

2018-11-28

[00:03:34] NivenHuH: has joined #RubyOnRails
[00:03:45] NivenHuH: Client Quit
[00:05:50] NivenHuH: has joined #RubyOnRails
[00:30:00] NivenHuH: Quit: My MacBook has gone to sleep. ZZZzzz…

2018-11-27

[18:33:21] NivenHuH: has joined #RubyOnRails
[19:01:31] NivenHuH: Quit: My MacBook has gone to sleep. ZZZzzz…
[19:23:27] NivenHuH: has joined #RubyOnRails
[19:34:08] NivenHuH: Quit: My MacBook has gone to sleep. ZZZzzz…
[20:02:32] NivenHuH: has joined #RubyOnRails
[22:17:04] NivenHuH: Quit: My MacBook has gone to sleep. ZZZzzz…
[22:25:39] NivenHuH: has joined #RubyOnRails
[23:17:59] NivenHuH: Quit: My MacBook has gone to sleep. ZZZzzz…
[23:42:33] NivenHuH: has joined #RubyOnRails
[23:47:19] NivenHuH: Quit: My MacBook has gone to sleep. ZZZzzz…

2018-11-26

[19:43:54] NivenHuH: has joined #RubyOnRails
[20:07:37] NivenHuH: Quit: My MacBook has gone to sleep. ZZZzzz…
[20:13:30] NivenHuH: has joined #RubyOnRails
[20:18:13] NivenHuH: Client Quit
[22:01:44] NivenHuH: has joined #RubyOnRails
[22:08:06] NivenHuH: Quit: My MacBook has gone to sleep. ZZZzzz…
[22:50:53] NivenHuH: has joined #RubyOnRails
[22:58:35] NivenHuH: Quit: My MacBook has gone to sleep. ZZZzzz…
[23:04:26] NivenHuH: has joined #RubyOnRails
[23:11:02] NivenHuH: Quit: My MacBook has gone to sleep. ZZZzzz…
[23:24:22] NivenHuH: has joined #RubyOnRails
[23:26:20] NivenHuH: Client Quit

2018-10-09

[00:36:12] NivenHuH: has joined #RubyOnRails
[04:25:17] NivenHuH: Quit: My MacBook has gone to sleep. ZZZzzz…
[04:31:51] NivenHuH: has joined #RubyOnRails
[05:53:06] NivenHuH: Quit: My MacBook has gone to sleep. ZZZzzz…
[17:49:15] NivenHuH: has joined #RubyOnRails
[18:05:01] NivenHuH: Quit: My MacBook has gone to sleep. ZZZzzz…
[18:08:48] NivenHuH: has joined #RubyOnRails
[19:09:34] NivenHuH: Quit: My MacBook has gone to sleep. ZZZzzz…
[19:39:20] NivenHuH: has joined #RubyOnRails
[20:24:40] NivenHuH: Quit: My MacBook has gone to sleep. ZZZzzz…
[20:37:14] NivenHuH: has joined #RubyOnRails
[21:48:59] NivenHuH: Quit: My MacBook has gone to sleep. ZZZzzz…
[21:57:19] NivenHuH: has joined #RubyOnRails

2016-06-23

[07:09:52] NivenHuH: has joined #RubyOnRails
[07:09:52] NivenHuH: has joined #ruby
[09:47:42] NivenHuH: Read error: No route to host

2015-10-13

[21:38:26] NivenHuH: has joined #RubyOnRails
[21:38:26] NivenHuH: has joined #ruby
[21:48:38] NivenHuH: Quit: Textual IRC Client: www.textualapp.com

2015-08-21

[04:54:00] NivenHuH: has joined #RubyOnRails
[04:54:00] NivenHuH: has joined #ruby
[04:55:03] NivenHuH: hi all, when you are doing a create, you can modify associations and have autosave: true automatically update those associations... however, if you're doing a destroy, the same behavior does not work. does anybody know how to also autosave associations on destroy? (I'm trying to get all of the modifications for the associated records to be saved within the same transaction)
[05:12:34] NivenHuH: also, is it possible to do a validation after data has been saved to the database, but before the transaction is committed?
[05:13:27] NivenHuH: the goal that i have is... i'm editing associations (of the same type) that i would like to validate
[05:13:38] NivenHuH: along with the parent
[05:15:16] NivenHuH: the problem i'm running into is, it's a uniqueness validation.. so what's in the database doesn't match what's in memory, so the validation fails
[07:46:11] NivenHuH: Quit: My MacBook Pro has gone to sleep. ZZZzzz???
[08:14:59] NivenHuH: has joined #RubyOnRails
[08:14:59] NivenHuH: has joined #ruby
[08:15:27] NivenHuH: Client Quit

2015-04-20

[11:03:10] NivenHuH: what would cause a request header to not show up in request.env?

2014-07-16

[01:21:07] NivenHuH: the question is, how do i run both functions in parallel and properly wait for both of them to complete?
[01:28:47] NivenHuH: yeah it's when it's status goes to nil/false/dead
[01:28:57] NivenHuH: but i'm pretty sure what i'm doing there isn't what you're supposed to do
[01:29:41] NivenHuH: i suspect i need to use threads.each {|t| t.join}

2014-07-12

[20:18:18] NivenHuH: hi all, i have a question about blocks and method context
[20:20:17] NivenHuH: i have two objects, one exposes a DSL block. in the second object, i want to call this DSL block, but utilize methods in the second object to populate the DSL
[20:21:10] NivenHuH: apeiros let me see.. the first object is from a gem i'm using
[20:22:32] NivenHuH: banister oh that could work
[20:23:09] NivenHuH: let me play around, thanks for the suggestions
[20:44:41] NivenHuH: no such luck yet.. here's an example of what i'm trying to do: http://pastie.org/9382097
[20:47:34] NivenHuH: at line 15 in the pastie, if i try to do query = self and on line 16, i call query.order_options... it complains about private-ness (if i remove the private, then it complains about the object not knowing how to invoke order_by)
[20:53:04] NivenHuH: banister i don't think i can make it a module because the class has additional data requirements
[20:59:41] NivenHuH: banister http://pastie.org/9382097
[21:00:40] NivenHuH: that's the simplified version
[21:02:30] NivenHuH: apeiros ok will do
[21:03:31] NivenHuH: apeiros i'll post the exception when i do ^, one sec
[21:05:50] NivenHuH: apeiros http://pastie.org/9382123
[21:06:31] NivenHuH: hm? i pasted the code which fails to work and the exception
[21:07:05] NivenHuH: yea, this is a different exception because it's not related to the privacy of the method
[21:09:16] NivenHuH: what i'm wanting to do is to yield it to the instance_eval block
[21:09:23] NivenHuH: is that the right term to use?
[21:11:38] NivenHuH: ok that makes sense
[21:12:02] NivenHuH: on line 17 in http://pastie.org/9382123 would self equal to the DSL evaluating object?
[21:19:03] NivenHuH: apeiros Mon_Ouie banister thanks for the advice, this is working for me
[21:19:47] NivenHuH: i'm using pry when i want to inspect
[21:21:16] NivenHuH: thanks! also apologies about my irc etiquette, i'm not usually asking questions too often these days so i've fallen out of practice :)

2014-06-19

[23:13:33] NivenHuH: hi all, i have a relatively straightforward question, but oddly it's something i haven't had to do
[23:13:39] NivenHuH: https://gist.github.com/leepfrog/0bfb1371cc829cca67c4
[23:13:59] NivenHuH: the question is, how can i stage a related object for deletion, but not execute the delete until i call save on the parent object?

2014-04-30

[16:42:37] NivenHuH: hey all, a quick question on hashes and keys.. is it possible to evaluate a method (which returns a symbol) and concisely use that method while defining a hash? eg { my_fn_that_returns_a_symbol: my_fn_that_returns_a_val }
[16:44:39] NivenHuH: havenwood got it, thanks
[18:02:35] NivenHuH: i'm using active_model_serializers, however i'm noticing some funky behavior. specifically, out of the box the json response for Post.all includes two roots -- one for the top level (ok), but also one for each individual record (not-ok)
[18:04:10] NivenHuH: oh nvm, jbuilder was getting in the way

2014-04-28

[21:56:31] NivenHuH: suciuvlad use explain
[21:56:43] NivenHuH: but yea, you're likely missing an index

2014-01-16

[00:34:38] NivenHuH: hey all, i have a question about this syntax.. https://gist.github.com/anonymous/8447641
[00:35:05] NivenHuH: is this ruby syntax? eg.. can you take a string and interpolate keys from a hash like that?
[00:35:26] NivenHuH: is this something that went away in ruby 2.1?

2013-12-13

[05:14:50] NivenHuH: hey all.. on rails3, when i'm pre-compiling my assets, in the output file, i see sprockets comments instead of the compiled output. any clue what would cause this?
[05:16:00] NivenHuH: Radar ok i'll attempt to reproduce elsewhere
[05:34:48] NivenHuH: Radar does not occur on new app
[05:35:21] NivenHuH: no, i copied the gemfile over to see if that was a cause
[05:35:33] NivenHuH: i also copied the assets over to see if that was a cause
[05:35:45] NivenHuH: correct, i used the same gemfile.lock
[05:36:13] NivenHuH: i'll share when i finally figure it out
[05:37:00] NivenHuH: christo_m lol that's not too weird .. major versions break things
[05:37:30] NivenHuH: * on legacy code
[05:38:20] NivenHuH: it's what's behind the save that's complex
[05:38:58] NivenHuH: i don't know much about your problem, i haven't been following along.. i'm just speaking generically
[05:39:33] NivenHuH: use a debugger like pry stack-explorer
[05:41:12] NivenHuH: night radar

2013-10-02

[21:45:38] NivenHuH: did autoloading class libs change in rails4?
[21:45:54] NivenHuH: meaning.. if i have a class MyCoolClass in lib/my_cool_class.rb, it should still be autoloaded c?

2013-07-03

[23:48:57] NivenHuH: is there a way to route all OPTIONS requests to a given method in a controller?
[23:49:29] NivenHuH: i want match '*', to: 'cors#handle_cors_header_stuff', via: :options

2013-05-20

[09:50:26] NivenHuH: hey all, is there something in the asset pipeline that would cause my sprite sheet of images to render differently?
[09:50:33] NivenHuH: after asset compilation
[09:51:12] NivenHuH: it's weird, because i compared the image assets on dev vs prod and they're the same, but the css is rendering different from dev to production

2013-04-05

[02:55:36] NivenHuH: is 'action' a reserved word for a resource?
[02:56:03] NivenHuH: i have a resource :actions, i'm sending a put to it, the browser inspector clearly says it's sending the json {'action': ….}, but the server params log does not have my json included

2013-03-12

[04:54:30] NivenHuH: you can use request.env['REMOTE_HOST'] to get the ip addy right?
[04:56:00] NivenHuH: *sigh* that's what happens when you stop using a tool day-to-day :'(
[05:03:40] NivenHuH: rakl this sort of get's the intention i think: https://gist.github.com/leepfrog/5140428
[05:04:52] NivenHuH: if not, then sorry.. ;) simcity time
[05:07:14] NivenHuH: zeroeth it's working
[05:10:56] NivenHuH: rakl ya it does, but it doesn't take into account nil user_id on a vote
[05:12:26] NivenHuH: you definitely need tests in this case ;)
[05:12:37] NivenHuH: it sounds like you have a handful of scenarios you want to catch

2013-01-25

[04:22:37] NivenHuH: why would RAILS_ENV=development rake db:create attempt to create databases for other environments?
[04:23:30] NivenHuH: oh nevermind
[04:23:33] NivenHuH: my coworker is a troll

2013-01-24

[06:35:53] NivenHuH: how often do people blow away their db migrations?
[06:36:44] NivenHuH: i'm setting up chef / virtual dev environments.. and my project has a lot of legacy to it
[06:36:57] NivenHuH: like some shit from rails 1
[06:37:42] NivenHuH: was just wondering if people packrat em, move em to a deprecated folder, or just delete em
[06:38:08] NivenHuH: i have some tables that have changed names 3-4 times only to wind up as the original table name
[06:38:23] NivenHuH: sevenseacat well, i can't do rake db:migrate on a fresh system for sure
[06:38:33] NivenHuH: some migrations were written to do data manipulation / moves
[06:39:10] NivenHuH: so they refer to classes that no longer exist
[06:40:24] NivenHuH: well, conceptually -- no.. but in excecution, yes
[06:54:58] NivenHuH: legacy apps are their own critters
[06:55:11] NivenHuH: i take the "only touch enough to add/change the feature"
[06:55:24] NivenHuH: especially w/ no active test suite
[06:57:51] NivenHuH: 2.x wasn't too bad
[06:59:03] NivenHuH: that's a good thing yaaase
[07:00:31] NivenHuH: upgrading takes time and $$
[07:00:52] NivenHuH: trade-off is (hopefully) less code and a bit more security
[07:01:14] NivenHuH: strong params are opt-in though
[07:01:21] NivenHuH: it shouldn't gate you from upgrading?
[07:03:14] NivenHuH: i think one of the happiest thing i deprecated when moving from 2.x -> 3.x was throwing away some code that was using ObjectSpace
[07:03:27] NivenHuH: because there was no way to get the association in-memory before inverse_of
[07:04:36] NivenHuH: if obj.class == MyAssocationClass # we have our in-memory association!
[07:04:40] NivenHuH: what could possibly go wrong?
[07:05:43] NivenHuH: haha i think one of the other funniest things i've seen was someone calling rescue nil after every single statement
[07:06:11] NivenHuH: kind of reminds me of this: https://github.com/mattdiamond/fuckitjs
[07:16:15] NivenHuH: i think i want to get drunk and hang out on irc instead of finishing this project
[07:16:17] NivenHuH: is that bad?
[07:16:59] NivenHuH: i am right now

2013-01-10

[19:21:28] NivenHuH: i'm trying to find good docs on AREL but i'm coming up amiss

2012-12-23

[00:00:32] NivenHuH: ya i'll give it a twirl.. thnx Antiarc
[00:00:40] NivenHuH: i'll let you know what difference i see.. i'm taking measurements now
[00:01:05] NivenHuH: i'm assuming it just overrides built in .to_json serialization c?
[00:07:33] NivenHuH: using oj is about +1 second

2012-12-22

[23:57:25] NivenHuH: this db call is doing a handful of joins to accomplish it's task… I'm using includes(), but still json render time is pretty high… is there a good doc to read on doing caching/optimization? Completed 200 OK in 8595ms (Views: 7459.9ms | ActiveRecord: 1111.9ms)
[23:57:42] NivenHuH: i know how to get the activerecord side down w/ better indexing
[23:58:15] NivenHuH: sec lemme see
[23:58:47] NivenHuH: i'm using active_model_serializers which i think is just using whatever built in .to_json uses
[23:59:35] NivenHuH: a majority of this data is fairly static too, so some caching could be very useful

2012-12-16

[02:22:30] NivenHuH: random coffeescript question, but how can you access this and _this when using fat stabby =>
[02:22:51] NivenHuH: _this is autocreated by coffeescript when you use =>
[02:22:56] NivenHuH: and when you say this or @, it changes it to _this
[02:23:18] NivenHuH: _this = this outside of the context of the function
[02:24:00] NivenHuH: yea that's what i'm doing.. more a curiosity thing
[02:24:29] NivenHuH: i figured doing something lke `this` would have worked, but it still gets changed to _this
[02:24:33] NivenHuH: scumbag coffee

2012-12-12

[07:58:56] NivenHuH: hey all, i have a quick question re: hasMany:through… say I have a post hasMany authors through postAuthors. on the post, when creating it, i'd like to set post.author_ids=[123,122,124]… this correctly sets up the association on PostAuthors, but when using this in a create call, it doesn't work
[07:59:03] NivenHuH: because the post_id is nil
[07:59:35] NivenHuH: the question is, is there a way to do this? i shouldn't need to set accepts_nested_attributes, c?
[08:01:24] NivenHuH: is there a reason why it doesn't just use build to create the association?
[08:04:17] NivenHuH: got it.. was hoping to avoid having to write additional controller code, but this'll work.. thnx bricker
[08:20:37] NivenHuH: bricker actually.. nevermind the _ids thing does work.. some person snuck some validations in to my join model
[08:20:43] NivenHuH: and that was preventing it from working