IE9: Linear gradients remove border-radius and inset box-shadows

Posted Almost 12 years ago by Henning Koch.

When you add a linear gradient to an element, IE9 removes all border-radius and inset box-shadows. This is...

Creating a multi-resolution favicon including transparency with the GIMP

Posted Almost 12 years ago by Henning Koch.
demosthenes.info

The result is a .ico file with multiple versions of your logo at different resolutions. Now, depending on the context...

CodeMirror

Posted About 12 years ago by Henning Koch.
codemirror.net

CodeMirror is a JavaScript component that provides a code editor in the browser. When a mode is available for the...

xterm: Have a black background by default

Posted About 12 years ago by Arne Hartherz.
bbs.archlinux.org

xterm by default uses black text on white background. To change that to something like "light gray on black", do...

Validate attachment presence using paperclip

Posted About 12 years ago.

Make sure you call the methods in the following order and not vice versa: has_attached_file :image validates_attachment...

Make your Rails console (and irb) output better readable

Posted About 12 years ago by Dominik Schöler.
github.com

Pour color on your Rails console with awesome_print. Turn confusing long strings into formatted output. Have objects and classes...

Sass: Use black or white foreground color depending on the lightness of the background

Posted About 12 years ago by Henning Koch.
intridea.com

This article shows how to create a Sass mixin for a colored button. The button's foreground color is dynamically...

Markdown/Commonmarker examples

Posted About 12 years ago by Arne Hartherz.

This card shows you how to format a card's content using Markdown. We use the Commonmarker interpreter, so here...

Convert Virtualbox .ova Image to .ovf

Posted About 12 years ago by Kim Klotz.
itintheory.blogspot.com

The .ova file format is a tar file with a .ovf file inside. tar xvf virtualboximage.ova

CSS: Change text selection color

Posted About 12 years ago by Arne Hartherz.

You can change the color for text selection via CSS, using the ::selection and ::-moz-selection pseudo-elements.

Opening images with 100% zoom in Photoshop

Posted Over 12 years ago by Arne Hartherz.
answers.yahoo.com

You want Photoshop to always open files with "full" (100%) zoom and not try to fit them to your screen...

How to embed images in higher resolutions for printing

Posted Over 12 years ago by Henning Koch.

When you print out a HTML pages, all raster images (like PNGs) will appear aliased. This is because a printer...

Get color in the Capistrano output

Posted Over 12 years ago by Kim Klotz.
github.com

Note: capistrano_colors was merged into Capistrano starting from v2.13.5. However, this requires Ruby 1.9+. If you cannot upgrade Capistrano...

Limiting CPU and memory resources of Paperclip convert jobs

Posted Over 12 years ago by Thomas Eisenbarth.

If you're using Paperclip to store and convert images attached to your models, processing a lot of images will...

Make Less interpret the escape codes in a logfile

Posted Over 12 years ago by Christoph Beck.

The unix command line tool less is a good choice for browsing logfiles. In the standard configuration, though, it does...

Change image scaling algorithms with CSS

Posted Over 12 years ago by Henning Koch.
developer.mozilla.org

List of non-standard CSS attributes that change how the browser resamples scaled images. Only use them if you know...

User friendly form design

Posted Over 12 years ago by Dominik Schöler.

There are two types of forms: User forms, e.g. for sign up, and Administration forms, to maintain data. They are...

Declare different CSS background-images for different locales

Posted Over 12 years ago.

If you would like to use language specific layout (e.g. background-images) in your applications stylesheets you can achieve this...

Parse & sort unique hits in logfiles

Posted Over 12 years ago by Thomas Eisenbarth.

If you want to know the exact hits on your website (or whatever logfile you want) for a specific date...

How to use CSS3 gradients in Opera

Posted Over 12 years ago by Arne Hartherz.
dev.opera.com

Since version 11.10 Opera provides support for linear gradients using -o-linear-gradient. The syntax is pretty similar to Mozilla...

Removing ANSI color codes from Rails logs

Posted Over 12 years ago by Arne Hartherz.
commandlinefu.com

The colors in Rails log files are helpful when watching them but, since they are ANSI color codes like ^[[4...

Auto-generate state_machine graphs as PNG images

Posted Over 12 years ago by Henning Koch.

The state_machine gem comes with a rake task that lets you generate PNG graphs from any model using state...

When Balsamiq Mockups won't let you load an image file

Posted Over 12 years ago by Henning Koch.

Did you check Copy to Projects Asset as...

...and there is an existing file with the same name in your...

Convert the colorspace of a PDF from RGB to CMYK under Ubuntu Linux

Posted Over 12 years ago by Henning Koch.

Note that converting from RGB to CMYK will usually degrade your colors because no exact mapping is possible. Anyway, this...