You[r inner copywriter[/editor]] will love this.

[Visit] Tele­scopic Text.

Click [[any of] the [first [three]]] words.

(My for­mat­ting will make sense when you start using it)

# by Josh on February 16th, 2012 Tags: , , ,
| No Comments »

Fireworks Auto-Kern bug: Vista issues

Adobe Fire­works is a pretty bril­liant pro­gram for rapidly devel­op­ing web lay­outs in a kind of best-of-both-worlds way that enjoys the ben­e­fits of both vec­tor and bitmap design, with­out all the frus­tra­tions that come along with smart objects. Its text han­dling is also superb, offer­ing a whole lot of cus­tomis­able set­tings that are very use­ful for mock­ing up web designs, not read­ily avail­able in either Pho­to­shop or Illustrator.

How­ever, it is not with­out its faults. On Vista, when typ­ing text in Fire­works things can occa­sion­ally go very, very wrong. The solu­tion at least ini­tially is to turn off the “Auto Kern” option in the Prop­er­ties dia­log — but this removes one of the big ben­e­fits of using Fire­works in the first place!

There are other options. The prob­lem will go away (some­times) when the file is closed and Fire­works is restarted — this is hit and miss. More per­ma­nently, dis­abling Vista’s fancy-pants Aero theme (the thing that makes all win­dow bor­ders trans­par­ent, gives that snazzy Start + Tab effect, etc.) will ensure you have a glitch-free Fire­works font experience.

The real solu­tion? Sneak into Adobe HQ and write a patch to fix the stu­pid thing!

A 5 line quote script in PHP

…mainly because Ben has taken too long to write his own (I don’t think he was try­ing, but meh… no more excuses!)

18 lines of com­ments, and 5 lines of code. If this is too hard to use, you shouldn’t be using PHP (or any pro­gram­ming lan­guage, for that matter!)

<?php
#-----Simple Random Quote script-------#
# Place this file somewhere servable,  #
# and stick a file "quotes.txt" in the #
# same directory as it. Alternatively, #
# change the $quotesfile variable to   #
# something desirable.                 #
#                                      #
# IMPORTANT: Quotes file must be       #
# server readable. Obvious, but often  #
# overlooked.                          #
#                                      #
# quotes.txt format is:                #
# Quotation::Author                    #
# Use one entry per line only.         #
#                                      #
# Output from the regex replacement is:#
# <p>Quotation<br /><em>Author</em></p>#
#--------------------------------------#

$quotefile = "quotes.txt";
if ($quotes = file($quotefile)) {
 echo eregi_replace("([^[]*)::([^[]*)","<p>1<br /><em>2</em></p>", $quotes[array_rand($quotes)]);
} else{
 echo 'An error has occurred, no quotes are available at this time.';
} ?>

I hope Word­Press doesn’t mess that up…

# by Josh on March 26th, 2005 Tags: , , , ,
| 6 Comments »