
Security News
Potemkin Understanding in LLMs: New Study Reveals Flaws in AI Benchmarks
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
Useful for attaching small database-backed blobs to records. Good when you need small file upload support, but don't want to bother with a cloud service because you know you'll have low traffic/user counts. Uses a SHA256 digest to prevent duplicate blob uploads.
Nothing fancy. Just stores files and allows public access using the digest as a key. Respects HTTP Cache headers.
You probably want to put a CDN/Cache/RateLimit in front of the
"lazy_blobs#show"
route because somebody could DOS your website
if all your workers are serving files from the database.
Basically this is a dumb idea, but setting up AWS buckets and permissions just to upload a dumb logo is :big_sigh_emoji:
Don't use this. I mean it.
I would use activestorage_database rather than lazy_blob_storage if I were starting a new project.
See:
lazy_blob_storage:install:migrations
rake task.LazyBlobStorage.max_blob_size=
If it's not obvious. This is for inclusion in a Rails app.
Built with Rails 6. It could probably work with Rails 4/5, too.
gem "lazy_blob_storage" to Gemfile
rake lazy_blob_storage_engine:install:migrations
rake db:migrate
has_lazy_attached :image
in some modelf.file_field :image_upload
to the form templateimage_tag @thing.lazy_attached_image_path
or image_tag @thing.lazy_image_url
Note: LazyBlobsController respects HTTP cache directives
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that lazy_blob_storage demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.