dmarr

Activity Graph

Page 1 of 3 | Next »

2018-08-29

[02:42:50] dmarr: *.net *.split

2018-08-04

[17:37:49] dmarr: Ping timeout: 256 seconds
[17:41:01] dmarr: has joined #RubyOnRails

2018-07-25

[02:38:32] dmarr: Ping timeout: 256 seconds
[02:39:21] dmarr: has joined #RubyOnRails

2018-07-20

[00:07:25] dmarr: *.net *.split
[00:15:26] dmarr: has joined #RubyOnRails

2018-07-12

[21:06:34] dmarr: has joined #RubyOnRails

2018-05-25

[15:05:54] dmarr: Quit: Goodbye

2018-05-21

[12:05:28] dmarr: Ping timeout: 256 seconds
[12:07:03] dmarr: has joined #RubyOnRails

2018-05-10

[21:04:10] dmarr: has joined #RubyOnRails

2018-05-07

[12:05:18] dmarr: Quit: Goodbye

2018-05-04

[05:15:43] dmarr: *.net *.split
[05:16:16] dmarr: has joined #RubyOnRails

2018-04-25

[12:25:53] dmarr: *.net *.split
[12:27:34] dmarr: has joined #RubyOnRails
[15:01:24] dmarr: *.net *.split
[15:03:04] dmarr: has joined #RubyOnRails

2018-04-07

[03:05:17] dmarr: Ping timeout: 276 seconds
[03:11:05] dmarr: has joined #RubyOnRails

2018-04-06

[05:32:43] dmarr: Ping timeout: 246 seconds
[05:38:37] dmarr: has joined #RubyOnRails

2018-03-18

[07:16:17] dmarr: Ping timeout: 240 seconds
[07:20:07] dmarr: has joined #RubyOnRails

2018-03-09

[04:21:53] dmarr: Ping timeout: 240 seconds
[04:26:32] dmarr: has joined #RubyOnRails

2018-02-26

[21:28:47] dmarr: has joined #RubyOnRails

2018-02-23

[18:06:26] dmarr: Ping timeout: 255 seconds

2018-02-07

[02:57:15] dmarr: Ping timeout: 260 seconds
[02:59:59] dmarr: has joined #RubyOnRails

2018-02-02

[20:53:04] dmarr: Ping timeout: 256 seconds
[20:55:23] dmarr: has joined #RubyOnRails

2018-01-28

[08:59:53] dmarr: Ping timeout: 276 seconds
[09:03:48] dmarr: has joined #RubyOnRails

2018-01-19

[08:27:10] dmarr: Ping timeout: 256 seconds
[08:43:56] dmarr: has joined #RubyOnRails

2018-01-12

[11:00:55] dmarr: Quit: Goodbye
[20:03:15] dmarr: has joined #RubyOnRails

2017-12-21

[17:37:36] dmarr: has joined #RubyOnRails
[17:38:02] dmarr: I'm trying to access Rails.root in my config/puma.rb file but getting this error: NameError: uninitialized constant #<Class:#<Puma::DSL:0x007f81cb1d57a0>>::Rails
[17:38:34] dmarr: I'm starting the server via foreman, and a Procfile which simply runs: web: bundle exec puma -C config/puma.rb
[19:43:34] dmarr: Anyone know why Rails.root would throw when accessed in config/puma.rb?
[19:47:50] dmarr: amperry: im not sure how interpolation happens in Ruby
[19:48:05] dmarr: It's in a ssl_bind block in the puma config
[19:49:02] dmarr: amperry: it't not the crux of my issue, which is this during SSL requests: SSL error, peer: 127.0.0.1, peer cert: , #<Puma::MiniSSL::SSLError: OpenSSL error: error:1407609C:SSL routines:SSL23_GET_CLIENT_HELLO:http request - 336027804>
[19:49:23] dmarr: amperry: thank you, i'll try with the #{}
[19:50:29] dmarr: amperry: is that incorrect? https://gist.github.com/marr/a6155ead783a7bab5560cda03e2dabe5
[19:50:49] dmarr: I get errors when I wrap the join call in #{}
[19:54:51] dmarr: amperry: just `puts Rails.env` throws
[19:55:20] dmarr: but thank you. i'm not sure why SO suggested the .join solution
[19:55:58] dmarr: amperry: the reference I was looking at https://gist.github.com/tadast/9932075#gistcomment-2283895
[19:57:32] dmarr: Rails.root.join('server.key') works fine in a rails console
[20:02:00] dmarr: amperry: thanks, i'm just confused as to why referencing Rails in the config file is erroring

2017-06-27

[05:39:10] dmarr: Ping timeout: 260 seconds

2017-06-20

[00:17:29] dmarr: *.net *.split
[00:22:40] dmarr: has joined #RubyOnRails

2017-06-09

[19:18:01] dmarr: has joined #RubyOnRails
[19:20:33] dmarr: hi im curious if people have solutions for 'slugify'ing a string. in js i use this http://stackoverflow.com/a/8992246/234277. I see the slugify gem but when I add slugify to my model, it has issues when I try to execture .slugify on my instance. NoMethodError: undefined method `slugify' for Slug (call 'Slug.connection' to establish a connection):Class
[19:21:33] dmarr: my Slug class https://gist.github.com/fb15cd301b1e35468597450d6f702834
[19:25:04] dmarr: centrx: no but thats perfect
[19:30:58] dmarr: is that the approach i'd take for saving a derived value to the db? https://stackoverflow.com/a/6296211
[19:31:56] dmarr: say i create a slug = Slug.new value="Maps & Directories", i'd want the .save to store the parameterized value, so would i use that after_create hook
[19:32:15] dmarr: or do i just not even store the parameterized value and only access it through api
[19:32:37] dmarr: *store the parameterized value into a separate field in the db
[19:33:54] dmarr: its a simple api to store strings, which will be queried by a foreign key
[19:34:37] dmarr: yeah i'll assume its going to be unchanging, to remain on the safe side
[19:40:43] dmarr: seems like thats not doing it https://gist.github.com/marr/4114ae6eb1804ea0737c35612a1bfeab
[19:48:19] dmarr: tbuehlmann: thank you
[19:48:30] dmarr: tbuehlmann: update_attribute did work somehwo
[19:49:27] dmarr: it didn't appear to
[22:03:41] dmarr: using the before_validation to create a parameterize'd value store, I don't want that to change when the record is updated. How would I prevent that from happening?
[22:04:52] dmarr: ie i only want slug generated during initial create: https://gist.github.com/marr/4114ae6eb1804ea0737c35612a1bfeab
[22:12:31] dmarr: I guess i'll just use before_create
[22:21:48] dmarr: in my controller, i'd like to be able to POST /slugs with value=3, but I am getting a 422 saying "slug" cant be blank. in my create method i have @slug = Slug.new(slug_params)
[22:22:08] dmarr: and slug_params def is params.permit(:value, :centre_id)
[22:28:19] dmarr: how do i avoid having to send slug: { } in the payload and just send the inner properties?
[22:29:39] dmarr: actually, i think im misunderstanding my issue.
[22:29:56] dmarr: Parameters: {"value"=>"Search2", "slug"=>{"value"=>"Search2"}} is shown in the log. and the error: Unpermitted Parameter: slug
[22:30:50] dmarr: its strange because im not sending that slug value in my POST
[22:36:44] dmarr: figured it out. i had a before_create that was trying to set a slug but i guess it needs to create the record first /shrug
[22:37:07] dmarr: since i dont think i have access to params in before_create do I?

2017-04-19

[21:52:24] dmarr: has left #ruby: ()
[21:53:55] dmarr: has left #RubyOnRails: ()

2017-04-13

[03:38:12] dmarr: Quit: Goodbye
[03:47:02] dmarr: has joined #ruby
[03:47:33] dmarr: has joined #RubyOnRails

2016-03-12

[16:12:18] dmarr: Ping timeout: 246 seconds

2016-03-01

[18:37:29] dmarr: Ping timeout: 264 seconds

2016-02-15

[04:06:17] dmarr: how do you step in pry?
[04:09:07] dmarr: ah got it.. installed pry-byebug instead of pry
[04:57:41] dmarr: Im trying to write a test for a worker process (sidekiq) and I am a little confused about passing an instance variable (@picture) to the test: https://github.com/marr/localpic2/blob/master/app/workers/sepia_filter.rb#L11
[04:58:33] dmarr: I was thinking I could pass it in here, and access the image_id property: https://github.com/marr/localpic2/blob/master/test/workers/sepia_filter_test.rb#L18
[04:59:00] dmarr: like, refactor sepia_filter to take in a picture instance SepiaFilter.perform_async(@picture.id)
[04:59:06] dmarr: SepiaFilter.perform_async(@picture)
[05:00:10] dmarr: sorry yeah i was thinking of passing the picture instance in, so it would receive `picture` instead of `id
[05:01:14] dmarr: this is a refile :attachment class
[05:03:26] dmarr: basically the output from puts @picture in the test is different from the one inside the filter function that i'm testing
[05:03:56] dmarr: when i change it to pass in the instance, and puts inside the test 'sepia_filter_worker' it shows "#<Picture:0x007ffd87e52658>"
[05:05:22] dmarr: created_at: Mon, 15 Feb 2016 05:05:03 UTC +00:00,
[05:05:22] dmarr: title: nil,
[05:05:22] dmarr: id: 980190963,
[05:05:24] dmarr: updated_at: Mon, 15 Feb 2016 05:05:03 UTC +00:00,
[05:05:26] dmarr: image_id: "c163344cbd971e55d00e13c6f82894f923a37a1858f73ca01383f43a76ff">
[05:06:11] dmarr: and from inside the perform: => "#<Picture:0x007ffd87e52658>"
[05:06:33] dmarr: sorry, i mixed up the original output starts with => #<Picture:0x007fccab0b7bb8
[05:06:41] dmarr: so its not the stringified version
[05:06:51] dmarr: inside the perform shows the stringified version
[05:07:23] dmarr: yeah i'll send a link one sec
[05:09:12] dmarr: yeah i'll send a link one sec
[05:15:19] dmarr: https://github.com/marr/localpic2/commit/8e4089e8d333a270f8f6ecfa7e711f7479841509
[05:17:51] dmarr: that might be whats happening ... => "\"#<Picture:0x007fa6304633a8>\""
[05:18:11] dmarr: i dont think i have sidekiq actually running, or redis for that matter
[05:20:04] dmarr: does that matter if i am running in a test env?
[05:20:21] dmarr: as in `bundle exec rake test`
[05:38:11] dmarr: this may be a refile problem now, but created_at and updated_at are the same even though I called Picture.save with a new image https://github.com/marr/localpic2/commit/8fd24ecab5f828b14a089575e530b4e7d284109a
[05:39:14] dmarr: would i have to reload picture somehow before this line https://github.com/marr/localpic2/blob/master/test/workers/sepia_filter_test.rb#L21
[05:40:32] dmarr: kinda new to async in rails
[05:49:42] dmarr: has joined #ruby
[06:03:45] dmarr: anyone using async testing with Sidekiq? I am trying to understand why my image isn't changing even though it appears to run the sepia_worker here: https://github.com/marr/localpic2/blob/master/test/workers/sepia_filter_test.rb#L21
[06:04:16] dmarr: sepia_filter rather https://github.com/marr/localpic2/blob/master/app/workers/sepia_filter.rb

2016-02-12

[18:56:23] dmarr: I'm trying to load a puma app on an osx machine but i'm getting malhttp: error: SSLError: [SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:590) while doing GET request to URL: https://localhost:3000/
[18:57:12] dmarr: i have openssl installed but it seems ruby is failing to use it
[18:57:42] dmarr: trying that now :)
[18:58:24] dmarr: yeah i had 0.98 installed when i installed ruby the first time
[18:58:32] dmarr: fox_mulder_cp: will give that a shot maybe
[19:05:47] dmarr: tubbo: reinstalling ruby didn't help
[19:06:29] dmarr: is there some way to output rubys idea of ssl properties?
[19:07:56] dmarr: rhizome: im OpenSSL 1.0.2e 3 Dec 2015
[19:08:02] dmarr: oops, tubbo OpenSSL 1.0.2e 3 Dec 2015
[19:09:19] dmarr: there are certs locally yes
[19:10:18] dmarr: in the server log Invalid request: Invalid HTTP format, parsing fails.
[19:10:40] dmarr: and then that error i originally posted from the client
[19:11:22] dmarr: its a fresh box so maybe im missing something
[19:12:43] dmarr: i dont have nginx running
[19:12:46] dmarr: or installed
[19:13:49] dmarr: config.force_ssl = true
[19:13:49] dmarr: Byebug.start_server 'localhost', 12345 rescue nil
[19:13:49] dmarr: # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
[19:13:57] dmarr: thats in my config
[19:14:22] dmarr: do I need to add my cert to openssl maybe?
[19:15:05] dmarr: A CA file has been bootstrapped using certificates from the system
[19:15:06] dmarr: /usr/local/etc/openssl/certs
[19:15:06] dmarr: keychain. To add additional certificates, place .pem files in
[19:15:19] dmarr: i have a crt file, maybe i need to do something simliar?
[19:22:55] dmarr: oh well moving on

2016-02-01

[05:49:31] dmarr: *.net *.split
[05:50:24] dmarr: has joined #RubyOnRails

2016-01-31

[12:25:23] dmarr: *.net *.split
[12:28:18] dmarr: has joined #RubyOnRails

2016-01-30

[08:22:47] dmarr: Remote host closed the connection
[08:23:00] dmarr: has joined #RubyOnRails

2016-01-21

[05:30:24] dmarr: has joined #RubyOnRails

2016-01-20

[18:22:03] dmarr: *.net *.split

2016-01-14

[09:19:03] dmarr: Ping timeout: 255 seconds
[09:20:43] dmarr: has joined #RubyOnRails
[21:29:15] dmarr: Ping timeout: 250 seconds
[21:36:58] dmarr: has joined #RubyOnRails

2016-01-08

[18:03:32] dmarr: Quit: Goodbye
[18:41:18] dmarr: has joined #RubyOnRails

2015-12-27

[10:09:14] dmarr: Ping timeout: 276 seconds
[10:19:22] dmarr: has joined #RubyOnRails
[11:45:48] dmarr: Ping timeout: 264 seconds
[12:06:26] dmarr: has joined #RubyOnRails

2015-12-23

[06:15:51] dmarr: a darknet market
[07:07:25] dmarr: i'd think this wouldn't run the `set_picture` method inside pictures_controller https://github.com/marr/localpic2/issues/1
[07:08:23] dmarr: routes is setting :index as the handler for get /api/v1/pictures according to https://github.com/marr/localpic2/blob/master/config/routes.rb, right?
[07:09:26] dmarr: sevenseacat: no but is the second question I ask valid?
[07:10:47] dmarr: sure, I replaced get '/api/v1/pictures'
[07:11:05] dmarr: s/ /get pictures_path with:/
[07:12:31] dmarr: I originally had get pictures_path instead of get '/api/v1/pictures' but that is because the generator i used (rails g integration_test picture) had generated it
[07:12:52] dmarr: um the spec is just trying to hit the index route
[07:13:13] dmarr: https://github.com/marr/localpic2/blob/master/spec/requests/pictures_spec.rb
[07:14:03] dmarr: first one: api_v1_pictures GET /api/v1/pictures/index(.:format) api/v1/pictures#index
[07:14:37] dmarr: GET /api/v1/pictures(.:format) api/v1/pictures#show
[07:15:37] dmarr: that routes file is clearly wrong
[07:16:08] dmarr: or at least should expect an id for the show route
[07:18:05] dmarr: i should have modeled it after https://github.com/hiromipaw/localpic/blob/master/config/routes.rb
[07:18:51] dmarr: working through this book http://www.amazon.com/RESTful-Rails-Development-Building-Applications/dp/1491910852?tag=duckduckgo-d-20
[07:21:26] dmarr: yeah its like finding an easter egg every time you get through a chapter
[07:29:38] dmarr: lol that its an otter on the cover, reminds me of that oatmeal raisin meme
[07:32:41] dmarr: http://cl.ly/3P0O2d1L3F2d
[07:35:32] dmarr: sevenseacat: /shrug https://github.com/marr/localpic2/commit/f93a9d01df7646a1d7463fa69bca8484f7672f98
[07:39:01] dmarr: wtf https://github.com/badges/shields
[07:40:05] dmarr: http://badges.github.io/http://badges.github.io/
[07:40:21] dmarr: sorry, that url was broken for me, the /badges/shields one
[07:41:44] dmarr: does it work for you?
[07:42:23] dmarr: https://github.com/badges/shields
[07:42:37] dmarr: like, github just crashes on that url for me
[07:43:09] dmarr: hmm, weird my browser is dying
[07:43:30] dmarr: on just that gh repo it seems
[08:09:26] dmarr: is it possible to link an image in an rdoc?
[08:19:07] dmarr: night. that doesn't seem to work on GH// oh well
[21:34:43] dmarr: for people using travis with secure credentials for testing apis, do you use env vars for all of your secrets.yml? i would like to only use env vars i think when travis runs
[21:35:57] dmarr: i have an initializer that pulls from application.secrets here https://github.com/marr/localpic2/blob/master/config/initializers/refile.rb but i think its getting overwritten when run in travis because there is no secrets file checked in
[22:52:01] dmarr: im using the aws-sdk and for some reason when I execute my app, its not pulling in the AWS_REGION value from ENV, but according to the docs it should

2015-12-22

[02:21:10] dmarr: has joined #RubyOnRails
[02:22:19] dmarr: getting some trouble with minimagick gem: https://gist.github.com/5d19d82fb400d08d3f32
[02:24:51] dmarr: getting that running https://github.com/marr/localpic2/blob/master/test/workers/image_filter_test.rb
[02:25:16] dmarr: https://github.com/marr/localpic2/blob/master/app/workers/image_filter.rb#L29
[02:27:11] dmarr: would the version `convert` runs from a shell different than the one used with bundle exec?
[02:28:36] dmarr: ok, so `convert -list command' from shell does include '+sepia-tone' yet the output from `bundle exec convert -list command` does not.
[02:29:08] dmarr: the gem must not be using my system verison
[02:29:17] dmarr: of the imagemagick binary
[02:29:49] dmarr: s/the gem/my application
[02:32:53] dmarr: sorry, the bundle exec does show the same thing (-sepia-tone, +sepia-tone).
[02:35:27] dmarr: so back to square one. FailBit when I run the command manually it's ok
[02:39:12] dmarr: found the issue, just pushed up the fix. uses builder.merge! ['-sepia-tone', '80%']
[02:39:26] dmarr: instead of builder << '-sepia-tone 80%'
[02:39:58] dmarr: https://github.com/minimagick/minimagick#appending
[02:40:41] dmarr: also rhizome i am not sure where to find that log
[03:59:16] dmarr: interesting that the command seems to be the same if i use << or .merge!
[04:01:14] dmarr: is that most likely a library issue or just an idiomatic thing
[04:05:17] dmarr: that part in the appending section about `convert << "-resize" << "500x500"` vs `convert << "-resize 500x500"` is just a ruby thing? Is there more reading on that I can do somewhere
[04:08:25] dmarr: matthewd: thats not what I was noticing
[04:08:37] dmarr: with the -sepia-tone 80%
[04:09:21] dmarr: matthewd: i don't know what you mean by single parameter in shell
[04:09:50] dmarr: like convert foo.jpg -sepia-tone 80% test.jpg
[04:10:06] dmarr: isnt that using -sepia-tone 80% as a single parameter?
[04:10:56] dmarr: matthewd: yeah you right
[04:11:23] dmarr: i don't understand what merge does to achieve that
[04:38:46] dmarr: anyone know of a good way to test that a worker acted on a file properly? I was hoping to follow the sidekiq guidelines
[04:39:13] dmarr: my worker is just an example but https://github.com/marr/localpic2/blob/master/test/workers/image_filter_test.rb#L12
[04:44:58] dmarr: image = ::MiniMagick::Image.open(path)
[04:44:58] dmarr: and what is the syntax with the two ::
[04:50:36] dmarr: matthewd: using the Sidekiq::Testing.inline! method
[04:51:32] dmarr: I assume there are best practices for testing an async function that would alter a file's contents
[07:16:21] dmarr: I'm getting an aws error when I try to modify an image stored with refile/s3 backend: https://github.com/marr/localpic2/blob/master/app/workers/image_filter.rb#L18
[07:16:31] dmarr: the error is: Aws::S3::Errors::XAmzContentSHA256Mismatch: The provided 'x-amz-content-sha256' header does not match what was computed.
[07:44:45] dmarr: would I just delete the header ?seems like something refile/s3 would have support for
[21:40:26] dmarr: anyone here using refile with the s3 backend? I am trying to understand how i'd update an image
[21:41:24] dmarr: filed an issue explaining what i'm seeing here https://github.com/refile/refile-s3/issues/20
[21:46:25] dmarr: rhizome: huh
[21:46:37] dmarr: i posted it there because it pertains to that library
[21:48:58] dmarr: i mean its probably my code but im not sure where else to ask

2015-12-13

[19:05:36] dmarr: Remote host closed the connection

2015-12-12

[04:25:11] dmarr: Quit: Goodbye
[04:31:55] dmarr: has joined #RubyOnRails
[04:43:03] dmarr: Remote host closed the connection
[04:43:16] dmarr: has joined #RubyOnRails

2015-12-08

[23:03:07] dmarr: has joined #RubyOnRails