<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Webmaster Technologies</title>
	<atom:link href="http://webmaster.lk/feed/" rel="self" type="application/rss+xml" />
	<link>http://webmaster.lk</link>
	<description>Best Web Design, Print Design and Media Solutions Provider in Sri Lanka</description>
	<lastBuildDate>Thu, 23 Jun 2011 04:00:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>What is Google Chrome OS?</title>
		<link>http://webmaster.lk/what-is-google-chrome-os/</link>
		<comments>http://webmaster.lk/what-is-google-chrome-os/#comments</comments>
		<pubDate>Thu, 17 Jun 2010 15:39:41 +0000</pubDate>
		<dc:creator>Azraar</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Videos]]></category>
		<category><![CDATA[Chrome]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Google Chrome OS]]></category>
		<category><![CDATA[OS]]></category>

		<guid isPermaLink="false">http://webmaster.lk/?p=436</guid>
		<description><![CDATA[What is Google Chrome OS? This is a preview for journalists and developers, since for the final release or any RC (release candidate) the wait is long. Currently there is no demo available, but Google has announced that the source code will be &#8220;completely open&#8220;,  just to invite curiosity and independent programmers to work in [...]]]></description>
			<content:encoded><![CDATA[<h1>What is Google Chrome OS?</h1>
<p><img class="alignnone size-full wp-image-437" title="Google-chrome" src="http://webmaster.lk/wp-content/uploads/2010/06/Google-chrome.png" alt="" width="500" height="303" /></p>
<p>This is a preview for journalists and developers, since for the final  release or any RC (release candidate) the wait is long. <strong>Currently  there is no demo available<span id="more-436"></span>,</strong> but Google has announced that the source  code will be &#8220;<em>completely open</em>&#8220;,  just to invite curiosity and  independent programmers to work in advance about new improvements and  add-ons to the basic core of the software.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="385" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/0QRO3gKj3qw&amp;hl=en_US&amp;fs=1&amp;color1=0xcc2550&amp;color2=0xe87a9f" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="640" height="385" src="http://www.youtube.com/v/0QRO3gKj3qw&amp;hl=en_US&amp;fs=1&amp;color1=0xcc2550&amp;color2=0xe87a9f" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>Chromium OS is an open-source project that aims to build an  operating system that provides a fast, simple, and more secure computing  experience for people who spend most of their time on the web. Here you  can review the project’s design docs, obtain the source code, and  contribute. To learn more about the project goals, read the announcement  blog post.</p>
<p><img style="border: 0pt none;" title="google-beta-preview-os" src="http://lirent.net/wp-content/uploads/2009/11/googlebetapreviewos_thumb.png" border="0" alt="google-beta-preview-os" width="500" height="281" /></p>
]]></content:encoded>
			<wfw:commentRss>http://webmaster.lk/what-is-google-chrome-os/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add Brilliant Light Effects to Your Work with Photoshop</title>
		<link>http://webmaster.lk/add-brilliant-light-effects-to-your-work-with-photoshop/</link>
		<comments>http://webmaster.lk/add-brilliant-light-effects-to-your-work-with-photoshop/#comments</comments>
		<pubDate>Thu, 17 Jun 2010 13:47:03 +0000</pubDate>
		<dc:creator>Azraar</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://webmaster.lk/?p=430</guid>
		<description><![CDATA[In this tutorial, I’ll show you several super easy techniques for incorporating remarkable light effects to your work using Photoshop. You’ll need only 10 minutes to make your own set of abstract brushes (I’ll show you how) for use in enhancing your design projects. We will work with textures too—I’ll demonstrate how to give an [...]]]></description>
			<content:encoded><![CDATA[<p>In this tutorial, I’ll show you several super  easy techniques for incorporating remarkable light effects to your work  using Photoshop.<span id="more-430"></span> You’ll need only 10 minutes to make your own set of  abstract brushes (I’ll show you how) for use in enhancing your design  projects. We will work with textures too—I’ll demonstrate how to give an  interesting look to a human body using a grunge texture.</p>
<p><!-- f: .post-intro --> <!-- s: .author-details --> <!-- f: .author-details --> <!-- s: .post-content --></p>
<h2>Preview</h2>
<p>Click on the preview below to see the <a href="http://webmaster.lk/wp-content/uploads/2010/06/light_effects_large_preview.jpg" rel="lightbox[430]">full  artwork</a>.</p>
<p><a href="http://cdn.designinstruct.com/files/49-light_effects_custombrushes/light_effects_large_preview.jpg" rel="lightbox[430]"><img src="http://cdn.designinstruct.com/files/49-light_effects_custombrushes/light_effects_preview.jpg" alt="Preview" width="600" height="849" /></a></p>
<h2>Tutorial Resources</h2>
<ul>
<li><a href=" 	 http://www.ziddu.com/download/10329934/bleached_paper_free.zip.html">Blanched  Paper Textures</a> from WeGraphics</li>
<li><a href="http://www.shutterstock.com/pic-21557866.html">Dancer</a> from <a href="http://www.shutterstock.com/">Shutterstock</a></li>
</ul>
<h2>Step 1: Set up the background</h2>
<p>Let’s start the tutorial by creating a new document (Ctrl/Cmd + N) in  Photoshop. Since I like printing my work, I will typically choose a  large standard document size (like A4) and set the Resolution at 300  pixels/inch.</p>
<p><img src="http://cdn.designinstruct.com/files/49-light_effects_custombrushes/light_effect_1.jpg" alt="Set up the background" width="600" height="674" /></p>
<p>Once the new Photoshop document has been created, fill (Edit &gt;  Fill) the default Background layer with a dark blue (#052b4c).</p>
<p>I start my work from the background. If you do the same, I suggest  that you don’t give too much importance to your starting colors because  we can change them later on once we have completed our foreground work.  The most important thing at the beginning is to achieve a  concept—something interesting to represent. The beauty of Photoshop is  that it allows you to change colors and other aspects of your work at  any moment. The best moment to work with colors is when you have more  elements to play with, near the end.</p>
<p>Let us start by creating a new layer (Crtl/Cmd + Shift + N). Next,  set white (#ffffff) as your Foreground color and then select a large,  soft brush tip with Hardness at 0% for our Brush Tool (B).</p>
<p>Simply click once at the center of the canvas to apply your brush  stroke.</p>
<h2>Step 2: Create a simple ellipse light effect</h2>
<p>Since the scene is focused at the center of the canvas, we are going  to create a light effect that will enhance all elements that will be  placed there. Press Ctrl/Cmd + T to activate the Free Transform command  and contract the light source so that it becomes an ellipse.</p>
<p>Then, remove the edges of the brush stroke using the Eraser Tool (E)  (or use a layer mask, if you want).</p>
<p><img src="http://cdn.designinstruct.com/files/49-light_effects_custombrushes/light_effect_1b.jpg" alt="Create a simple ellipse light effect" width="600" height="2012" /></p>
<h2>Step 3: Create some clouds</h2>
<p>We will now make some clouds. Make sure to have white (#ffffff) as  foreground color and black (#000000) as your background color; you can  press the D key to reset your foreground/background color to white/black  and then press X to switch foreground and background colors.</p>
<p>Create a new layer and then go to Filter &gt; Render &gt; Clouds.</p>
<p><img src="http://cdn.designinstruct.com/files/49-light_effects_custombrushes/light_effect_2a.jpg" alt="Create some clouds" width="600" height="724" /></p>
<p>Activate the Free Transform command (Ctrl/Cmd+T) and enlarge the  clouds layer by pulling on one of the corner transform controls.</p>
<p><img src="http://cdn.designinstruct.com/files/49-light_effects_custombrushes/light_effect_2b.jpg" alt="Create some clouds" width="600" height="741" /></p>
<p>Switch the layer’s blending mode to Screen to remove black parts of  the clouds layer and also reduce the layer’s Opacity to around 30%.</p>
<p><img src="http://cdn.designinstruct.com/files/49-light_effects_custombrushes/light_effect_2c.jpg" alt="Create some clouds" width="600" height="795" /></p>
<p>To make the clouds more realistic, use the Eraser Tool (E) to remove  some parts to make it look randomized. As always, use a large, soft  brush with a Hardness set at 0%.</p>
<p>Just to recap our simple five-step clouds creation process:</p>
<ol>
<li>Create a new layer and apply the clouds filter</li>
<li>Enlarge the layer</li>
<li>Switch the layer blending mode to screen</li>
<li>Reduce opacity</li>
<li> Remove unwanted parts</li>
</ol>
<p><img src="http://cdn.designinstruct.com/files/49-light_effects_custombrushes/light_effect_2d.jpg" alt="Create some clouds" width="600" height="847" /></p>
<p>Repeat the same process to create other clouds. Try experimenting  with different layer dimensions and opacity. This is what I ended up  with:</p>
<p><img src="http://cdn.designinstruct.com/files/49-light_effects_custombrushes/light_effect_2e.jpg" alt="Create some clouds" width="600" height="849" /></p>
<h2>Step 4: Select and prepare your subject</h2>
<p>Choose a nice subject for your work. I chose <a href="http://www.shutterstock.com/pic-21557866.html">this nice image of a  dancer</a>, but you can pick  any image that you like or have lying  around.</p>
<p>Since we will create light effects to play with, I suggest you pick a  dynamic moving subject such as a person jumping, an animal running, or a  rock star jamming.</p>
<p>Once you’ve chosen your subject, copy and paste (Ctrl/Cmd + V) it  into the canvas.</p>
<p><img src="http://cdn.designinstruct.com/files/49-light_effects_custombrushes/light_effect_3.jpg" alt="Select and prepare your subject" width="600" height="846" /></p>
<p>At this point, we have to modify the dancer. In particular, the aim  is to increase the image contrast and to give the subject a grungier  look. We can achieve both these results with a texture.</p>
<p>First, you must download the free sample of my <a href="http://www.ziddu.com/download/10329934/bleached_paper_free.zip.html">Bleached  Paper Texture set</a>, open it in Photoshop, and paste it into our  document.</p>
<p>Resize the texture with Free Transform (Ctrl/Cmd + T) so that it’s of  the same size as our canvas.</p>
<p><img src="http://cdn.designinstruct.com/files/49-light_effects_custombrushes/light_effect_3b.jpg" alt="Select and prepare your subject" width="600" height="852" /></p>
<h2>Step 5: Apply a clipping mask on the texture layer</h2>
<p>We want to apply our texture only to the subject. For this purpose,  we can create a clipping mask. To do so, press Alt/Option and then click  between the subject’s layer and the texture layer in the Layers Panel. A  little arrow should appear and the texture layer’s name will move a bit  to the right inside the Layers Panel indicating that you have added a  clipping mask.</p>
<p>The clipping mask means that all the things we do in the texture  layer will affect only the area delimited by dancer’s silhouette.</p>
<p><img src="http://cdn.designinstruct.com/files/49-light_effects_custombrushes/light_effect_3c.jpg" alt="Select and prepare your subject" width="600" height="853" /></p>
<p>Switch the texture layer’s blending mode to Overlay and reduce the  Opacity to 70%.</p>
<h2>Step 6: Change the texture’s color</h2>
<p>You can see how the texture details nicely interact with the human  body. If you zoom in (press Z to activate the Zoom Tool, and then click  on the canvas), you will notice that the grunge texture looks like  veins. I want to play around with this idea/concept.</p>
<p>Let’s change the texture’s color. Press Ctrl/Cmd + U to open the  Hue/Saturation dialog window. Check the Colorize option and move the hue  slider to the area between purple and red.</p>
<p><img src="http://cdn.designinstruct.com/files/49-light_effects_custombrushes/light_effect_3d.jpg" alt="Change the texture's color" width="600" height="803" /></p>
<p>Now create a mask on top of the texture layer by pressing the Add  Layer Mask button at the bottom of the Layers Panel.</p>
<p>Next, grab a soft, black brush for our Brush Tool (B) and remove  textures from some parts of the body. The image below will show you  suggested parts to paint on:</p>
<p><img src="http://cdn.designinstruct.com/files/49-light_effects_custombrushes/light_effect_3e.jpg" alt="Change the texture's color" width="600" height="855" /></p>
<h2>Step 7: Add a vivid light effect</h2>
<p>It’s time to add a more brilliant and prominent light effect.  Right-click on the subject’s layer in the Layers Panel and then choose  Blending Options from the contextual menu.</p>
<p>Add an Outer Glow layer style. Increase the Size of the outer glow to  around 200px and set Blend Mode to Color Dodge.</p>
<p><img src="http://cdn.designinstruct.com/files/49-light_effects_custombrushes/light_effect_3f.jpg" alt="Add a vivid light effect" width="600" height="653" /></p>
<p>The light effect you see at the top is the result of the combination  between the ellipse light effect we created at the beginning and the  Outer Glow layer style.</p>
<p>If you want to change the orientation of this effect, simply move the  elliptical lighting effect layer around.</p>
<h2>Step 8: Create an abstract Photoshop brush</h2>
<p>Here comes the fun part. There are plenty of ways to create light  effects. In this tutorial, I’ll show you one of the simplest methods. We  will make abstract fractals for our custom brushes and then we will use  these brushes to add lights into our work.</p>
<p>In order to create nice abstract fractal effect, we will use the <a href="http://www.escapemotions.com/experiments/flame/#top">flame</a> tool, which is a free online tool made by <a href="http://www.escapemotions.com/index.html">Peter Blaskovic</a>. This  tool is amazing!</p>
<p><img src="http://cdn.designinstruct.com/files/49-light_effects_custombrushes/light_effect_4.jpg" alt="Add a vivid light effect" width="600" height="460" /></p>
<p>Create you own flames and save them to your computer. Use default  colors and once finished, just press Save. Save your flame as a JPG  image.</p>
<p>Open one of the flames you just created in Photoshop. We are going to  create a cool brush set with these.</p>
<p><img src="http://cdn.designinstruct.com/files/49-light_effects_custombrushes/light_effect_4b.jpg" alt="Add a vivid light effect" width="600" height="374" /></p>
<p>Desaturate the image by going to Image &gt; Adjustments &gt;  Desaturate (Shift + Ctrl/Cmd + U).</p>
<p>Then invert the image by going to Image &gt; Adjustments &gt; Invert  (Ctrl/Cmd + I). We invert the images because while you create Photoshop  brushes, you have to consider that the white parts will be transparent  and the blacker parts will represent the brush stroke. The parts that  are in grayscale will therefore be the only ones saved as brushes.</p>
<p>Here is the result:</p>
<p><img src="http://cdn.designinstruct.com/files/49-light_effects_custombrushes/light_effect_4c.jpg" alt="Add a vivid light effect" width="600" height="398" /></p>
<p>To save the brush, go to Edit &gt; Define Brush Preset.</p>
<p>We have thus created the first brush of the set! Go ahead and create  other brushes following the same process.</p>
<p><img src="http://cdn.designinstruct.com/files/49-light_effects_custombrushes/light_effect_4d.jpg" alt="Add a vivid light effect" width="600" height="532" /></p>
<h2>Step 9: Apply the custom abstract Photoshop brush</h2>
<p>Create a new layer group (Ctrl/Cmd + G) and title it &#8220;light effect&#8221;.  Set the group’s blending mode to Color Dodge. Create a new layer  (Ctrl/Cmd + Shift + N) inside the &#8220;light effect&#8221; group, set your  Foreground color to white (#ffffff), and then click on the canvas to  apply our custom abstract brush stroke.</p>
<p>Here is your light effect! Really simple, don’t you agree? I promised  it would only take 10 minutes!</p>
<p>If you want a stronger light effect, duplicate the layer (Ctrl/Cmd +  J) and experiment with the layer’s blending mode.</p>
<p><img src="http://cdn.designinstruct.com/files/49-light_effects_custombrushes/light_effect_4e.jpg" alt="Apply the custom abstract Photoshop brush" width="600" height="832" /></p>
<p>You can now use all the brushes of the brush set you created. Try to  combine them in harmony with the body of the subject.</p>
<p>Also try this: Create a new layer, apply an abstract brush stroke,  then rotate it with the Free Transform command (Ctrl/Cmd + T). You can  also flip the layer (Edit &gt; Transform &gt; Flip Horizontal or Edit  &gt; Transform &gt; Flip Vertical). This can add variety to your  abstract light effects.</p>
<p>Remember to create each brush stroke on a different layer so that you  can move them separately to achieve a satisfactory composition.</p>
<p>Here is the result after I played around with all the brushes of my  own set.</p>
<p><img src="http://cdn.designinstruct.com/files/49-light_effects_custombrushes/light_effect_4f.jpg" alt="Apply the custom abstract Photoshop brush" width="600" height="525" /></p>
<h2>Step 10: Add more light effects</h2>
<p>Still inside our &#8220;light effect&#8221; layer group, create a new layer  (Ctrl/Cmd + J). This time we will use soft brushes to enhance some parts  of the body. For example, take a look at the left hand of the  dancer—it’s covered by some light beams. We can start there. Add more  light where you think it’s necessary.</p>
<p><img src="http://cdn.designinstruct.com/files/49-light_effects_custombrushes/light_effect_5a.jpg" alt="Add more light effects" width="600" height="1040" /></p>
<h2>Step 11: Make energy particles</h2>
<p>We will now create energy particles to detail our light effects.  Create another layer inside the same group. Select the 16px Soft  Mechanical tip.</p>
<p><img src="http://cdn.designinstruct.com/files/49-light_effects_custombrushes/light_effect_5b.jpg" alt="Add more light effects" width="600" height="430" /></p>
<p>Next, we will modify the Brushes options. If it’s not opened, toggle  the Brushes Panel (Window &gt; Brushes).</p>
<p>Check the Spacing option and increase its value to 400%.</p>
<p><img src="http://cdn.designinstruct.com/files/49-light_effects_custombrushes/light_effect_5c.jpg" alt="Add more light effects" width="600" height="473" /></p>
<p>Then, check the Shape Dynamic and set its options to the following  values:</p>
<p><img src="http://cdn.designinstruct.com/files/49-light_effects_custombrushes/light_effect_5d.jpg" alt="Add more light effects" width="600" height="450" /></p>
<p>Finally, check Scattering and use the following suggested settings:</p>
<p><img src="http://cdn.designinstruct.com/files/49-light_effects_custombrushes/light_effect_5e.jpg" alt="Add more light effects" width="600" height="455" /></p>
<p>All that remains now is to paint over the canvas to create our energy  particles. I suggest adding the energy particles on their own layers to  compartmentalize our work. To increase the brightness and prominence of  the energy particles, you can add an Outer Glow layer style to them.</p>
<p><img src="http://cdn.designinstruct.com/files/49-light_effects_custombrushes/light_effect_5f.jpg" alt="Add more light effects" width="600" height="802" /></p>
<h2>Step 12: Final adjustments</h2>
<p>Our work is almost complete. As I wrote at beginning of the tutorial,  Photoshop allows us to play with colors at any moment.</p>
<h3>Hue/Saturation adjustment layer</h3>
<p>Let’s start by desaturating our image a bit. This is something I  often do because I’ll apply a Gradient Map later (with its blending mode  set at Overlay) that will increase color contrast.</p>
<p>Go to Layer &gt; New Adjustment Layer &gt; Hue/Saturation and reduce  Saturation to -40.</p>
<p>Note that you can also add adjustment layers by clicking on the  Create new fill or layer adjustment button located at the bottom of the  Layers Panel.</p>
<p><img src="http://cdn.designinstruct.com/files/49-light_effects_custombrushes/light_effect_6a.jpg" alt="Hue/Saturation adjustment layer" width="600" height="857" /></p>
<h3>Curves adjustment layer</h3>
<p>Increase the image’s contrast using a Curves adjustment layer. Go to  Layer &gt; New Adjustment Layer &gt; Curves. Create a curve as shown in  the image below:</p>
<p><img src="http://cdn.designinstruct.com/files/49-light_effects_custombrushes/light_effect_6b.jpg" alt="Hue/Saturation adjustment layer" width="600" height="855" /></p>
<h3>Gradient Map adjustment layer</h3>
<p>Finally, add a Gradient Map adjustment layer. Set the color gradient  so that it goes from purple (#6f156c) to yellow (#f9e600).</p>
<p><img src="http://cdn.designinstruct.com/files/49-light_effects_custombrushes/light_effect_6c.jpg" alt="Hue/Saturation adjustment layer" width="600" height="852" /></p>
<p>Afterwards, set the adjustment layer’s blending mode to Overlay and  reduce its Opacity to 50%.</p>
<p>That’s it. We’re done!</p>
<h2>Tutorial Summary</h2>
<p>I showed you a variety of light effect techniques in this tutorial.  We applied a simple light effect glow using a soft, white brush. Then we  stepped it up a notch by adding an Outer Glow layer style on our  subject. We created custom abstract light brushes as well as energy  particles to enhance the look of our light effects. We applied a  clipping mask to our subject for artistic purposes. To finish off our  composition, we added some adjustment layers.</p>
<p>I hope that you enjoyed this tutorial and learned a few tricks for  adding light effects on your own work.</p>
<p>Here is the final result:</p>
<p><a href="http://webmaster.lk/wp-content/uploads/2010/06/light_effects_large_preview.jpg" rel="lightbox[430]"><img src="http://cdn.designinstruct.com/files/49-light_effects_custombrushes/light_effects_preview.jpg" alt="Preview" width="600" height="849" /></a></p>
<h2>Download Source Files</h2>
<ul>
<li><a href="http://cdn.designinstruct.com/files/49-light_effects_custombrushes/light_effects_custombrushes.zip">light_effects_custombrushes</a> (ZIP, 26.1 MB)</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://webmaster.lk/add-brilliant-light-effects-to-your-work-with-photoshop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Video: Photoshop CS5 New features</title>
		<link>http://webmaster.lk/video-photoshop-cs5-new-features/</link>
		<comments>http://webmaster.lk/video-photoshop-cs5-new-features/#comments</comments>
		<pubDate>Thu, 17 Jun 2010 13:15:52 +0000</pubDate>
		<dc:creator>Azraar</dc:creator>
				<category><![CDATA[Videos]]></category>
		<category><![CDATA[CS5]]></category>

		<guid isPermaLink="false">http://webmaster.lk/?p=423</guid>
		<description><![CDATA[Photoshop CS5 &#8211; Sneak Peak]]></description>
			<content:encoded><![CDATA[<h1>Photoshop CS5 &#8211; Sneak Peak</h1>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="385" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/CUF3cJjcHdY&amp;hl=en_US&amp;fs=1&amp;color1=0x234900&amp;color2=0x4e9e00" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="480" height="385" src="http://www.youtube.com/v/CUF3cJjcHdY&amp;hl=en_US&amp;fs=1&amp;color1=0x234900&amp;color2=0x4e9e00" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://webmaster.lk/video-photoshop-cs5-new-features/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>35 Creative ads that makes you look twice</title>
		<link>http://webmaster.lk/35-creative-ads-that-makes-you-look-twice/</link>
		<comments>http://webmaster.lk/35-creative-ads-that-makes-you-look-twice/#comments</comments>
		<pubDate>Wed, 16 Jun 2010 15:55:49 +0000</pubDate>
		<dc:creator>Irshard OFM</dc:creator>
				<category><![CDATA[Inspirations]]></category>
		<category><![CDATA[ads]]></category>
		<category><![CDATA[Creative ads]]></category>

		<guid isPermaLink="false">http://webmaster.lk/?p=413</guid>
		<description><![CDATA[You might have seen plenty of advertisements on the road sides or when you have flipped over magazines. I hope that you might have just skipped most of them, but there are some cool creative advertisements which would make you look twice. To create Creative advertisements , the designer must be innovative enough to take [...]]]></description>
			<content:encoded><![CDATA[<p>You might have seen plenty of advertisements on the road sides or  when you have flipped over magazines.<span id="more-413"></span> I hope that you might have just  skipped most of them, but there are some cool creative advertisements  which would make you look twice. To create Creative advertisements , the  <a href="http://www.smashingtips.com/">designer</a> must be innovative  enough to take away the attention of the audience. In this post , I have  collected some of the best creative adverts which could make you think.  These adverts are from various categories like technology , public  services , travel , etc.</p>
<h1>Get Them Off Your Dog (Frontline, Flea Spray)</h1>
<p><a href="http://lh5.ggpht.com/_aVtbdMo1J34/SycyFOfFfOI/AAAAAAAACfw/GzeG4I9vNlE/Creative-ads-frontline.jpg" rel="lightbox[413]" target="_blank" title="Creative Ad campaigns"><img title="Creative Ad campaigns" src="http://lh5.ggpht.com/_aVtbdMo1J34/SycyFOfFfOI/AAAAAAAACfw/GzeG4I9vNlE/Creative-ads-frontline.jpg" alt="Creative Ad campaigns" /></a></p>
<h1>Panasonic:  Wide Angle</h1>
<p><a href="http://lh6.ggpht.com/_aVtbdMo1J34/Syc2MqS0buI/AAAAAAAACf4/MnR7vpqu1To/panasonic-creative-camera-ad.jpg" rel="lightbox[413]" target="_blank" title="Panasonic: Wide Angle"><img title="Panasonic: Wide Angle" src="http://lh6.ggpht.com/_aVtbdMo1J34/Syc2MqS0buI/AAAAAAAACf4/MnR7vpqu1To/panasonic-creative-camera-ad.jpg" alt="Panasonic: Wide Angle" width="600" height="400" /></a></p>
<h1>Your Contribution Can End Child Labour</h1>
<p><a href="http://lh4.ggpht.com/_aVtbdMo1J34/SydIBbpHfFI/AAAAAAAACgA/448weuXN-Kk/creative-public-service-ad.png" rel="lightbox[413]" target="_blank" title="Your Contribution  Can End Child Labour"><img title="Your Contribution  Can End Child Labour" src="http://lh4.ggpht.com/_aVtbdMo1J34/SydIBbpHfFI/AAAAAAAACgA/448weuXN-Kk/creative-public-service-ad.png" alt="Your Contribution Can End Child Labour" /></a></p>
<h1>Act Now to save the Planet</h1>
<p><a href="http://lh5.ggpht.com/_aVtbdMo1J34/Syddv8r2qXI/AAAAAAAACho/uP3-VDhqF6I/WWF-creative-ad.jpg" rel="lightbox[413]" target="_blank" title="Act Now to save the Planet"><img title="Act Now to save the Planet" src="http://lh5.ggpht.com/_aVtbdMo1J34/Syddv8r2qXI/AAAAAAAACho/uP3-VDhqF6I/WWF-creative-ad.jpg" alt="Act Now to save the Planet" width="550" height="380" /></a></p>
<h1>See Both sides of the story</h1>
<p><a href="http://lh6.ggpht.com/_aVtbdMo1J34/SydK-YDJCUI/AAAAAAAACgI/a3XJKC9NJ3s/creative-ad-bbc-world-woman.jpg" rel="lightbox[413]" target="_blank" title="Explore Both sides of the  story"><img title="Explore Both sides of the  story" src="http://lh6.ggpht.com/_aVtbdMo1J34/SydK-YDJCUI/AAAAAAAACgI/a3XJKC9NJ3s/creative-ad-bbc-world-woman.jpg" alt="Explore Both sides of the story" width="550" height="300" /></a></p>
<h1>Canon DiGi</h1>
<p><a href="http://lh6.ggpht.com/_aVtbdMo1J34/SydLRED-3QI/AAAAAAAACgM/KnB6TTS8y84/canon-digic.jpg" rel="lightbox[413]" target="_blank" title="Canon DiGi"><img title="Canon DiGi" src="http://lh6.ggpht.com/_aVtbdMo1J34/SydLRED-3QI/AAAAAAAACgM/KnB6TTS8y84/canon-digic.jpg" alt="Canon DiGi" /></a></p>
<h1>RCA Music</h1>
<p><a href="http://lh6.ggpht.com/_aVtbdMo1J34/SydOZIzSk6I/AAAAAAAACgU/JaNsB2KGLeI/RCA-music.jpg" rel="lightbox[413]" target="_blank" title="RCA Music"><img title="RCA Music" src="http://lh6.ggpht.com/_aVtbdMo1J34/SydOZIzSk6I/AAAAAAAACgU/JaNsB2KGLeI/RCA-music.jpg" alt="RCA Music" width="550" height="460" /></a></p>
<h1>Welt Kompakt</h1>
<p><a href="http://lh3.ggpht.com/_aVtbdMo1J34/SydPdoKBLgI/AAAAAAAACgY/W2JeNkvhfYM/Welt-Kompakt-creative-ad.jpg" rel="lightbox[413]" target="_blank" title="Welt Kompakt"><img title="Welt Kompakt" src="http://lh3.ggpht.com/_aVtbdMo1J34/SydPdoKBLgI/AAAAAAAACgY/W2JeNkvhfYM/Welt-Kompakt-creative-ad.jpg" alt="Welt Kompakt" width="550" height="450" /></a></p>
<h1>Orion Telescopes</h1>
<p><a href="http://lh3.ggpht.com/_aVtbdMo1J34/SydRQbB6AvI/AAAAAAAACgg/g6F6hCKFNfs/Orion-telescope-creative-ads.jpg" rel="lightbox[413]" target="_blank" title="Orion Telescopes"><img title="Orion Telescopes" src="http://lh3.ggpht.com/_aVtbdMo1J34/SydRQbB6AvI/AAAAAAAACgg/g6F6hCKFNfs/Orion-telescope-creative-ads.jpg" alt="Orion Telescopes" width="375" height="500" /></a></p>
<h1>Stranger  Radio  Station</h1>
<p><a href="http://lh5.ggpht.com/_aVtbdMo1J34/SydSET7cESI/AAAAAAAACgk/gxliDVT747s/Strange-radio-station.jpg" rel="lightbox[413]" target="_blank" title="Stranger Radio Station"><img title="Stranger Radio Station" src="http://lh5.ggpht.com/_aVtbdMo1J34/SydSET7cESI/AAAAAAAACgk/gxliDVT747s/Strange-radio-station.jpg" alt="Stranger Radio Station" width="550" height="600" /></a></p>
<h1>Comcast  : High-Speed Internet</h1>
<p><a href="http://lh4.ggpht.com/_aVtbdMo1J34/SydTXcs7XJI/AAAAAAAACgs/KRRR5NvxN4c/comcast-high-speed-internet-large.jpg" rel="lightbox[413]" target="_blank" title="Comcast : High-Speed  Internet "><img title="Comcast : High-Speed  Internet " src="http://lh5.ggpht.com/_aVtbdMo1J34/SydShLddOBI/AAAAAAAACgo/BYWjb7CgKW4/comcast-high-speed-internet.jpg" alt="Comcast : High-Speed Internet " /></a></p>
<h1>Cemex – Fast Drying Concrete</h1>
<p><a href="http://lh6.ggpht.com/_aVtbdMo1J34/SydUWhOQk9I/AAAAAAAACg0/PRDAVJmCfgY/cemex-creative-ad.jpg" rel="lightbox[413]" target="_blank" title="Cemex – Fast Drying Concrete"><img title="Cemex – Fast Drying Concrete" src="http://lh4.ggpht.com/_aVtbdMo1J34/SydUWcTry4I/AAAAAAAACgw/Yw1sMvFl0eI/comex-creative-ad.jpg" alt="Cemex – Fast Drying Concrete" /></a></p>
<h1>Movistar  Print  Ad</h1>
<p><a href="http://advertt.com/movistar-print-ad-your-number-will-always-survives" target="_blank"><img title="Movistar Print Ad: Your Number Will Always Survives" src="http://lh4.ggpht.com/_aVtbdMo1J34/SydYGoLO-9I/AAAAAAAAChI/g8pXHpMQfFI/Movistar-mobile-ad.png" alt="Movistar Print Ad: Your Number Will Always Survives" width="550" height="700" /></a></p>
<h1>Dealer Track – Tools for a competitive advantage</h1>
<p><a href="http://lh6.ggpht.com/_aVtbdMo1J34/SydZiBkqRtI/AAAAAAAAChQ/HqNY6r7brqM/creative-advert-large.jpg" rel="lightbox[413]" target="_blank" title="Dealer  Track – Tools for a competitive advantage"><img title="Dealer  Track – Tools for a competitive advantage" src="http://lh6.ggpht.com/_aVtbdMo1J34/SydZiBkqRtI/AAAAAAAAChQ/HqNY6r7brqM/creative-advert-large.jpg" alt="Dealer Track – Tools for a competitive advantage" width="480" height="325" /></a></p>
<h1>Find More Easily (Google)</h1>
<p><a href="http://lh4.ggpht.com/_aVtbdMo1J34/Sydc3-KFWWI/AAAAAAAAChk/C89El62IwbY/Google-keys.jpg" rel="lightbox[413]" target="_blank" title="Find More Easily (Google)"><img title="Find More Easily (Google)" src="http://lh4.ggpht.com/_aVtbdMo1J34/Sydc3-KFWWI/AAAAAAAAChk/C89El62IwbY/Google-keys.jpg" alt="Find More Easily (Google)" width="550" height="340" /></a></p>
<h1>Samsung  Plasma  TV Ads</h1>
<p><a href="http://lh5.ggpht.com/_aVtbdMo1J34/SydhRruvNAI/AAAAAAAACh4/W834PUcDyGE/SamsungPlasmaTV_LIVE_500.jpg" rel="lightbox[413]" target="_blank" title="Samsung Plasma TV Ads"><img title="Samsung Plasma TV Ads" src="http://lh5.ggpht.com/_aVtbdMo1J34/SydhRruvNAI/AAAAAAAACh4/W834PUcDyGE/SamsungPlasmaTV_LIVE_500.jpg" alt="Samsung Plasma TV Ads" /></a></p>
<h1>Green Peace</h1>
<p><a href="http://kungfuat.deviantart.com/art/GREENPEACE-56673191" target="_blank"><img title="Green Peace" src="http://lh6.ggpht.com/_aVtbdMo1J34/SydcBCZG6bI/AAAAAAAAChg/1S0R7VUpCYk/GREENPEACE_by_kungfuat-ad.png" alt="Green Peace" width="550" height="325" /></a></p>
<h1>Snickers</h1>
<p><a href="http://lh4.ggpht.com/_aVtbdMo1J34/SydenS2nMaI/AAAAAAAAChs/Kk5Yf4zzzDE/snickers.jpg" rel="lightbox[413]" target="_blank" title="Snickers"><img title="Snickers" src="http://lh4.ggpht.com/_aVtbdMo1J34/SydenS2nMaI/AAAAAAAAChs/Kk5Yf4zzzDE/snickers.jpg" alt="Snickers" /></a></p>
<h1>Nivea</h1>
<p><a href="http://lh3.ggpht.com/_aVtbdMo1J34/SydfttMtfsI/AAAAAAAAChw/JAeQvcrHkZw/nivea.jpg" rel="lightbox[413]" target="_blank" title="Nivea"><img title="Nivea" src="http://lh3.ggpht.com/_aVtbdMo1J34/SydfttMtfsI/AAAAAAAAChw/JAeQvcrHkZw/nivea.jpg" alt="Nivea" /></a></p>
<h1>Sony Widescreen TV Ads</h1>
<p><a href="http://lh3.ggpht.com/_aVtbdMo1J34/Sydg2RaqRJI/AAAAAAAACh0/3pNSgKWZ_vw/Sony-wide.jpg" rel="lightbox[413]" target="_blank" title="Sony Widescreen TV Ads"><img title="Sony Widescreen TV Ads" src="http://lh3.ggpht.com/_aVtbdMo1J34/Sydg2RaqRJI/AAAAAAAACh0/3pNSgKWZ_vw/Sony-wide.jpg" alt="Sony Widescreen TV Ads" width="550" height="320" /></a></p>
<h1>Detal Creative Ad</h1>
<p><a href="http://lh6.ggpht.com/_aVtbdMo1J34/SydifomsKXI/AAAAAAAACh8/AnbCCsRQFZM/creativeadvertising4.jpg" rel="lightbox[413]" target="_blank" title="Detal Creative Ad"><img title="Detal Creative Ad" src="http://lh6.ggpht.com/_aVtbdMo1J34/SydifomsKXI/AAAAAAAACh8/AnbCCsRQFZM/creativeadvertising4.jpg" alt="Detal Creative Ad" /></a></p>
<h1>WMF knives: Cutting board</h1>
<p><a href="http://lh4.ggpht.com/_aVtbdMo1J34/SydkIPagb8I/AAAAAAAACiE/7Yj6iwBVxpk/WMF_2_Carot_Billb.jpg" rel="lightbox[413]" target="_blank" title="WMF knives: Cutting board"><img title="WMF knives: Cutting board" src="http://lh5.ggpht.com/_aVtbdMo1J34/SydkIYugdNI/AAAAAAAACiI/FufcBCWZ_yI/WMF_2_Carot_Billb.preview.jpg" alt="WMF knives: Cutting board" /></a></p>
<h1>Firefox</h1>
<p><a href="http://lh3.ggpht.com/_aVtbdMo1J34/SydVb94Uc6I/AAAAAAAACg8/Pid3aIC7XmI/firefox-creative-ad.jpg" rel="lightbox[413]" target="_blank" title="Firefox"><img title="Firefox" src="http://lh3.ggpht.com/_aVtbdMo1J34/SydVb94Uc6I/AAAAAAAACg8/Pid3aIC7XmI/firefox-creative-ad.jpg" alt="Firefox" width="400" height="400" /></a></p>
<h1>Sony Xacti Water proof camera</h1>
<p><a href="http://lh3.ggpht.com/_aVtbdMo1J34/Sydkn9zYlDI/AAAAAAAACiM/mL6DgvTuizw/Xacti_CA6_low.jpg" rel="lightbox[413]" target="_blank" title="Sony Xacti Water proof  camera"><img title="Sony Xacti Water proof  camera" src="http://lh3.ggpht.com/_aVtbdMo1J34/Sydkn9zYlDI/AAAAAAAACiM/mL6DgvTuizw/Xacti_CA6_low.jpg" alt="Sony Xacti Water proof camera" width="550" height="600" /></a></p>
<h1>Panasonic:  Intelligent  Face Detector</h1>
<p><a href="http://lh4.ggpht.com/_aVtbdMo1J34/SydmUPn8CVI/AAAAAAAACiU/hSzqXZbBddU/Panasonicpregnant.jpg" rel="lightbox[413]" target="_blank" title="Panasonic:  Intelligent Face Detector"><img title="Panasonic:  Intelligent Face Detector" src="http://lh4.ggpht.com/_aVtbdMo1J34/SydmUDhYHII/AAAAAAAACiY/MA5uil58AL0/Panasonicpregnant.preview.jpg" alt="Panasonic: Intelligent Face Detector" /></a></p>
<h1>Beware of the H1N1 flu</h1>
<p><a href="http://lh4.ggpht.com/_aVtbdMo1J34/SydnU9_9PwI/AAAAAAAACig/K1t72xi9G-c/swine%20flu%20campaign.jpg" rel="lightbox[413]" target="_blank" title="Beware of the H1N1 flu"><img title="Beware of the H1N1 flu" src="http://lh4.ggpht.com/_aVtbdMo1J34/SydnU3ex_CI/AAAAAAAACic/ugo__PDgW30/swine%20flu%20campaign%202.jpg" alt="Beware of the H1N1 flu" width="550" height="700" /></a></p>
<h1>FujiFilm  Nobody  can resist in front of a Finepix</h1>
<p><a href="http://lh6.ggpht.com/_aVtbdMo1J34/SydoMQiJsQI/AAAAAAAACis/JC9mNVmHvr8/inepix_arena.jpg" rel="lightbox[413]" target="_blank" title="Nobody can resist  in front of a Finepix."><img title="Nobody can resist  in front of a Finepix." src="http://lh6.ggpht.com/_aVtbdMo1J34/SydoMQiJsQI/AAAAAAAACis/JC9mNVmHvr8/finepix_arena.jpg" alt="Nobody can resist in front of a Finepix." width="550" height="400" /></a></p>
<h1>Symantec  Antivirus</h1>
<p><a href="http://lh6.ggpht.com/_aVtbdMo1J34/Sydoz4YrcEI/AAAAAAAACiw/dh41SIbqxJY/SYMANTEC-Baby.jpg" rel="lightbox[413]" target="_blank" title="Symantec Antivirus"><img title="Symantec Antivirus" src="http://lh6.ggpht.com/_aVtbdMo1J34/Sydoz4YrcEI/AAAAAAAACiw/dh41SIbqxJY/SYMANTEC-Baby.jpg" alt="Symantec Antivirus" width="550" height="650" /></a></p>
<h1>Samsung  washing  Machine</h1>
<p><a href="http://lh6.ggpht.com/_aVtbdMo1J34/SydqgA_yvGI/AAAAAAAACi8/X4qu-QP0Us0/samsungswf338aab_2.jpg" rel="lightbox[413]" target="_blank" title="Symantec Antivirus"><img title="Symantec Antivirus" src="http://lh4.ggpht.com/_aVtbdMo1J34/Sydqf2WViSI/AAAAAAAACi4/wZdteSEwSnA/samsungswf338aab_2.preview.jpg" alt="Samsung washing Machine" /></a></p>
<h1>Canon Cyber Shot</h1>
<p><a href="http://lh3.ggpht.com/_aVtbdMo1J34/SydqgZeeFxI/AAAAAAAACjE/r10iqxQ-hzY/canoncheetah.jpg" rel="lightbox[413]" target="_blank" title="Canon Cyber Shot"><img title="Canon Cyber Shot" src="http://lh5.ggpht.com/_aVtbdMo1J34/SydqgFBhcKI/AAAAAAAACjA/882dPWRyYwY/canoncheetah.preview.jpg" alt="Canon Cyber Shot" /></a></p>
<h1>Routine  sucks  (Terra  Travel)</h1>
<p><a href="http://lh5.ggpht.com/_dlkAw43cLC0/SjzCnVsr-MI/AAAAAAAAE14/MTYeBx5cqSk/33-cool-and-creative-ads-part-i-routine-sucks.jpg" rel="lightbox[413]" target="_blank" title="Routine sucks (Terra Travel)"><img title="Routine sucks (Terra Travel)" src="http://lh5.ggpht.com/_dlkAw43cLC0/SjzCnVsr-MI/AAAAAAAAE14/MTYeBx5cqSk/33-cool-and-creative-ads-part-i-routine-sucks.jpg" alt="Routine sucks (Terra Travel)" /></a></p>
<h1>You can lose more than your patience</h1>
<p><a href="http://lh4.ggpht.com/_dlkAw43cLC0/Sj9841yZgKI/AAAAAAAAE58/OI-x3qJCqZI/s800/33-cool-and-creative-ads-part-i-parenting.jpg" rel="lightbox[413]" target="_blank" title="You can lose more  than your patience"><img title="You can lose more  than your patience" src="http://lh4.ggpht.com/_dlkAw43cLC0/Sj9841yZgKI/AAAAAAAAE58/OI-x3qJCqZI/s800/33-cool-and-creative-ads-part-i-parenting.jpg" alt="You can lose more than your patience" /></a></p>
<h1>Driving  Safe</h1>
<p><a href="http://lh6.ggpht.com/_dlkAw43cLC0/Sj97H0MnpxI/AAAAAAAAE54/aYD0pR-yxxk/s800/33-cool-and-creative-ads-part-i-no-head.jpg" rel="lightbox[413]" target="_blank" title="Driving Safe"><img title="Driving Safe" src="http://lh6.ggpht.com/_dlkAw43cLC0/Sj97H0MnpxI/AAAAAAAAE54/aYD0pR-yxxk/s800/33-cool-and-creative-ads-part-i-no-head.jpg" alt="Driving Safe" /></a></p>
<h1>Super Absorbent Kitchen Towels</h1>
<p><a href="http://lh6.ggpht.com/_aVtbdMo1J34/SydtggM0X-I/AAAAAAAACjM/c5oR8RJiOnY/kitchen-towels.jpg" rel="lightbox[413]" target="_blank" title="Super Absorbent Kitchen  Towels "><img title="Super Absorbent Kitchen  Towels " src="http://lh6.ggpht.com/_aVtbdMo1J34/SydtggM0X-I/AAAAAAAACjM/c5oR8RJiOnY/kitchen-towels.jpg" alt="Super Absorbent Kitchen Towels " /></a></p>
<h1>Don’t Let Wood Get Old</h1>
<p><a href="http://lh4.ggpht.com/_dlkAw43cLC0/Sj9zlIEwayI/AAAAAAAAE5s/Fn7GGtHNwGs/33-cool-and-creative-ads-part-i-wood-old.jpg" rel="lightbox[413]" target="_blank" title="Don’t Let Wood Get Old"><img title="Don’t Let Wood Get Old" src="http://lh4.ggpht.com/_dlkAw43cLC0/Sj9zlIEwayI/AAAAAAAAE5s/Fn7GGtHNwGs/33-cool-and-creative-ads-part-i-wood-old.jpg" alt="Don’t Let Wood Get Old" /></a></p>
<h1>Lays advertising 2009</h1>
<p><a href="http://webstandard.kulando.de/post/2009/10/05/werbung-inspiration-und-unterhaltung" target="_blank"><img title="Lays advertising" src="http://lh6.ggpht.com/_aVtbdMo1J34/SyejX6VPJZI/AAAAAAAACj4/eRUPH5L2hnI/advertising-2009-lays.jpg" alt="Lays advertising" /></a></p>
<p>If you know some good ones then do let me know via comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://webmaster.lk/35-creative-ads-that-makes-you-look-twice/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mount and install Windows 7 from bootable USB or DVD</title>
		<link>http://webmaster.lk/mount-and-install-windows-7-from-bootable-usb-or-dvd-drive/</link>
		<comments>http://webmaster.lk/mount-and-install-windows-7-from-bootable-usb-or-dvd-drive/#comments</comments>
		<pubDate>Wed, 16 Jun 2010 15:28:07 +0000</pubDate>
		<dc:creator>Irshard OFM</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[DVD]]></category>
		<category><![CDATA[Install]]></category>
		<category><![CDATA[Mount]]></category>
		<category><![CDATA[USB]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://webmaster.lk/?p=408</guid>
		<description><![CDATA[Windows 7 being the Microsoft’s finest Operating system has got lot of features which other versions of windows lacked. If you have been using Windows 7 already , you will be really amazed with the rapid performance and GUI. Formatting Windows 7 or Installing a fresh windows 7 is not a quite easy job. If [...]]]></description>
			<content:encoded><![CDATA[<p>Windows 7 being the Microsoft’s finest Operating system has got lot  of features which other versions of windows lacked.<span id="more-408"></span> If you have been  using Windows 7 already , you will be really amazed with the rapid  performance and GUI. Formatting Windows 7 or Installing a fresh windows 7  is not a quite easy job. If you sort help from some system engineers ,  then you need to pay minimum 100$ for them. Even if you want to try some  DIY tutorial available on net , you may get confused or frightened with  the command prompt commands. So in order to make your job easier ,  Microsoft has introduced a new Tool which helps users to format their  windows 7 straight from their USB drives.</p>
<h1>Microsoft  Windows  7 bootable USB utility</h1>
<p>Microsoft released a small utility to create Windows 7 bootable  USB/DVD called “Windows 7 USB/DVD Download Tool”. Though this tool is  just 2.7 MB size , but still its very powerful enough to create bootable  USB drives. You can get the <a href="http://images2.store.microsoft.com/prod/clustera/framework/w7udt/1.0/en-us/Windows7-USB-DVD-tool.exe">windows  7 USB/DVD download Tool</a> from the Microsoft page itself.</p>
<p>Let’s see how to Make a USB drive to Format/install windows 7.</p>
<ul>
<li> First Download <a href="http://images2.store.microsoft.com/prod/clustera/framework/w7udt/1.0/en-us/Windows7-USB-DVD-tool.exe">Windows  7 USB/DVD Download Tool</a>.</li>
<li> When you are prompted to either save the file to disk or run it,  choose Run.</li>
<li> Follow the steps in the setup dialogs. You’ll have the option to  specify where to install the Windows 7 USB/DVD Download tool and whether  to create shortcuts on your Start Menu or Windows Desktop.</li>
<p>You need to be an administrator on the computer you are installing  the Windows 7 USB/DVD Download tool on. The tool requires the <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=0856EACB-4362-4B0D-8EDD-AAB15C5E04F5&amp;displaylang=en" target="_blank">Microsoft .NET Framework version 2.0</a> or higher.</p>
<h1>Using the Windows 7 USB/DVD Download Tool</h1>
<p>Before you run the Windows 7 USB/DVD Download tool, make sure that  you have already purchased Windows 7 ISO download from Microsoft Store  and have downloaded the Windows 7 ISO file to your hard drive. If you  have purchased Windows 7 but have not yet downloaded the ISO file, you  can download the file from your <a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=B5F726F1-4ACE-455D-BAD7-ABC4DD2F147B&amp;displaylang=en" target="_blank">Microsoft Store Account</a>.</p>
<h1>To make a copy of your Windows 7 ISO file:</h1>
<p>1. Click the Windows Start button, and click Windows 7 USB/DVD  Download tool in the All Programs list to open the Windows 7 USB/DVD  Download tool.<br />
<a href="http://lh6.ggpht.com/_chG-Yc2Tuyw/S0nrpEFcAtI/AAAAAAAAANM/OMAWYYN-LbQ/Install%20Windows%207%20using%20USB.png" rel="lightbox[408]" target="_blank" title="Boot Windows 7  using portable USB drive"><img title="Boot Windows 7  using portable USB drive" src="http://lh6.ggpht.com/_chG-Yc2Tuyw/S0nrpEFcAtI/AAAAAAAAANM/OMAWYYN-LbQ/Install%20Windows%207%20using%20USB.png" alt="Boot Windows 7 using portable USB drive" /></a>2. In the Source File box, type the name and path of your Windows 7  ISO file, or click Browse and select the file in the Open dialog box.</p>
<p><a href="http://lh6.ggpht.com/_chG-Yc2Tuyw/S0nrUKloGVI/AAAAAAAAANI/CPz-FACL26w/Install%20Windows%207%20from%20USB.png" rel="lightbox[408]" target="_blank" title="Format Windows 7 using USB"><img title="Format Windows 7 using USB" src="http://lh6.ggpht.com/_chG-Yc2Tuyw/S0nrUKloGVI/AAAAAAAAANI/CPz-FACL26w/Install%20Windows%207%20from%20USB.png" alt="Format Windows 7 using USB" /></a>3. If you want to create a boot able USB flash drive, select your USB  device in the dropdown list and click Begin Copying or if you want to  create a boot able DVD, click Begin burning.</p>
<p><a href="http://lh6.ggpht.com/_chG-Yc2Tuyw/S0nrUJk0tBI/AAAAAAAAANA/-pquHaK80N8/Install%20Windows%207%20from%20DVD.png" rel="lightbox[408]" title="Install Windows 7 using USB"><img title="Install Windows 7 using USB" src="http://lh6.ggpht.com/_chG-Yc2Tuyw/S0nrUJk0tBI/AAAAAAAAANA/-pquHaK80N8/Install%20Windows%207%20from%20DVD.png" alt="Install Windows 7 using USB" /></a>4. If you choose to create a boot able USB then click on “Begin  Copying” button. Now you’ll be prompted to format the USB device. In the  dialog box Click Erase USB Device.</p>
<p><a href="http://lh5.ggpht.com/_chG-Yc2Tuyw/S0nrT6Ig-bI/AAAAAAAAAM8/J02SWhmZ0JQ/Install%20Windows%207.png" rel="lightbox[408]" title="Install Windows 7 using USB"><img title="Install Windows 7 using USB" src="http://lh5.ggpht.com/_chG-Yc2Tuyw/S0nrT6Ig-bI/AAAAAAAAAM8/J02SWhmZ0JQ/Install%20Windows%207.png" alt="Install Windows 7 using USB" /></a>When your Windows 7 ISO file is copied onto your chosen media, you  can install Windows 7 by navigating to the root of your DVD or USB flash  drive and double-clicking Setup.exe.</p>
<h1>My Opinion</h1>
<p>You may make one copy of the ISO file on a disc, USB flash drive or  other media in order to install the software on a computer. Once you  have installed the software on a computer, the license terms that  accompany the software apply to your use of the software and replace  these terms. The license terms for Windows 7, once accepted, permit you  to make one copy of the software as a back-up copy for re-installation  on the licensed computer. If you do not delete the copy of the ISO file  you made to install the software on your computer, then the copy of the  ISO file constitutes your back-up copy. So now you can easily Install  Windows 7 right from your Portable USB drive or DVD.</ul>
]]></content:encoded>
			<wfw:commentRss>http://webmaster.lk/mount-and-install-windows-7-from-bootable-usb-or-dvd-drive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>9 Magic Methods for PHP</title>
		<link>http://webmaster.lk/9-magic-methods-for-php/</link>
		<comments>http://webmaster.lk/9-magic-methods-for-php/#comments</comments>
		<pubDate>Mon, 14 Jun 2010 07:28:37 +0000</pubDate>
		<dc:creator>Irshard OFM</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Magic Methods]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://webmaster.lk/?p=372</guid>
		<description><![CDATA[The “magic” methods are ones with special names, starting with two underscores, which denote methods which will be triggered in response to particular PHP events. That might sound slightly automagical but actually it’s pretty straightforward, we already saw an example of this in the last post, where we used a constructor – so we’ll use [...]]]></description>
			<content:encoded><![CDATA[<p>The “magic” methods are ones with special names, starting with two  underscores, which denote methods which will be triggered in response to  particular PHP events.<span id="more-372"></span></p>
<p>That might sound slightly automagical but actually it’s pretty  straightforward, we already saw an example of this in the last post,  where we used a constructor – so we’ll use this as our first example.</p>
<h3>__construct</h3>
<p>The constructor is a magic method that gets called when the object is  instantiated. It is usually the first thing in the class declaration  but it does not need to be, it a method like any other and can be  declared anywhere in the class.</p>
<p>Constructors also inherit like any other method. So if we consider  our previous inheritance example from the Introduction to OOP, we could  add a constructor to the Animal class like this:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">class</span> Animal<span style="color: #009900;">&#123;</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> __construct<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>created <span style="color: #339933;">=</span> <span style="color: #990000;">time</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>logfile_handle <span style="color: #339933;">=</span> <span style="color: #990000;">fopen</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/tmp/log.txt'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'w'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#125;</span></pre></div></div>

<p><strong>animal.php</strong></p>
<p>Now we can create a class which inherits from the Animal class – a  Penguin!  Without adding anything into the Penguin class, we can declare  it and have it inherit from Animal, like this:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">class</span> Penguin <span style="color: #000000; font-weight: bold;">extends</span> Animal <span style="color: #009900;">&#123;</span>
&nbsp;
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000088;">$tux</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Penguin<span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$tux</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>created<span style="color: #339933;">;</span></pre></div></div>

<p>If we define a <tt>__construct</tt> method in the Penguin class, then  Penguin objects will run that instead when they are instantiated. Since  there isn’t one, PHP looks to the parent class definition for  information and uses that. So we can override, or not, in our new class –  very handy.</p>
<h3>__destruct</h3>
<p>Did you spot the file handle that was also part of the constructor?   We don’t really want to leave things like that lying around when we  finish using an object and so the <tt>__destruct</tt> method does the  opposite of the constructor. It gets run when the object is destroyed,  either expressly by us or when we’re not using it any more and PHP  cleans it up for us. For the Animal, our <tt>__destruct</tt> method  might look something like this:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">class</span> Animal<span style="color: #009900;">&#123;</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> __construct<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>created <span style="color: #339933;">=</span> <span style="color: #990000;">time</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>logfile_handle <span style="color: #339933;">=</span> <span style="color: #990000;">fopen</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/tmp/log.txt'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'w'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> __destruct<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #990000;">fclose</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>logfile_handle<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p><strong>animal2.php</strong></p>
<p>The destructor lets us close up any external resources that were  being used by the object. In PHP since we have such short running  scripts (and look out for greatly improved garbage collection in newer  versions), often issues such as memory leaks aren’t a problem. However  it’s good practice to clean up and will give you a more efficient  application overall!</p>
<h3>__get</h3>
<p>This next magic method is a very neat little trick to use – it makes  properties which actually don’t exist appear as if they do. Let’s take  our little penguin:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">class</span> Penguin <span style="color: #000000; font-weight: bold;">extends</span> Animal <span style="color: #009900;">&#123;</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> __construct<span style="color: #009900;">&#40;</span><span style="color: #000088;">$id</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>getPenguinFromDb<span style="color: #009900;">&#40;</span><span style="color: #000088;">$id</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> getPenguinFromDb<span style="color: #009900;">&#40;</span><span style="color: #000088;">$id</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #666666; font-style: italic;">// elegant and robust database code goes here</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p><strong>penguin1.php</strong></p>
<p>Now if our penguin has the properties “name” and “age” after it is  loaded, we’d be able to do:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$tux</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Penguin<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$tux</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>name <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot; is &quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$tux</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>age <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot; years old<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span></pre></div></div>

<p>However imagine something changed about the backend database or  information provider, so instead of “name”, the property was called  “username”. And imagine this is a complex application which refers to  the “name” property in too many places for us to change. We can use the <tt>__get</tt> method to pretend that the “name” property still exists:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">class</span> Penguin <span style="color: #000000; font-weight: bold;">extends</span> Animal <span style="color: #009900;">&#123;</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> __construct<span style="color: #009900;">&#40;</span><span style="color: #000088;">$id</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>getPenguinFromDb<span style="color: #009900;">&#40;</span><span style="color: #000088;">$id</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> getPenguinFromDb<span style="color: #009900;">&#40;</span><span style="color: #000088;">$id</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #666666; font-style: italic;">// elegant and robust database code goes here</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> __get<span style="color: #009900;">&#40;</span><span style="color: #000088;">$field</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$field</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #b1b100;">return</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>username<span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p><strong>penguin2.php</strong></p>
<p>This technique isn’t really a good way to write whole systems,  because it makes code hard to debug, but it is a very valuable tool. It  can also be used to only load properties on demand or show calculated  fields as properties, and a hundred other applications that I haven’t  even thought of!</p>
<h3>__set</h3>
<p>So we updated all the calls to <tt>$this-&gt;name</tt> to return <tt>$this-&gt;username</tt> but what about when we want to set that value, perhaps we have an  account screen where users can change their name?  Help is at hand in  the form of the <tt>__set</tt> method, and easiest to illustrate with an  example.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">class</span> Penguin <span style="color: #000000; font-weight: bold;">extends</span> Animal <span style="color: #009900;">&#123;</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> __construct<span style="color: #009900;">&#40;</span><span style="color: #000088;">$id</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>getPenguinFromDb<span style="color: #009900;">&#40;</span><span style="color: #000088;">$id</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> getPenguinFromDb<span style="color: #009900;">&#40;</span><span style="color: #000088;">$id</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #666666; font-style: italic;">// elegant and robust database code goes here</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> __get<span style="color: #009900;">&#40;</span><span style="color: #000088;">$field</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$field</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #b1b100;">return</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>username<span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> __set<span style="color: #009900;">&#40;</span><span style="color: #000088;">$field</span><span style="color: #339933;">,</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$field</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>username <span style="color: #339933;">=</span> <span style="color: #000088;">$value</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p><strong>penguin3.php</strong></p>
<p>In this way we can falsify properties of objects, for any one of a  number of uses. As I said, not a way to build a whole system, but a very  useful trick to know.</p>
<h3>__call</h3>
<p>There are actually two methods which are similar enough that they  don’t get their own title in this post!  The first is the <tt>__call</tt> method, which gets called, if defined, when an undefined method is  called on this object.</p>
<p>The second is <tt>__callStatic</tt> which behaves in exactly the same  way but responds to undefined static method calls instead (only in new  versions though, this was added in PHP 5.3).</p>
<p>Probably the most common thing I use <tt>__call</tt> for is polite  error handling, and this is especially useful in library code where  other people might need to be integrating with your methods.</p>
<p>So for example if a script had a Penguin object called <tt>$penguin</tt> and it contained <tt>$penguin-&gt;speak() ...</tt> the <tt>speak()</tt> method isn’t defined so under normal circumstances we’d see:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">PHP Fatal error<span style="color: #339933;">:</span>  Call to undefined method Penguin<span style="color: #339933;">::</span><span style="color: #004000;">speak</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> in <span style="color: #339933;">...</span></pre></div></div>

<p>What we can do is add something to cope more nicely with this kind of  failure than the PHP fatal error you see here, by declaring a method <tt>__call</tt>.  For example:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">class</span> Animal <span style="color: #009900;">&#123;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">class</span> Penguin <span style="color: #000000; font-weight: bold;">extends</span> Animal <span style="color: #009900;">&#123;</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> __construct<span style="color: #009900;">&#40;</span><span style="color: #000088;">$id</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>getPenguinFromDb<span style="color: #009900;">&#40;</span><span style="color: #000088;">$id</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> getPenguinFromDb<span style="color: #009900;">&#40;</span><span style="color: #000088;">$id</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #666666; font-style: italic;">// elegant and robust database code goes here</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> __get<span style="color: #009900;">&#40;</span><span style="color: #000088;">$field</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$field</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #b1b100;">return</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>username<span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> __set<span style="color: #009900;">&#40;</span><span style="color: #000088;">$field</span><span style="color: #339933;">,</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$field</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>username <span style="color: #339933;">=</span> <span style="color: #000088;">$value</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> __call<span style="color: #009900;">&#40;</span><span style="color: #000088;">$method</span><span style="color: #339933;">,</span> <span style="color: #000088;">$args</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;unknown method &quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$method</span><span style="color: #339933;">;</span>
      <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p><strong>penguin4.php</strong></p>
<p>This will catch the error and echo it. In a practical application it  might be more appropriate to log a message, redirect a user, or throw an  exception, depending on what you are working on – but the concept is  the same.</p>
<p>Any misdirected method calls can be handled here however you need to,  you can detect the name of the method and respond differently  accordingly – for example you could handle method renaming in a similar  way to how we handled the property renaming above.</p>
<h3>__sleep</h3>
<p>The <tt>__sleep()</tt> method is called when the object is  serialised, and allows you to control what gets serialised. There are  all sorts of applications for this, a good example is if an object  contains some kind of pointer, for example a file handle or a reference  to another object.</p>
<p>When the object is serialised and then unserialised then these types  of references are useless since the target may no longer be present or  valid. Therefore it is better to unset these before you store them.</p>
<h3>__wakeup</h3>
<p>This is the opposite of the <tt>__sleep()</tt> method and allows you  to alter the behaviour of the unserialisation of the object. Used in  tandem with <tt>__sleep()</tt>, this can be used to reinstate handles  and object references which were removed when the object was serialised.</p>
<p>A good example application could be a database handle which gets  unset when the item is serialised, and then reinstated by referring to  the current configuration settings when the item is unserialised.</p>
<h3>__clone</h3>
<p>We looked at an example of using the clone keyword in the second part  of my introduction to OOP in PHP, to make a copy of an object rather  than have two variables pointing to the same actual data. By overriding  this method in a class, we can affect what happens when the clone  keyword is used on this object.</p>
<p>While this isn’t something we come across every day, a nice use case  is to create a true singleton by adding a private access modifier to the  method.</p>
<h3>__toString</h3>
<p>Definitely saving the best until last, the <tt>__toString</tt> method  is a very handy addition to our toolkit. This method can be declared to  override the behaviour of an object which is output as a string, for  example when it is echoed.</p>
<p>For example if you wanted to just be able to echo an object in a  template, you can use this method to control what that output would look  like. Let’s look at our Penguin again:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">class</span> Penguin <span style="color: #009900;">&#123;</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> __construct<span style="color: #009900;">&#40;</span><span style="color: #000088;">$name</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>species <span style="color: #339933;">=</span> <span style="color: #0000ff;">'Penguin'</span><span style="color: #339933;">;</span>
      <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>name <span style="color: #339933;">=</span> <span style="color: #000088;">$name</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> __toString<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #b1b100;">return</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>name <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot; (&quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>species <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;)<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p><strong>penguin5.php</strong></p>
<p>With this in place, we can literally output the object by calling  echo on it, like this:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$tux</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Penguin<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'tux'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$tux</span><span style="color: #339933;">;</span></pre></div></div>

<p>I don’t use this shortcut often but it’s useful to know that it is  there.</p>
<h3>More Magic Methods</h3>
<p>There is a <a onclick="javascript:pageTracker._trackPageview('/outbound/article/php.net');" href="http://php.net/manual/en/language.oop5.magic.php">great  reference on the php.net site </a>itself, listing all the available  magic methods (yes, there are more than these, I just picked the ones I  actually use) so if you want to know what else is available then take  the time to check this out.</p>
<p>Hopefully this has been a useful introduction to the main ones, leave  a comment to let us know how you use these in your own projects!</p>
]]></content:encoded>
			<wfw:commentRss>http://webmaster.lk/9-magic-methods-for-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tutorial:Drawing A pencil Icon</title>
		<link>http://webmaster.lk/drawing-a-pencil-icon/</link>
		<comments>http://webmaster.lk/drawing-a-pencil-icon/#comments</comments>
		<pubDate>Mon, 14 Jun 2010 06:51:42 +0000</pubDate>
		<dc:creator>Irshard OFM</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Drawing]]></category>
		<category><![CDATA[Icon]]></category>
		<category><![CDATA[Pencil]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://webmaster.lk/?p=366</guid>
		<description><![CDATA[Nowadays we can see icons everywhere, from a game console to web applications. Icons are getting more and more popular and play an important role, maybe the most important role in user interfaces. However, the resources about icon design are not that popular which is why when we have done our first steps in icon [...]]]></description>
			<content:encoded><![CDATA[<p>Nowadays we can see <strong>icons</strong> everywhere, from a game  console to web applications. Icons are getting more and more popular<span id="more-366"></span> and  play an important role, maybe the most important role in user  interfaces. However, the resources about icon design are not that  popular which is why when we have done our first steps in icon design,  it was really hard to find a good starting point.</p>
<p>There were only  few in-depth tutorials or books about this subject. Which is why we  would like to share some (hopefully useful) tips about how to create a  simple icon set. This tutorial presents of course not everything you  should know about how to master icon design, but we hope that it will  help you, particularly if you have just started to learn, or want to  learn more about icon design.</p>
<p>This article <strong>explains the process of designing a  simple pencil icon</strong>, one of the icons of the icon set. The  tutorial is very detailed and in-depth, so you will hopefully be able to  follow each step without any problems.</p>
<p>Although we consider a  basic example, the principles, conceptialization and techniques from  this article can easily be applied to icon design in general. Although  all tools we use in this guide are very simple and very easy to work  with, your acquaintance with Adobe Illustrator is still requisite.</p>
<p><img src="http://media.smashingmagazine.com/cdn_smash/images/pencil-tutorial/images/E/outline.jpg" alt="Outline in Icon Design Tutorial: Drawing A Pencil Icon" /></p>
<p><img src="http://media.smashingmagazine.com/cdn_smash/images/pencil-tutorial/images/E/step-by-step.jpg" alt="Step-by-step in Icon Design Tutorial: Drawing A Pencil Icon" /></p>
<p>So  how do we start? Usually before starting, we have to gather some pencil  pictures on the Web and pick up the details and traits out of those  pictures and mix them all to create a style for some fresh pencil icon.  We always start with a hand-drawn sketch.</p>
<h3>1. Characteristics  of a pencil icon</h3>
<p>Drawing an icon means to draw the most typical  characters of an object so that it can capture the icon’s action or  represent the concept and nuance.<br />
As you might know, there are  generally three kinds of pencils to select from:</p>
<ol>
<li>Prism-shaped  body with a shiny glaze-coated end.</li>
<li>Prism-shaped body with an  eraser secured to the pencil body by a bright white metal ring.</li>
<li>Cylinder-shaped  body without an eraser.</li>
</ol>
<p>We choose the second kind for the  icon design because it has all necessary elements, <strong>making it  easier for the viewer to recognize the image</strong>. After trying to  sketch some upon the second kind, this is the sample sketch that matches  the style of the set that we have in mind.<br />
Our favorite drawing  tools are Copic Markers with 10%, 30%, 50% gray tones and a ballpoint  pen. Some important things that should be followed as working on this  icon:</p>
<ul>
<li>When an icon is designed in a large size, you need to <strong>pay  close attention to details</strong>, and make sure that the two-point  perspective is used. But in this article, because the icon is to be made  and optimized in smaller sizes (64×64px and 48×48px), its concept  should be as simple as possible, and the icon should be illustrated in  one-point perspective.</li>
<li>Light used in the icon must be  harmonized.</li>
<li>Perspective used for the icon must be identical in  the iconset, making all the icons look like being in a family.</li>
<li>Style  should be a bit more manly-looking.</li>
<li>Decisive color is green.</li>
<li>Since  the icon is to be saved in an EPS8 file, only gradient is used and all  the paths must be connected (no open paths). It is also important to  note that there is no transparent effect and no raster image invovled.</li>
</ul>
<p>Okay,  let’s get to the main part!</p>
<h3>2. Sketches:</h3>
<p>In our icon  design sketches always come first.</p>
<p>We are going to scan these  sketches into Illustrator.</p>
<p><img src="http://media.smashingmagazine.com/cdn_smash/images/pencil-tutorial/images/A--Sketches.jpg" alt="A--Sketches in Icon Design Tutorial: Drawing A Pencil Icon" width="487" height="439" /></p>
<h3>3. Basic outline:</h3>
<h4>3.1. The  pencil body</h4>
<ol>
<li> Create a 64 x 64px document. Drag the image  (the scanned sketch) into the artboard of the new document. Go to the  Transparency palette and set the image’s opacity to 50. Lock this layer  and save the document. Create a new layer and start to make outlines on  it.</li>
<li> Create a rounded rectangle path using the Rounded Rectangle  tool and then click on the artboard to set the Corner Radius value to  10px. Click OK.</li>
<p><img src="http://media.smashingmagazine.com/cdn_smash/images/pencil-tutorial/images/B/2.jpg" alt="2 in Icon Design Tutorial: Drawing A Pencil Icon" /></p>
<p><img src="http://media.smashingmagazine.com/cdn_smash/images/pencil-tutorial/images/B/2-1.jpg" alt="2-1 in Icon Design Tutorial: Drawing A Pencil Icon" /></p>
<li> Choose the Selection tool (V) and click on an edge of the rounded  rectangle path and drag it over and make it fit tightly on the sketched  image like the picture below.<img src="http://media.smashingmagazine.com/cdn_smash/images/pencil-tutorial/images/B/3.jpg" alt="3 in Icon Design Tutorial: Drawing A Pencil Icon" />
<ul>
<li>Select  the round rectangle and set their color  to none.</li>
<li>The eraser  looks smaller than the body, so it needs to be reformed. There may be  several ways to redraw the eraser like using the Pen tool (P) but from  my experience they didn’t give good results.</li>
</ul>
</li>
<li>Select  the rounded rectangle path. Double-click on the Scale tool and check  Uniform in the Scale dialog box. Set the scale value at 96%. Check Copy  to create a replica as shown in the picture below.<img src="http://media.smashingmagazine.com/cdn_smash/images/pencil-tutorial/images/B/4.jpg" alt="4 in Icon Design Tutorial: Drawing A Pencil Icon" /></li>
<li>Choose  the Rectangle tool and draw a new rectangle at the position of the  eraser and over the rounded rectangle path.<img src="http://media.smashingmagazine.com/cdn_smash/images/pencil-tutorial/images/B/5.jpg" alt="5 in Icon Design Tutorial: Drawing A Pencil Icon" /></li>
<li>Choose  the Add Anchor Point tool (+) and click on the central point of the  rectangle path (drawn in step 5) to add one more anchor point. Next,  select the Delete Anchor Point tool (-) and delete 2 anchor points.<img src="http://media.smashingmagazine.com/cdn_smash/images/pencil-tutorial/images/B/6.jpg" alt="6 in Icon Design Tutorial: Drawing A Pencil Icon" /></li>
<li>Choose  the Ellipse tool and draw an ellipse as shown below:<img src="http://media.smashingmagazine.com/cdn_smash/images/pencil-tutorial/images/B/7.jpg" alt="7 in Icon Design Tutorial: Drawing A Pencil Icon" /></li>
<li>Select  the larger rounded rectangle path and the ellipse path. Go to the  Pathfinder palette and click the Divide icon. A new group appears in the  Layer palette. Any divided path will belong to this group.<img src="http://media.smashingmagazine.com/cdn_smash/images/pencil-tutorial/images/B/8.jpg" alt="8 in Icon Design Tutorial: Drawing A Pencil Icon" /></li>
<li>Go  to the Layer palette and select two paths located below the new group,  press Command/Ctrl + G to put them into a group and lock this group. Do  that to make it easier to delete unused paths in step</li>
<li> Ungroup  the group with divided paths (in step <img src='http://webmaster.lk/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> by selecting the group and  choosing the Ungroup command from the right-click menu.<img src="http://media.smashingmagazine.com/cdn_smash/images/pencil-tutorial/images/B/10.jpg" alt="10 in Icon Design Tutorial: Drawing A Pencil Icon" /></li>
<li>Delete  unused paths until the result is achieved as below.<img src="http://media.smashingmagazine.com/cdn_smash/images/pencil-tutorial/images/B/11.jpg" alt="11 in Icon Design Tutorial: Drawing A Pencil Icon" /></li>
</ol>
<h4>3.2.  The metal ring</h4>
<p>Just like the steps done with the eraser, for  this path we’ll use a bigger ellipse and divide the pencil body path to <strong>detach  the metal ring from the body</strong>.</p>
<p><img src="http://media.smashingmagazine.com/cdn_smash/images/pencil-tutorial/images/B/12.jpg" alt="12 in Icon Design Tutorial: Drawing A Pencil Icon" /></p>
<p><img src="http://media.smashingmagazine.com/cdn_smash/images/pencil-tutorial/images/B/12-1.jpg" alt="12-1 in Icon Design Tutorial: Drawing A Pencil Icon" /></p>
<p>The  shape of pencil now has been taken very basically. I think we can go  into its details from this step on. What we have to do is cleaning up  the pencil.</p>
<h3>4. Details:</h3>
<p><img src="http://media.smashingmagazine.com/cdn_smash/images/pencil-tutorial/images/C/0.jpg" alt="0 in Icon Design Tutorial: Drawing A Pencil Icon" /></p>
<p>Create  the outlines for a pencil with sharpened end by using the Rounded  Rectangle tool and the Pathfinder palette. All we have to do with this  path is make the pencil body in a prism shape and look being already  sharpened.</p>
<ol>
<li> Select the Rounded Rectangle tool and draw a new  rounded rectangle path with 4pt corner radius (like in step 2B).<img src="http://media.smashingmagazine.com/cdn_smash/images/pencil-tutorial/images/C/1.jpg" alt="1 in Icon Design Tutorial: Drawing A Pencil Icon" /></li>
<li> Make a duplicate of this rounded rectangle path by pressing “Copy and  Paste in front” commands (Command/Ctrl + F )</li>
<li>Move the duplicate  path to the right.<img src="http://media.smashingmagazine.com/cdn_smash/images/pencil-tutorial/images/C/3.jpg" alt="3 in Icon Design Tutorial: Drawing A Pencil Icon" /></li>
<li>Select  both rounded rectangle paths and the body path, and then divide them  using the Divide option in the Pathfinder palette.</li>
<li>Select the  group with divided paths and ungroup it, and then delete unused paths.  The result should be like this:<img src="http://media.smashingmagazine.com/cdn_smash/images/pencil-tutorial/images/C/5.jpg" alt="5 in Icon Design Tutorial: Drawing A Pencil Icon" /></li>
<li>Continue  using the Rounded Rectangle tool to draw another rounded rectangle  path, and then use the Divide option to cut the path in the middle of  the pencil body to form a clear prism. Next, ungroup and unlock all the  paths in Layer 2, and then change their names. See the result below.<img src="http://media.smashingmagazine.com/cdn_smash/images/pencil-tutorial/images/C/6.jpg" alt="6 in Icon Design Tutorial: Drawing A Pencil Icon" /><img src="http://media.smashingmagazine.com/cdn_smash/images/pencil-tutorial/images/C/6-1.jpg" alt="6-1 in Icon Design Tutorial: Drawing A Pencil Icon" /></li>
</ol>
<h3>5.  Styling the Pencil:</h3>
<p>And now we are going to give the icon some  charm. The steps include:</p>
<h4>5.1. Adding gradient</h4>
<ol>
<li>Select  all the paths and select the Gradient tool, and then go to the Swatches  palette and choose a radial black-gray-white gradient.</li>
<li> Select  each path and drag the Gradient tool (G) across each of them until you  see the result like the picture below:<img src="http://media.smashingmagazine.com/cdn_smash/images/pencil-tutorial/images/D/2.jpg" alt="2 in Icon Design Tutorial: Drawing A Pencil Icon" /></li>
<li>Select  all the paths and set their stroke weight to zero. The purpose is to  preview the pencil in general.<img src="http://media.smashingmagazine.com/cdn_smash/images/pencil-tutorial/images/D/3.jpg" alt="3 in Icon Design Tutorial: Drawing A Pencil Icon" />Well,  light depicted in the pencil body looks fine, but the metal ring and the  sharpened end need to be adjusted a bit.</li>
<li>Change the  gradient type of this path to linear to create a new gradient as shown  in the picture below. Hoping you could create the gradient like mine. In  case you couldn’t make it yourself, just download the attached <a href="http://media.smashingmagazine.com/cdn_smash/images/pencil-tutorial/source.zip">source  file</a>.<img src="http://media.smashingmagazine.com/cdn_smash/images/pencil-tutorial/images/D/4.jpg" alt="4 in Icon Design Tutorial: Drawing A Pencil Icon" /><img src="http://media.smashingmagazine.com/cdn_smash/images/pencil-tutorial/images/D/4-1.jpg" alt="4-1 in Icon Design Tutorial: Drawing A Pencil Icon" /><img src="http://media.smashingmagazine.com/cdn_smash/images/pencil-tutorial/images/D/4-2.jpg" alt="4-2 in Icon Design Tutorial: Drawing A Pencil Icon" /></li>
<li>The  metal ring path should embrace the eraser tightly. To do this, use the  Add Anchor Point tool (+) and add 4 more anchor points to the two ends  of the metal ring path, and then delete 2 corner points. The result look  like this:<img src="http://media.smashingmagazine.com/cdn_smash/images/pencil-tutorial/images/D/5.jpg" alt="5 in Icon Design Tutorial: Drawing A Pencil Icon" />&gt;</li>
<li>The  metal ring path also needs to be a little thicker. The easiest way is  use the Offset Path command. Select the path and then go to  Object&gt;Path&gt;Offset Path. In the Offset Path dialog box, set the  offset value to -1pt or less. You may check Preview to see the result  and hit OK.<img src="http://media.smashingmagazine.com/cdn_smash/images/pencil-tutorial/images/D/6-1.jpg" alt="6-1 in Icon Design Tutorial: Drawing A Pencil Icon" /><img src="http://media.smashingmagazine.com/cdn_smash/images/pencil-tutorial/images/D/6-2.jpg" alt="6-2 in Icon Design Tutorial: Drawing A Pencil Icon" />Notes:
<ul>
<li> Use the Offset path to make a duplicate over the metal ring path;  change the gradient of the metal ring path (locating below the  duplicate) to give depth.</li>
<li> Whenever the Offset path is used, the  default name of the duplicate is “path”.</li>
<li> If the offset value  is minus (-), the duplicate will stay upper.</li>
</ul>
</li>
<li>Apply the  radial black-gray-white to the metal ring path, press G and drag the  Gradient tool across the path until you get the result like the picture  below:<br />
Okay, the metal ring looks acceptable to the eye. Now let’s  mess with the sharpened end or the pencil nib path.<img src="http://media.smashingmagazine.com/cdn_smash/images/pencil-tutorial/images/D/7.jpg" alt="7 in Icon Design Tutorial: Drawing A Pencil Icon" /></li>
<li> Scale the pencil nib path so that it adjoins with the pencil body.</li>
<li> Like in the sketch, the pencil nib path here needs a highlight piece  located right at its center, making up its shape. Before doing this,  remember that the icon is to be saved in EPS8 format and there’s no  usage of effect, no blending mode or opacity adjustment but only paths  or the blendshape. To make it simpler, use the Pen tool and draw a path  over the pencil nib path.<img src="http://media.smashingmagazine.com/cdn_smash/images/pencil-tutorial/images/D/9.jpg" alt="9 in Icon Design Tutorial: Drawing A Pencil Icon" /></li>
<li>Change  the direction and angle of the gradient until the pencil nib is taken  shape properly.</li>
<li> Draw the pencil lead using the Pen tool.<img src="http://media.smashingmagazine.com/cdn_smash/images/pencil-tutorial/images/D/11.jpg" alt="11 in Icon Design Tutorial: Drawing A Pencil Icon" /></li>
<li> Give a highlight piece to the eraser using the Pen tool and change the  angle of the gradient to suggest the eraser shape.</li>
<li>Use the  Offset path command to make a duplicate of the eraser path. Change the  gradient tone of the eraser path to make its contour look sharper.<img src="http://media.smashingmagazine.com/cdn_smash/images/pencil-tutorial/images/D/13.jpg" alt="13 in Icon Design Tutorial: Drawing A Pencil Icon" /></li>
</ol>
<h4>5.2.  Tweaking the color</h4>
<p>In this stage, we’ll put each element of the  pencil into each separate group (the body, the eraser, and the sharpened  end).</p>
<ol>
<li>Select the pencil body paths (including 3 paths). Go  to Edit &gt; Adjust Color Balance, check Preview and Convert in the  Adjust dialog box, and then switch to RGB mode.<img src="http://media.smashingmagazine.com/cdn_smash/images/pencil-tutorial/images/D/color-1.jpg" alt="Color-1 in Icon Design Tutorial: Drawing A Pencil Icon" /></li>
<li>Drag  the slider to change the Red/Green/Blue values (to whatever color you  like).</li>
<li> Select the eraser and do the same Step 2.</li>
<li> Select the sharpened end and change its color (do dittos).<img src="http://media.smashingmagazine.com/cdn_smash/images/pencil-tutorial/images/D/color-4.jpg" alt="Color-4 in Icon Design Tutorial: Drawing A Pencil Icon" />The pencil now looks flatter than it was initially. That’s because the  gradient will lose the black color after adjusting the color balance.  What we’re going to do next is go back to the three elements of the  pencil and add the black color to their gradient so that the shapes of  the elements will display clearer.</li>
<li>Grab the gradient slider  and move the main color closer to the white. In the Color palette, drag  that color down to the Gradient palette. Select the color just dragged  (by clicking the gradient slider) and change its value to 0-0-0 (make  sure the color mode is RGB).  You may use the Color palette to change  the gradient color.<img src="http://media.smashingmagazine.com/cdn_smash/images/pencil-tutorial/images/D/color-5.jpg" alt="Color-5 in Icon Design Tutorial: Drawing A Pencil Icon" /></li>
</ol>
<h3>6.  Deeper details and style matching</h3>
<p>After everything basic is  done, <strong>switch to Pixel Preview mode</strong> from the View menu  to see if the pixelation problem occurred.</p>
<p>We are almost done.  Yet, as you see, the pencil lead looks very sharp-pointed, giving an  unsafe feel. So we got to change that conical point to a frustum of a  pyramid. Also, we need to add some extra paths to the pencil body as  highlight pieces (using the Offset Path command). This is necessary  because the outer housing of the pencil is a very shiny coating.</p>
<p>And  the result is:</p>
<p><img src="http://media.smashingmagazine.com/cdn_smash/images/pencil-tutorial/images/E/result.jpg" alt="Result in Icon Design Tutorial: Drawing A Pencil Icon" /></p>
<p>After  the icon is rotated at 45-degree angle:</p>
<p><img src="http://media.smashingmagazine.com/cdn_smash/images/pencil-tutorial/images/E/rotate.jpg" alt="Rotate in Icon Design Tutorial: Drawing A Pencil Icon" /></p>
<p>Well,  one more thing, the pencil still looks so dark that can’t match the  styleweI want to have, so we’ll make a <strong>change to its color</strong>.  Just add some detail to the metal ring path by (1) duplicating the path  and scale the duplicate a little bit, and then (2) make another  duplicate and drag the gradient over it to make the icon more realistic.</p>
<p>Note:  make sure both “Snap to Pixel” and “Snap to Point” have been checked  after Pixel Preview mode is used.</p>
<p>The final outcome:</p>
<p><img src="http://media.smashingmagazine.com/cdn_smash/images/pencil-tutorial/images/E/final.jpg" alt="Final in Icon Design Tutorial: Drawing A Pencil Icon" /></p>
<p>Look  at the final outcome. While the light direction comes from above, the  lower part of the pencil body is lighter than the upper part. Yes, it’s  the reflection of light.<br />
Many assume that it’s tough to draw icons  with Illustrator due to difficulty in representing color and light. If  you have a good sense of color you can change the gradient color and  tone using the Color palette.</p>
<p><img src="http://media.smashingmagazine.com/cdn_smash/images/pencil-tutorial/images/E/outline.jpg" alt="Outline in Icon Design Tutorial: Drawing A Pencil Icon" /></p>
<p><img src="http://media.smashingmagazine.com/cdn_smash/images/pencil-tutorial/images/E/step-by-step.jpg" alt="Step-by-step in Icon Design Tutorial: Drawing A Pencil Icon" /></p>
<p>Anyway  with Photoshop, you could do the following way:</p>
<ol>
<li>Export your  vector to a PNG, then open it in Photoshop.<br />
Change the color and  light level of the icon image by using Curves or Color Balance or Auto  Levels (from Image menu &gt; Adjustments), or using other techniques you  knew in Photoshop. After editing, save the image file.</li>
<li>Drag the  edited image into Illustrator, then use the Eyedroper tool to pick up  three main values of color – brightness, medium and darkness, and after  every pick-up, drag the color into the Swatches palette to save.</li>
<li> Drag your chosen color into the Gradient palette to make your own nice  gradients, then applied to your icon.<br />
I used to do that way for a  while and now I’ve owned a useful library of gradients, which I always  use to style my icon sets.</li>
</ol>
<h3>Common Mistakes</h3>
<p>Let  us discuss some mistakes which are frequently occur when it comes to  icon design using the example above.</p>
<ul>
<li><strong> Create  reflection and highlights in the icon</strong> by drawing a new path  over the original path and add the while or black to it, then changing  its opacity.<br />
This way will make the object color to be the silver  gray, losing the clearness as it was, though it still can achieve  glossiness.</li>
<li> <strong>Use gaudy models of pencil and round  cylinder shape</strong> to easily take shape of the pencil icon with  only one gradient.<br />
But drawing icons is drawing anything most  familiar and typical, and draw objects that best capture the icon’s  action or gesture. A round-shaped pencil icon hardly can come with sharp  corners and clear highlights.</li>
<li> <strong>Rely on a prism-shaping  gradient</strong> by using a path to demonstrate the pencil body and  then apply the gradient that makes an object look like a prism shape to  the path.<br />
This may be an easy way but very difficult to edit, and  the gradient tends to be askew.</li>
<li> <strong>Use the blendshape to  cast shadow</strong> in EPS8 and the shadow changes from white to black  without transparency.<br />
When the shadow casts on a background with  color other than white, a white contour will appear.</li>
</ul>
<h3>Design  comparisions</h3>
<p>These are some typical designs we’d like to bring  in and classify them upon some good and weak points.<br />
The final  result above shows the pencil icons designed in one-point perspective.  This is a perfect design that obtains all necessary components:  lighting, shadow, color and composition, and especially, this design can  be scaled down to any size without pixelation problem.</p>
<p><img src="http://media.smashingmagazine.com/cdn_smash/images/pencil-tutorial/images/compare-pencil.jpg" alt="Compare-pencil in Icon Design Tutorial: Drawing A Pencil Icon" width="400" height="250" /></p>
<p>Figure 1 shows the pencil icons designed  in <strong>two-point perspective</strong>. This design depicts good  lighting, acceptable shadow and nice color, and does not encounter the  pixilation problem. Yes, this design looks nice and cool. However, the  composition and shape of the pencils <strong>may not be recognizable  immediately</strong> to viewers, resulting in the violation of the main  principle of icon design.</p>
<p><img src="http://media.smashingmagazine.com/cdn_smash/images/pencil-tutorial/images/compare-pencil2.jpg" alt="Compare-pencil2 in Icon Design Tutorial: Drawing A Pencil Icon" width="432" height="256" /><br />
<em>Figure 1</em></p>
<p>Figure 2 shows the  folder icons designed in two-point perspective. The design looks nearly  perfect with nice concept, a complete and proper composition. It’s also a  good design as it depicts accurately the light direction that comes  from above and casts a nice shadow, and the light reflection on the  folder object is wonderful. Yet, <strong>pixelation problem</strong> occurs on the upper edges of the folders, causing the icon in 24×24px to  lose sharpness.</p>
<p><img src="http://media.smashingmagazine.com/cdn_smash/images/pencil-tutorial/images/compare-folder.jpg" alt="Compare-folder in Icon Design Tutorial: Drawing A Pencil Icon" width="432" height="256" /><br />
<em>Figure 2</em></p>
<h3>Conclusion</h3>
<p>There  are many different approaches to icon design, some use 3D application,  others use Firework or Photoshop, but the goal in designing icons is the  same, whatever tools we use. We need to <strong>keep the consistency  through every icon in the set</strong>, and maintain recognization and  simplicity.  As we said in the beginning of this article, these are just  some basic steps and principles of creating a beautiful and crisp icon.  We hope you enjoy this tutorial.</p>
<pre><span style="color: #c0c0c0;">by M. Tran</span>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://webmaster.lk/drawing-a-pencil-icon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nike World Cup Crayons</title>
		<link>http://webmaster.lk/nike-world-cup-crayons/</link>
		<comments>http://webmaster.lk/nike-world-cup-crayons/#comments</comments>
		<pubDate>Sun, 13 Jun 2010 15:45:13 +0000</pubDate>
		<dc:creator>Irshard OFM</dc:creator>
				<category><![CDATA[Inspirations]]></category>
		<category><![CDATA[crayons]]></category>

		<guid isPermaLink="false">http://webmaster.lk/?p=348</guid>
		<description><![CDATA[A project by crayon carver, Diem Chau and W+K for Nike celebrating the world cup. It is a press kit for the Write the Future campaign. All the soccer stars are personified in crayon carvings and beautifully packaged]]></description>
			<content:encoded><![CDATA[<p>A project by crayon carver, Diem  Chau and W+K for Nike celebrating the world cup. It is a press kit for the Write the Future campaign. All the soccer stars are personified in crayon carvings and  beautifully packaged</p>
<p><a href="http://webmaster.lk/wp-content/uploads/2010/06/design-fetish-nike-carved-crayons-for-world-cup-1.jpg" rel="lightbox[348]" title="design-fetish-nike-carved-crayons-for world-cup-1"><img class="alignnone size-medium wp-image-349" title="design-fetish-nike-carved-crayons-for world-cup-1" src="http://webmaster.lk/wp-content/uploads/2010/06/design-fetish-nike-carved-crayons-for-world-cup-1-300x243.jpg" alt="" width="550" height="360" /></a></p>
<p><a href="http://webmaster.lk/wp-content/uploads/2010/06/design-fetish-nike-carved-crayons-for-world-cup-2.jpg" rel="lightbox[348]" title="design-fetish-nike-carved-crayons-for world-cup-2"><img class="alignnone size-full wp-image-350" title="design-fetish-nike-carved-crayons-for world-cup-2" src="http://webmaster.lk/wp-content/uploads/2010/06/design-fetish-nike-carved-crayons-for-world-cup-2.jpg" alt="" width="600" height="534" /></a></p>
<p><a href="http://webmaster.lk/wp-content/uploads/2010/06/design-fetish-nike-carved-crayons-for-world-cup-3.jpg" rel="lightbox[348]" title="design-fetish-nike-carved-crayons-for world-cup-3"><img class="alignnone size-full wp-image-351" title="design-fetish-nike-carved-crayons-for world-cup-3" src="http://webmaster.lk/wp-content/uploads/2010/06/design-fetish-nike-carved-crayons-for-world-cup-3.jpg" alt="" width="600" height="419" /></a></p>
<p><a href="http://webmaster.lk/wp-content/uploads/2010/06/design-fetish-nike-carved-crayons-for-world-cup-4.jpg" rel="lightbox[348]" title="design-fetish-nike-carved-crayons-for world-cup-4"><img class="alignnone size-full wp-image-352" title="design-fetish-nike-carved-crayons-for world-cup-4" src="http://webmaster.lk/wp-content/uploads/2010/06/design-fetish-nike-carved-crayons-for-world-cup-4.jpg" alt="" width="600" height="419" /></a></p>
<p><a href="http://webmaster.lk/wp-content/uploads/2010/06/design-fetish-nike-carved-crayons-for-world-cup-5.jpg" rel="lightbox[348]" title="design-fetish-nike-carved-crayons-for world-cup-5"><img class="alignnone size-full wp-image-353" title="design-fetish-nike-carved-crayons-for world-cup-5" src="http://webmaster.lk/wp-content/uploads/2010/06/design-fetish-nike-carved-crayons-for-world-cup-5.jpg" alt="" width="600" height="683" /></a></p>
<p><a href="http://webmaster.lk/wp-content/uploads/2010/06/design-fetish-nike-carved-crayons-for-world-cup-6.jpg" rel="lightbox[348]" title="design-fetish-nike-carved-crayons-for world-cup-6"><img class="alignnone size-full wp-image-354" title="design-fetish-nike-carved-crayons-for world-cup-6" src="http://webmaster.lk/wp-content/uploads/2010/06/design-fetish-nike-carved-crayons-for-world-cup-6.jpg" alt="" width="600" height="486" /></a></p>
<p><a href="http://webmaster.lk/wp-content/uploads/2010/06/design-fetish-nike-carved-crayons-for-world-cup-7.jpg" rel="lightbox[348]" title="design-fetish-nike-carved-crayons-for world-cup-7"><img class="alignnone size-full wp-image-355" title="design-fetish-nike-carved-crayons-for world-cup-7" src="http://webmaster.lk/wp-content/uploads/2010/06/design-fetish-nike-carved-crayons-for-world-cup-7.jpg" alt="" width="600" height="1024" /></a></p>
<p><a href="http://webmaster.lk/wp-content/uploads/2010/06/design-fetish-nike-carved-crayons-for-world-cup-8.jpg" rel="lightbox[348]" title="design-fetish-nike-carved-crayons-for world-cup-8"><img class="alignnone size-full wp-image-356" title="design-fetish-nike-carved-crayons-for world-cup-8" src="http://webmaster.lk/wp-content/uploads/2010/06/design-fetish-nike-carved-crayons-for-world-cup-8.jpg" alt="" width="600" height="486" /></a></p>
<p><a href="http://webmaster.lk/wp-content/uploads/2010/06/design-fetish-nike-carved-crayons-for-world-cup-10.jpg" rel="lightbox[348]" title="design-fetish-nike-carved-crayons-for world-cup-10"><img class="alignnone size-full wp-image-357" title="design-fetish-nike-carved-crayons-for world-cup-10" src="http://webmaster.lk/wp-content/uploads/2010/06/design-fetish-nike-carved-crayons-for-world-cup-10.jpg" alt="" width="600" height="486" /></a></p>
<p><a href="http://webmaster.lk/wp-content/uploads/2010/06/design-fetish-nike-carved-crayons-for-world-cup-11.jpg" rel="lightbox[348]" title="design-fetish-nike-carved-crayons-for world-cup-11"><img class="alignnone size-full wp-image-358" title="design-fetish-nike-carved-crayons-for world-cup-11" src="http://webmaster.lk/wp-content/uploads/2010/06/design-fetish-nike-carved-crayons-for-world-cup-11.jpg" alt="" width="600" height="486" /></a></p>
<p><a href="http://webmaster.lk/wp-content/uploads/2010/06/design-fetish-nike-carved-crayons-for-world-cup-12.jpg" rel="lightbox[348]" title="design-fetish-nike-carved-crayons-for world-cup-12"><img class="alignnone size-full wp-image-359" title="design-fetish-nike-carved-crayons-for world-cup-12" src="http://webmaster.lk/wp-content/uploads/2010/06/design-fetish-nike-carved-crayons-for-world-cup-12.jpg" alt="" width="600" height="486" /></a><a href="http://webmaster.lk/wp-content/uploads/2010/06/design-fetish-nike-carved-crayons-for-world-cup-13.jpg" rel="lightbox[348]" title="design-fetish-nike-carved-crayons-for world-cup-13"><img class="alignnone size-full wp-image-360" title="design-fetish-nike-carved-crayons-for world-cup-13" src="http://webmaster.lk/wp-content/uploads/2010/06/design-fetish-nike-carved-crayons-for-world-cup-13.jpg" alt="" width="600" height="486" /></a></p>
<p><a href="http://webmaster.lk/wp-content/uploads/2010/06/design-fetish-nike-carved-crayons-for-world-cup-13.jpg" rel="lightbox[348]" title="design-fetish-nike-carved-crayons-for world-cup-14"></a><a href="http://webmaster.lk/wp-content/uploads/2010/06/design-fetish-nike-carved-crayons-for-world-cup-14.jpg" rel="lightbox[348]"><img class="alignnone size-full wp-image-361" title="design-fetish-nike-carved-crayons-for world-cup-14" src="http://webmaster.lk/wp-content/uploads/2010/06/design-fetish-nike-carved-crayons-for-world-cup-14.jpg" alt="" width="600" height="1024" /></a></p>
<p><a href="http://webmaster.lk/wp-content/uploads/2010/06/design-fetish-nike-carved-crayons-for-world-cup-15.jpg" rel="lightbox[348]" title="design-fetish-nike-carved-crayons-for world-cup-15"><img class="alignnone size-full wp-image-362" title="design-fetish-nike-carved-crayons-for world-cup-15" src="http://webmaster.lk/wp-content/uploads/2010/06/design-fetish-nike-carved-crayons-for-world-cup-15.jpg" alt="" width="600" height="534" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://webmaster.lk/nike-world-cup-crayons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Designed Sneaker Collection by Daniel Reese</title>
		<link>http://webmaster.lk/designed-sneaker-collection-by-daniel-reese/</link>
		<comments>http://webmaster.lk/designed-sneaker-collection-by-daniel-reese/#comments</comments>
		<pubDate>Sun, 13 Jun 2010 15:10:42 +0000</pubDate>
		<dc:creator>Irshard OFM</dc:creator>
				<category><![CDATA[Inspirations]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[nike]]></category>
		<category><![CDATA[sneaker. twitter]]></category>

		<guid isPermaLink="false">http://webmaster.lk/?p=335</guid>
		<description><![CDATA[Using regular Nike sneakers, Daniel Reese, sneaker designer, created this fabulous collection. He was inspired by video games, movies, musicians, Google and even Twitter! Designed Sneaker Collection by Daniel Reese]]></description>
			<content:encoded><![CDATA[<p>Using regular Nike sneakers, Daniel Reese, sneaker designer, created  this fabulous collection. He was inspired by video games, movies,  musicians, Google and even Twitter!</p>
<p><a href="http://webmaster.lk/wp-content/uploads/2010/06/1.jpg" rel="lightbox[335]" title="Designed Sneaker Collection by Daniel Reese Twitter"><img class="alignnone size-full wp-image-336" title="Designed Sneaker Collection by Daniel Reese Twitter" src="http://webmaster.lk/wp-content/uploads/2010/06/1.jpg" alt="" width="400" height="255" /></a></p>
<p><a href="http://webmaster.lk/wp-content/uploads/2010/06/2.jpg" rel="lightbox[335]" title="Designed Sneaker Collection by Daniel Reese Get Ready"><img class="alignnone size-full wp-image-337" title="Designed Sneaker Collection by Daniel Reese Get Ready" src="http://webmaster.lk/wp-content/uploads/2010/06/2.jpg" alt="" width="400" height="249" /></a></p>
<p><a href="http://webmaster.lk/wp-content/uploads/2010/06/3.jpg" rel="lightbox[335]" title="Designed Sneaker Collection by Daniel Reese  Man"><img class="alignnone size-full wp-image-338" title="Designed Sneaker Collection by Daniel Reese  Man" src="http://webmaster.lk/wp-content/uploads/2010/06/3.jpg" alt="" width="400" height="253" /></a></p>
<p><a href="http://webmaster.lk/wp-content/uploads/2010/06/4.jpg" rel="lightbox[335]" title="Designed Sneaker Collection by Daniel Reese google"><img class="alignnone size-full wp-image-339" title="Designed Sneaker Collection by Daniel Reese google" src="http://webmaster.lk/wp-content/uploads/2010/06/4.jpg" alt="" width="400" height="252" /></a></p>
<p><a href="http://webmaster.lk/wp-content/uploads/2010/06/5.jpg" rel="lightbox[335]" title="Designed Sneaker Collection by Daniel Reese Men"><img class="alignnone size-full wp-image-340" title="Designed Sneaker Collection by Daniel Reese Men" src="http://webmaster.lk/wp-content/uploads/2010/06/5.jpg" alt="" width="400" height="255" /></a></p>
<p><a href="http://webmaster.lk/wp-content/uploads/2010/06/6.jpg" rel="lightbox[335]" title="Designed Sneaker Collection by Daniel Reese Kill Bill"><img class="alignnone size-full wp-image-341" title="Designed Sneaker Collection by Daniel Reese Kill Bill" src="http://webmaster.lk/wp-content/uploads/2010/06/6.jpg" alt="" width="400" height="251" /></a></p>
<p><a href="http://webmaster.lk/wp-content/uploads/2010/06/7.jpg" rel="lightbox[335]" title="Designed Sneaker Collection by Daniel Reese Bob"><img class="alignnone size-full wp-image-342" title="Designed Sneaker Collection by Daniel Reese Bob" src="http://webmaster.lk/wp-content/uploads/2010/06/7.jpg" alt="" width="400" height="250" /></a></p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 342px; width: 1px; height: 1px; overflow: hidden;">
<h1 class="entry-heading"><a title="Permanent Link: Designed Sneaker Collection by  Daniel Reese" rel="bookmark" href="../designed-sneaker-collection-by-daniel-reese/">Designed Sneaker Collection by Daniel Reese </a></h1>
</div>
]]></content:encoded>
			<wfw:commentRss>http://webmaster.lk/designed-sneaker-collection-by-daniel-reese/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compilation!!!</title>
		<link>http://webmaster.lk/compilation/</link>
		<comments>http://webmaster.lk/compilation/#comments</comments>
		<pubDate>Sun, 13 Jun 2010 07:09:07 +0000</pubDate>
		<dc:creator>Irshard OFM</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://webmaster.lk/?p=331</guid>
		<description><![CDATA[Hi viewers, We started this site with the intention of serving our customers, web developing enthusiasts, internet addicts, etc with our own articles and tutorials. But later, we have decide to compile the famous posts on the web, since the hand made tutorials are time consuming and with the interest of providing the visitors with [...]]]></description>
			<content:encoded><![CDATA[<p>Hi viewers,</p>
<p>We started this site with the intention of serving our customers, web developing enthusiasts, internet addicts, etc with our own articles and tutorials. But later, we have decide to compile the famous posts on the web, since the hand made tutorials are time consuming and with the interest of providing the visitors with a maximum satisfaction regardless of the author or source.</p>
]]></content:encoded>
			<wfw:commentRss>http://webmaster.lk/compilation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

