Typography Notes

What is there is just as important as what isn’t there.
Tracking lower text isn’t evil, but do it appropriately.
No rulebook to kerning text, it’s YOUR eyes that are the judge.

Raphaël—JavaScript Library

Well I must say that this is pretty cool!
Adobe Flash .. your days are numbered, the only thing you’ll be good for is video,.. then again, html5 has that too.

Raphaël—JavaScript Library.

Rip-Off Commercialized Twitter Backgrounds

If you’re a multi-window user (windows not maximized to full screen) or have a computer with a lower resolution and navigate to anybody’s Twitter page, you may have problems viewing their background image because of the twitter page framework that overlays on the page.

I came across a couple blogs that solely advertised their services of creating eye-catching, advertising backgrounds for anyone’s Twitter page.

This my friends, is a HUGE rip-off – and here’s why:

  1. Twitter’s backgrounds are left aligned, yet their content framework is center aligned. This will always block the background at inconvenient proportions.
  2. If you try to display information like phone numbers, email addresses, or website addresses in the background picture (as a result of point 1) will be cut off or impossibly unreadable due to the maximum amount of space available between the left side of the page and the left side of the content framework.
  3. People who are savvy enough to use Twitter, don’t even use the Twitter website, in favour of social media aggregator/updater apps. They sanitize the content to just the Tweets alone, so the backgrounds aren’t even seen.

I don’t have statistics on how many people use Twitter, what their resolutions or screen sizes are, or what apps they use to aggregate Twitter with, but not once have I ever been impressed with someone’s twitter background that has advertising material to promote themselves. Phone numbers, email or website addresses are constantly cut off, and even photos of the Twitter profile user are cut off or whatever they are trying to sell is cut off or blocked by the Twitter content framework.

Twitter needs to add a little more customization to their user profile stylesheet management first before I would ever consider using the background of my Twitter page as another avenue to advertise myself.
Instead, for my Twitter profile, I have ingeniously used one of my artwork pieces and created a simple pattern out of it; there isn’t any important information being cut off, and aesthetic quality of the background image adds a truly unique expression of creativity.

And those other people who are charging money to create custom Twitter backgrounds, I tip my hat off to you; you’re making money from being scrupulous thieves and selling graphics that don’t do their job very well. ;-)

The following screen shots were taken at the very popular 1024×768 resolution.

Get URLs, Captions & Titles for Images Attached to Posts in Wordpress

I’ve been working on a new Wordpress theme for my client that involves a billboard concept where certain posts are categorized as homepage billboard items, and those post items have images attached to them within the Media gallery of Wordpress. I found out how to pull out the URI address of the images that are attached to the posts, but it took me some time to figure out how to get the Title, Caption and Description text associated directly with that image attachment.

I borrowed most of my code from here, but I think my example illustrates the concept of retrieving the data needed much easier.

// within the loop...
// gets last image from media library that are attached to current post
$attachments =& get_children( 'post_type=attachment&post_mime_type=image&post_parent=' . get_the_id() );
if (empty($attachments)) {
$imageURI = "/location/to/default/image.jpg";
$imageTitle = "Default Title Text";
$imageCaption = "Default Caption Text";
$imageDescription = "Default Description Text";
}
else {
foreach($attachments as $attachment => $attachment_array );
$imagearray = wp_get_attachment_image_src($attachment, 'full', false);
$imageURI = $imagearray[0];
$imageID = get_post($attachment);
$imageTitle = $imageID->post_title;
$imageCaption = $imageID->post_excerpt;
$imageDescription = $imageID->post_content;
}
echo $imageURI;
echo $imageTitle;
echo $imageCaption;
echo $imageDescription;

Hope this solution works for your custom PHP queries and image retrieval via Wordpress' Media gallery.

Permissions on Unix

I need to put this as a post on my site as I often forget what permission settings are and their corresponding numbers are for CHMOD and the like.

1 execute
2 write
3 execute+write
4 read
5 execute+read
6 write+read
7 execute+read+write

Next Page »