elektronaut

Activity Graph

Page 1 of 2 | Next »

2016-06-16

[21:41:21] elektronaut: Quit: ZNC - http://znc.in

2016-03-01

[19:25:47] elektronaut: *.net *.split
[19:31:32] elektronaut: has joined #RubyOnRails
[19:31:34] elektronaut: has joined #ruby

2016-02-17

[09:52:53] elektronaut: *.net *.split
[09:53:08] elektronaut: has joined #ruby
[09:53:08] elektronaut: has joined #RubyOnRails
[10:03:47] elektronaut: *.net *.split
[10:05:33] elektronaut: has joined #RubyOnRails
[10:05:34] elektronaut: has joined #ruby

2016-01-31

[12:25:21] elektronaut: *.net *.split
[12:29:16] elektronaut: has joined #RubyOnRails
[12:29:20] elektronaut: has joined #ruby

2016-01-06

[17:42:06] elektronaut: has joined #ruby
[17:42:06] elektronaut: has joined #RubyOnRails

2015-12-15

[22:00:45] elektronaut: Quit: ZNC - http://znc.in

2015-12-07

[14:51:47] elektronaut: Ping timeout: 264 seconds
[14:53:25] elektronaut: has joined #ruby
[14:53:25] elektronaut: has joined #RubyOnRails

2015-12-06

[14:16:24] elektronaut: Ping timeout: 264 seconds
[14:22:03] elektronaut: has joined #ruby
[14:22:03] elektronaut: has joined #RubyOnRails
[18:20:35] elektronaut: Ping timeout: 264 seconds
[18:22:31] elektronaut: has joined #ruby
[18:22:31] elektronaut: has joined #RubyOnRails

2015-12-04

[17:47:36] elektronaut: Ping timeout: 264 seconds
[17:50:55] elektronaut: has joined #ruby
[17:50:55] elektronaut: has joined #RubyOnRails
[18:54:11] elektronaut: Ping timeout: 264 seconds
[18:55:02] elektronaut: has joined #ruby
[18:55:02] elektronaut: has joined #RubyOnRails

2015-12-02

[15:39:13] elektronaut: *.net *.split
[16:47:35] elektronaut: has joined #ruby
[16:47:59] elektronaut: has joined #RubyOnRails

2015-12-01

[18:46:26] elektronaut: Ping timeout: 240 seconds
[18:49:06] elektronaut: has joined #ruby
[18:49:06] elektronaut: has joined #RubyOnRails

2015-11-29

[22:06:51] elektronaut: Ping timeout: 264 seconds
[22:08:24] elektronaut: has joined #ruby
[22:08:24] elektronaut: has joined #RubyOnRails

2015-11-26

[19:02:01] elektronaut: *.net *.split

2015-11-21

[17:44:47] elektronaut: Ping timeout: 240 seconds
[17:51:16] elektronaut: has joined #RubyOnRails
[17:51:17] elektronaut: has joined #ruby

2015-11-14

[05:51:06] elektronaut: Ping timeout: 250 seconds
[05:51:22] elektronaut: has joined #ruby
[05:51:22] elektronaut: has joined #RubyOnRails

2015-11-04

[03:04:57] elektronaut: Ping timeout: 250 seconds
[03:09:30] elektronaut: has joined #ruby
[03:09:30] elektronaut: has joined #RubyOnRails

2015-10-31

[16:40:46] elektronaut: Ping timeout: 240 seconds
[16:46:53] elektronaut: has joined #ruby
[16:46:53] elektronaut: has joined #RubyOnRails

2015-10-22

[14:35:25] elektronaut: has joined #ruby
[14:35:25] elektronaut: has joined #RubyOnRails

2015-10-21

[21:01:10] elektronaut: Quit: ZNC - http://znc.in

2015-10-16

[00:13:37] elektronaut: has joined #ruby
[00:13:45] elektronaut: has joined #RubyOnRails

2015-10-15

[09:25:46] elektronaut: Ping timeout: 240 seconds
[09:28:11] elektronaut: has joined #ruby
[09:28:11] elektronaut: has joined #RubyOnRails
[09:44:06] elektronaut: Ping timeout: 240 seconds
[09:45:43] elektronaut: has joined #ruby
[09:45:43] elektronaut: has joined #RubyOnRails

2015-10-10

[14:56:07] elektronaut: Ping timeout: 240 seconds
[14:57:23] elektronaut: has joined #ruby
[14:57:23] elektronaut: has joined #RubyOnRails
[23:00:30] elektronaut: Ping timeout: 250 seconds
[23:02:18] elektronaut: has joined #ruby
[23:02:18] elektronaut: has joined #RubyOnRails

2015-10-04

[01:32:47] elektronaut: Ping timeout: 240 seconds
[01:35:57] elektronaut: has joined #ruby
[01:35:57] elektronaut: has joined #RubyOnRails

2015-09-21

[20:40:07] elektronaut: Ping timeout: 240 seconds
[20:42:27] elektronaut: has joined #ruby
[20:42:27] elektronaut: has joined #RubyOnRails

2015-09-10

[08:53:28] elektronaut: Ping timeout: 250 seconds
[08:56:00] elektronaut: has joined #ruby
[08:56:00] elektronaut: has joined #RubyOnRails

2015-08-22

[14:11:14] elektronaut: Ping timeout: 240 seconds
[14:13:55] elektronaut: has joined #ruby
[14:13:55] elektronaut: has joined #RubyOnRails

2015-08-20

[21:16:54] elektronaut: Ping timeout: 250 seconds
[21:19:27] elektronaut: has joined #ruby
[21:19:27] elektronaut: has joined #RubyOnRails

2015-08-02

[15:45:47] elektronaut: Ping timeout: 240 seconds
[15:50:02] elektronaut: has joined #ruby
[15:50:02] elektronaut: has joined #RubyOnRails

2015-07-31

[14:29:27] elektronaut: Ping timeout: 240 seconds
[15:25:47] elektronaut: has joined #ruby
[15:25:47] elektronaut: has joined #RubyOnRails

2015-07-30

[18:34:56] elektronaut: Ping timeout: 240 seconds
[19:28:38] elektronaut: has joined #ruby
[19:28:38] elektronaut: has joined #RubyOnRails

2015-07-29

[10:05:52] elektronaut: Ping timeout: 240 seconds
[11:00:38] elektronaut: has joined #ruby
[11:00:38] elektronaut: has joined #RubyOnRails

2015-07-27

[11:17:28] elektronaut: has joined #ruby
[11:17:28] elektronaut: has joined #RubyOnRails

2015-07-26

[11:05:59] elektronaut: *.net *.split

2015-07-06

[02:48:13] elektronaut: Ping timeout: 252 seconds
[02:49:21] elektronaut: has joined #ruby
[02:49:21] elektronaut: has joined #RubyOnRails
[10:54:25] elektronaut: Ping timeout: 252 seconds
[10:59:16] elektronaut: has joined #ruby
[10:59:16] elektronaut: has joined #RubyOnRails
[19:03:11] elektronaut: Ping timeout: 252 seconds
[19:05:40] elektronaut: has joined #ruby
[19:05:40] elektronaut: has joined #RubyOnRails

2015-07-05

[02:13:51] elektronaut: Ping timeout: 252 seconds
[02:15:15] elektronaut: has joined #ruby
[02:15:15] elektronaut: has joined #RubyOnRails
[06:17:18] elektronaut: Ping timeout: 252 seconds
[06:22:42] elektronaut: has joined #ruby
[06:22:42] elektronaut: has joined #RubyOnRails
[22:28:37] elektronaut: Ping timeout: 252 seconds
[22:43:59] elektronaut: has joined #ruby
[22:43:59] elektronaut: has joined #RubyOnRails

2015-07-04

[01:18:57] elektronaut: Ping timeout: 252 seconds
[01:19:29] elektronaut: has joined #ruby
[01:19:29] elektronaut: has joined #RubyOnRails
[05:23:31] elektronaut: Ping timeout: 252 seconds
[05:50:29] elektronaut: has joined #ruby
[05:50:29] elektronaut: has joined #RubyOnRails
[13:54:39] elektronaut: Ping timeout: 252 seconds
[14:03:23] elektronaut: has joined #ruby
[14:03:23] elektronaut: has joined #RubyOnRails
[22:07:27] elektronaut: Ping timeout: 252 seconds
[22:09:48] elektronaut: has joined #ruby
[22:09:48] elektronaut: has joined #RubyOnRails

2015-07-03

[00:23:18] elektronaut: Ping timeout: 252 seconds
[00:29:51] elektronaut: has joined #RubyOnRails
[00:29:52] elektronaut: has joined #ruby
[08:33:54] elektronaut: Ping timeout: 252 seconds
[08:35:06] elektronaut: has joined #ruby
[08:35:06] elektronaut: has joined #RubyOnRails
[12:37:01] elektronaut: Ping timeout: 252 seconds
[12:43:34] elektronaut: has joined #RubyOnRails
[12:43:35] elektronaut: has joined #ruby
[16:45:36] elektronaut: Ping timeout: 252 seconds
[16:48:02] elektronaut: has joined #ruby
[16:48:02] elektronaut: has joined #RubyOnRails
[20:50:11] elektronaut: Ping timeout: 252 seconds
[21:17:02] elektronaut: has joined #ruby
[21:17:02] elektronaut: has joined #RubyOnRails

2015-07-02

[07:49:38] elektronaut: Ping timeout: 252 seconds
[08:06:10] elektronaut: has joined #RubyOnRails
[08:06:11] elektronaut: has joined #ruby
[12:10:20] elektronaut: Ping timeout: 252 seconds
[12:11:33] elektronaut: has joined #ruby
[12:11:33] elektronaut: has joined #RubyOnRails
[20:16:11] elektronaut: Ping timeout: 252 seconds
[20:21:25] elektronaut: has joined #ruby
[20:21:25] elektronaut: has joined #RubyOnRails

2015-07-01

[14:46:40] elektronaut: *.net *.split
[15:07:48] elektronaut: has joined #ruby
[15:07:48] elektronaut: has joined #RubyOnRails

2015-06-21

[00:05:32] elektronaut: sphex: sort of, yeah
[00:09:50] elektronaut: sphex: good.. encoding is the only thing that makes me feel i know less the more i learn
[00:37:50] elektronaut: t4nk266: c.class.superclass
[00:52:30] elektronaut: t4nk266: yeah, i doubt that is possible.
[01:00:43] elektronaut: t4nk266: https://gist.github.com/elektronaut/bc425f3cc86ba1bf028b
[01:02:12] elektronaut: i haven't actually tested that.. and i would probably be more explicit about it rather than relying on metaprogramming
[01:02:44] elektronaut: but that's basically how rails transfers instance variables from controllers to the views
[01:04:06] elektronaut: also, won't work if the parent class initializer requires arguments

2015-06-20

[23:58:34] elektronaut: i'm ruby 1.8.7 freee. what a glorious day.

2015-06-19

[00:04:31] elektronaut: i like passenger well enough. i've got a ton of mostly low traffic apps running on dozens of servers, i love that it's pretty much set and forget.
[00:22:43] elektronaut: i swore off linux on the desktop 10 years ago, but i should probably give it a chance again
[00:23:56] elektronaut: i use emacs, totally get it :)
[00:25:10] elektronaut: at this pace, emacs is going to end up as my desktop
[00:31:38] elektronaut: currently on my lisp pilgrimage, which i suppose happens to all programmers at one point in life
[00:32:01] elektronaut: scheme (sicp) and clojur
[00:33:02] elektronaut: true. it's an interesting language, though.
[00:46:37] elektronaut: i'd argue the stuff on the left is shitty engineering as well :p
[00:46:57] elektronaut: is this rails?
[00:51:15] elektronaut: user_params = { uuid: @user.uuid }.merge(params.reject_if { |k, v| v.nil? })
[00:51:34] elektronaut: should be equivalent, but you probably want to look into strong parameters if you're using rails
[00:58:51] elektronaut: proloser: sorry, that doesn't whitelist at all. here: https://gist.github.com/elektronaut/98a745c68f77267a573c
[01:04:09] elektronaut: argh, keep_if mutates the hash in place
[01:09:19] elektronaut: correct. i've been writing too much 1.8 compatible code, where #select returns an array.
[18:59:20] elektronaut: you can also pass it as a string to Regexp.new, although that's not really pretty
[19:20:43] elektronaut: nothing wrong with being an old fart
[19:21:51] elektronaut: textmate 2 was vaporware for so long, i guess most people moved on to sublime
[19:26:26] elektronaut: what encoding is stupid_string to begin with?
[19:33:07] elektronaut: linked lists are beneficial when you need constant time inserts anywhere
[19:33:31] elektronaut: and don't need random access
[20:14:52] elektronaut: you might want .split(":") instead if you don't care about the :

2015-06-18

[01:47:04] elektronaut: yeah, it takes floats
[23:11:23] elektronaut: hashes are ordered in ruby 1.9+
[23:27:42] elektronaut: hah. i still have 5 projects stuck on 1.8.7 / rails 2
[23:28:28] elektronaut: hopefully 2015 will be the year i can finally retire 1.8.7 from production
[23:29:27] elektronaut: fortunately, there's not that much you can do in 2, so it's easy to keep in your head
[23:29:33] elektronaut: although i'm getting rusty on that
[23:32:29] elektronaut: there was a gem, i can't remember what it's called
[23:33:08] elektronaut: rails_upgrade
[23:36:22] elektronaut: there's rails LTS at least
[23:36:49] elektronaut: haven't tried it. but i imagine there's quite a few projects still stuck on rails 2 out there.
[23:43:52] elektronaut: zenspider: scope :temporary, -> { unscoped.where(..) } maybe?
[23:44:01] elektronaut: default_scope is full of dragons
[23:56:22] elektronaut: yeah, i read that as well. damn brain autocorrect.

2014-11-19

[00:07:25] elektronaut: lexi87: drop the third argument, the empty hash

2014-11-18

[23:43:46] elektronaut: redirect_to articles_url
[23:50:16] elektronaut: i would guess so
[23:52:44] elektronaut: you have a string that's not .html_safe

2014-11-05

[00:20:19] elektronaut: siaw: check the case - dir, not Dir
[00:28:33] elektronaut: xibalba: bin/spring stop

2014-11-04

[22:14:06] elektronaut: there's a plugin for capistrano for deploying with rsync as well
[22:16:51] elektronaut: it's probably not an amazing idea, though. tying deployment to your version control system is much better.
[22:22:02] elektronaut: are you happy with the Docker workflow?
[22:23:39] elektronaut: i use puppet to provision, and capistrano to deploy
[22:24:02] elektronaut: i don't love puppet, but it works.
[22:27:23] elektronaut: sssh, you're ruining my job security.
[22:30:36] elektronaut: is there an API somewhere where I can get the latest patch version for each supported minor rails version?
[22:31:02] elektronaut: i guess i can just try the rubygems api
[23:47:36] elektronaut: fifthwall: like default_url_options[:host] = 'example.com:' + (rand(10000) + 1024) ?
[23:48:34] elektronaut: xibalba: gem uninstall rails -v 4.2.0.beta2
[23:49:20] elektronaut: fifthwall: ok.. default_url_options[:host] = ENV['TEST_HOST'] ?
[23:52:00] elektronaut: xibalba: right, sorry
[23:52:42] elektronaut: ayesian: which gem
[23:52:56] elektronaut: also, try "rbenv rehash"
[23:53:35] elektronaut: no, with rbenv "which gem" should show the shim one
[23:55:03] elektronaut: sounds about right
[23:58:40] elektronaut: i'm guessing maybe your Gemfile.lock says 4.2.0.beta2

2014-07-03

[01:51:29] elektronaut: bin/rails console production
[01:52:52] elektronaut: well, development is the default :)
[01:58:10] elektronaut: rails does it by having a file called config/environment.rb.
[01:58:36] elektronaut: with irb you can do bundle exec irb, and then require './config/environment'
[02:01:22] elektronaut: beware if he content comes from untrusted users, you've just added an XSS vulnerability
[02:06:03] elektronaut: running the markdown output through sanitize should work
[02:06:25] elektronaut: additionally, i'd do it in a helper or something, and not in the model

2014-06-29

[02:17:31] elektronaut: no, just a hash key
[02:23:05] elektronaut: if you do require on {foo: {bar: 'baz'}}, it'll return {bar: 'baz'}
[02:23:35] elektronaut: so it's pretty much equivalent to accessing params[:foo], except it'll raise an error if that key isn't found
[02:23:50] elektronaut: you'll need to pair it with .permit for it to be secure from mass assignment
[02:27:21] elektronaut: no, it'll just pass through everything you send from the view for that model
[02:28:21] elektronaut: this is the entire require method: def require(key); self[key].presence || raise(ParameterMissing.new(key)); end
[02:29:31] elektronaut: params, which is an instance of ActionController::Params
[02:29:51] elektronaut: so, it's equivalent to accessing params[:report]
[02:47:40] elektronaut: stef1a: i guess you got unlucky, it's not something that normally happens.
[02:48:50] elektronaut: i've definitively had the problem, though. i just wipe the database and migrate from scratch.
[02:48:57] elektronaut: you could also try the database_cleaner gem

2014-04-09

[17:03:16] elektronaut: lethjakman: digging through the git history, seems like that line was introduced with Rails 3.0, which still supported ruby 1.8