The adjust-hue function of Sass allows you to change a color's hue, but only relative to its current...
MenuetOS is an Operating System in development for the PC written entirely in 32/64 bit assembly language. Menuet64 is released...
If you want to label things with a color but don't actually care which cholor, you can use the...
Browsers usually cache favicons. If you update the favicon of your web site and want all visitors to see the...
Eduardo Russo was tired of complex favicon creation and created his own favicon generator. It's really easy and allows...
RulersGuides.js is a Javascript library which enables Photoshop-like rulers and guides interface on a web page Also available as...
pngquant is a command-line utility and a library for converting 24/32-bit PNG images to paletted (8-bit) PNGs.
An annoying part of using font icons is that the icons usually need to live in the DOM. This is...
In Ruby, classes and modules are called constants. This card explains how Ruby resolves the meaning of a constant.
CarrierWave attachments have two distinct methods #url and #path which appear to behave the same: document.file.url # => /storage/documents/4/letter.doc document.file.path # => /storage/documents/4/letter.doc
Assert rmagick provision ... Gemfile gem 'rmagick', '2.13.2' # at this moment the latest stable version config/initializer/carrierwave.rb require 'carrierwave/processing/rmagick' ... and define a...
# Attach a file # # Example: # # Company.new.logo = File.new… # # Given the file "…" was attached as logo to the company above # # # Example: # # class Gallery...
Say you have a User with a Carrierwave attribute #avatar: class User < ActiveRecord::Base mount_uploader :avatar, AvatarUploader end
When I upgraded from 0.5.4 PDFKit deadlocked or crashed when an ApplicationController::RouteError occured. If this error happens only because...
Ubuntu 12.04 LTS x64, Ruby 1.8.7, Rails 2.13, PDFKit 0.5.4, Phusion Passenger Apache 2 I ran into this, when I...
Awesome Sass plugin to experiment with Subtle Patterns based textures. It automatically removes the base color from the pattern, leaving...
A snippet of the carrierwave documentation You might come to a situation where you want to retroactively change a version...
Did you know you can color your line-throughs or underline, or make them wavy like spell-checkers do?
For all late night coders: The program "redshift" changes your monitors' white balance according to your position on the planet...
Using CSS sprites for background images is a technique for optimizing page load time by combining smaller images into a...
1. Saving files to a directory that is not shared between deploys or servers If you save your uploads to...
If you need to capture signatures on an IPad or similar device, you can use Thomas J Bradley's excellent...
Ruby has two different ways to match the start and the end of a text: ^ (Start of line) and $ (End...
Awesome color schemes for RubyMine, Sublime Text 2 and other editors. To install the themes into your Rubymine, copy intellij...