to create a Gallery that has a name and has_many :images, which in turn have a...

The attached ImageLoader helper will start fetching an image and return an image that is resolved once the image is...

makandra dev
thecssninja.com

Sometimes you want to preload images that you will be using later. E.g. if hovering over a an area changes...

brandcolors.net

brandcolors.net provides you with the colors of the world's biggest brands, easily searchable.

developer.mozilla.org

When building a form with a file select field, you may want to offer your users a live preview before...

Instead of using this hack you might want to use MariaDB 10.x which can work with both old and...

This card existed before, but was outdated due to browser implementation changes. The information below is validated for the current...

To upload a file via AJAX (e.g. from an ) you need to wrap your params in a FormData object.

makandra dev

Geordi is now (partially) tested with Cucumber. Yay! geordi cucumber supports a new @solo tag. Scenarios tagged with @solo...

github.com

Note The maintenance mode is enabled on all application server as soon as the file /public/system/maintenance.html is present. Installation

makandra dev
github.com

Note This card does not reflect the current state of lazy loading technologies. The native lazy attribute could be used...

gist.github.com

A list of common computer I/O actions and how long they take. Visual comparison chart: http://i.imgur.com/k0t1e.png

shrinerb.com

Now that CarrierWave is no longer maintained, Shrine might be worth a look.

makandracards.com

Writing ruby methods that accept both optional and keyword arguments is dangerous and should be avoided. This confusing behavior will...

postgresonline.com

When working with PostgreSQL, you can use pgAdmin as a GUI. While you can do most things just like on...

devdocs.io

All browsers + IE9 know the CSS :empty selector. It lets you hide an element when it has no content, i.e...

makandra dev
netvlies.nl

Looking for a way to embed raster images for both low- and high-DPI displays, this developer had some good...

Ruby has Enumerable.find(&block), which returns the first item in the collection for which the block evaluates to true.

makandra dev

To change RAM size, VDISK size or VCPU count of an openstack instance you have to use nova resize. You...

duri.me

Small web application where you can upload an image (PNG, JPEG, GIF) and generate a base64-encoded version of it...

google.com

Surprisingly exhaustive new icon set by Google. Available as PNG, SVG and as a icon font. Comment from Henning

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.