faviconit.com: Super-simple favicon generator

Posted About 10 years ago by Dominik Schöler.
faviconit.com

Eduardo Russo was tired of complex favicon creation and created his own favicon generator. It's really easy and allows...

RulersGuides.js demo

Posted About 10 years ago by Arne Hartherz.
mark-rolich.github.io

RulersGuides.js is a Javascript library which enables Photoshop-like rulers and guides interface on a web page Also available as...

pngquant — lossy PNG compressor

Posted Over 10 years ago by Henning Koch.
pngquant.org

pngquant is a command-line utility and a library for converting 24/32-bit PNG images to paletted (8-bit) PNGs.

Embed Font Awesome icons from your CSS

Posted Over 10 years ago by Henning Koch.

An annoying part of using font icons is that the icons usually need to live in the DOM. This is...

Ruby constant lookup: The good, the bad and the ugly

Posted Over 10 years ago by Henning Koch.

In Ruby, classes and modules are called constants. This card explains how Ruby resolves the meaning of a constant.

CarrierWave: Don't use #url when you mean a file path

Posted Over 10 years ago by Henning Koch.

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

Howto provide a single page preview for PDF & TXT with carrierwave

Posted Over 10 years ago.

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...

Spreewald 0.8.0 brings a file attachment step

Posted Over 10 years ago.
github.com

# Attach a file # # Example: # # Company.new.logo = File.new… # # Given the file "…" was attached as logo to the company above # # # Example: # # class Gallery...

Whitelist Carrierwave attributes correctly

Posted Over 10 years ago by Henning Koch.

Say you have a User with a Carrierwave attribute #avatar: class User < ActiveRecord::Base mount_uploader :avatar, AvatarUploader end

Don't use PDFKit v0.5.4 – it breaks on dead urls

Posted Over 10 years ago.

When I upgraded from 0.5.4 PDFKit deadlocked or crashed when an ApplicationController::RouteError occured. If this error happens only because...

Fix „command failed: /usr/bin/wkhtmltopdf ...“ using PDFKit middleware

Posted Over 10 years ago.

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...

Texture Mixin for Sass

Posted Over 10 years ago by Henning Koch.
magnus-g.github.io

Awesome Sass plugin to experiment with Subtle Patterns based textures. It automatically removes the base color from the pattern, leaving...

Carrierwave – Recreate versions

Posted Over 10 years ago.

A snippet of the carrierwave documentation You might come to a situation where you want to retroactively change a version...

Building Custom Text Strikethroughs with CSS

Posted Over 10 years ago by Henning Koch.
tjvantoll.com

Did you know you can color your line-throughs or underline, or make them wavy like spell-checkers do?

redshift

Posted Over 10 years ago.

For all late night coders: The program "redshift" changes your monitors' white balance according to your position on the planet...

Sprites with Compass

Posted Almost 11 years ago by Tobias Kraze.

Using CSS sprites for background images is a technique for optimizing page load time by combining smaller images into a...

Common mistakes when storing file uploads with Rails

Posted Almost 11 years ago by Henning Koch.

1. Saving files to a directory that is not shared between deploys or servers If you save your uploads to...

Capturing signatures on a touch device

Posted About 11 years ago by Tobias Kraze.

If you need to capture signatures on an IPad or similar device, you can use Thomas J Bradley's excellent...

Regex: Be careful when trying to match the start and/or end of a text

Posted About 11 years ago by Thomas Eisenbarth.

Ruby has two different ways to match the start and the end of a text: ^ (Start of line) and $ (End...

daylerees/colour-schemes · GitHub

Posted Over 11 years ago by Henning Koch.
github.com

Awesome color schemes for RubyMine, Sublime Text 2 and other editors. To install the themes into your Rubymine, copy intellij...

jquery-timing - a jQuery plugin you should know about

Posted Over 11 years ago by Ulrich Berkmueller.
creativecouple.github.com

jquery-timing is a very useful jquery plugin that helps to remove lots of nested anonymous functions. It's API...

Render Sass stylesheets dynamically

Posted Over 11 years ago by Tobias Kraze.

If - for whatever reason - you have to render stylesheets dynamically, the following snippet might be of help. It emulates what...

How to find out a pixel's transparency with Gimp

Posted Over 11 years ago by Arne Hartherz.

If you have a PNG and want to know a pixel's alpha channel value, you can use Gimp:

imgAreaSelect - image selection/cropping jQuery plugin

Posted Over 11 years ago by Henning Koch.
odyniec.net

imgAreaSelect is a jQuery plugin for selecting a rectangular area of an image. It allows web developers to easily implement...