andrewvos

Activity Graph

Page 1 of 2 | Next »

2018-05-21

[10:59:07] andrewvos: has joined #ruby
[12:21:58] andrewvos: has left #ruby: ("WeeChat 2.1")

2016-06-16

[14:28:43] andrewvos: has joined #ruby
[14:31:06] andrewvos: Has anyone here every utilized GridFS with Ruby to store images? I am wondering what I am doing wrong in the code below, it comes basically straight from the documentation (https://docs.mongodb.com/ecosystem/tutorial/ruby-driver-tutorial/#gridfs), here is the code I have written (https://gist.github.com/terrabl/f0e6038cba2e210cf366cbbd5eb11e11) And I am getting a gridFS_test.insert | FAILED | wrong number of arguments (2 for 0..1) e
[15:04:08] andrewvos: Quit: Page closed

2016-05-24

[10:20:23] andrewvos: has joined #ruby
[13:44:06] andrewvos: apeiros: do you need the destinction between not yet born and deceased?
[13:44:13] andrewvos: cause #alive? might do
[13:45:02] andrewvos: if !h.alive? && age < 0
[13:45:32] andrewvos: #antenatal?
[13:46:54] andrewvos: natality -> %w{antenatal postnatal}
[13:47:09] andrewvos: Quit: WeeChat 0.4.2
[13:50:56] andrewvos: has joined #ruby
[13:52:21] andrewvos: existence => antinatal, alive, dead
[13:52:29] andrewvos: also I just learned about this https://en.wikipedia.org/wiki/Antinatalism
[13:54:33] andrewvos: are you really gonna have a row for something that's unborn
[13:55:32] andrewvos: you should choose something obviou
[13:55:36] andrewvos: don't try be too clever
[13:55:40] andrewvos: current_life_state
[13:55:52] andrewvos: current_life_state [:alive, :unborn, :dead]
[13:56:09] andrewvos: the former is good
[13:56:13] andrewvos: the latter is irritating
[15:39:56] andrewvos: Quit: WeeChat 0.4.2

2016-03-29

[15:29:19] andrewvos: has joined #ruby
[15:46:01] andrewvos: Quit: WeeChat 0.4.2

2016-03-18

[10:17:47] andrewvos: has joined #ruby
[11:03:05] andrewvos: Ping timeout: 244 seconds
[11:05:54] andrewvos: has joined #ruby
[12:54:01] andrewvos: Ping timeout: 240 seconds

2016-03-17

[09:51:30] andrewvos: has joined #ruby
[10:07:54] andrewvos: Ping timeout: 260 seconds
[10:22:53] andrewvos: has joined #ruby
[10:43:42] andrewvos: Ping timeout: 260 seconds
[10:58:05] andrewvos: has joined #ruby
[11:29:51] andrewvos: Ping timeout: 276 seconds
[13:10:44] andrewvos: has joined #ruby
[13:41:55] andrewvos: Ping timeout: 248 seconds
[14:00:51] andrewvos: has joined #ruby
[14:34:11] andrewvos: Ping timeout: 248 seconds
[14:47:21] andrewvos: has joined #ruby
[15:26:46] andrewvos: Ping timeout: 268 seconds
[15:42:03] andrewvos: has joined #ruby
[16:12:22] andrewvos: Ping timeout: 252 seconds

2016-03-16

[09:35:57] andrewvos: has joined #ruby
[10:27:03] andrewvos: Ping timeout: 276 seconds
[10:32:00] andrewvos: has joined #ruby
[12:13:08] andrewvos: use pry maybe
[12:14:52] andrewvos: how slight of a delay
[14:26:14] andrewvos: Ping timeout: 244 seconds
[14:50:13] andrewvos: has joined #ruby
[15:25:59] andrewvos: chruby is the best
[15:26:12] andrewvos: it's never given me even the tiniest bit of a problem
[15:27:21] andrewvos: also ruby-install
[15:27:54] andrewvos: don't listen to manveru
[15:28:29] andrewvos: use rbenv if you want to be unhappy
[15:29:27] andrewvos: probably don't use a version manager in production though
[15:29:43] andrewvos: actually definitely don't
[15:30:42] andrewvos: cause then your provisioning becomes more painful?
[15:31:07] andrewvos: unless you like working with ansible or puppet or whatever is in vogue atm
[15:32:47] andrewvos: doesn't sound like fun that manveru :)
[15:32:54] andrewvos: is nix-shell nice/
[15:33:50] andrewvos: sounds nice
[15:34:50] andrewvos: how does it isolate apps?
[15:34:54] andrewvos: I mean dependencies
[15:36:24] andrewvos: so, like, this uses a package manager or it has its own?
[15:36:45] andrewvos: it's not using containers is it?
[15:38:59] andrewvos: imagine it would be hard if you're freelance and jumping around a few projects though
[15:47:49] andrewvos: Ping timeout: 268 seconds
[16:13:34] andrewvos: has joined #ruby
[16:23:46] andrewvos: there's probably a french word for that
[16:41:28] andrewvos: Ping timeout: 268 seconds
[16:42:04] andrewvos: has joined #ruby
[17:03:27] andrewvos: Ping timeout: 250 seconds

2016-03-15

[09:57:21] andrewvos: has joined #ruby
[11:58:25] andrewvos: Ping timeout: 240 seconds
[12:14:10] andrewvos: has joined #ruby
[13:15:20] andrewvos: CTRL+SHIFT+N
[14:03:52] andrewvos: Ping timeout: 252 seconds
[14:19:53] andrewvos: has joined #ruby
[15:21:45] andrewvos: Ping timeout: 276 seconds
[15:36:05] andrewvos: has joined #ruby
[17:06:03] andrewvos: Ping timeout: 240 seconds

2016-03-14

[15:17:16] andrewvos: has joined #ruby
[15:56:58] andrewvos: gem uninstall uglifier && bundle install
[16:00:39] andrewvos: you sure that's the whole error you pasted?
[16:04:28] andrewvos: oh so it's a rails app
[16:04:51] andrewvos: https://github.com/sodabrew/puppet-dashboard/blob/master/Gemfile#L27
[16:04:58] andrewvos: that gem is only available in the :assets group
[16:05:35] andrewvos: just run rake secret
[16:05:39] andrewvos: should work
[16:07:58] andrewvos: or move uglifer to group :development in Gemfile and `bundle install`
[16:08:12] andrewvos: I think the latter might be the only option
[16:09:48] andrewvos: or, and I'm spitballing here: `RAILS_ENV=assets bundle exec rake secret`
[16:10:12] andrewvos: precious install commands
[16:15:04] andrewvos: did you try my RAILS_ENV thing above?
[16:15:31] andrewvos: move EVERY gem out of there
[16:15:41] andrewvos: get rid of everything resembling a group in that gemfile
[16:15:44] andrewvos: then bundle install
[16:17:03] andrewvos: oh wait http://stackoverflow.com/questions/7351607/how-is-the-assets-group-in-rails-3-1-handled-by-bundler
[16:17:25] andrewvos: https://github.com/sodabrew/puppet-dashboard/blob/master/config/application.rb#L7
[16:17:31] andrewvos: you shouldn't be seeing this issue
[16:17:37] andrewvos: something is wrong with your bundler
[16:17:59] andrewvos: you're probably using something evil like rvm. Maybe open a new terminal and try rake in there
[16:18:21] andrewvos: or jiggle your ruby version manager
[17:03:59] andrewvos: Ping timeout: 244 seconds

2016-02-20

[15:54:49] andrewvos: has joined #RubyOnRails
[15:54:49] andrewvos: has joined #ruby
[16:22:12] andrewvos: Ping timeout: 244 seconds

2016-02-19

[09:56:03] andrewvos: has joined #ruby
[11:01:23] andrewvos: Ping timeout: 248 seconds
[13:13:28] andrewvos: has joined #ruby
[13:25:46] andrewvos: Ping timeout: 255 seconds
[13:41:04] andrewvos: has joined #ruby
[13:56:22] andrewvos: Ping timeout: 255 seconds
[14:09:34] andrewvos: has joined #ruby
[14:27:58] andrewvos: has joined #RubyOnRails
[15:53:49] andrewvos: Ping timeout: 244 seconds
[19:51:58] andrewvos: has joined #RubyOnRails
[19:51:58] andrewvos: has joined #ruby
[20:27:25] andrewvos: Ping timeout: 255 seconds
[20:35:41] andrewvos: has joined #RubyOnRails
[20:35:41] andrewvos: has joined #ruby
[21:29:08] andrewvos: Ping timeout: 244 seconds
[22:59:35] andrewvos: has joined #RubyOnRails
[22:59:35] andrewvos: has joined #ruby
[23:28:59] andrewvos: Ping timeout: 240 seconds

2016-02-18

[10:04:02] andrewvos: has joined #ruby
[10:23:32] andrewvos: Ping timeout: 250 seconds
[10:38:27] andrewvos: has joined #ruby
[10:55:35] andrewvos: Ping timeout: 250 seconds
[11:11:00] andrewvos: has joined #ruby
[11:28:05] andrewvos: Ping timeout: 250 seconds
[11:43:23] andrewvos: has joined #ruby
[12:00:52] andrewvos: Ping timeout: 244 seconds
[13:01:41] andrewvos: has joined #ruby
[13:18:59] andrewvos: Ping timeout: 248 seconds
[14:34:54] andrewvos: has joined #ruby
[15:54:43] andrewvos: Ping timeout: 248 seconds
[20:23:50] andrewvos: has joined #ruby
[23:23:15] andrewvos: Ping timeout: 248 seconds

2016-02-17

[00:42:18] andrewvos: has joined #ruby
[00:54:47] andrewvos: Ping timeout: 264 seconds
[10:03:58] andrewvos: has joined #ruby
[10:22:20] andrewvos: Ping timeout: 260 seconds
[10:23:13] andrewvos: has joined #ruby
[10:44:16] andrewvos: Ping timeout: 272 seconds
[10:48:38] andrewvos: has joined #ruby

2016-02-16

[00:05:02] andrewvos: Ping timeout: 272 seconds
[10:12:28] andrewvos: has joined #ruby
[10:27:48] andrewvos: Ping timeout: 248 seconds
[10:40:36] andrewvos: has joined #ruby
[11:00:32] andrewvos: Ping timeout: 272 seconds
[11:15:26] andrewvos: has joined #ruby
[11:32:05] andrewvos: Ping timeout: 260 seconds
[11:54:53] andrewvos: has joined #ruby
[12:15:06] andrewvos: Ping timeout: 250 seconds
[12:30:18] andrewvos: has joined #ruby
[12:42:40] andrewvos: Ping timeout: 256 seconds
[12:58:37] andrewvos: has joined #ruby
[13:47:16] andrewvos: Ping timeout: 248 seconds
[14:02:12] andrewvos: has joined #ruby
[14:59:22] andrewvos: Ping timeout: 240 seconds
[15:18:35] andrewvos: has joined #ruby
[15:47:46] andrewvos: Ping timeout: 240 seconds
[17:39:36] andrewvos: has joined #ruby
[17:59:10] andrewvos: Ping timeout: 272 seconds

2016-02-15

[10:04:06] andrewvos: has joined #ruby
[10:20:47] andrewvos: Ping timeout: 276 seconds
[10:35:51] andrewvos: has joined #ruby
[11:02:40] andrewvos: Ping timeout: 252 seconds
[14:27:54] andrewvos: has joined #ruby
[14:40:10] andrewvos: Ping timeout: 250 seconds
[14:55:06] andrewvos: has joined #ruby
[16:59:35] andrewvos: Ping timeout: 264 seconds
[23:35:29] andrewvos: has joined #ruby

2016-02-14

[11:14:49] andrewvos: has joined #ruby
[11:46:10] andrewvos: Ping timeout: 260 seconds
[11:50:36] andrewvos: has joined #ruby
[12:03:46] andrewvos: Ping timeout: 240 seconds
[20:41:05] andrewvos: has joined #ruby
[22:39:47] andrewvos: Ping timeout: 264 seconds

2016-02-13

[14:48:49] andrewvos: has joined #ruby
[15:27:50] andrewvos: Ping timeout: 272 seconds
[15:52:48] andrewvos: has joined #ruby
[16:23:20] andrewvos: Ping timeout: 276 seconds
[17:36:11] andrewvos: has joined #ruby
[17:48:24] andrewvos: Ping timeout: 256 seconds
[17:50:10] andrewvos: has joined #ruby
[18:18:20] andrewvos: Ping timeout: 250 seconds

2016-02-12

[10:42:59] andrewvos: has joined #ruby
[19:16:50] andrewvos: Is this a bad idea or the worst idea? https://github.com/AndrewVos/markdown-expander
[19:18:06] andrewvos: momomomomo: yah
[19:18:17] andrewvos: you mean it uses liquid?
[19:18:40] andrewvos: liquid was too much dependency for me
[19:27:48] andrewvos: ljarvis: wot wot inkjet
[19:35:06] andrewvos: ljarvis: do you think if I pass active records to that thing then people are going to pwn my server
[19:35:32] andrewvos: basically I'm allowing users to do some_model[:whataver_they_want]
[19:35:41] andrewvos: is that an issue/
[19:35:57] andrewvos: scared rails has like a model[:database_connection_string_please] in there
[19:37:38] andrewvos: thanks buddy
[19:54:11] andrewvos: Ping timeout: 276 seconds
[20:58:52] andrewvos: has joined #ruby
[21:32:06] andrewvos: Ping timeout: 240 seconds
[22:28:17] andrewvos: has joined #ruby
[23:25:48] andrewvos: Ping timeout: 272 seconds

2016-02-10

[21:12:35] andrewvos: has joined #ruby
[21:14:54] andrewvos: Heya, I'm working on a web app that allows users to input markdown and it gets rendered on the main site. At the moment I'm trying to allow users to render some active record objects in their own custom format, with markdown. I've looked at rendering the content twice, using liquid first and then processing it with markdown afterwards, but it's a bit gross and liquid has way to many features. I kind of want
[21:14:56] andrewvos: something like mustache+markdown but mustache allows arbitrary code execution. Any ideas? At the moment I'm thinking add some sort of loop syntax to markdown before processing it with markdown gem. Seems like a lot of work though, and there's probably something easier I've overlooked?
[21:20:58] andrewvos: mg^: Yeah, but then it's gonna get real tricky... to support nested loops for example
[21:21:11] andrewvos: https://github.com/zendesk/curly <-- looks interesting
[21:28:28] andrewvos: I suppose what I really need is a template language that's simple, and safe for rendering user-inputted content

2015-11-24

[11:34:27] andrewvos: has joined #RubyOnRails
[11:34:54] andrewvos: I've added this to application.rb, `config.active_record.schema_format = :sql`, but `rake db:schema:load` fails saying it can't find schema.rb. Why?
[11:42:45] andrewvos: has left #RubyOnRails: ("WeeChat 0.4.2")

2015-11-20

[09:59:10] andrewvos: has joined #RubyOnRails
[14:02:34] andrewvos: has left #RubyOnRails: ("WeeChat 0.4.2")

2015-11-19

[17:21:37] andrewvos: This person explains it better http://stackoverflow.com/a/15824477/128167
[17:22:00] andrewvos: dsimon: Ok but if I want to find the latest child with some attribute
[17:22:24] andrewvos: Not regardless of parent
[17:22:41] andrewvos: I want a list of Parents that have a Child with an attribute of x
[17:22:49] andrewvos: A unique list
[17:24:00] andrewvos: ok, so latest in that case is a scope?
[17:24:32] andrewvos: And now I have to babysit that attribute :)
[17:24:44] andrewvos: Ok well that's what I'm refactoring to... Thanks
[20:21:51] andrewvos: Ping timeout: 244 seconds