<?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>Jes.Gs v2.0 &#187; Tutorials</title>
	<atom:link href="http://www.jes.gs/category/tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jes.gs</link>
	<description>The Portfolio and Blog of Minneapolis Web Designer Jessica C. Green</description>
	<lastBuildDate>Sat, 21 Jan 2012 19:56:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Scrapbooking Buttons In Photoshop</title>
		<link>http://www.jes.gs/photoshop/scrapbooking-buttons-in-photoshop/</link>
		<comments>http://www.jes.gs/photoshop/scrapbooking-buttons-in-photoshop/#comments</comments>
		<pubDate>Sat, 26 Jun 2010 05:13:17 +0000</pubDate>
		<dc:creator>Jess G.</dc:creator>
				<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[gel]]></category>
		<category><![CDATA[glassy]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://dumpster-fairy.com/?p=620</guid>
		<description><![CDATA[How to create scrapbooking-style buttons in Photoshop.]]></description>
			<content:encoded><![CDATA[<div id="attachment_625" class="wp-caption alignnone" style="width: 94px"><a href="http://www.jes.gs/wp-content/uploads/2010/06/completed-button.png"><img class="size-full wp-image-625" title="Completed button" src="http://www.jes.gs/wp-content/uploads/2010/06/completed-button.png" alt="Completed button" width="84" height="83" /></a><p class="wp-caption-text">Completed button</p></div>
<h2>1.) The Metal Ring</h2>
<ol>
<li>Start by selecting the Ellipse Tool and draw a circle with a diameter of roughly 65px. Color doesn&#8217;t particularly matter because we&#8217;ll be using Layer Styles to change the appearance.</li>
<li>In <strong>Layer Styles</strong>, we&#8217;ll be using <strong>Drop Shadow, Bevel and Emboss, Satin, Color Overlay</strong> and <strong>Stroke.</strong> Use the following settings for each of the styles:
<div id="attachment_632" class="wp-caption aligncenter" style="width: 343px"><img class="size-full wp-image-632 " title="Drop-Shadow Settings" src="http://www.jes.gs/wp-content/uploads/2010/06/settings-drop-shadow.jpg" alt="Drop Shadow Settings" width="333" height="311" /><p class="wp-caption-text">Drop Shadow Settings</p></div>
<div id="attachment_630" class="wp-caption aligncenter" style="width: 336px"><img class="size-full wp-image-630 " title="Bevel and Emboss Settings" src="http://www.jes.gs/wp-content/uploads/2010/06/settings-bevel-emboss.jpg" alt="Bevel and Emboss Settings" width="326" height="391" /><p class="wp-caption-text">Bevel and Emboss Settings</p></div>
<div id="attachment_631" class="wp-caption aligncenter" style="width: 336px"><img class="size-full wp-image-631 " title="Color Overlay Settings" src="http://www.jes.gs/wp-content/uploads/2010/06/settings-color-overlay.jpg" alt="Color Overlay Settings" width="326" height="99" /><p class="wp-caption-text">Color Overlay Settings</p></div>
<div id="attachment_633" class="wp-caption aligncenter" style="width: 335px"><img class="size-full wp-image-633 " title="Satin Settings" src="http://www.jes.gs/wp-content/uploads/2010/06/settings-satin.jpg" alt="Satin Settings" width="325" height="219" /><p class="wp-caption-text">Satin Settings</p></div>
<p><div id="attachment_634" class="wp-caption aligncenter" style="width: 336px"><img class="size-full wp-image-634 " title="Stroke Settings" src="http://www.jes.gs/wp-content/uploads/2010/06/settings-stroke.jpg" alt="Stroke Settings" width="326" height="277" /><p class="wp-caption-text">Stroke Settings</p></div></li>
<li>Now, you should have something that resembles this:<br />
<img class="alignnone size-full wp-image-628" title="metal-ring-01" src="http://www.jes.gs/wp-content/uploads/2010/06/metal-ring-01.png" alt="" width="99" height="99" /></li>
<li>Make sure that you are on the same layer path, and using the ellipse tool again, create a circle that is 10px smaller than the first one and then center it <em>inside</em> the other circle. While the new path is selected, press the <strong>-</strong> key to subtract from the outer shape area. Now, you should have a ring that looks like this:<br />
<img class="alignnone size-full wp-image-629" title="metal-ring-02" src="http://www.jes.gs/wp-content/uploads/2010/06/metal-ring-02.png" alt="" width="99" height="99" /></li>
</ol>
<h2>2.) The Button</h2>
<ol>
<li>Start a new circle path layer above the one we just created. Make sure that the new path is slightly bigger than the inner circle of the ring without showing on the outside.<br />
<img class="alignnone size-full wp-image-648" title="button-circle" src="http://www.jes.gs/wp-content/uploads/2010/06/button-circle.png" alt="" width="84" height="83" /></li>
<li>Once again, we&#8217;ll use Layer Styles to adjust the appearance:
<div id="attachment_647" class="wp-caption alignnone" style="width: 334px"><img class="size-full wp-image-647" title="Inner Shadow Settings" src="http://www.jes.gs/wp-content/uploads/2010/06/button-inner-shadow.png" alt="Inner Shadow Settings" width="324" height="191" /><p class="wp-caption-text">Inner Shadow Settings</p></div>
<div id="attachment_646" class="wp-caption alignnone" style="width: 334px"><img class="size-full wp-image-646" title="Inner Glow" src="http://www.jes.gs/wp-content/uploads/2010/06/button-inner-glow.png" alt="Inner Glow" width="324" height="252" /><p class="wp-caption-text">Inner Glow</p></div>
<div id="attachment_645" class="wp-caption alignnone" style="width: 333px"><img class="size-full wp-image-645" title="Bevel and Emboss Settings" src="http://www.jes.gs/wp-content/uploads/2010/06/button-bevel-emboss.png" alt="Bevel and Emboss Settings" width="323" height="390" /><p class="wp-caption-text">Bevel and Emboss Settings</p></div>
<p><div id="attachment_644" class="wp-caption alignnone" style="width: 492px"><img class="size-full wp-image-644" title="Bevel and Emboss Contour Settings" src="http://www.jes.gs/wp-content/uploads/2010/06/button-bevel-contour.png" alt="Bevel and Emboss Contour Settings" width="482" height="216" /><p class="wp-caption-text">Bevel and Emboss Contour Settings</p></div></li>
<li>Once you&#8217;re through all of that, your button should now look like this<br />
<img class="alignnone size-full wp-image-650" title="button-02" src="http://www.jes.gs/wp-content/uploads/2010/06/button-02.png" alt="" width="84" height="83" /></li>
</ol>
<h2>3.) The Icon</h2>
<ol>
<li>The icon can be anything you want it to be. If you want, you can do a quick search on Google, Bing or Yahoo for the vector logos of your favorite social networking sites to use. For the example, we&#8217;ll just use the envelop custom shape that comes with Adobe Photoshop CS4.</li>
<li>To add more depth to the shape, place a rectangle of the same size as the envelope custom shape <em>behind</em> the envelope, then apply a Gradient Layer Style to the rectangle and adjust the gradient accordingly.<br />
<img class="alignnone size-full wp-image-652" title="button-03" src="http://www.jes.gs/wp-content/uploads/2010/06/button-03.png" alt="" width="84" height="83" /></li>
</ol>
<h2>4.) Finishing Touches</h2>
<p>Now, we can stop with what we have, or you can continue on and add the reflections. The reflections use a combination of paths and gradient layers.</p>
<div id="attachment_653" class="wp-caption alignnone" style="width: 520px"><img class="size-full wp-image-653" title="Button Closeup" src="http://www.jes.gs/wp-content/uploads/2010/06/button-closeup.png" alt="Button Closeup" width="510" height="501" /><p class="wp-caption-text">Button Closeup</p></div>
<p>Once again, it&#8217;s up to you to decide how the reflections should look. Yes, the buttons can be any color you choose. You can see finished examples <a href="http://ardathksheyna.deviantart.com/#/d2gv3rj">here</a>.</p>
<p>Have fun!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jes.gs/photoshop/scrapbooking-buttons-in-photoshop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress: Using page_css_class</title>
		<link>http://www.jes.gs/php/wordpress-page-css-class/</link>
		<comments>http://www.jes.gs/php/wordpress-page-css-class/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 04:30:58 +0000</pubDate>
		<dc:creator>Jess G.</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Recommended]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Wordpress Resources]]></category>

		<guid isPermaLink="false">http://dumpster-fairy.com/?p=575</guid>
		<description><![CDATA[How to use WordPress hooks to change the pagenav class from page-item-# to page-item-pagename.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m pretty sure that I&#8217;m not the only person who is somewhat annoyed by the way WordPress handles the page-item classes for Page lists. Particularly if you&#8217;re like me and you use WordPress as a CMS. It would be a lot easier to deal with <code>page-item-pagename</code> than <code>page-item-1</code>. For one, <code>page-item-pagename</code> is easier to remember. Well, I bet you didn&#8217;t know that you can change that! Yep, that&#8217;s right. You can, and it&#8217;s all because of a relatively unknown hook that was introduced in WordPress 2.8 called <code>page_css_class</code>, and here is very quick and dirty way of changing the page item classes to match the pagename and <em>not</em> the page ID.</p>
<ol>
<li>Open or create a functions.php file in your theme directory.</li>
<li>Then paste the code below into your functions.php file:</li>
</ol>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'page_css_class'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'custom_page_css_class'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">10</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009933; font-style: italic;">/**
 *	custom_page_css_class()
 *	Hooks into page_css_class and modifies the page item class so that
 *	it uses the name of the page instead of the id.
 *
 *	@global int $id.		The ID of the page being viewed. Needed to set current_page_item.
 *	@param array $class.	The page css class being modified, passed as an array from Walker_Page
 *	@param object $page.	The page object passed from Walker_Page
 *	@return array			Returns the new page css class.
 */</span>
<span style="color: #000000; font-weight: bold;">function</span> custom_page_css_class<span style="color: #009900;">&#40;</span><span style="color: #000088;">$class</span><span style="color: #339933;">,</span> <span style="color: #000088;">$page</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$id</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$page</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$id</span><span style="color: #009900;">&#41;</span>
		<span style="color: #666666; font-style: italic;">/* checks if the page ID matches the current page and if it does,
		    adds the current_page_item class
		*/</span>
		<span style="color: #000088;">$t</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'page_item'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'page-item-'</span><span style="color: #339933;">.</span><span style="color: #000088;">$page</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_name</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'current_page_item'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">else</span>
		<span style="color: #000088;">$t</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'page_item'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'page-item-'</span><span style="color: #339933;">.</span><span style="color: #000088;">$page</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_name</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #b1b100;">return</span> <span style="color: #000088;">$t</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>There you go! Yes, it&#8217;s that easy.</p>
<p>What the example does is it duplicates what&#8217;s happening in the WordPress source code but instead of using $page->ID, it&#8217;s using $page->post_name. It assembles the classes into an array and then returns it to be echo-ed out when the pagenav is generated. Note that $class isn&#8217;t used but it is necessary to have it as one of the parameters because WordPress passes it to the hook by default and we need the $page object in order to make the example work.</p>
<p>Happy coding!</p>
<ul>
<li><a href="http://adambrown.info/p/wp_hooks/hook/page_css_class" rel="external">WordPress hook directory page_css_class</a></li>
<li><a href="http://svn.automattic.com/wordpress/tags/2.9/wp-includes/classes.php" rel="external">WordPress Classes.php Source Reference</a></li>
<li><a href="http://wordpress.org/support/topic/243523" rel="external">WordPress Support: Add Link with Class to Page Menu</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.jes.gs/php/wordpress-page-css-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixing ThickBox in WordPress 2.8</title>
		<link>http://www.jes.gs/htmlcss/how-to-fix-thickbox-in-wordpress-2-8/</link>
		<comments>http://www.jes.gs/htmlcss/how-to-fix-thickbox-in-wordpress-2-8/#comments</comments>
		<pubDate>Sat, 12 Sep 2009 20:45:49 +0000</pubDate>
		<dc:creator>Jess G.</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Recommended]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[fixes]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://dumpster-fairy.com/?p=324</guid>
		<description><![CDATA[How to restore ThickBox functionality in Wordpress 2.8 and higher.]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re using ThickBox then you&#8217;ve probably noticed that ThickBox is technically broken in WordPress 2.8. After trial-and-error, I&#8217;ve tracked down the problems and this is what&#8217;s happening and here is how to fix it.</p>
<p><ins datetime="2010-02-27T05:35:41+00:00" style="font-size:  medium; text-decoration: none; line-height: 1em; "><em><strong>Edit</strong>: February 27th, 2009. Finally had to time to check but the missing ThickBox CSS is still a problem in WordPress 2.9. My guess is that it might not be an actual bug but a feature to accommodate designers creating their own custom ThickBox designs.</em></ins></p>
<h3>WordPress 2.8 requires themes to have <strong>wp_footer()</strong></h3>
<p>WP 2.8 introduced a new option when using wp_enqueue_script() to load JavaScript files. It allows you the option of having the scripts load in the footer, which is why WordPress themes now require wp_footer() to work properly. However, that wasn&#8217;t my problem since I&#8217;d always added wp_head(), wp_meta() and wp_footer() as a matter of course when designing themes. So if the absence or presence of wp_footer() wasn&#8217;t the problem, then what was really going on?</p>
<h3>What&#8217;s with ThickBox anyway?</h3>
<p>Now, for the problem with ThickBox. So we know that it <em>is</em> being loaded, just in the footer. What I <em>have</em> found is that WordPress is <em>not</em> loading all of the files that ThickBox needs to work. jQuery <em>is</em> being loaded, so that can be ruled out. What <em>isn&#8217;t</em> being loaded is the CSS file that ThickBox needs to format its popup window. Also, another part of the problem is the ThickBox.js file itself has the paths to the images it needs set to relative paths.</p>
<h3>How we fix it</h3>
<p>Starting off, if you haven&#8217;t added the code to load ThickBox, go ahead and add <code>wp_enqueue_script( 'jquery' )</code> and <code>wp_enqueue_script( 'thickbox' )</code> to your header. Now what we do is we add <strong>wp_enqueue_style(&#8216;thickbox&#8217;)</strong> to our &lt;head&gt; section. I&#8217;ve seen people asking for wp_enqueue_css and &#8220;lamenting&#8221; the fact there isn&#8217;t such a function but there actually <em>is</em>, it is <strong><a href="http://codex.wordpress.org/Function_Reference/wp_enqueue_style">wp_enqueue_style()</a></strong>. The second part requires adding to an existing functions.php file or creating a functions.php if it doesn&#8217;t exist with your current theme. In your functions.php file, copy and paste this code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'wp_footer'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'load_tb_fix'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> load_tb_fix<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">echo</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: #0000ff;">'&lt;script type=&quot;text/javascript&quot;&gt;tb_pathToImage = &quot;'</span> <span style="color: #339933;">.</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'siteurl'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/wp-includes/js/thickbox/loadingAnimation.gif&quot;;tb_closeImage = &quot;'</span> <span style="color: #339933;">.</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'siteurl'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/wp-includes/js/thickbox/tb-close.png&quot;;&lt;/script&gt;'</span><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></pre></div></div>

<p>This fixes those first few lines of the ThickBox.js file that calls the images that ThickBox uses, and it is inserted in the footer <em>after</em> the call that inserts the reference to ThickBox.js.</p>
<p>So now, ThickBox functionality should be restored. Quick recap:</p>
<ol>
<li>Add the code below to your &lt;head&gt; section:

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
wp_enqueue_script<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'jquery'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
wp_enqueue_style<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'thickbox'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
wp_enqueue_script<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'thickbox'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

</li>
<li>Then add this code to your functions.php file:

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'wp_footer'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'load_tb_fix'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> load_tb_fix<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">echo</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: #0000ff;">'&lt;script type=&quot;text/javascript&quot;&gt;tb_pathToImage = &quot;'</span> <span style="color: #339933;">.</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'siteurl'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/wp-includes/js/thickbox/loadingAnimation.gif&quot;;tb_closeImage = &quot;'</span> <span style="color: #339933;">.</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'siteurl'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/wp-includes/js/thickbox/tb-close.png&quot;;&lt;/script&gt;'</span><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: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

</li>
</ol>
<h3>Conclusion</h3>
<p>Had do some research to figure out what was going on besides just looking at my own source code. The first reference to this issue I found was at this link: <em><a href="http://kovshenin.com/archives/thickbox-and-jquery-in-wordpress-2-8/">ThickBox and jQuery in WordPress 2.8</a></em>, then I figured out how to fix the ThickBox dependency image loading issues by looking at the code for the NextGen Gallery plugin.</p>
<p>Good luck! And enjoy your restored ThickBox functionality <img src='http://www.jes.gs/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.jes.gs/htmlcss/how-to-fix-thickbox-in-wordpress-2-8/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>PHP and XML: A Quick Introduction</title>
		<link>http://www.jes.gs/htmlcss/php-and-xml-a-quick-introduction/</link>
		<comments>http://www.jes.gs/htmlcss/php-and-xml-a-quick-introduction/#comments</comments>
		<pubDate>Fri, 20 Mar 2009 18:00:45 +0000</pubDate>
		<dc:creator>Jess G.</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[web dev]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://dumpster-fairy.com/?p=236</guid>
		<description><![CDATA[A quick and dirty intro to using PHP to manipulate XML.]]></description>
			<content:encoded><![CDATA[<p>A quick and dirty intro to using PHP to manipulate XML. Very useful to know since there are probably situations where MySQL might be unavailable or just impractical and XML can make a great replacement, especially in small/light-weight applications.<br />
<span id="more-236"></span><br />
The first place we start is by looking at PHP&#8217;s <a href="http://us3.php.net/manual/en/book.dom.php">DOM extension</a>; read through the Introduction and Installation/Configuration sections before continuing.<br />
Now we&#8217;ll access the <a href="http://us3.php.net/manual/en/class.domdocument.php">DOMDocument</a> class. Starting out, this will probably be the class that gets used the most but as things progress, you&#8217;ll find yourself making use of the other classes available.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$xmldoc</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> DOMDocument<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// create a new DOMDocument object.</span></pre></div></div>

<p>Yep, it&#8217;s that simple. Now here comes the fun part. This scenario is going to assume that we&#8217;re just creating a new XML object.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$xmldoc</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">formatOutput</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//Nicely formats output with indentation and extra space.</span>
&nbsp;
<span style="color: #000088;">$root</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$xmldoc</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">createElement</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'xml'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//create a root element for your XML output</span>
<span style="color: #000088;">$xmldoc</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">appendChild</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$root</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Now, we're going to create a few child elements to go with it</span>
<span style="color: #000088;">$child1</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$xmldoc</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">createElement</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'child_one'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Child One'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$root</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">appendChild</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$child1</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$child2</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$xmldoc</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">createElement</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'child_two'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Child Two'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$root</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">appendChild</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$child2</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$xmldoc</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">saveXML</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//output to screen...</span></pre></div></div>

<p>Pretty simple and straightforward. Now, if we want to save to a file, we do this:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$xmldoc</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">save</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'my-xml-file.xml'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>If we want to open and write to a file:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$xmldoc</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> DOMDocument<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// create a new DOMDocument object.</span>
<span style="color: #000088;">$xmldoc</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">load</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'my-xml-file.xml'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$xmldoc</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">formatOutput</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$root</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$xmldoc</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">documentElement</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Conviently allows direct access to the root element.</span>
&nbsp;
<span style="color: #000088;">$b</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$xmldoc</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">createElement</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'another_one'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'another child'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$root</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">appendChild</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$b</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$xmldoc</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">save</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'my-xml-file.xml'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Very quick and straightforward. I hope this helps anyone who was wondering how to use XML and PHP together.</p>
<p>For more information see:</p>
<ul>
<li><a href="http://us3.php.net/manual/en/refs.xml.php">PHP Manual: XML Manipulation</a></li>
<li><a href="http://www.kirupa.com/web/index.htm (scroll down for PHP section)">Kirupa.com: PHP and XML</a></li>
<li><a href="http://www.ibm.com/developerworks/library/x-xmlphp1.html">IBM.com: XML for PHP Developers, Part 1 (three-part series)</a></li>
<li><a href="http://www.dynamicdrive.com/forums/showthread.php?t=14165">DynamicDrive Forums: Read and Write XML with PHP</a> (forum-post, this is what got me started)</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.jes.gs/htmlcss/php-and-xml-a-quick-introduction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Poser AO Catcher Tutorial</title>
		<link>http://www.jes.gs/poser/poser-ao-catcher-tutorial/</link>
		<comments>http://www.jes.gs/poser/poser-ao-catcher-tutorial/#comments</comments>
		<pubDate>Tue, 10 Mar 2009 04:26:52 +0000</pubDate>
		<dc:creator>Jess G.</dc:creator>
				<category><![CDATA[Poser]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[3D]]></category>
		<category><![CDATA[ambient occlusion]]></category>
		<category><![CDATA[ao]]></category>
		<category><![CDATA[cg]]></category>
		<category><![CDATA[Motion Graphics]]></category>

		<guid isPermaLink="false">http://dumpster-fairy.com/?p=214</guid>
		<description><![CDATA[Tutorial on creating an ambient occlusion catcher out of a cloth pane in Poser. For Poser 6 and higher.]]></description>
			<content:encoded><![CDATA[<p>Long awaited and much promised. It&#8217;s finally here. The Poser AO Catcher tutorial. Actually, it&#8217;s been out for a few weeks now on my DeviantArt account. I&#8217;m sure that there are a lot of people who don&#8217;t check out the account that do know about this website so I&#8217;m going to post this here for everyone to enjoy. For you to understand this tutorial, you probably should know some of the terminology and abbreviations that I&#8217;ve used throughout the tutorial.<br />
<span id="more-214"></span><br />
<strong>AO</strong> means <a href="http://en.wikipedia.org/wiki/Ambient_occlusion">ambient occlusion</a>.</p>
<p>Below is the tutorial. If you prefer a pdf, you can download that at my DeviantArt account <a href="http://ardathksheyna.deviantart.com/art/Poser-AO-Catcher-Tutorial-113168700">here</a>. Just click on the link that says &#8220;download.&#8221;<br />
<a href="http://www.jes.gs/wp-content/uploads/2009/03/ambient_occlusion_tutorial.jpg"><img class="alignnone size-large wp-image-215" title="Ambient Occlusion Tutorial" src="http://dumpster-fairy.com/wp-content/uploads/2009/03/ambient_occlusion_tutorial-210x1024.jpg" alt="Ambient Occlusion Tutorial" width="210" height="1024" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jes.gs/poser/poser-ao-catcher-tutorial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Calendars II</title>
		<link>http://www.jes.gs/htmlcss/css-calendars-part-two-wordpress-integration/</link>
		<comments>http://www.jes.gs/htmlcss/css-calendars-part-two-wordpress-integration/#comments</comments>
		<pubDate>Tue, 02 Dec 2008 08:28:53 +0000</pubDate>
		<dc:creator>Jess G.</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[web 2.0]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[web dev]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://dumpster-fairy.com/?p=110</guid>
		<description><![CDATA[More tips and tricks for CSS calendar icons, but this time, for Wordpress!]]></description>
			<content:encoded><![CDATA[<p>The last tutorial on CSS Calendar Icons was pretty straightforward but lacked directions for integration with other blogging platforms. Here, I&#8217;m going to use WordPress as an example and I&#8217;ll work with my calendar book-style css icon.<br />
<span id="more-110"></span></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #666666; font-style: italic;">// begin calendar icon code</span>
	<span style="color: #000088;">$year</span> <span style="color: #339933;">=</span> get_the_time<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Y'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">list</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$y1</span><span style="color: #339933;">,</span><span style="color: #000088;">$y2</span><span style="color: #339933;">,</span><span style="color: #000088;">$y3</span><span style="color: #339933;">,</span><span style="color: #000088;">$y4</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_split</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$year</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
	&lt;span class=&quot;cssCalendar book&quot; title=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_time<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'F jS, Y'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;
		&lt;span class=&quot;spine&quot;&gt;&lt;/span&gt;
		&lt;span class=&quot;year&quot;&gt;&lt;span&gt;<span style="color: #000000; font-weight: bold;">&lt;?=</span><span style="color: #000088;">$y1</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/span&gt; &lt;span&gt;<span style="color: #000000; font-weight: bold;">&lt;?=</span><span style="color: #000088;">$y2</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/span&gt; &lt;span&gt;<span style="color: #000000; font-weight: bold;">&lt;?=</span><span style="color: #000088;">$y3</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/span&gt;&lt;span&gt;<span style="color: #000000; font-weight: bold;">&lt;?=</span><span style="color: #000088;">$y4</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/span&gt; &lt;/span&gt;
		&lt;span class=&quot;cssCalInner&quot;&gt;
			&lt;span class=&quot;month&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?</span> the_time<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'M'</span><span style="color: #009900;">&#41;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/span&gt;
			&lt;span class=&quot;date&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?</span> the_time<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'j'</span><span style="color: #009900;">&#41;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/span&gt;
		&lt;/span&gt;
	&lt;/span&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #666666; font-style: italic;">// end calendar icon code ?&gt;</span></pre></div></div>

<p>Here, we&#8217;re using the WordPress function <a href="http://codex.wordpress.org/Template_Tags/get_the_time" rel="external wordpress" title="Wordpress Function: get_the_time()"><strong>get_the_time()</strong></a>, which works like <a href="http://codex.wordpress.org/Template_Tags/the_time" rel="external wordpress" title="Wordpress Function: the_time()"><strong>the_time()</strong></a>&#8212;which means that it uses the same <a href="http://us3.php.net/manual/en/function.date.php">PHP Date and Time formatting characters</a> as <strong>the_time()</strong>. Unlike <strong>the_time()</strong>, <strong>get_the_time()</strong> passes the result to a variable instead of echoing it, which is what we need here. We use <strong>get_the_date(&#8216;Y&#8217;)</strong> to grab just the year-part of the date, then we use <a href="http://us3.php.net/manual/en/function.str-split.php" rel="external php" title="Native PHP Function"><strong>str_split()</strong></a> and <a href="http://us3.php.net/manual/en/function.list.php" rel="external php" title="Native PHP Function"><strong>list()</strong></a> to parse the individual numbers of the year into separate variables.<br />
CSS Code:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/* Default Calendar Styles */</span>
span<span style="color: #6666ff;">.cssCalendar</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> <span style="color: #ff0000;">&quot;Trebuchet MS&quot;</span><span style="color: #00AA00;">,</span> Arial<span style="color: #00AA00;">,</span> Helvetica<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">white</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">center</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
span<span style="color: #6666ff;">.cssCalInner</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
span<span style="color: #6666ff;">.cssCalendar</span> <span style="color: #6666ff;">.day</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">text-transform</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">uppercase</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
span<span style="color: #6666ff;">.cssCalendar</span> <span style="color: #6666ff;">.month</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">text-transform</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">uppercase</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
span<span style="color: #6666ff;">.cssCalendar</span> <span style="color: #6666ff;">.date</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
span<span style="color: #6666ff;">.cssCalendar</span> <span style="color: #6666ff;">.year</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #808080; font-style: italic;">/* Book-Style */</span>
<span style="color: #6666ff;">.book</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">57px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">12px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">normal</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.book</span> <span style="color: #6666ff;">.cssCalInner</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">36px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#ccc</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border-right</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#CCC</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border-top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#CCC</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.book</span> <span style="color: #6666ff;">.spine</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/calendar_book.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #993333;">scroll</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #993333;">center</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">14px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">38px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.book</span> <span style="color: #6666ff;">.year</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">75%</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">purple</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">white</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">38px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">15px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-10px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.book</span> <span style="color: #6666ff;">.year</span> span <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">8px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.book</span> <span style="color: #6666ff;">.month</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">black</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.book</span> <span style="color: #6666ff;">.date</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">120%</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Seems pretty straightforward, right?</p>
<p>Using WordPress? Go to the next page for a WordPress add-on to use in your own WordPress themes.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jes.gs/htmlcss/css-calendars-part-two-wordpress-integration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Calendars</title>
		<link>http://www.jes.gs/htmlcss/css-calendars/</link>
		<comments>http://www.jes.gs/htmlcss/css-calendars/#comments</comments>
		<pubDate>Sat, 29 Nov 2008 07:28:25 +0000</pubDate>
		<dc:creator>Jess G.</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[web 2.0]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[web dev]]></category>

		<guid isPermaLink="false">http://dumpster-fairy.com/?p=98</guid>
		<description><![CDATA[How to create those little CSS calendar icons you've been seeing everywhere.]]></description>
			<content:encoded><![CDATA[<p>About sometime last fall, I came across a <a href="http://brainstormsandraves.com/archives/2007/02/22/csscalendar/">tutorial</a> on how to create those little CSS calendar icons that are practically everywhere now. The method I found uses a background image and while that&#8217;s fine, I guess I prefer something that doesn&#8217;t require an image to bring off the design. This last layout that I&#8217;ve been working on for Dumpster-fairy.com makes use of those CSS icons, and to give credit where credit is due, I was very much influenced by the icons used at <a href="http://www.last.fm/">Last.fm</a> for the events calender list. I came up with my own workable solution and I&#8217;ll walk you through my methods in this post.<span id="more-98"></span></p>
<p>Since I was going to be using a calendar icon in different places on my website, I obviously would want the icon to appear slightly different in each place; for instance, I use a larger calendar icon as part of the header for my blog posts, and a smaller event-like calendar for the side-bar. So, I start off specifying a series of <em>default </em>styles:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/* Default Calendar Styles */</span>
span<span style="color: #6666ff;">.cssCalendar</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> <span style="color: #ff0000;">&quot;Trebuchet MS&quot;</span><span style="color: #00AA00;">,</span> Arial<span style="color: #00AA00;">,</span> Helvetica<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">white</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">center</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
span<span style="color: #6666ff;">.cssCalInner</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
span<span style="color: #6666ff;">.cssCalendar</span> <span style="color: #6666ff;">.day</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">text-transform</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">uppercase</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
span<span style="color: #6666ff;">.cssCalendar</span> <span style="color: #6666ff;">.month</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">text-transform</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">uppercase</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
span<span style="color: #6666ff;">.cssCalendar</span> <span style="color: #6666ff;">.date</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
span<span style="color: #6666ff;">.cssCalendar</span> <span style="color: #6666ff;">.year</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>HTML Code:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">span</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;cssCalendar&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Friday November 28th, 2008&quot;</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">span</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;day&quot;</span>&gt;</span>Fri<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">span</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;cssCalInner&quot;</span>&gt;</span>
    	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">span</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;date&quot;</span>&gt;</span>28<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">span</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;month&quot;</span>&gt;</span>Nov<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">span</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;year&quot;</span>&gt;</span>2008<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;</span></pre></div></div>

<p>This is what you should have:<br />
<img class="size-full wp-image-100 alignnone" title="Yes, this is an image" src="http://www.jes.gs/wp-content/uploads/2008/11/example_text_01.png" alt="" width="52" height="84" /><br />
I&#8217;ve tested the base styles in Firefox 3, IE 7, Safari and Opera 9.5 and it appears pretty much the same across the board. But it&#8217;s a little boring, don&#8217;t you think? So we move on to adding some additional styles:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/* Medium Size */</span>
.<span style="color: #993333;">medium</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">52px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">18px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
.<span style="color: #993333;">medium</span> <span style="color: #6666ff;">.cssCalInner</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">border-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#ccc</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#ccc</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border-right</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#ccc</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
.<span style="color: #993333;">medium</span> <span style="color: #6666ff;">.day</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">white</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">red</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
.<span style="color: #993333;">medium</span> <span style="color: #6666ff;">.date</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">120%</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
.<span style="color: #993333;">medium</span> <span style="color: #6666ff;">.month</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">75%</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">normal</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
.<span style="color: #993333;">medium</span> <span style="color: #6666ff;">.year</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">50%</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">normal</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>So this is what we do now. Our HTML fragment above? Change the first line to this:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">span</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;cssCalendar medium&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Friday November 28th, 2008&quot;</span>&gt;</span></pre></div></div>

<p>Didn&#8217;t know you could have more than one class for an html tag? Well, now you do. Your calendar—browser depending, of course—should look like this:<br />
 <img class="alignnone size-full wp-image-101" title="example_text_02" src="http://www.jes.gs/wp-content/uploads/2008/11/example_text_02.png" alt="" width="52" height="84" /></p>
<p>We could leave this tutorial here or, we can go on. You can check out the Last.fm-style calendar icons on the next page.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jes.gs/htmlcss/css-calendars/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a Photoshop Palette</title>
		<link>http://www.jes.gs/general/creating-a-photoshop-palette/</link>
		<comments>http://www.jes.gs/general/creating-a-photoshop-palette/#comments</comments>
		<pubDate>Mon, 10 Nov 2008 21:53:59 +0000</pubDate>
		<dc:creator>Jess G.</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[inspiration]]></category>
		<category><![CDATA[palette]]></category>

		<guid isPermaLink="false">http://dumpster-fairy.com/?p=50</guid>
		<description><![CDATA[How to make a palette in Photoshop using the Gradient Tool and the Mosaic filter.]]></description>
			<content:encoded><![CDATA[<p>One of the things I&#8217;ve had a hard time with when starting a design (new site, poster, etc) is figuring out the colors. Trying to find a combination of colors that triggers inspiration. Well, I worked out a rather simple means of creating a color palette using Photoshop.<span id="more-50"></span></p>
<ol>
<li>We start with a new Photoshop document by press Ctrl+N (or Mac equivalent) and changing the document width to <strong>100 pixels</strong> and the height to <strong>20 pixels</strong>.</li>
<li>Select the Gradient Tool <strong>(G)</strong>, then click on the <strong>Gradient Editor </strong>to select or create a new gradient.<img class="alignnone size-full wp-image-51" title="Gradient Editor Step 2" src="http://www.jes.gs/wp-content/uploads/2008/11/gradient_editor_step-02.jpg" alt="Gradient Editor #1" width="436" height="119" /><br />
<a href="http://www.jes.gs/wp-content/uploads/2008/11/gradient_editor_step-03.jpg"><img class="alignnone size-thumbnail wp-image-52" title="gradient_editor_step-03" src="http://dumpster-fairy.com/wp-content/uploads/2008/11/gradient_editor_step-03-150x150.jpg" alt="Gradient Editor #2" width="150" height="150" /></a></li>
<li>Click and drag the Gradient Tool the entire length of the document. You should have something similar to the following image:<br />
<img class="size-full wp-image-54 alignnone" title="gradient_editor_step-03a" src="http://www.jes.gs/wp-content/uploads/2008/11/gradient_editor_step-03a.jpg" alt="" width="344" height="243" /></li>
<li>Select Mosaic from the Filter menu:<br />
<img class="alignnone size-full wp-image-55" title="palette_tutorial_step-04" src="http://www.jes.gs/wp-content/uploads/2008/11/palette_tutorial_step-04.jpg" alt="" width="500" height="421" /><br />
then set <strong>Cell Size</strong> to <strong>10 pixels</strong> and click <strong>OK</strong>.<br />
<img class="alignnone size-full wp-image-56" title="palette_tutorial_step-04a" src="http://www.jes.gs/wp-content/uploads/2008/11/palette_tutorial_step-04a.jpg" alt="" width="323" height="328" /></li>
</ol>
<p>And that&#8217;s it! You&#8217;re finished. You should have an image that looks like this: <img class="alignnone size-full wp-image-57" title="palette_tutorial_final" src="http://www.jes.gs/wp-content/uploads/2008/11/palette_tutorial_final.jpg" alt="" width="100" height="20" /></p>
<p>You can use the Eyedropper Tool to select your colors or you can repeat the steps, except make your document longer and thinner to create a horizontal bar.</p>
<p>Follow this [<a href="http://ardathksheyna.deviantart.com/art/Photoshop-Palettes-Tutorial-103161196">link</a>] to download this tutorial in PDF format.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jes.gs/general/creating-a-photoshop-palette/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Metal/Wood Grain Tutorial</title>
		<link>http://www.jes.gs/photoshop/metalwood-grain-tutorial/</link>
		<comments>http://www.jes.gs/photoshop/metalwood-grain-tutorial/#comments</comments>
		<pubDate>Fri, 15 Aug 2008 00:07:36 +0000</pubDate>
		<dc:creator>Jess G.</dc:creator>
				<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[textures]]></category>

		<guid isPermaLink="false">http://dumpster-fairy.com/?p=41</guid>
		<description><![CDATA[How to create a stainless steel/wood-grain effect in Photoshop]]></description>
			<content:encoded><![CDATA[<p>This tutorial covers how to create a stainless steel or a wood grain texture in Photoshop. Shortcut keys will be listed <strong>bolded</strong>, in parentheses.<span id="more-41"></span></p>
<ol>
<li>Create a new document: <strong>File &gt; New&#8230;</strong> Any size document will do, as long as its bigger than 400&#215;400.</li>
<li>Set the foreground color using these values (r:128 g:127 b:132). Using the Paint Bucket tool <strong>(G)</strong>, fill the entire document.</li>
<li>Select the Shapes tool(s), <strong>(U)</strong> or <strong>(Shift+U)</strong>, depending on if you want to use a regular shape, or a custom shape. Make sure that the Paths option is selected (in the Shapes tool bar). Now click+drag to create your shape.</li>
<li>Select the Path Selection tool <strong>(A)</strong>, right+click on your path and choose <strong>make selection</strong>. Leave all the default options the way they are, ie: feather radius = 0, anti-alias (checked), and click OK.</li>
<li>Press <strong>(M)</strong> or <strong>(Shift+M)</strong> for the Rectangular Marquee tool.</li>
<li>Go to <strong>Filter &gt; Noise &gt; Add Noise&#8230;</strong> and use these settings: <strong>Amount = 25%</strong>, <strong>Distribution = Gaussian</strong>, <strong>Monochromatic (checked)</strong>. Click OK.</li>
<li>Now, go to <strong>Filter &gt; Blur &gt; Motion Blur&#8230;</strong> use these settings: <strong>Angle = 0°</strong>, <strong>Distance = 21</strong>. Click OK.</li>
<li>Rectangular Marquee tool should still be selected; if not, press <strong>(M)</strong> again. Right-click anywhere around the selection or inside of it, and select <strong>Select Inverse</strong>.  Now press <strong>(delete)</strong>, to clear the selection.</li>
<li>Now click <strong>outside</strong> the selection to clear it. Now, go to <strong>Layer &gt; Layer Style &gt; Bevel and Emboss</strong> (or use the Fx shortcut on the Layers palette). Play around till you find something you like =)</li>
</ol>
<p>To create just a simple, tileable texture:</p>
<ul>
<li>On step 1, use a size that is easily tileable (something less than 256&#215;256). Flatten the image after step 2 (only if the image isn&#8217;t already flat).</li>
<li>Skip steps 3 thru 5, 8 and 9.</li>
<li>After step 7, go to <strong>Filter &gt; Other &gt; Offset</strong>, and set your horizontal offset to <strong>half</strong> of your document width. Do the same for the vertical offset (half of document height) just to check it; this is usually fine. Make sure that <strong>Wrap Around</strong> is selected in <strong>Undefined Areas</strong>. Click OK. You&#8217;ll have a seam down the middle of the document.</li>
<li>Now, go to <strong>Image &gt; Canvas Size&#8230;</strong>, and change the Canvas extension color to match the color fill of the document. Making that the anchor is set to the middle, change the document height to 300 and click OK.</li>
<li>Using the Rectangular Marquee tool, make a narrow (not more than 100 pixels) selection around the entire length of the seam in the middle of the document. Right-click and select <strong>Feather&#8230;</strong> Change the value to somewhere between 12 and 25 pixels. Click OK.</li>
<li>Go to <strong>Filter &gt; Blur &gt; Motion Blur&#8230;</strong> and use the same settings for step 7. Click OK. Use <strong>Canvas Size&#8230;</strong> again but set height back to 256.</li>
<li>Go to <strong>Filter &gt; Other &gt; Offset</strong>, to test your tile.</li>
</ul>
<p>Now, you should be finished!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jes.gs/photoshop/metalwood-grain-tutorial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dreamy Photo Tutorial</title>
		<link>http://www.jes.gs/photoshop/dreamy-photo-tutorial/</link>
		<comments>http://www.jes.gs/photoshop/dreamy-photo-tutorial/#comments</comments>
		<pubDate>Sat, 09 Aug 2008 04:08:16 +0000</pubDate>
		<dc:creator>Jess G.</dc:creator>
				<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[GIMP]]></category>
		<category><![CDATA[Paint Shop Pro]]></category>

		<guid isPermaLink="false">http://dumpster-fairy.com/?p=30</guid>
		<description><![CDATA[How to create a "dreamy" effect using only Photoshop's native plug-ins.]]></description>
			<content:encoded><![CDATA[<p>Needed: Photoshop (any version), GIMP or Paint Shop Pro<br />
Time: 10 minutes (if that).</p>
<p>note: the instructions in this tutorial are aimed primarily at Photoshop users but can be utilized in any image editing program that supports layers and blending modes. The reason that this tutorial came about is once upon a time, I had a set of plug-ins that I&#8217;d paid for that did exactly what I&#8217;m going to cover in this tutorial. Well, I lost the disk and didn&#8217;t really feel like paying for them again, so I came up with my own way of creating a &#8220;dreamy&#8221; effect in Photoshop using just the plug-ins that come with Photoshop.<span id="more-30"></span></p>
<ol>
<li>Start by opening your document in Photoshop. You&#8217;ll have one layer that is labeled &#8220;Background&#8221; in italics. Click and drag that layer over the <strong>Create New Layer </strong>icon, or go to <strong>Layer &gt; Duplicate Layer&#8230;</strong> and click <strong>OK</strong>.</li>
<li>You should have a second layer called &#8220;Background copy&#8221;. Now, press <strong>Shift+Ctrl+U</strong> (Windows) to desaturate that layer.</li>
<li>Click on the Blending Mode drop-down at the top of the Layers panel, and select &#8220;Overlay.&#8221; So far so good. You&#8217;re almost done.</li>
<li>Making sure that your &#8220;Background copy&#8221; layer is selected, go to <strong>Filters &gt; Blur &gt; Gaussian Blur</strong>. Now play around with the blur level till you have something that looks nice. I usually go for a blur value of <strong>10</strong>.</li>
<li>Click OK, and now you&#8217;re done.</li>
</ol>
<p><a href="http://www.jes.gs/wp-content/uploads/2008/08/dreamy_photo_ex-01.jpg"><img class="aligncenter size-medium wp-image-31" title="Dreamy Photo Example1" src="http://dumpster-fairy.com/wp-content/uploads/2008/08/dreamy_photo_ex-01-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p>To make things easier, I&#8217;ve created a set of actions for Photoshop.</p>
<p>Download Zip 8Kb: <a href="http://www.jes.gs/wp-content/uploads/2008/08/dreamyphotoactions.zip">Dreamy Photo actions</a><br />
<a href="http://creativecommons.org/licenses/GPL/2.0/"><br />
<img style="border: medium none; width: 88px; height: 62px;" src="http://www.jes.gs/wp-content/uploads/2008/08/cc-gpl-a.png" alt="CC-GNU GPL" /></a></p>
<p>This software is licensed under the <a href="http://creativecommons.org/licenses/GPL/2.0/">CC-GNU GPL</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jes.gs/photoshop/dreamy-photo-tutorial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

