the fade anything technique

[problem]

You want to add something flash to your site.
A color loads, which you then want to change

[/problem]

[solution]

Well cool “Fade Anything Technique”!

Really simple implementation, just copy fade anything>%20fade%20anything%20fat.js%20< and then any divs, etc with an id
of fade-xxx will fade from that color. Many more options, check out these highly recommended articles.

[/solution]

[example]


<head>
...
<script type="text/javascript" src="/fat.js">
</head>
...
<div style="width: 600px; border:1px dashed #23932B; padding: 10px;" id="fade-23932B" class="fade-23932B">
...
</div>

[/example]

[reference]

Check out the article hosted by axentric, written by Adam Michela

It was inspired by 37 signals

[/reference]

Resize image command line – mogrify

[problem]

You want to resize images from the command line.

[/problem]

[solution]

Use image magik mogrify command.


mogrify -resize "percentage" image_na

Also you can view current sizing – like this:


% identify IMG_3864.JPG
IMG_3864.JPG JPEG 563x422 563x422+0+0 DirectClass 8-bit 32.8887kb

[/solution]

[example]


mogrify -resize 20% IMG_3705.JPG

[/example]

[reference]

[tags]mogrify[/tags]

[/reference]