Note: Making a reverse proxy with nginx is much more straightforward. A reverse proxy is a "man in the middle...
# Given the following models class Image < ActiveRecord::Base has_many :album_images has_many :albums, through: :album_images
There are some frontends available, but they all suck, are no longer maintained or are hard to install.
Awesome hack by Tim VanFosson:
Instead of this: Image.order('images.created_at DESC') You can write this: Image.order(created_at: :desc) Not only do you not...
Here's a pretty useful steps that hasn't made it into Spreewald yet. It is best used with the...
Write a // and indent every subsequent line by two spaces. This is great for documenting BEM blocks! // An action button...
When a CSS3 animation makes the animated element flicker, it may well be due to pixel fragments being handled differently...
When uploading images, adding more than one process to a version can cause MiniMagick to run multiple commands. In order...
When you are using the #selector_for helper in Cucumber steps, as e.g. Spreewald does, the following snippet will save...
The CSS property z-index is not as global as you might think. Actually, it is scoped to a so...
If you get this error (probably because you want to load some modules): # modprobe xt_comment FATAL: Could not load...
Jonas Nicklas, the author of Carrierwave and Capybara, has released Refile, a gem for handling file uploads in Rails. It...
ImageMagick takes a string with several options when cropping an image. See the command line options for how to provide...
Capybara-screenshot can automatically save screenshots and the HTML for failed Capybara tests in Cucumber, RSpec or Minitest. Requires Capybara...
Responsive Lightbox JavaScript that just works. You can use it for single images or a gallery. Animations are optional.
When accepting GIF images, you will also accept animated GIFs. Resizing them can be a time-consuming task and will...
A set of javascript tools for working with files. It offers different kinds of things: A cross-browser JS API...
The benefit of the Rails asset pipeline is that it compiles your stylesheets and javascripts to a single file, respectively...
The Rails asset pipeline improves delivery of application assets (javascripts, stylesheets, images, fonts). Here are some basic facts about its...
Right-click on the frame Select Frame... Open Background Set As to "Color" Set the background color...
The Angular ngSrc directive serves to properly set an image src via Angular. As anything in Angular, it updates the...
Raphaël is a small JavaScript library that should simplify your work with vector graphics on the web. If you want...
A great two-part article about various hacks you can use to create great-looking screen designers when you're...