Archive for May, 2011

Better Image Management With WordPress

Advertisement in Better Image Management With WordPress
 in Better Image Management With WordPress  in Better Image Management With WordPress  in Better Image Management With WordPress

With the advent of sophisticated and user-friendly content management systems like WordPress, textual content has become increasingly easier to manage. The architecture of these systems aims to deliver a well-formed code foundation; this means that if you are a good writer, then your content will be just as awesome as the structure and quality of the code that runs it.

Gallery-room in Better Image Management With WordPress

However, media handling is, by nature, not the greatest. In many cases, images are used merely to make the website look good, not to supplement the content. Little care is usually taken to make these elements as useful as their textual counterparts. They are often tacked on as an afterthought; the owner thinks, “If all of my posts have an image, surely I should find something quickly for this next one as well.�

Because the content of images cannot be parsed by search engines, making sure they are rich in meta information before publishing them is important. Here are a few ways to enrich your blog using some common sense, best practices and the power of WordPress.

Understanding And Using Images

To get the most out of your graphic content, you’ll need to be familiar with how they work in HTML. To put an image on a page, you would add an image tag, with the appropriate attributes, like so:

<img title="A duck" src="http://myimages.com/theimage.jpg" alt="A mallard duck landing in the water" >

As you can see, the tag has three attributes that contain information about the image:

  • src is the URL source of the image file;
  • alt, or alternative, text is shown when an image can’t load (whether because of a loading error, text-only browser, etc.);
  • title is the title attribute, where you can add a short description of the image, which will pop up after hovering over the image for a second.

The src and alt attributes are both required; the HTML is invalid without them. However, HTML is not a strict language. Your post will still render just fine if you leave out the alt text, which is one of the negative aspect of loose languages: it doesn’t force best practices.

Why Use Alt and Title Attributes?

The most useful aspect of alt and title is that they allow you to add text-based information to an element on your website that would otherwise be invisible to search engines. If you sell umbrellas, Google won’t see that one particular image on your page is of the coolest umbrella it’s ever seen. You’ll have to add that information yourself.

Also, alt attribute can be a huge help to the disabled, because this is how they know what is in an image. So, use the title attribute to write something snappy about the image, and use the alt attribute to describe it. Sticking with our umbrella example, the incorrect way to do this would be:

<img title="Awesome umbrella" src="awesomeumbrella.jpg" alt="The most awesome umbrella ever" >

And the correct way would be:

<img title="Awesome umbrella" src="awesomeubrella.jpg" alt="A matte black cane umbrella with a spruce handle and a chrome tip" >

Remember, the alt attribute is descriptive not only for the visually impaired, but for Google as well. Your website might even rank better if it’s image-heavy.

While not as critical, it is probably worth optimizing the file name as well. The name o290rjf.jpg won’t get in the way showing the image, but super-sleek-umbrella.jpg is a parsable bit of text, and there is a chance that some search engines would take it into account. Also, if someone downloads the image from your website, they will be able to find it more easily in their “Downloads� folder. And user satisfaction translates into more visits.

Adding Images Properly With WordPress

WordPress allows you to attach media to posts very easily through the “Add media� modal window, which you can access by clicking one of the icons over the editing toolbar in a post. You can select multiple images and upload them to the post with a click. Because this is so easy, adding the meta attributes is often overlooked and regarded as a hassle.

When uploading images, make sure to fill out the form which is displayed. Add the title and alt attribute at a bare minimum, but also consider filling in the caption and description fields. If you want a short, nicely formatted caption to appear under the image (which is a good idea), type one in. We’ll look later at harnessing the description field, so writing a paragraph or so about the image might be a good idea.

Once done, all you need to do is insert the image, and the correct HTML tag will be plopped in by WordPress automatically. By taking an extra minute, you will have added a sizable bit of text to your image, making it SEO-friendly and in turn making your website that much more informative. If this is all you have time for, then you have done the most important step. But let’s look at some more advanced image-handling techniques.

Managing Image Sizes

If you display an image at a size of 450×300 pixels, then having an image file of roughly the same size is a good idea. If the source file is 2250×1500 pixels, the image will show up just fine, but instead of loading a 50 KB image, you would be loading a 500 KB image, while achieving the same effect.

WordPress is super-smart, though, taking care of this for you by churning out different sizes for each image you upload. See the dimensions it creates by going to the media settings in the back end. You can modify these once you have the final layout, which I would advise.

For an image-centric website, you might want to add a couple of more sizes, to make sure you never serve an image that is bigger than needed. By putting the following code in your theme’s functions.php file, you create two extra sizes:

add_image_size( 'large_thumb', 75, 75, true );
add_image_size( 'wider_image', 200, 150 );

The first line defines an image that is cropped to exactly 75×75 pixels, and the second line defines an image whose maximum dimension is 200×150, while maintaining the aspect ratio. Note the name given in the first argument of the function, because you will be referring to it when retrieving the images, which you can do like so:

wp_get_attachment_image_src( 325, 'wider_image');

The first argument is the ID of the attachment that we want to show. The second argument is the size of the image.

Rebuilding Your Thumbnails

If you have been blogging for a while now, you probably have a ton of images. Adding an image size now will not create new thumbnails of your existing images. If you specify an image size—for example, our wider_image format—WordPress will fetch a resolution that is close to it, but it won’t create a thumbnail especially for this size.

Using a plug-in, however, you can go back and regenerate the thumbnails to make sure that all of the images are optimized, thus minimizing server load. I can personally vouch for AJAX Thumbnail Rebuild, which goes through all of your images and regenerates the selected sizes for you.

Using Featured Images

A featured image can capture the message of a post. Featured images have many uses: for adding flare in a magazine-style layout, underlining a point made in an article, or substituting for an article’s title (in the sidebar, for example).

Featured images have been built into WordPress since version 2.9, so you don’t need any special plug-ins. If you are using the new default WordPress theme, TwentyTen, or the cutting-edge TwentyEleven (which is right now only in development versions), then featured images are already enabled. Otherwise, you might need to switch them on manually. To enable them, just open your theme’s functions.php file, paste in the code below, and voila!

add_theme_support( 'post-thumbnails' );
set_post_thumbnail_size( 115, 115 )

The first line of code tells WordPress to enable featured images, while the second sets the default size for featured thumbnails. The set_post_thumbnail_size() bit works just like the add_image_size() function we looked at above. You can give it a width, a height and, optionally, a third boolean parameter (true or false) to indicate whether it should be an exact crop.

Once that’s done, go into the back end and edit a post. You should see a featured image widget in the right sidebar; click it to add an image. Or navigate to the media section of the post, view an image’s details, and click the “Use as featured image� link.

The only thing left to do is make these featured images show up! You will need to edit the code for the loop in your theme’s files, which is usually found in index.php or in some cases in loop.php. Look for something like this:

<?php while ( have_posts() ) : the_post(); ?>
The code to display a post is inside here, it can be quite long
<?php endwhile; ?>

Wherever you want to show the images, add the following in the loop:

<?php the_post_thumbnail(); ?>

In some cases, you may want to show the featured image at a size different than the default. If so, you can pass the desired size as an argument, like so:

<?php the_post_thumbnail("wider_image"); ?>

You can name a size that you have previously created using add_image_size(), as I have done above, or you can use an array to specify a size on the fly: array(225, 166).

Creating Galleries

The easiest way to show multiple images in a post is to upload the images to the post and then use the gallery shortcode to display them all.

Gallery-settings in Better Image Management With WordPress

Simply open the “Upload/insert� media screen, click on “Galleries,� and scroll down to the gallery settings. Make sure the links point to the attachment pages (more on this later), and then insert the gallery. Now, thumbnails of all the images you have uploaded to that post will be displayed, each linked to its attachment page.

Including and Excluding Images

You can easily include images from other posts or exclude certain images from the current post by modifying the gallery shortcode. If you switch the editor to the HTML view, you should see [ gallery ] where the gallery would show up. You can add options to it using the following format: [ gallery option_1="value" option_2="value" ].

To include a specific image, you will need to know its attachment ID. You can find that by going to the “Media� section of the WordPress admin area, finding the image you need, hovering over it, and reading the target from the URL or status bar. It should be something like http://webtastique.net/wp-admin/media.php?attachment_id=92&action=edit. The number after attachment_id is what you need.

You can include multiple items like so: [ gallery include="23,39,45" ]. And exclude items the same way: [ gallery exclude="87,11"].

Excluding the Featured Image

Sometimes you will want to use all of the images attached to a post except the featured one. You could find the ID of the image and enter it in the exclude options of the gallery shortcode every time, but that would be a hassle (especially if you change the featured image later). Let’s automate this.

Regrettably, the only way to do this is by replacing a core function in WordPress with our own, using the remove_shortcode() and add_shortcode() functions. The large chunk of code below may be off-putting, but implementing it is as easy as copying, pasting and adding two lines of code. The reason we need to add all this is that we can’t just go around editing a WordPress core file; we need to replace core functions with built-in functions.

First, open your theme’s functions.php file (if it doesn’t exist, simply create it), and add the following code to it:

// remove the  WordPress function
remove_shortcode('gallery', 'gallery_shortcode');
// add our own replacement function
add_shortcode('gallery', 'myown_gallery_shortcode');

This removes the gallery_shortcode() function that WordPress uses to display galleries and replaces it with our own function, called myown_gallery_shortcode().

The code below is almost exactly the same as the default, but we are adding a line to exclude our featured image. Paste the code below into the functions.php file, and then read the explanation further down:

function myown_gallery_shortcode($attr) {
	global $post, $wp_locale;

	static $instance = 0;
	$instance++;

	// Allow plugins/themes to override the default gallery template.
	$output = apply_filters('post_gallery', '', $attr);
	if ( $output != '' )
		return $output;

	// We’re trusting author input, so let’s at least make sure it looks like a valid orderby statement
	if ( isset( $attr['orderby'] ) ) {
		$attr['orderby'] = sanitize_sql_orderby( $attr['orderby'] );
		if ( !$attr['orderby'] )
			unset( $attr['orderby'] );
	}
	extract(shortcode_atts(array(
		'order'      => 'ASC',
		'orderby'    => 'menu_order ID',
		'id'         => $post->ID,
		'itemtag'    => 'dl',
		'icontag'    => 'dt',
		'captiontag' => 'dd',
		'columns'    => 3,
		'size'       => 'thumbnail',
		'include'    => '',
		'exclude'    => $default_exclude
	), $attr));

	$default_exclude = get_post_thumbnail_id($post->ID);
	$exclude .= ",".$default_exclude; 

	$id = intval($id);
	if ( 'RAND' == $order )
		$orderby = 'none';

	if ( !empty($include) ) {
		$include = preg_replace( '/[^0-9,]+/', '', $include );
		$_attachments = get_posts( array('include' => $include, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => $order, 'orderby' => $orderby) );

		$attachments = array();
		foreach ( $_attachments as $key => $val ) {
			$attachments[$val->ID] = $_attachments[$key];
		}
	} elseif ( !empty($exclude) ) {
		$exclude = preg_replace( '/[^0-9,]+/', '', $exclude );
		$attachments = get_children( array('post_parent' => $id, 'exclude' => $exclude, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => $order, 'orderby' => $orderby) );
	} else {
		$attachments = get_children( array('post_parent' => $id, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => $order, 'orderby' => $orderby) );
	}

	if ( empty($attachments) )
		return '';

	if ( is_feed() ) {
		$output = "\n";
		foreach ( $attachments as $att_id => $attachment )
			$output .= wp_get_attachment_link($att_id, $size, true) . "\n";
		return $output;
	}

	$itemtag = tag_escape($itemtag);
	$captiontag = tag_escape($captiontag);
	$columns = intval($columns);
	$itemwidth = $columns > 0 ? floor(100/$columns) : 100;
	$float = is_rtl() ? 'right' : 'left';

	$selector = "gallery-{$instance}";

	$output = apply_filters('gallery_style', "
		
		


\n";

	return $output;
}

In lines 18 through 29, WordPress is determining the default attributes. By default, nothing is excluded; so under this bit of code, we add two more lines, and that’s it:

$default_exclude = get_post_thumbnail_id($post->ID);
$exclude .= ",".$default_exclude;

The first line here finds the featured image of the post in question, while the second appends it to the exclude list. The rest of the code is the same as the default.

Using Attachment Pages

Colorblocks in Better Image Management With WordPress

In my opinion, attachment pages are the single best tool for creating richer, more informative image-driven websites. They enable you to create separate pages for each and every media item you have, affording you considerably more power in managing them.

Attachment pages exist in WordPress by default, but people seem to rarely link to them. Linking thumbnails directly to their full-sized versions (i.e. without the website framework) is much more common. I am not a huge fan of this because it throws the user into a completely new environment without prior warning. Attachment pages allow you to show the user a wealth of information about the image; and for those who need a bigger version, you can display download links for different sizes.

Enabling Attachment Pages

As stated, you don’t need to do anything to enable attachment pages. Just make sure to link your images to them instead of to the original files. For galleries, link to the attachment page using the radio buttons before inserting them. When inserting a single image, point the link’s URL field to the “Post URL� by clicking the relevant button below it.

Styling Attachment Pages

If your theme doesn’t have an attachment.php file, then single.php will handle the display of attachment pages by default. If you have a decent theme, chances are this will work fine without your needing to touch any code. When clicking on an image, you should arrive on a page that shows the title and description of the image and the image itself.

To add additional information to this page, you will need an attachment.php file. I suggest duplicating single.php and going from there, because in most cases it will have most of what you need.

Adding Image Data

To make the attachment pages more informative, add a bunch of meta data to your images. To help with this, I have created a plug-in especially for Smashing Magazine readers, which you can download from the WordPress Plugins page, or just search for “media custom fields� in WordPress’ back end where you “Add new� plug-ins.

This plug-in lets you create your own custom fields, like the photographer’s name, coordinates, color palette, etc. What you add is up to you. You can easily manage all of the information on the plug-in’s admin page.

In the video below, I’ll walk you through how I did this on my own blog. You’ll learn about basic usage and see an example.


“Better Media Management With WordPress Using the Media Custom Fields Plugin,� by Daniel Pataki.

Creative Attachment Page Uses

Download Links for Image Sizes

Using the add_image_size() function mentioned above, you could create five or six image sizes and show Flickr-style download options that allow users to choose the dimensions of their preference. This is helpful when showcasing desktop backgrounds and large photographs. So, let’s do that:

// If we are on an attachment page, the $post object will be available and the $post->ID variable will contain the ID of the image in question.

// Find the meta data field from the postmeta table, which contains the sizes for a given image. This is the '_wp_attachment_metadata' field, which contains a serialized array. Take care, because if you use 'true' as the third parameter, the function will unserialize the string for you, so that you don’t need to do it.
$image_meta = get_post_meta( $post->ID, '_wp_attachment_metadata', true);

// Put all the image sizes and file names into an array for ease of use
$image_sizes = $image_meta['sizes'];
$image_sizes['original']['width']  =  $image_meta['width'];
$image_sizes['original']['height'] =  $image_meta['width'];
$image_sizes['original']['file']      =  $image_meta['file'];

// Display a list of links for these images
echo '
<h3>This image is available in the following formats</h3>

';
echo '
    '; foreach ( $image_sizes as $size_name => $size ) { $url = wp_get_attachment_image_src( $post->ID, $size_name ); $anchortext = $size['width'] . 'x' . $size['height']; echo "".$anchortext.""; } echo '
';

Adding Color Palettes

By adding some creativity to the mix, you can come up with some nifty features. The screencast above and the code below shows you how to display color blocks of the dominant colors in each of your photos.

Screen-shot-2011-02-11-at-1 21 12-PM in Better Image Management With WordPress

To accomplish this, you will first need to create a custom field using the Media Custom Fields plug-in and name it something like “Color Palette.� Remember to look at the field name that the system generates; it is displayed in parentheses next to the title you chose. It should be something like tqmcf_color-palette.

Once that’s done, edit the image you’d like, and add the following in the custom field: color_1,color_2,color_3, where colors_x should be hex values. In my case, I entered the following string: f0e9bf,e4dc99,000000.

Open up the attachment.php file in a code editor. Wherever you want to display the colors, you’ll need to add something like this:

// Retrieve the field value from the database
$color_palette = get_post_meta( $post->ID, 'tqmfc_color-palette', true );

// Turn the string into an array of values, where each value is one of the colors
$colors = explode( ',', $color_palette );

echo '
<h2>Logo Colors</h2>
';

// Loop through all the colors and create the color blocks, which will actually be links pointing the the color's page on Colourlovers.com
foreach ($colors as $color) {
    $link = 'http://www.colourlovers.com/color/'.$color.'/';
    echo '';
}

You will also need to style the link element so that it shows up. Because anchors are inline elements by default, if they have no content, they won’t show up. Here’s the CSS I used, but you’ll need to change it to match your website:

.color-block {
    display: block;
    float: left;
    height: 20px;
    margin-right: 3px;
    width: 30px;
}

Conclusion

As you can see, even with minimal effort, you can create a much more robust system for storing and showing images. And with some copying and pasting, you can take it one step further.

The first and most important step is to add meta data like alt text to images, give them meaningful file names and so on. By doing so, you lay a foundation for any media management system. You can easily add other meta data to your files by using the Media Custom Fields plug-in for WordPress.

With this foundation in place and a few simple code tweaks, you can show images based on any of the custom fields you wish, displaying relevant and interesting information about them. Creating download buttons for multiple sizes and creating multiple color palettes are only the tip of the iceberg. The techniques showcased here can be used for so much more!

(al)


© Daniel Pataki for Smashing Magazine, 2011. | Permalink | Post a comment | Smashing Shop | Smashing Network | About Us
Post tags: ,


100+ Free High Resolution Photoshop Brush Sets

Advertisement in 100+ Free High Resolution Photoshop Brush Sets
 in 100+ Free High Resolution Photoshop Brush Sets  in 100+ Free High Resolution Photoshop Brush Sets  in 100+ Free High Resolution Photoshop Brush Sets

Designers all over the world are on a constant search to find useful Photoshop brushes. This is because they know having a good collection of Photoshop brushes can save them in their time of need. Although there are countless brush sets are available for Adobe Photoshop that make finding Brush sets an easier task. But to find high quality brush sets, you have to browse through tons of web pages – a tedious task.

So, here we are showcasing a beautiful collection of 100+ high-quality Photoshop Brushes that every designer must have. Speak your mind… Tell us what you think about this post. Your comments are always more than welcome! Important: Licenses of every brush set varies, so be sure to check that information before using them.

Light Effect Photoshop Brush Sets

These particular types of brush sets let you add lighting effects to your designs such as streaks and flares. Light effect Photoshop brush sets are well suited for digital art manipulations.

Fantasy Lighting Brush Kit

Lighteffectbrush3 in 100+ Free High Resolution Photoshop Brush Sets

Light Swirls Brushes

Lighteffectbrush17 in 100+ Free High Resolution Photoshop Brush Sets

Galactic Brushes

Lighteffectbrush2 in 100+ Free High Resolution Photoshop Brush Sets

Unreal Brushes

Lighteffectbrush5 in 100+ Free High Resolution Photoshop Brush Sets

Nova Equinox Brushes

Lighteffectbrush7 in 100+ Free High Resolution Photoshop Brush Sets

LIGHT III

Lighteffectbrush8 in 100+ Free High Resolution Photoshop Brush Sets

Beser Brushes

Lighteffectbrush12 in 100+ Free High Resolution Photoshop Brush Sets

Light Streaks Brushes

Lighteffectbrush13 in 100+ Free High Resolution Photoshop Brush Sets

Vander90

Lighteffectbrush14 in 100+ Free High Resolution Photoshop Brush Sets

Abstraction

Lighteffectbrush15 in 100+ Free High Resolution Photoshop Brush Sets

Party Brushes

Lighteffectbrush16 in 100+ Free High Resolution Photoshop Brush Sets

PETALS ADRIFT

Lighteffectbrush18 in 100+ Free High Resolution Photoshop Brush Sets

Glow Brushes I

Lighteffectbrush19 in 100+ Free High Resolution Photoshop Brush Sets

Abstract Photoshop Brush Sets

Designing abstract art is a demand of many clients because of its appeal and elegance. Creating Abstract art is no longer as difficult a task with this ultimate collection of Abstract Photoshop Brush Sets.

Volcanic

Abstractbrushes25 in 100+ Free High Resolution Photoshop Brush Sets

Motion

Abstractbrushes30 in 100+ Free High Resolution Photoshop Brush Sets

Paint Lines brushes

Abstractbrushes39 in 100+ Free High Resolution Photoshop Brush Sets

Sparklies Photoshop Brushes

Abstractbrushes33 in 100+ Free High Resolution Photoshop Brush Sets

8 Bit Brushes

Abstractbrushes21 in 100+ Free High Resolution Photoshop Brush Sets

Fake Glitter

Abstractbrushes22 in 100+ Free High Resolution Photoshop Brush Sets

5 Abstract Brushes

Abstractbrushes24 in 100+ Free High Resolution Photoshop Brush Sets

Fortune Brushes

Abstractbrushes26 in 100+ Free High Resolution Photoshop Brush Sets

Absbrushes

Abstractbrushes27 in 100+ Free High Resolution Photoshop Brush Sets

Descent Brushes

Abstractbrushes29 in 100+ Free High Resolution Photoshop Brush Sets

Darius Brushes

Abstractbrushes31 in 100+ Free High Resolution Photoshop Brush Sets

9 Fire brushes

Abstractbrushes32 in 100+ Free High Resolution Photoshop Brush Sets

Smoke Brush Set

Abstractbrushes34 in 100+ Free High Resolution Photoshop Brush Sets

Crystalline

Abstractbrushes28 in 100+ Free High Resolution Photoshop Brush Sets

Dreamon Shape Brushes

Abstractbrushes35 in 100+ Free High Resolution Photoshop Brush Sets

Doom Abstract Brush Set

Abstractbrushes36 in 100+ Free High Resolution Photoshop Brush Sets

Curvy Lines

Abstractbrushes37 in 100+ Free High Resolution Photoshop Brush Sets

28 Basic Chaos Brushes

Abstractbrushes38 in 100+ Free High Resolution Photoshop Brush Sets

10 Lost Textures

Abstractbrushes40 in 100+ Free High Resolution Photoshop Brush Sets

Grunge Photoshop Brush Sets

One of the most useful types of Photoshop brushes these days is Grunge Photoshop brushes. These are the most useful brush sets when it comes to creating textured and decaying effects.

Grunge brushes 04

Grungebrushes45 in 100+ Free High Resolution Photoshop Brush Sets

Seu Davi Grunge-Rust Brush

Grungebrushes44 in 100+ Free High Resolution Photoshop Brush Sets

Part-liquid

Grungebrushes60 in 100+ Free High Resolution Photoshop Brush Sets

Grunge Brushes

Grungebrushes42 in 100+ Free High Resolution Photoshop Brush Sets

41 Grunge Brushes

Grungebrushes43 in 100+ Free High Resolution Photoshop Brush Sets

Rusty grunge 2

Grungebrushes46 in 100+ Free High Resolution Photoshop Brush Sets

Plastered Prime

Grungebrushes47 in 100+ Free High Resolution Photoshop Brush Sets

Textures 2

Grungebrushes48 in 100+ Free High Resolution Photoshop Brush Sets

Old Grunge Photoshop Brushes

Grungebrushes49 in 100+ Free High Resolution Photoshop Brush Sets

Flow&Dirty

Grungebrushes50 in 100+ Free High Resolution Photoshop Brush Sets

Grunge Lines Brushes Part.3

Grungebrushes51 in 100+ Free High Resolution Photoshop Brush Sets

Tank Pattern

Grungebrushes52 in 100+ Free High Resolution Photoshop Brush Sets

Grungy arrow

Grungebrushes53 in 100+ Free High Resolution Photoshop Brush Sets

Grunge Up In The Woods Papers

Grungebrushes54 in 100+ Free High Resolution Photoshop Brush Sets

Chalk AdobePhotoshopCS Brushes

Grungebrushes55 in 100+ Free High Resolution Photoshop Brush Sets

8 Cracks Photoshop Brushes

Grungebrushes57 in 100+ Free High Resolution Photoshop Brush Sets

Spray Paint Brushes

Grungebrushes59 in 100+ Free High Resolution Photoshop Brush Sets

Drawings Photoshop Brush Sets

Now you can create drawings and simple illustrations with the simple click to install these breathtaking drawing Photoshop brush sets. Some of these brush sets give your design the look of a real drawing.

Funky Paisley Brushes

Drawingsbrushes63 in 100+ Free High Resolution Photoshop Brush Sets

Blood Marks brushes

Drawingsbrushes61 in 100+ Free High Resolution Photoshop Brush Sets

Paint Strokes

Drawingsbrushes70 in 100+ Free High Resolution Photoshop Brush Sets

Real Brush Strokes

Drawingsbrushes73 in 100+ Free High Resolution Photoshop Brush Sets

Paint Trails brushes

Drawingsbrushes71 in 100+ Free High Resolution Photoshop Brush Sets

Foliage Brush Set

Drawingsbrushes62 in 100+ Free High Resolution Photoshop Brush Sets

Paint markers brush set

Drawingsbrushes64 in 100+ Free High Resolution Photoshop Brush Sets

Spring Flower Brushes

Drawingsbrushes65 in 100+ Free High Resolution Photoshop Brush Sets

15 drawn flower brushes

Drawingsbrushes66 in 100+ Free High Resolution Photoshop Brush Sets

PLeaves and Trees Brushes

Drawingsbrushes67 in 100+ Free High Resolution Photoshop Brush Sets

Wood Series Vol. 2 Tennessee Leaves

Drawingsbrushes69 in 100+ Free High Resolution Photoshop Brush Sets

Skin and Cosmetic

Drawingsbrushes75 in 100+ Free High Resolution Photoshop Brush Sets

Smudge brush set

Drawingsbrushes72 in 100+ Free High Resolution Photoshop Brush Sets

BK Ink Strokes Brushes

Drawingsbrushes74 in 100+ Free High Resolution Photoshop Brush Sets

Fractal Photoshop Brush Sets

Seasoned designers may find this particular collection of Photoshop brush sets extremely valuable because it help them with creating beautiful fractal based graphics in Adobe Photoshop with ease.

Radiant Brush Set

Fractalbrush82 in 100+ Free High Resolution Photoshop Brush Sets

Kaleidoscope

Fractalbrush81 in 100+ Free High Resolution Photoshop Brush Sets

10 Photoshop Fractal Brushes

Fractalbrush83 in 100+ Free High Resolution Photoshop Brush Sets

3D Fractals

Fractalbrush84 in 100+ Free High Resolution Photoshop Brush Sets

kaleidoscope

Fractalbrush85 in 100+ Free High Resolution Photoshop Brush Sets

Fractal Web

Fractalbrush86 in 100+ Free High Resolution Photoshop Brush Sets

Fine Wisps

Fractalbrush87 in 100+ Free High Resolution Photoshop Brush Sets

Spiro Flowers 2

Fractalbrush88 in 100+ Free High Resolution Photoshop Brush Sets

Twisted Bars

Fractalbrush89 in 100+ Free High Resolution Photoshop Brush Sets

Fractal Chaos

Fractalbrush91 in 100+ Free High Resolution Photoshop Brush Sets

Fractal Bars 1

Fractalbrush92 in 100+ Free High Resolution Photoshop Brush Sets

Fractal Symphony

Fractalbrush93 in 100+ Free High Resolution Photoshop Brush Sets

Fractal 2 brushes

Fractalbrush94 in 100+ Free High Resolution Photoshop Brush Sets

Fractal Brushes Set

Fractalbrush96 in 100+ Free High Resolution Photoshop Brush Sets

Fractal brush

Fractalbrush97 in 100+ Free High Resolution Photoshop Brush Sets

Fractal Brush Set

Fractalbrush98 in 100+ Free High Resolution Photoshop Brush Sets

Fractal Brush

Fractalbrush99 in 100+ Free High Resolution Photoshop Brush Sets

Natures Photoshop Brush Sets

Bringing nature to your design is an easier said than done job, but with the help of the appropriate brush set, a designer can easily bring this natural life in to their design. Here is an amazing collection of Natures Photoshop Brush sets for you.

Vector Foliage-Plants Brushes

Naturesbrush105 in 100+ Free High Resolution Photoshop Brush Sets

Floral Photoshop Brushes

Naturesbrush101 in 100+ Free High Resolution Photoshop Brush Sets

Fall Leaves

Naturesbrush107 in 100+ Free High Resolution Photoshop Brush Sets

Floral ornaments

Naturesbrush102 in 100+ Free High Resolution Photoshop Brush Sets

The Grasslands

Naturesbrush103 in 100+ Free High Resolution Photoshop Brush Sets

Trees

Naturesbrush104 in 100+ Free High Resolution Photoshop Brush Sets

Liquid Ripple

Naturesbrush106 in 100+ Free High Resolution Photoshop Brush Sets

Nature Spatter

Naturesbrush108 in 100+ Free High Resolution Photoshop Brush Sets

Trees

Naturesbrush109 in 100+ Free High Resolution Photoshop Brush Sets

Grass Strips

Naturesbrush110 in 100+ Free High Resolution Photoshop Brush Sets

5 New Bird Brushes

Naturesbrush111 in 100+ Free High Resolution Photoshop Brush Sets

Ground Plants Selection

Naturesbrush112 in 100+ Free High Resolution Photoshop Brush Sets

Tree Brushes Pack

Naturesbrush113 in 100+ Free High Resolution Photoshop Brush Sets

Wing Brush Set

Naturesbrush114 in 100+ Free High Resolution Photoshop Brush Sets

Photoshop Floral Brushes

Naturesbrush115 in 100+ Free High Resolution Photoshop Brush Sets

Clouds Mist

Naturesbrush116 in 100+ Free High Resolution Photoshop Brush Sets

Mountain Brushes

Naturesbrush117 in 100+ Free High Resolution Photoshop Brush Sets

Water Photoshop Brushes

Naturesbrush118 in 100+ Free High Resolution Photoshop Brush Sets

Waterfalls

Naturesbrush119 in 100+ Free High Resolution Photoshop Brush Sets

Miscellaneous Photoshop Brush Sets

This is an incredible collection of miscellaneous Photoshop brush sets that contain almost everything a designer may need. Have a look at this collection, you will definitely find something of your interest.

Human Skin Brushes

Miscellaneousbrushes121 in 100+ Free High Resolution Photoshop Brush Sets

Ps Brushes Halftones 2

Miscellaneousbrushes122 in 100+ Free High Resolution Photoshop Brush Sets

Photoshop sun brushes

Miscellaneousbrushes123 in 100+ Free High Resolution Photoshop Brush Sets

Unique Borders

Miscellaneousbrushes124 in 100+ Free High Resolution Photoshop Brush Sets

Snow Prints

Miscellaneousbrushes125 in 100+ Free High Resolution Photoshop Brush Sets

Jelena’s Animal and Bird Trail Brushes

Miscellaneousbrushes126 in 100+ Free High Resolution Photoshop Brush Sets

Omega Brush Set

Miscellaneousbrushes127 in 100+ Free High Resolution Photoshop Brush Sets

Seishido Footsteps Brushes

Miscellaneousbrushes128 in 100+ Free High Resolution Photoshop Brush Sets

Soft Furry Watercolor Brushes

Miscellaneousbrushes129 in 100+ Free High Resolution Photoshop Brush Sets

High Res Blueprint and Schematic

Miscellaneousbrushes130 in 100+ Free High Resolution Photoshop Brush Sets

Rim Brushes

Miscellaneousbrushes131 in 100+ Free High Resolution Photoshop Brush Sets

Skyline

Miscellaneousbrushes133 in 100+ Free High Resolution Photoshop Brush Sets

Assorted Maps

Miscellaneousbrushes134 in 100+ Free High Resolution Photoshop Brush Sets

Spirals and halftones

Miscellaneousbrushes135 in 100+ Free High Resolution Photoshop Brush Sets

Electric Pylon

Miscellaneousbrushes136 in 100+ Free High Resolution Photoshop Brush Sets

Kiss and Tell

Miscellaneousbrushes140 in 100+ Free High Resolution Photoshop Brush Sets

Coffee Cup Circles Brushes

Miscellaneousbrushes132 in 100+ Free High Resolution Photoshop Brush Sets

Futuristic

Miscellaneousbrushes137 in 100+ Free High Resolution Photoshop Brush Sets

Cherry Bomb Brushes

Miscellaneousbrushes138 in 100+ Free High Resolution Photoshop Brush Sets

Abstract Smudges

Miscellaneousbrushes139 in 100+ Free High Resolution Photoshop Brush Sets

Consider Our Previous Posts:

(rb)


Styling ordered list numbers

I’ve always been annoyed by how difficult it is to style the numbers of ordered lists. Quite often a design calls for something other than just a plain figure – a different font, size, colour, background, whatever.

The traditional approach to solving this problem has been to prevent the browser from rendering the numbers of the list items (li elements) and instead hard code the numbers in the text content of the li. That makes it possible to add styling hooks to the number and style away until you’re happy.

Doing it that way works visually, but it isn’t exactly a semantically correct way of using lists. When you view a faked numbered list with CSS disabled you see either a list with the item numbers repeated or a list with bullets and numbers, and that feels backwards to me. I wanted to find a better way.

Read full post

Posted in .

Copyright © Roger Johansson



Introduction to DNS: Explaining The Dreaded DNS Delay

Advertisement in Introduction to DNS: Explaining The Dreaded DNS Delay
 in Introduction to DNS: Explaining The Dreaded DNS Delay  in Introduction to DNS: Explaining The Dreaded DNS Delay  in Introduction to DNS: Explaining The Dreaded DNS Delay

Imagine that your biggest client calls because they are having trouble retrieving their email. Or they want to know what their best-selling item is right now. Or their most popular blog post. Perhaps their website has suddenly gone down. You can hardly reply, “No problem, I’ll get back to you in 24 to 48 hours.â€�

And yet DNS gets away with it! If you need to move a website or change the way a domain’s email is handled, you’ll be faced with a vague 24 to 48-hour delay. This is quite an anomaly in a world of ultra-convenience and super-fast everything. This article explains what DNS is, how it works, where that pesky delay comes from, and a couple of ways to work around it.

What Is DNS?

DNS is the “domain name system.â€� It translates human-friendly website addresses like www.cnn.com into computer-friendly IP addresses like 157.166.224.25. Try visiting http://157.166.224.25 if you’d like to verify this.

Every computer, Web server and networking device on the Internet has one of these numerical IP addresses. In some cases, through a process called “network address translation,� a whole house, office or building shares the same IP address. But the addresses are otherwise unique, and they allow computers to easily route information around the Internet.

DNS is a distributed service. No single computer out there translates domain names to addresses. Instead, the task is shared by millions of name servers (also spelt as one word, “nameserver�), which constantly refer to and update each other.

Your Local Name Server

Every computer connected to the Internet has a name server. When you attempt to visit a website like www.smashingmagazine.com, your computer asks its local name server to go off and find the corresponding IP address, 80.72.139.101 in this case. Your computer’s name server can’t make this translation by itself; it has to keep asking other name servers until something somewhere comes back with a definitive answer.

Your local name server is like the little address book that you kept near the telephone before mobiles were invented. If you hired A1 Triple Glazing to retrofit your windows, you might have copied their phone number into your address book. The next time you had to ring them, the number would be right there, immediately available. Or under the sofa.

Some Name Servers Are Special

The name servers just “know.� Every domain name like smashingmagazine.com has at least one name server that authoritatively and definitively knows the correct IP address. The authoritative name servers for smashingmagazine.com are flashily called a.regfish-ns.net, b.regfish-ns.net and c.regfish-ns.net.

This is like saying that A1 Triple Glazing’s phone number can definitely be found in the Northampton Yellow Pages. That particular phone book is the authoritative source of information on the whereabouts of A1 Triple Glazing.

Where the Delay Comes From

Say A1 Triple Glazing decides to change its phone number. It could take up to 12 months before the 2012 edition of the Northampton Yellow Pages comes out with the updated phone number. And it could take a further 12 to 36 months before you next go up to Northampton, check the Yellow Pages, and copy the new phone number into your personal address book. In the intervening 24 to 48 months, your address book would be out of date. And if you ever rang A1 Triple Glazing, you’d be disconnected instantly… or end up speaking to a hairdresser. Fortunately, new windows generally have a 10-year guarantee. But websites need to be a bit more responsive than that.

Creating A New Website

DNS becomes important whenever you need to create a new website or move an existing one. New websites are the simpler case, so we’ll discuss them first. With any new website, you need to do several things:

1. Buy the Domain Name

123-reg-website-screenshot in Introduction to DNS: Explaining The Dreaded DNS Delay
123-reg is a domain name registrar that does hosting on the side.

A company from which you buy and register a domain name is called a registrar. Registrars get a special license from ICANN that allows them to sell domain names. The license costs $2500 (US) to apply, plus $4000 per year. Some particularly large registrars are GoDaddy in the US and 123-reg in the UK.

After registering a new domain name, there may be a delay of a few minutes to a few hours before you can log into the registrar’s website to change the domain’s name servers (step 3 below) or point to an IP address (step 4 below). This delay is a result of the registrar processing your payment, adding you to the Whois database and updating its records. The delay applies only to brand new domains and so is not part of the DNS delay.

2. Find a Host for the Website

Eco-web-hosting-screenshot in Introduction to DNS: Explaining The Dreaded DNS Delay
Some companies provide only hosting.

The hosting company puts your website on a big powerful server somewhere, provides you with an IP address and charges you monthly. Thousands of big and small companies offer hosting or resell another company’s. Most registrars also offer hosting, and if you buy the domain name and hosting space from the same company, you won’t need to worry at all about DNS.

3. Specify Name Servers for Your Domain

Domain-registration-screenshot in Introduction to DNS: Explaining The Dreaded DNS Delay
Almost all registrars allow you to change name servers. This screenshot is from Fasthosts.

This step is akin to specifying which Yellow Pages your domain name should appear in. Usually you can skip this step and just use the default name servers provide by the registrar.

You might want to change them if, for example, you registered the domain names (step 1 above) with several companies but wanted to manage the DNS (step 4 below) from one place. Or perhaps you used Really Cheap Registrar Plc to register the domain names, but you want to use Really Flexible DNS Plc to manage the DNS. Or perhaps your host (step 2) has a nice DNS interface that you’d like to use.

To change the name servers, log into your registrar (from step 1 above), navigate to the domain name in question, and look for a “Change name servers� option, as in the screenshot above. Really Flexible DNS Plc will tell you what to change them to.

4. Point the Domain Name at the IP Address

Domain-registration-IP-screenshot in Introduction to DNS: Explaining The Dreaded DNS Delay
Using Fasthost’s advanced DNS to add the IP address of a website.

Now you need to log into whichever company is providing the name servers (either the registrar, the host or another) and point www.yournewdomainname.com to your new IP address. Usually there is an option for “DNS Settings� or “Advanced DNS,� often with a big warning asking whether you’re sure you know what you’re doing. Find the button to add an new “A� record (for “Address�). Enter www as the host name (i.e. the prefix for the domain name) and the IP address given by your host in step 2.

You can use the same process to create other address records, such as webmail.yournewdomainname.com. Sometimes you can enter * as the host name, and then everything.yournewdomainname.com will point to the IP address. And if you enter @ as the host name, then it will point yournewdomainname.com without any host name.

5. Wait For It to Happen

This is the cause of part of the DNS delay. Many companies will process your DNS request immediately. Others process requests only once or twice a day; so, if your company processes changes only at 4:00 am, and you request the change at 4:02 am, then you’ll need to wait almost 24 hours.

123-reg says this:

Not only do we give you the power to change your DNS settings to whatever you like, but we make those changes instantly! Unfortunately, we can’t make the Internet as efficient as we are?—?other web services may take longer to update. Your changes will go global just as soon as they catch up.

The next section discusses how DNS works in detail, and the final section covers the main part of the DNS delay.

How DNS Works

When you visit a website in the browser or ping or FTP or telnet or do any networking operation, your computer needs to convert the (fully qualified) domain name into an IP address. This section shows how that happens, with commands so that you can try it yourself.

For the commands, you’ll need to open up the terminal on Mac or Linux or the command prompt on Windows. To do this on a Mac, go to Applications ? Utilities ? Terminal. In Ubuntu Linux, go to Applications ? Accessories ? Terminal. On Windows, go to Start ? Programs ? Accessories ? Command Prompt.

Note that in DNS, both smashingmagazine.com and www.smashingmagazine.com can be called “domain names.� But the latter, www.smashingmagazine.com, could also be called a “host name� or a “fully qualified domain name� or just a website address. This article mostly uses the term “domain name.�

1. Ask Your Local Name Server

Let’s say you want to visit www.smashingmagazine.com. Within its many networking settings, your computer has stored the IP address of a local domain name server. Its first step is to ask this name server for the answer.

On Mac and Linux, you can run the following command to find out what your name server is:

cat /etc/resolv.conf

On Windows, the command is:

ipconfig /all

Dns-server-linux-original in Introduction to DNS: Explaining The Dreaded DNS Delay
What the command looks like in Linux.

In this case, my computer sends a request to 192.168.1.1, something along the lines of, “Oi, 192.168.1.1! What’s the IP address for www.smashingmagazine.com?â€�

2. Your Local Name Server Doesn’t Know

Let’s say that the local domain name server, 192.168.1.1, is brand spanking new. It has never been asked anything before, let alone for the IP address of www.smashingmagazine.com. It knows very little. In fact, the only things it knows are the IP addresses of the root name servers. You can find out everything it knows using the NsLookup command.

On Mac, Linux and Windows, run the command shown below. The -type=ns tells NsLookup to only return information on name servers. And the dot at the end tells it to look up root name servers.

nslookup -type=ns .

This will return the names and IP addresses of a handful of root name servers. If you’d like to see what’s holding the Internet together, Wikipedia has a picture of one of these very important computers.

Root-name-servers-original in Introduction to DNS: Explaining The Dreaded DNS Delay
A list of the Internet’s very important root name servers.

3. So, It Asks a Top-level Domain Name Server…

Your local name server extracts the last part of the requested domain name, which is com in this case. This is called the top-level domain or TLD. Others are net, gov, uk, fr, ie and de.

Your local domain name server picks one of the root name servers listed above and asks it something like, “Excuse me, 193.0.14.129. If you don’t mind, where would I find information about .com domains?â€�

You can see the sort of answer it would receive by running this command:

nslookup -type=ns com 193.0.14.129

Com-name-servers-original in Introduction to DNS: Explaining The Dreaded DNS Delay
This is a list of TLD name servers for com domains.

4. … And Gets Redirected to a Lesser Domain Name Server

It’s nearly there. Your local name server now asks one of these TLD name servers something like, “Hi, 192.52.178.30. Do you know where I should go for stuff on smashingmagazine.com?â€�

You can see the answer to this question by running NsLookup again:

nslookup -type=ns smashingmagazine.com 192.52.178.30

This returns a list of name servers for the domain smashingmagazine.com. The word authoritative means that these name servers are the definitive place to go for DNS information on smashingmagazine.com.

Smashingmagazine-name-servers-original in Introduction to DNS: Explaining The Dreaded DNS Delay
Running the NsLookup command.

5. Get the IP Address

So, now your local name server goes to one of these name servers. It has arrived at the first part of the requested domain name, the www, so it no longer needs the name servers; it’s ready for the actual data. Now it can ask one of those name servers, “Hola, 79.140.49.11. Can you tell me the IP address of www.smashingmagazine.com? Cheers!â€�

Run the NsLookup command again, using the IP address of one of the domain name servers from above, but without the type=ns this time:

nslookup www.smashingmagazine.com 79.140.49.11

Www Smashingmagazine-name-servers-original in Introduction to DNS: Explaining The Dreaded DNS Delay
Bingo! Now your local name server knows that www.smashingmagazine.com translates into 80.72.139.101.

6. Remember It For Next Time

Your local domain name does not want to have to go through all that rigmarole again any time soon. So, it caches (i.e. stores) everything it has learned, including the IP addresses for TLD servers and the IP address of www.smashingmagazine.com.

So, the next time you ask for a com domain, such as www.google.com, it needs to repeat only steps four and five above. And the next time you (or anyone else using your local name server) asks for www.smashingmagazine.com, it doesn’t need to do anything; it just replies with the IP address that it has already remembered.

But it won’t remember that translation forever. Eventually, it will forget and have to repeat some or all of the steps above. You can use the dig command to find out how long it will remember.

On Mac and Linux, run this:

dig www.smashingmagzine.com

Windows users will need to use an online version of this tool, because Windows does not come with the dig command.

Dig-smashing-magzine-original in Introduction to DNS: Explaining The Dreaded DNS Delay
Digging Smashing Magazine.

In the Answer Section, is a line starting with www.smashingmagazine.com (the thing you asked about) and ending with the translated IP address. The number in the middle is the number of seconds before your local name server forgets about this domain and has to repeat steps four and five above. In this example, it is 238 seconds:

;; ANSWER SECTION:
www.smashingmagazine.com.  238  IN  A  80.72.139.101

This caching on your local name server is responsible for part of the DNS delay. In this case, even if Smashing Magazine changed its IP address right now, your computer wouldn’t know about it for at least 238 seconds, when the local name server would have to recheck its sources.

If you use the online tool, then you are not checking your personal local name server, but rather you’re checking that website’s local name server. You can run a slimmer version of this command:

dig +nocmd www.smashingmagazine.com +noall +answer

Also note that in all of the commands above, you could have provided the name of the name server rather than the IP address. NsLookup would have translated it for you.

7. Send the Answer Back to Your Computer

Finally, your local domain name server sends the answer back to you at 80.72.139.101. Your computer and/or browser might also cache this translation, so that the next time you ask for www.smashingmagazine.com, it doesn’t even need to ask the local name server.

Now your computer will embark on another amazing process to communicate with the computer at the address 80.72.139.101 and ask it for a Web page. Your computer will essentially send a request down its network cable (or over its wireless connection), and ask your broadband router something like, “Can you please ask 80.72.139.101 to send me the home page for www.smashingmagazine.com?�

Your broadband router will send the same request along its network cable to the next router. This process will keep repeating. At some point, some large networking device will have several cables connected to it and will follow a rule like, “Requests for any IP addresses starting with less than 100 should go down cable #1. Everything else down cable #2,� and so on, until the request finally gets to 80.72.139.101. And the reply will be sent back in the same way.

You can follow this journey using the traceroute command on Mac and Linux and tracert on Windows:

tracert 80.72.139.101

Time To Live

The caching in step six above is the main cause of the DNS delay. Any given translation (of a Web address into an IP address) has a property called “time to live� or TTL. This tells domain name servers how long they are allowed to cache the translation before having to look it up again.

You can find out what the TTL for a given (fully qualified) domain name is using the dig command, instructing the command to use the domain name’s name server, like so:

dig @a.regfish-ns.net www.smashingmagazine.com

Dig-smashing-magzine-auth-original in Introduction to DNS: Explaining The Dreaded DNS Delay
Finding out the time to live, which in this case is 1800 seconds, or half an hour.

The Answer Section shows that www.smashingmagazine.com has a TTL of 1800 seconds:

;; ANSWER SECTION:
www.smashingmagazine.com. 1800	IN	A	80.72.139.101

That is, your local domain name server will remember this for 1800 seconds. If Smashing Magazine suddenly decided to change its IP address, your local domain name server could hang onto the old IP address for up to 30 minutes.

The command also specifies how long to remember that a.regfish-ns.net is a name server for smashingmagazine.com:

;; AUTHORITY SECTION:
smashingmagazine.com.	86400	IN	NS	a.regfish-ns.net.

If Smashing Magazine suddenly decides to change its name servers, your local domain name server would hang onto the old name server for up to 86,400 seconds, which is one whole day. Only then would it ask for the new name server, and only then would it ask the new name server for the new translation.

Moving A Website

And now for the grand finale! This section ties together all of the above to explain the delay. Three sections ago, we had an in-depth description of how to buy a domain name and set up the DNS. This section looks at what happens when you change the IP address of an existing address.

1. Find Out the Name Servers for the Domain

First, you need to know which name servers your domain uses. You can use the nslookup or whois command or an online networking tool. In this example, I will change the IP address of test.stockashop.co.uk.

nslookup -type=ns stockashop.co.uk
whois stockashop.co.uk

The name servers for this domain are listed as ns.rackspace.com and ns2.rackspace.com.

2. Change the IP Address

Rackspace-edit1 in Introduction to DNS: Explaining The Dreaded DNS Delay
Changing the IP address for an existing address record at Rackspace.

To actually make the change, you will need to log into the website of the company that manages your name servers, as in the section far above. Then find the (fully qualified) domain name that you want to move, and click on something like “Edit DNS Settings� or “Advanced DNS.� Then find the address record you want to change, and edit and save it.

3. Check Whether the Change Has Been Processed

Your DNS change will be processed after a few minutes or hours, depending on the company. To check if and when the change has been processed, you can use the nslookup command to query the name server directly. This bypasses your own local name server and gets the information straight from the horse’s mouth. You can also use an online tool, submitting the domain (test.stockashop.co.uk in this case) and server (ns.rackspace.com).

nslookup test.stockashop.co.uk ns.rackspace.com

Keep running this command until it comes back with the new IP address. This particular change with Rackspace took 10 to 20 minutes. This is the first part of the DNS delay, and it could take anywhere from 0 to 24 hours.

4. Check How Long You Have to Wait

Eventually, the authoritative name servers for your domain will be changed, and it will return the new IP address. Then you can use the dig command to find out how long until your own name server reflects the change:

dig test.stockashop.co.uk

Look in the Answer Section. It will give you the IP address that it thinks is correct (ending in 33 in this case), and the number of seconds until this expires (91).

;; ANSWER SECTION:
test.stockashop.co.uk.    91    IN    A    92.52.106.33

After the 91 seconds have passed (which felt a lot longer than 91 seconds as I was actually doing it), the answer will suddenly change. The IP address will be the new one (ending in 34), and the number of seconds will reset back to about the time to live (1799 in this case, or 30 minutes).

;; ANSWER SECTION:
test.stockashop.co.uk.  1799    IN    A    92.52.106.34

Now you can restart your browser (to clear its internal cache) and visit the address. Your browser should go to the new IP address and the moved website.

You can also use an online dig to test this, although you will be using its name servers instead of your own; so even if it returns the correct IP address, you (or your client) may have to wait a bit longer.

Most DNS entries have a time to live of 86,400 seconds, which is 24 hours. This will add another 0 to 24 hours of delay, with an average of 12 hours. So, the total delay could be between 0 and 48 hours.

Note that the process is similar when changing the name servers for a domain. You can use nslookup or dig to keep track of the changes.

Minimizing The Delay When Moving A Website

There are a few techniques for shrinking the delay, or eliminating it entirely. Please comment if you have any other suggestions.

1. Make the Delay Immaterial

If the website is static and never changes, then having an exact copy on both the old and new hosts will be sufficient. Visitors won’t be able to tell whether they are seeing the old or new one. Or, if you are in a position to shut down dynamic content (such as turning off the comments on a blog for a weekend), then you can make your website static for the duration of the transfer period.

2. Update the Database Across the Internet

All big websites use a database that updates frequently based on user events, such as blog comments and items in shopping baskets. When moving this kind of website, it is possible to subject only the files (HTML, PHP, ASP, etc.) to the DNS delay, and not the data. As above, make an exact copy of the website’s files on the new host. Then configure the new host to access the database still residing on the old host (which may require some firewall configuration). Then make the DNS changes and wait out the delay. Then, at a convenient time, when few people are using the website, transfer the database.

3. Change the TTL

An alternative is to lower the time to live for the transfer. The TTL is usually set to a day to avoid a lot of unnecessary Internet traffic, and many registrars and hosting companies do not let you change the TTL. But some do, such as Rackspace (as seen above), and this alone could be the deciding factor for your choice of a DNS.

You can change the TTL from 86,400 seconds to 300 seconds (5 minutes), and then wait a day for all name servers around the world to learn about this change. Then copy the website and database across as quickly as possible, make the DNS change, and everyone should know about it within five minutes. Then change it back to 86,400 seconds. (Some hosts, like Rackspace, do this automatically after a few days.)

Email

If you have to transfer email accounts along with the website, the easiest way to do this is to set up the email addresses on the new mail server (i.e. the server that stores the emails, which is usually the same as the Web server), and then change the DNS MX record (which specifies which server handles the email for the domain) on a Friday afternoon. By Monday morning, everyone will know about the change, and you can download all of your email one last time from the old mail server, change your email preferences to reflect the new mail server (and your passwords, if they have changed), and then start checking your email on the new server.

This only applies to POP accounts on which no mail is left on the server. IMAP accounts are more difficult; you’ll have to copy all of your emails off the old server first, and then reupload them to the new server. There are other more immediate methods as well, such as changing the TTL or specifying MX records for both the old and new mail servers at the same time.

Conclusion

The 24 to 48-hour DNS delay is caused by two main factors:

  1. The time it takes your registrar or host (or other company) to process your DNS request, which could be anywhere from a few minutes to 24 hours. Before this happens, nobody anywhere has any chance whatsoever of knowing about the change.
  2. The time it takes for your personal name server to learn about the change, which can vary from instantly to the time to live (usually 24 hours). The delay from this will be different for everyone.

Hopefully this article has given you a solid understanding of the basics. Please feel free to comment if you have anything to add or suggest.

(al) (il)


© Paul Tero for Smashing Magazine, 2011. | Permalink | Post a comment | Smashing Shop | Smashing Network | About Us
Post tags: ,


Smashing Cartoons: May 2011

Advertisement in Smashing Cartoons: May 2011
 in Smashing Cartoons: May 2011  in Smashing Cartoons: May 2011  in Smashing Cartoons: May 2011

We all have our favorite client stories, embarrassing design flaws and never-ending user requests which are all just a part of what we, as designers and developers, encounter very often in our daily work routine. In this new post series on Smashing Magazine, we’d like to put some of these situations into the spotlight and discuss them with you. The cartoons are all dedicated to Web design and also have a comic twist about everything happening around the Web and latest trends.

The main character of the cartoons is Fleaty, a talented, hard-working designer with big ambitions yet not that much luck when it comes to clients. Hopefully, Fleaty will put a smile on your face and maybe remind all of us of the flaws we have, and help us finally get rid of them. The creative mind behind the Smashing Cartoons is our talented illustrator Ricardo Gimenes.

We’ll be adding a new cartoon every week; the latest cartoon is presented on the Smashing Magazine’s sidebar as well as on the Smashing Cartoons page. There you will also find all previous issues of the Smashing Cartoons series for your convenience.

Fleaty’s experience in May:

Responsive Web Design

Fleaty 05 Big in Smashing Cartoons: May 2011

Mobile Design Strategy

Fleaty 07bigB in Smashing Cartoons: May 2011

Online Reading Experience

Fleaty 08 BigE in Smashing Cartoons: May 2011

Web Design Trends

Fleaty 04 Big2 in Smashing Cartoons: May 2011

Web Typography

Fleaty 06 BigB in Smashing Cartoons: May 2011

Tell Us Your Story!

Have you experienced something similar to what Fleaty has experienced? What’s your ultimate client story? Do your clients also want a responsive design with rich typography? Share your story with us in the comment section below!

For previous cartoons, check our Smashing Cartoons Archive.


© Smashing Editorial for Smashing Magazine, 2011. | Permalink | Post a comment | Smashing Shop | Smashing Network | About Us
Post tags: ,


  •   
  • Copyright © 1996-2010 BlogmyQuery - BMQ. All rights reserved.
    iDream theme by Templates Next | Powered by WordPress