Scott Carleton

Results 17 issues of Scott Carleton

This is something I was building for myself but I thought I'd offer to merge it into master. I use a lot of full page caching and wanted a way...

Trying to set a tag in a controller action with a proc won't work ``` caches_action :tag => proc {|c| # c is the controller "users/#{c.current_user.id}/dashboard" } ``` There's no...

Regarding https://github.com/openai/openai-cookbook/blob/main/examples/Question_answering_using_embeddings.ipynb This only becomes a significant problem when trying to reproduce the tutorial because the olympics embeddings dataset [Olympics Embeddings CSV](https://cdn.openai.com/API/examples/data/olympics_sections_document_embeddings.csv) is 4096 dimensions. An easy fix would be...

The existing [search code](https://github.com/thoughtbot/administrate/blob/7d497cd85e75b281ea3f77782ac53b9acba2681d/lib/administrate/search.rb#L87-L95) when applied to text fields that are longer then 256 characters filters out results silently which is unexpected behavior. Let's say you have an Post model...

Sorry to put this as an issue but I don't know where else to post it. How do you use Tags with ActionMailer? I've read the STS API, and your...

I'm just getting started with Mobility. I found that to use the container strategy on postgres and preserve my existing columns it was best to use 1.3.0.rc1. Rails 7.1.3 ##...

For AR object keys https://github.com/rails/globalid

Unnessary sql calls for nil objects that will continue to be nil until the host object is updated. This is more a problem with memoization then caching. Will need to...

``` user1 = User.new(attributes) user1.cached_method #=> data user2 = User.new(diff_attributes) user2.cached_method #=> user1's data ``` When an object isn't persisted, it doens't have a fully formed cache key, so it...

Extconf uses `Dir.exists?` which was removed in Ruby 3.2 ([ruby-lang issue](https://bugs.ruby-lang.org/issues/17391)) https://github.com/SciRuby/nmatrix/blob/beb266ed1ae56206af73f8f94bf9956213f9997b/ext/nmatrix/extconf.rb#L57-L64 To those running into this problem here's a monkey patch gem [file_exists](https://github.com/Largo/file_exists) which is really just this [alias_method](https://github.com/Largo/file_exists/blob/main/lib/file_exists.rb)