Left Brain
Designer Blogs
iPad Vector Elements
Published on: May 24, 2010, 7:12 am
If you want to design something for the iPad, IconStock has provided free of charge a huge selection of vector images.
You can go here: http://iconlibrary.iconshock.com/icons/ipad-vector-gui-elements-tabs-buttons-menus-icons/ to download the set.
Strip Phone Numbers
Published on: March 19, 2010, 9:35 am
Stripping out phone numbers can be a hastle. However, here's a simple code to strip any phone numbers that users enter into just the numbers, no "( )"'s or "-"'s.
PHP Code:
/**
* Strip a Phone number of all non alphanumeric characters
*/
$phone = "+1(555)-555-1212";
$phone = preg_replace('/(\W*)/', '', $phone);
print $phone;
// Result: 15555551212
The Apple Touch Icon
Published on: October 21, 2009, 1:23 pm
A favicon is a web icon that shows up in the address bar, and is used mainly for branding your website and making it easier to find when someone bookmarks your page.
In the world of iPhone and iTouch screens, you can also add a similar icon to your website. Apple called them Web Clips and they work the same way as the favicon did. You just have to make an image (non-animated) at 57x57 and save it on your website.
Then, in your header tags underneath your favicon tag, add:
link href="http://assets1.twitter.com/images/twitter_57.png" rel="apple-touch-icon"
And that's basically it. Most of the major sites have adopted this. For instance, Twitter has one.