<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Stiern.com</title><link>http://stiern.com</link><description>Web design, graphic design, Photoshop, CSS, etc</description><language>en</language><lastBuildDate>Mon, 09 Nov 2009 02:46:07 PST</lastBuildDate><generator>http://wordpress.org/?v=2.8.5</generator><sy:updatePeriod xmlns:sy="http://purl.org/rss/1.0/modules/syndication/">hourly</sy:updatePeriod><sy:updateFrequency xmlns:sy="http://purl.org/rss/1.0/modules/syndication/">1</sy:updateFrequency><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/stiern" type="application/rss+xml" /><feedburner:emailServiceId>stiern</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item><title>How to Use Directions with Google Maps API V3</title><link>http://feedproxy.google.com/~r/stiern/~3/jUXLyKfpw4Y/how-to-use-directions-with-google-maps-api-v3</link><category>Tutorials</category><category>Google Maps</category><category>Web Design</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Peter</dc:creator><pubDate>Mon, 09 Nov 2009 00:20:59 PST</pubDate><guid isPermaLink="false">http://stiern.com/?p=801</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>Google Maps are more fun when you can get directions. And now you can! The recent release of the Google Maps API adds two new classes in order to enable directions. In this article I will show you how to add an input field in an infobox and use that to render a route.</p>
<p><span id="more-801"></span></p>
<p>But before that, here&#8217;s how it looks when it is done:</p>
<div class="iframe-wrapper">
  <iframe src="http://dl.getdropbox.com/u/32709/googlemaps_dir/index.html" frameborder="0" style="height:300px;width:500px;">Please upgrade your browser</iframe>
</div>
<p>Because of the size at the page here the infobox gets a scroll bar, but just ensure to make your map large enough, then it will not happen.</p>
<h3>Overview</h3>
<ul>
<li><a href="#whatsnew">What&#8217;s New?</a></li>
<li><a href="#corrections">Corrections</code></li>
<li><a href="#directions">The Directions</a></li>
<li><a href="#calcRoute">Calculating the Route</a></li>
<li><a href="#conclusion">Conclusion</code></li>
</ul>
<h3><a id="whatsnew">What's New?</a></h3>
<p>Since my <a href="http://stiern.com/tutorials/adding-custom-google-maps-to-your-website" title="Adding Custom Google Maps to Your Website">last article</a> a couple of new features have been added to the API, as you can also read about in the <a href="http://code.google.com/p/gmaps-api-issues/wiki/JavascriptMapsAPIv3Changelog" title="Google Maps API V3 changelog">changelog</a>. The most important, in my opinion, is of course the support of directions, and that's the only function I will discuss here. Worthy to note, though &mdash; you do not have to use an API code anymore.</p>
<p>The support for directions is possible via two new classes, <code>DirectionsRenderer</code> and <code>DirectionsService</code>. <code>DirectionsRenderer</code>&hellip; Well&hellip; Renders the directions, and <code>DirectionsService</code> computes the actual directions. But the big question is &mdash; how do we use them?</p>
<h3><a id="corrections">Corrections</a></h3>
<p>Before we rush into the new code, we should make some corrections in our excisting code. If you haven't read my article <a href="http://stiern.com/tutorials/adding-custom-google-maps-to-your-website" title="Adding Custom Google Maps to Your Website">Adding Custom Google Maps to Your Website</a>, do yourself a favor and do so before continuing on this one.</p>
<p><br />
&nbsp;</p>
<p>Next, look in your code where you define your markers and ensure that your values follow these rules:</p>

<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="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> companyImage <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">MarkerImage</span><span style="color: #009900;">&#40;</span>’images<span style="color: #339933;">/</span>logo.<span style="color: #660066;">png</span>’<span style="color: #339933;">,</span>
<span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">Size</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">100</span><span style="color: #339933;">,</span><span style="color: #CC0000;">50</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">// (width, height)</span>
 <span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">Point</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #339933;">,</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
 <span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">Point</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">50</span><span style="color: #339933;">,</span><span style="color: #CC0000;">50</span><span style="color: #009900;">&#41;</span> <span style="color: #006600; font-style: italic;">// (width/2, height) );</span>
<span style="color: #003366; font-weight: bold;">var</span> companyShadow <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">MarkerImage</span><span style="color: #009900;">&#40;</span>’images<span style="color: #339933;">/</span>logo_shadow.<span style="color: #660066;">png</span>’<span style="color: #339933;">,</span>
 <span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">Size</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">130</span><span style="color: #339933;">,</span><span style="color: #CC0000;">50</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">// (width, height) </span>
<span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">Point</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #339933;">,</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> 
<span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">Point</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">65</span><span style="color: #339933;">,</span><span style="color: #CC0000;">50</span><span style="color: #009900;">&#41;</span> <span style="color: #006600; font-style: italic;">// (width/2, height) );</span></pre></td></tr></table></div>

<p>Dividing the image's width by 2 ensures that it's the bottom center point of the image that'll be used for the marker. Thanks to <a href="http://stiern.com/tutorials/adding-custom-google-maps-to-your-website/comment-page-2#comment-2663" title="JM">JM</a> for this solution.</p>
<h3><a id="directions">The Directions</a></h3>
<p>So, first we have to call the <code>DirectionsService</code> constructor. Before your <code>initialize()</code>, create a new variable:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> directionsService <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">DirectionsService</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Next, we have to create the renderer. Right before the variable you just created, define a new variable <code>directionDisplay</code>. This variable is going to contain the renderer.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> directionDisplay<span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>In your <code>initialize()</code> function, right after the <code>latLng</code> variable, set the <code>directionDisplay</code> variable to this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">directionsDisplay <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">DirectionsRenderer</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Further down in your code, find the <code>map</code> variable (right after the <code>settings</code> variable. Write this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">directionsDisplay.<span style="color: #660066;">setMap</span><span style="color: #009900;">&#40;</span>map<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>This renders the marker on the specified map, which in this case is <code>map</code>. Next, let's define what we want to write in our infobox by expanding the <code>contentString</code> variable:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">	<span style="color: #003366; font-weight: bold;">var</span> contentString <span style="color: #339933;">=</span> <span style="color: #3366CC;">'&lt;div id=&quot;content&quot;&gt;'</span><span style="color: #339933;">+</span>
	<span style="color: #3366CC;">'&lt;div id=&quot;siteNotice&quot;&gt;'</span><span style="color: #339933;">+</span>
	<span style="color: #3366CC;">'&lt;/div&gt;'</span><span style="color: #339933;">+</span>
	<span style="color: #3366CC;">'&lt;h1 id=&quot;firstHeading&quot; class=&quot;firstHeading&quot;&gt;Høgenhaug&lt;/h1&gt;'</span><span style="color: #339933;">+</span>
	<span style="color: #3366CC;">'&lt;div id=&quot;bodyContent&quot;&gt;'</span><span style="color: #339933;">+</span>
	<span style="color: #3366CC;">'&lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.&lt;/p&gt;'</span><span style="color: #339933;">+</span>
	<span style="color: #3366CC;">'&lt;p&gt;Find your way here from:&lt;/p&gt;'</span><span style="color: #339933;">+</span>
	<span style="color: #3366CC;">'&lt;form action=&quot;index.html&quot; onsubmit=&quot;calcRoute();return false;&quot;&gt;'</span><span style="color: #339933;">+</span>
	<span style="color: #3366CC;">'&lt;input type=&quot;text&quot; id=&quot;start&quot; value=&quot;prinsensgade 5, 9000&quot;&gt;'</span><span style="color: #339933;">+</span>
	<span style="color: #3366CC;">'&lt;input type=&quot;submit&quot; value=&quot;Find directions&quot;&gt;&lt;/form&gt;'</span><span style="color: #339933;">+</span>
	<span style="color: #3366CC;">'&lt;/div&gt;'</span><span style="color: #339933;">+</span>
	<span style="color: #3366CC;">'&lt;/div&gt;'</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Let's look a bit into the <code>form</code> used to ask the user for an address:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">	<span style="color: #3366CC;">'&lt;form action=&quot;index.html&quot; onsubmit=&quot;calcRoute();return false;&quot;&gt;'</span><span style="color: #339933;">+</span>
	<span style="color: #3366CC;">'&lt;input type=&quot;text&quot; id=&quot;start&quot; value=&quot;prinsensgade 5, 9000&quot;&gt;'</span><span style="color: #339933;">+</span>
	<span style="color: #3366CC;">'&lt;input type=&quot;submit&quot; value=&quot;Find directions&quot;&gt;&lt;/form&gt;'</span><span style="color: #339933;">+</span></pre></td></tr></table></div>

<p>First, we write "index.html" in our <code>action</code> attribute. This path should be to the file where your map is placed. In <code>onsubmit</code> we call the function <code>calcRoute()</code> (which we will define later), and next we write <code>return false</code> to prevent the site from reloading when the user submits the form. The next two lines should be pretty self-explainable. If you want the user to be able to enter both addresses, you can just add an extra input field called <code>end</code>. The value of the <code>start</code> field can be empty or you can write a pre-defined address.</p>
<h3><a id="calcRoute">Calculating the Route</a></h3>
<p>At the very end of the <code>initialize()</code> function, write the following:</p>
<pre lang="javascript" line="1>
function calcRoute() {
	var start = document.getElementById("start").value;
	var end = "57.0442, 9.9116";
	var request = {
		origin:start,
		destination:end,
		travelMode: google.maps.DirectionsTravelMode.DRIVING
	};
</pre>
<p>In the <code>form</code> we called the function <code>calcRoute()</code>. That's the one we are defining here. The first thing to do is define the two variables <code>start</code> and <code>end</code>. If you inserted an extra input field before write <code>document.getElementById("end").value;</code> in <code>end</code> instead of the coordinates.</p>
<p>Next, define the variable <code>request</code>. The attributes of this one are fairly logical, but let's explain them just in case. We define the <code>origin</code> of the route to our variable <code>start</code>, and the destination to <code>end</code>. Also, we define a travelmode &mdash;. This can be either <code>DRIVING</code> or <code>WALKING</code>.</p>
<p>Lastly, insert this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">directionsService.<span style="color: #660066;">route</span><span style="color: #009900;">&#40;</span>request<span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>response<span style="color: #339933;">,</span> <span style="color: #000066;">status</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000066;">status</span> <span style="color: #339933;">==</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">DirectionsStatus</span>.<span style="color: #660066;">OK</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		directionsDisplay.<span style="color: #660066;">setDirections</span><span style="color: #009900;">&#40;</span>response<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>This issues the actual search request, and completes the <code>initialize()</code> function.</p>
<h3><a id="conclusion">Conclusion</a></h3>
<p>With very little effort you can show your visitor how to get to your address directly from your website, instead of sending them to Google Maps or some other place. I hope you enjoyed the tutorial &mdash; please let me know if you have questions or suggestions. You are of course free to download the <a href="http://dl.dropbox.com/u/32709/googlemaps_dir/googlemaps_directions.zip" title="The source files">source files</a>.</p>
<p>While you are here, why don't you <a href="http://twitter.com/pshoeg" title="Follow me on Twitter">follow me on Twitter</a> or subscribe to the <a href="http://feeds.feedburner.com/stiern" title="Subscribe to the RSS feed">RSS feed</a>?</p>

<p><a href="http://feedads.g.doubleclick.net/~a/uRGrtUNI-5kXL2iowLY1lMwpiZI/0/da"><img src="http://feedads.g.doubleclick.net/~a/uRGrtUNI-5kXL2iowLY1lMwpiZI/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/uRGrtUNI-5kXL2iowLY1lMwpiZI/1/da"><img src="http://feedads.g.doubleclick.net/~a/uRGrtUNI-5kXL2iowLY1lMwpiZI/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/stiern/~4/jUXLyKfpw4Y" height="1" width="1"/>]]></content:encoded><description>Google Maps are more fun when you can get directions. And now you can! The recent release of the Google Maps API adds two new classes in order to enable directions. In this article I will show you how to add an input field in an infobox and use that to render a route.

But before [...]</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://stiern.com/tutorials/how-to-use-directions-with-google-maps-api-v3/feed</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">0</slash:comments><feedburner:origLink>http://stiern.com/tutorials/how-to-use-directions-with-google-maps-api-v3</feedburner:origLink></item><item><title>5 Ways to Make Money with Your Blog</title><link>http://feedproxy.google.com/~r/stiern/~3/_P13-CFerXc/5-ways-to-make-money-with-your-blog</link><category>Articles</category><category>Amazon</category><category>Blogging</category><category>BuySellAds</category><category>Donation</category><category>Google AdSense</category><category>Money</category><category>Tradedoubler</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Peter</dc:creator><pubDate>Sun, 01 Nov 2009 13:45:02 PST</pubDate><guid isPermaLink="false">http://stiern.com/?p=815</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>Maintaining a blog can be quite a job. Writing new, interesting articles and providing resources for your visitors can be a hassle, even though you enjoy every part of it. I am sure you&#8217;d like to earn a little something after your effort. This post looks into some easy ways to start monetizing your blog.<br />
<span id="more-815"></span></p>
<h3>BuySellAds</h3>
<p><a class="lightbox postimg" title="BuySellAds" href="http://stiern.com/site/wp-content/everything/bsa.png"><img class="size-full wp-image-823" title="BuySellAds" src="http://stiern.com/site/wp-content/everything/bsa.png" alt="BuySellAds" width="500" height="150" /></a></p>
<p>BuySellAds is a very popular ad network that helps advertisers and publishers communicate. They have some very simple rules to follow to ensure the quality of the sites the ads are placed. First of all, the service evolves around design and tech sites with more than 100.000 impressions per month, which narrows it down a bit. Also, your website has to be in English. Many popular websites, such as the <a title="Tuts+" href="http://tutsplus.com/">Tuts+ Network</a>, use this network.<br />
<a title="BuySellAds" href="http://buysellads.com/">Visit BuySellAds</a></p>
<h3>Google AdSense</h3>
<p><a class="lightbox postimg" title="AdSense" href="http://stiern.com/site/wp-content/everything/adsense.png"><img class="size-full wp-image-826" title="AdSense" src="http://stiern.com/site/wp-content/everything/adsense.png" alt="AdSense" width="500" height="150" /></a></p>
<p>Google AdSense is by far the most popular ad network in the world. It is very easy to setup &amp;emdash; in less than 5 minutes, you will have working ads on your website. It takes a lot of visitors to make real money out of this, but it is definitely possible. You can use AdSense both to place ads on your website, in your e-mail newsletters, in your search results, and in your feeds.<br />
<a title="Google AdSense" href="https://www.google.com/adsense/">Visit Google AdSense</a></p>
<h3>TradeDoubler</h3>
<p><a class="lightbox postimg" title="Tradedoubler" href="http://stiern.com/site/wp-content/everything/tradedoubler.png"><img class="size-full wp-image-827" title="Tradedoubler" src="http://stiern.com/site/wp-content/everything/tradedoubler.png" alt="Tradedoubler" width="500" height="150" /></a></p>
<p>TradeDoubler was founded in Sweden in 1999, and since then, it has grown to a very large marketing company. When you sign up, you will have to get your website accepted, and when you want to place ads, the companies will also have to accept your site as relevant for their products. Even though this might seem like a huge process, it can be well worth it. Some large companies, such as Apple and Dell, sell their ads here.<br />
<a title="TradeDoubler" href="http://www.tradedoubler.com/">Visit TradeDoubler</a></p>
<h3>Amazon</h3>
<p><a class="lightbox postimg" title="Amazon" href="http://stiern.com/site/wp-content/everything/amazon.png"><img class="size-full wp-image-833" title="Amazon" src="http://stiern.com/site/wp-content/everything/amazon.png" alt="Amazon" width="500" height="150" /></a></p>
<p>Amazon.com Associates puts Amazon products on your website, and allows you to make money from it. When people buy after following a link from your blog, you will get up to 15 %.<br />
<a title="Amazon.com Associates" href="https://affiliate-program.amazon.com/">Visit Amazon.com Associates</a></p>
<h3>Donations</h3>
<p><a class="lightbox postimg" title="PayPal" href="http://stiern.com/site/wp-content/everything/paypal.png"><img class="size-full wp-image-835" title="PayPal" src="http://stiern.com/site/wp-content/everything/paypal.png" alt="PayPal" width="500" height="150" /></a></p>
<p>If you&#8217;d like you can also ask your users for donation. That can be a great idea if you give away lots of free stuff. Most people won&#8217;t give you anything, but others will gladly spare a dime to help you out. For this purpose, you can use for instance <a title="PayPal" href="https://www.paypal.com/">PayPal</a>. Instead of money, you can also ask for <a href="http://www.blogclout.com/blog/goodies/buy-me-a-beer-paypal-donation-plugin/" class="broken_link" >a beer</a>.</p>
<p>I hope this article has given you a short glimpse into some different methods of earning money with your blog. Which services do you use, if any? Please share in the comments.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/gpkgnjOlR5EDBV29f3SxjdHKQJ0/0/da"><img src="http://feedads.g.doubleclick.net/~a/gpkgnjOlR5EDBV29f3SxjdHKQJ0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/gpkgnjOlR5EDBV29f3SxjdHKQJ0/1/da"><img src="http://feedads.g.doubleclick.net/~a/gpkgnjOlR5EDBV29f3SxjdHKQJ0/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/stiern/~4/_P13-CFerXc" height="1" width="1"/>]]></content:encoded><description>Maintaining a blog can be quite a job. Writing new, interesting articles and providing resources for your visitors can be a hassle, even though you enjoy every part of it. I am sure you&amp;#8217;d like to earn a little something after your effort. This post looks into some easy ways to start monetizing your blog.

BuySellAds

BuySellAds [...]</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://stiern.com/articles/5-ways-to-make-money-with-your-blog/feed</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">3</slash:comments><feedburner:origLink>http://stiern.com/articles/5-ways-to-make-money-with-your-blog</feedburner:origLink></item><item><title>250+ Sweet Icons for Your External Media</title><link>http://feedproxy.google.com/~r/stiern/~3/q590ZP0DavE/250-sweet-icons-for-your-external-media</link><category>Downloads</category><category>Freebie</category><category>Icon</category><category>Mac</category><category>Windows</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Peter</dc:creator><pubDate>Sat, 24 Oct 2009 07:54:48 PDT</pubDate><guid isPermaLink="false">http://stiern.com/?p=734</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>Whether you&#8217;re a Mac or a Windows user, the system icons for external media such as cameras, memory cards, and external harddrives, can be pretty boring. Luckily, the world is filled with skilled (what a rhyme!) icon designers that create stunning icons for you to download for free. I&#8217;ve tried to collect some of the icons I find beatiful. Enjoy!<br />
<span id="more-734"></span></p>
<p><a class="postimg" href="http://mugenb16.deviantart.com/art/Massive-Media-Icons-Win-48654751"><img class="size-full wp-image-758 alignnone" title="Massive Media Icons" src="http://stiern.com/site/wp-content/everything/massivemedia.png" alt="Massive Media Icons" width="500" height="302" /></a></p>
<p><a href="http://mugenb16.deviantart.com/art/Massive-Media-Icons-Win-48654751">Massive Media Icons</a></p>
<p><a class="postimg" href="http://cyberella74.deviantart.com/art/Archigraphs-Nanos-Icons-132018163"><img class="alignnone size-full wp-image-764" title="Archigraph's Nano Icons" src="http://stiern.com/site/wp-content/everything/nano.png" alt="" width="500" height="260" /></a></p>
<p><a title="Archigraph's Nano Icons" href="http://cyberella74.deviantart.com/art/Archigraphs-Nanos-Icons-132018163">Archigraphs&#8217; Nano Icons</a></p>
<p><a class="postimg" href="http://o0urge0o.deviantart.com/art/Creativ-Zen-Vision-M-Icons-129964616"><img class="alignnone size-full wp-image-765" title="Creativ Zen Vision M Icons" src="http://stiern.com/site/wp-content/everything/zen.png" alt="" width="500" height="313" /></a></p>
<p><a title="OS X Creative Zen Vision M Icons" href="http://o0urge0o.deviantart.com/art/Creativ-Zen-Vision-M-Icons-129964616">OS X Creative Zen Vison M Icons</a></p>
<p><a class="postimg" href="http://tatice.deviantart.com/art/Zune-93172167"><img class="alignnone size-full wp-image-766" title="Zune" src="http://stiern.com/site/wp-content/everything/zune.png" alt="" width="500" height="409" /></a></p>
<p><a title="Zune" href="http://tatice.deviantart.com/art/Zune-93172167">Zune</a></p>
<p><a class="postimg" href="http://icontoaster.com/?free-icons-for-all"><img class="alignnone size-full wp-image-767" title="75 Black Translucent Drive Icons" src="http://stiern.com/site/wp-content/everything/translucent.jpg" alt="" width="398" height="181" /></a></p>
<p><a title="75 Black Translucent Drive Icons" href="http://icontoaster.com/?free-icons-for-all">75 Black Translucent Drive Icons</a> (scroll down on the page)</p>
<p><a class="postimg" href="http://jrdn88.deviantart.com/art/WD-External-Hard-Drive-Icons-79574904"><img class="alignnone size-full wp-image-768" title="WD External Hard Drive Icons" src="http://stiern.com/site/wp-content/everything/wd.png" alt="" width="500" height="220" /></a></p>
<p><a title="WD External Hard Drive Icons" href="http://jrdn88.deviantart.com/art/WD-External-Hard-Drive-Icons-79574904">WD External Hard Drive Icons</a></p>
<p><a class="postimg" href="http://hezral.deviantart.com/art/hard-disk-updated-131598916"><img class="alignnone size-full wp-image-770" title="hard disk updated" src="http://stiern.com/site/wp-content/everything/hezral.png" alt="" width="500" height="400" /></a></p>
<p><a title="hard disk updated" href="http://hezral.deviantart.com/art/hard-disk-updated-131598916">hard disk updated</a></p>
<p><a class="postimg" href="http://qwertykkk.deviantart.com/art/Laura-Drives-icon-set-128240979"><img class="alignnone size-full wp-image-771" title="Laura - Drives Icon Set" src="http://stiern.com/site/wp-content/everything/laura.png" alt="" width="500" height="282" /></a></p>
<p><a title="Laura - Drives Icon Set" href="http://qwertykkk.deviantart.com/art/Laura-Drives-icon-set-128240979">Laura &#8211; Drives Icon Set</a></p>
<p><a class="postimg" href="http://macthemes2.net/forum/viewtopic.php?pid=496728"><img class="alignnone size-full wp-image-772" title="SSD Icon" src="http://stiern.com/site/wp-content/everything/ssd.png" alt="" width="455" height="278" /></a></p>
<p><a title="SSD Icon" href="http://macthemes2.net/forum/viewtopic.php?pid=496728">SSD Icon</a></p>
<p><a class="postimg" href="http://interfacelift.com/icons-mac/details.php?id=1912"><img class="alignnone size-full wp-image-773" title="Mac mini LaCie mini Hard Drive &amp; Hub" src="http://stiern.com/site/wp-content/everything/macminilacie.png" alt="" width="500" height="200" /></a></p>
<p><a title="Mac mini LaCie mini Hard Drive &amp; Hub" href="http://interfacelift.com/icons-mac/details.php?id=1912">Mac mini LaCie mini Hard Drive &amp; Hub</a></p>
<p><a class="postimg" href="http://aidanh.deviantart.com/art/Sony-Microvault-110199490"><img class="alignnone size-full wp-image-774" title="Sony Microvault" src="http://stiern.com/site/wp-content/everything/sonyvault.png" alt="" width="500" height="333" /></a></p>
<p><a title="Sony Microvault" href="http://aidanh.deviantart.com/art/Sony-Microvault-110199490">Sony Microvault</a></p>
<p><a class="postimg" href="http://www.graphicpeel.com/icons"><img class="alignnone size-full wp-image-775" title="Boxdrive" src="http://stiern.com/site/wp-content/everything/boxdrive.png" alt="" width="435" height="163" /></a></p>
<p><a title="Boxdrive" href="http://www.graphicpeel.com/icons">Boxdrive</a> (scroll down on the page)</p>
<p><a class="postimg" href="http://thvg.deviantart.com/art/Wooden-Slick-Drives-96893103"><img class="alignnone size-full wp-image-776" title="Wooden Slick Drives" src="http://stiern.com/site/wp-content/everything/wooden.png" alt="" width="500" height="454" /></a></p>
<p><a title="Wooden Slick Drives" href="http://thvg.deviantart.com/art/Wooden-Slick-Drives-96893103">Wooden Slick Drives</a></p>
<h3><span style="font-size: small;"><span style="font-weight: normal;"><a class="postimg" href="http://365icon.com/icon-styles/photography/classic-camera-vintage-camera-icons/"><img class="alignnone size-full wp-image-777" title="Classic Camera - Vintage Camera Icons" src="http://stiern.com/site/wp-content/everything/vintage.png" alt="" width="500" height="323" /></a></span></span></h3>
<p><a title="Classic Cameras - Vintage Camera Icons" href="http://365icon.com/icon-styles/photography/classic-camera-vintage-camera-icons/">Classic Cameras &#8211; Vintage Camera Icons</a></p>
<p><a class="postimg" href="http://interfacelift.com/icons-mac/details.php?id=1881"><img class="alignnone size-full wp-image-778" title="Pentax *ist DL" src="http://stiern.com/site/wp-content/everything/pentax.png" alt="" width="264" height="128" /></a></p>
<p><a title="Pentax *ist DL" href="http://interfacelift.com/icons-mac/details.php?id=1881">Pentax *ist DL</a></p>
<p><a class="postimg" href="http://interfacelift.com/icons-mac/details.php?id=1515"><img class="alignnone size-full wp-image-780" title="Nikon D70" src="http://stiern.com/site/wp-content/everything/nikond70.png" alt="" width="220" height="120" /></a></p>
<p><a title="Nikon D70" href="http://interfacelift.com/icons-mac/details.php?id=1515">Nikon D70</a></p>
<p><a class="postimg" href="http://sveiki.deviantart.com/art/Nikon-D40-Icon-Set-69911211"><img class="alignnone size-full wp-image-781" title="Nikon D40" src="http://stiern.com/site/wp-content/everything/nikond40.png" alt="" width="500" height="310" /></a></p>
<p><a title="Nikon D40" href="http://sveiki.deviantart.com/art/Nikon-D40-Icon-Set-69911211">Nikon D40</a></p>
<p><a class="postimg" href="http://www.iconarchive.com/category/photographic/canon-digital-camera-icons-by-newformula.org.html"><img class="alignnone size-full wp-image-782" title="Canon Digital Camera Icons" src="http://stiern.com/site/wp-content/everything/canon.png" alt="" width="500" height="155" /></a></p>
<p><a title="Canon Digital Camera Icons" href="http://www.iconarchive.com/category/photographic/canon-digital-camera-icons-by-newformula.org.html">Canon Digital Camera Icons</a></p>
<p><a class="postimg" href="http://kyo-tux.deviantart.com/art/Camera-Nikon-130801274"><img class="alignnone size-full wp-image-783" title="Camera Nikon" src="http://stiern.com/site/wp-content/everything/nikon.png" alt="" width="500" height="363" /></a></p>
<p><a title="Camera Nikon" href="http://kyo-tux.deviantart.com/art/Camera-Nikon-130801274">Camera Nikon</a></p>
<p><a class="postimg" href="http://www.midtonedesign.com/#portfolio?canon400d"><img class="alignnone size-full wp-image-784" title="Canon 400D &amp; Lens" src="http://stiern.com/site/wp-content/everything/400d.png" alt="" width="500" height="520" /></a></p>
<p><a title="Canon 400D &amp; Lens" href="http://www.midtonedesign.com/#portfolio?canon400d">Canon 400D &amp; Lens</a></p>
<p><a title="Canon 400D &amp; Lens" href="http://www.midtonedesign.com/#portfolio?canon400d"></a><a class="postimg" href="http://druteron.deviantart.com/art/Memory-Card-Icon-122094559"><img class="alignnone size-full wp-image-785" title="Memory Card Icon" src="http://stiern.com/site/wp-content/everything/memcard.png" alt="" width="400" height="600" /></a></p>
<p><a title="Memory Card Icon" href="http://druteron.deviantart.com/art/Memory-Card-Icon-122094559">Memory Card Icon</a></p>
<p><a class="postimg" href="http://nukeypearce.deviantart.com/art/Removable-Drive-Icons-43534221"><img class="alignnone size-full wp-image-787" title="Removable Drive Icons" src="http://stiern.com/site/wp-content/everything/removable.png" alt="" width="500" height="481" /></a></p>
<p><a title="Removable Drive Icons" href="http://nukeypearce.deviantart.com/art/Removable-Drive-Icons-43534221">Removable Drive Icons</a></p>
<p><a class="postimg" href="http://cgink.deviantart.com/art/Extreme-Media-Pack-89680823"><img class="alignnone size-full wp-image-788" title="Extreme Media Pack" src="http://stiern.com/site/wp-content/everything/extreme.png" alt="" width="500" height="500" /></a></p>
<p><a title="Extreme Media Pack" href="http://cgink.deviantart.com/art/Extreme-Media-Pack-89680823">Extreme Media Pack</a></p>
<p><a title="Removable Drive Icons" href="http://nukeypearce.deviantart.com/art/Removable-Drive-Icons-43534221"></a></p>
<p>And that&#8217;s a wrap! Hope you like the icons, and be sure to read the licenses.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/0WvFaJe9kMUBiHCuPqfRH-fJqc8/0/da"><img src="http://feedads.g.doubleclick.net/~a/0WvFaJe9kMUBiHCuPqfRH-fJqc8/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/0WvFaJe9kMUBiHCuPqfRH-fJqc8/1/da"><img src="http://feedads.g.doubleclick.net/~a/0WvFaJe9kMUBiHCuPqfRH-fJqc8/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/stiern/~4/q590ZP0DavE" height="1" width="1"/>]]></content:encoded><description>Whether you&amp;#8217;re a Mac or a Windows user, the system icons for external media such as cameras, memory cards, and external harddrives, can be pretty boring. Luckily, the world is filled with skilled (what a rhyme!) icon designers that create stunning icons for you to download for free. I&amp;#8217;ve tried to collect some of the [...]</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://stiern.com/downloads/250-sweet-icons-for-your-external-media/feed</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">1</slash:comments><feedburner:origLink>http://stiern.com/downloads/250-sweet-icons-for-your-external-media</feedburner:origLink></item><item><title>5 Cool Ways to Add Graphs to Your Website</title><link>http://feedproxy.google.com/~r/stiern/~3/HbWrMoa2Koo/5-cool-ways-to-add-graphs-to-your-website</link><category>Articles</category><category>Chart</category><category>Flot</category><category>Google</category><category>Graph</category><category>jQuery</category><category>Open Flash Chart</category><category>SVG</category><category>Visualize</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Peter</dc:creator><pubDate>Sun, 18 Oct 2009 06:20:35 PDT</pubDate><guid isPermaLink="false">http://stiern.com/?p=585</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>Graphs, charts and diagrams can be used to visually describe data. Visualizing data is very important, as it helps the reader to understand the data even better. And even though some people might prefer viewing data in a table, I think we are many who feel more comfortable in viewing data graphically. Fortunately for us, there are several ways you can implement data into a graph on a website.</p>
<p><span id="more-585"></span></p>
<p>Basically, you have two main options; You can use Flash, or you can use jQuery. What you prefer is entirely up to you, but I&#8217;d like to show you some of the possibilities within each technology.</p>
<h3>Open Flash Chart</h3>
<div id="attachment_594" class="wp-caption alignnone" style="width: 510px"><a class="lightbox" title="Open Flash Chart" href="http://stiern.com/site/wp-content/everything/ofc.png"><img class="alignnone size-full wp-image-597" title="Open Flash Chart" src="http://stiern.com/site/wp-content/everything/ofc.png" alt="" width="500" height="186" /></a><p class="wp-caption-text">An example of a bar chart made with Open Flash Chart</p></div>
<p>Open Flash Chart is—as the name states—a Flash chart. If you run a WordPress blog, you might know it from the <a title="WordPress.com Stats Plugin" href="http://wordpress.org/extend/plugins/stats/">WordPress.com Stats Plugin</a>. It is open source, and there are lots of customization options. You can make almost any kind of chart you can imagine, and it&#8217;s fairly easy to setup if you just follow the <a title="Open Flash Chart tutorial" href="http://teethgrinder.co.uk/open-flash-chart-2/tutorial.php">tutorials</a> on the Open Flash Chart website. With the new Open Flash Chart 2, you can even use it with jQuery and save your graphs as images. To see examples, and to read the tutorials, visit the <a href="http://teethgrinder.co.uk/open-flash-chart-2/">Open Flash Chart website</a>.</p>
<h3>Flot</h3>
<div id="attachment_710" class="wp-caption alignnone" style="width: 510px"><a class="lightbox"  title ="An example of a Flot graph" href="http://stiern.com/site/wp-content/everything/flot.png"><img src="http://stiern.com/site/wp-content/everything/flot.png" alt="An example of a Flot graph" title="An example of a Flot graph" width="500" height="256" class="size-full wp-image-710" /></a><p class="wp-caption-text">An example of a Flot graph</p></div>
<p>Next up is Flot, a jQuery based method for implementing graphs. It is hosted at <a href="http://code.google.com/p/flot/" title="Flot at Google Code">Google Code</a>, and it works in all the major browsers (including IE6). It comes with <a href="http://people.iola.dk/olau/flot/examples/" title="Flot examples">a great bunch of examples</a>, but the documentation could be better. The output of Flot will be a static image.</p>
<h3>jQuery Visualize Plugin</h3>
<div id="attachment_713" class="wp-caption alignnone" style="width: 510px"><a class="lightbox"  title ="An example of the jQuery Visualize Plugin." href="http://stiern.com/site/wp-content/everything/jqueryvisualize.png"><img src="http://stiern.com/site/wp-content/everything/jqueryvisualize.png" alt="An example of the jQuery Visualize Plugin." title="An example of the jQuery Visualize Plugin." width="500" height="251" class="size-full wp-image-713" /></a><p class="wp-caption-text">An example of the jQuery Visualize Plugin.</p></div>
<p><a href="http://www.filamentgroup.com/lab/jquery_visualize_plugin_accessible_charts_graphs_from_tables_html5_canvas/" title="jQuery Visualize Plugin">This jQuery plugin</a> helps you implement dynamic charts into your website without using Flash. Using the HTML5 canvas element it is possible to create great-looking charts without using even images. There&#8217;s a very thorough tutorial at the site that helps you set it all up. Also, it works in every major browser.</p>
<h3>jQuery SVG</h3>
<div id="attachment_719" class="wp-caption alignnone" style="width: 510px"><a class="lightbox"  title ="An example of a bar graph made using jQuery SVG" href="http://stiern.com/site/wp-content/everything/svg.png"><img src="http://stiern.com/site/wp-content/everything/svg.png" alt="An example of a bar graph made using jQuery SVG" title="An example of a bar graph made using jQuery SVG" width="500" height="276" class="size-full wp-image-719" /></a><p class="wp-caption-text">An example of a bar graph made using jQuery SVG</p></div>
<p>This is yet another jQuery plugin called <a href="http://keith-wood.name/svg.html" title="jQuery SVG">jQuery SVG</a>. It uses SVG, a language &#8220;for describing two-dimensional graphics in XML&#8221;. SVG is supported in most browsers. Actually, it is not only a graphing plugin. You can use it to create advanced graphics on your website such as text paths. Still, for graphs it is very usable.</p>
<h3>Google Chart API</h3>
<div id="attachment_721" class="wp-caption alignnone" style="width: 450px"><a class="lightbox"  title ="An example of a map chart made with Google Chart API" href="http://stiern.com/site/wp-content/everything/googlechart.png"><img src="http://stiern.com/site/wp-content/everything/googlechart.png" alt="An example of a map chart made with Google Chart API" title="An example of a map chart made with Google Chart API" width="440" height="220" class="size-full wp-image-721" /></a><p class="wp-caption-text">An example of a map chart made with Google Chart API</p></div>
<p>The last method is Google&#8217;s own <a href="http://code.google.com/apis/chart/" title="Chart API">Chart API</a>. It is very simple, and all you get is static images. But the static images are cool. You can easily create world maps with selected countries colored in your choice of color. As with almost every Google project, the documentation is awesome. You&#8217;ll get some very fine looking graphs with little effort, and everything is customizable.</p>
<h3>Conclusion</h3>
<p>Now to the big question: Which method is the best? I don&#8217;t know. I guess it&#8217;s all about taste and what you need it for. But similar for the five mentioned methods is that you have some very great, free resources that easily lets you implement graphs into your website.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/s3TcAA3ODMcmEF1cCiznNT_MBI0/0/da"><img src="http://feedads.g.doubleclick.net/~a/s3TcAA3ODMcmEF1cCiznNT_MBI0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/s3TcAA3ODMcmEF1cCiznNT_MBI0/1/da"><img src="http://feedads.g.doubleclick.net/~a/s3TcAA3ODMcmEF1cCiznNT_MBI0/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/stiern/~4/HbWrMoa2Koo" height="1" width="1"/>]]></content:encoded><description>Graphs, charts and diagrams can be used to visually describe data. Visualizing data is very important, as it helps the reader to understand the data even better. And even though some people might prefer viewing data in a table, I think we are many who feel more comfortable in viewing data graphically. Fortunately for us, [...]</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://stiern.com/articles/5-cool-ways-to-add-graphs-to-your-website/feed</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">9</slash:comments><feedburner:origLink>http://stiern.com/articles/5-cool-ways-to-add-graphs-to-your-website</feedburner:origLink></item><item><title>Adding Custom Google Maps to Your Website</title><link>http://feedproxy.google.com/~r/stiern/~3/43xmsJog1Mg/adding-custom-google-maps-to-your-website</link><category>Articles</category><category>Tutorials</category><category>Google Maps</category><category>Web Design</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Peter</dc:creator><pubDate>Mon, 12 Oct 2009 15:56:47 PDT</pubDate><guid isPermaLink="false">http://stiern.com/?p=626</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>Maps are often placed on a company website to help customers find their way there. For that, Google Maps is excellent. But wouldn&#8217;t it be nice to add your company logo, parking lots, train stations, etc. to the map, to help the customer even more? It is very simple, and in this article I am going to show you how.<br />
<span id="more-626"></span></p>
<p>Before we start, check out what we are going to create:</p>
<div class="iframe-wrapper">
  <iframe src="http://dl.getdropbox.com/u/32709/googlemaps/index.html" frameborder="0" style="height:300px;width:500px;">Please upgrade your browser</iframe>
</div>
<p>Now, here is an overview:</p>
<h3>Overview</h3>
<ul>
<li><a href="#google_api">Google Maps API</a></li>
<li><a href="#coordinates">Getting the Coordinates</a></li>
<li><a href="#adding_the_map">Adding the Map to Your Website</a></li>
<li><a href="#adding_markers">Adding Markers</a></li>
<li><a href="#custom_markers">Customizing the Markers</a></li>
<li><a href="#infobox">Adding Infoboxes</a></li>
<li><a href="#download">Download</a></li>
</ul>
<h3><a id="google_api">Google Maps API</a></h3>
<p>The Google Maps API allows you to embed maps directly into your website. All it takes is a little JavaScript, and for beautifying&#8212;a little CSS. <a title="Google Maps API V3" href="http://code.google.com/apis/maps/documentation/v3/">Version 3</a> of the Google Maps API has just been released, and of course, that is what we will be using here. You can read the entire documentation over at <a title="Google Labs" href="http://code.google.com/intl/en-EN/apis/maps/documentation/v3/">Google Labs</a>, and while you are there, be sure to get an <a title="Google Maps API key" href="http://code.google.com/intl/en-EN/apis/maps/signup.html">API key</a>.</p>
<h3><a id="coordinates">Getting the Coordinates</a></h3>
<p>As I do not expect you to know the precise coordinates of your location, I will explain a very quick way Google has provided to do this. When you know the exact address, you can put it in an URL of this form:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">http<span style="color: #339933;">:</span><span style="color: #006600; font-style: italic;">//maps.google.com/maps/geo?q=1+Infinite Liip,+Cupertino,+CA+95014,+USA&amp;output=csv&amp;oe=utf8&amp;sensor=false&amp;key=your_google_maps_api_key</span></pre></div></div>

<p>When you enter this in your address bar, you will see this:</p>
<div id="attachment_653" class="wp-caption alignnone" style="width: 255px"><a class="lightbox"  title ="The coordinates of Apple's head quarter in Cupertino" href="http://stiern.com/site/wp-content/everything/apple_coordinates.png"><img src="http://stiern.com/site/wp-content/everything/apple_coordinates.png" alt="The coordinates of Apple&#039;s head quarter in Cupertino" title="The coordinates of Apple&#039;s head quarter in Cupertino" width="245" height="28" class="size-full wp-image-653" /></a><p class="wp-caption-text">The coordinates of Apple's head quarter in Cupertino</p></div>
<p>The first number is the <a href="http://code.google.com/intl/da-DK/apis/maps/documentation/geocoding/index.html#StatusCodes" title="Status Codes">status code</a>, and 200 means that everything is okay. The second number shows how <a href="http://code.google.com/intl/da-DK/apis/maps/documentation/geocoding/index.html#GeocodingAccuracy" title="Accuracy">accurate</a> the address is&#8212;in this case the number is 8, which is good. The last two numbers are latitudes and longitudes, which are the numbers we need.</p>
<h3><a id="adding_the_map">Adding the Map to Your Website</a></h3>
<p>There&#8217;s no need to hesitate – let&#8217;s add that map to your website! Open your favorite HTML editor and create a standard HTML file with UTF-8 encoding. First of all, we have to create the viewport and tell our HTML file to get the JavaScript file from Google Code. Add these lines between <code>&lt;head&gt; and &lt;/head&gt;</code>:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">meta</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;viewport&quot;</span> <span style="color: #000066;">content</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;initial-scale=1.0, user-scalable=no&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://maps.google.com/maps/api/js?sensor=false&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></pre></td></tr></table></div>

<p>After the URL, you will notice <code>sensor=false</code>. As we do not use any sensor, such as a GPS, to locate the location, this is set to false.</p>
<p>Just below what we have just inserted, write the following:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
	<span style="color: #003366; font-weight: bold;">function</span> initialize<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #003366; font-weight: bold;">var</span> latlng <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">LatLng</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">57.0442</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">9.9116</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #003366; font-weight: bold;">var</span> settings <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span>
			zoom<span style="color: #339933;">:</span> <span style="color: #CC0000;">15</span><span style="color: #339933;">,</span>
			center<span style="color: #339933;">:</span> latlng<span style="color: #339933;">,</span>
			mapTypeControl<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span>
			mapTypeControlOptions<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span>style<span style="color: #339933;">:</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">MapTypeControlStyle</span>.<span style="color: #660066;">DROPDOWN_MENU</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
			navigationControl<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span>
			navigationControlOptions<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span>style<span style="color: #339933;">:</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">NavigationControlStyle</span>.<span style="color: #660066;">SMALL</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
			mapTypeId<span style="color: #339933;">:</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">MapTypeId</span>.<span style="color: #660066;">ROADMAP</span>
    <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Let&#8217;s split this up to ensure that we understand it fully. In line 2 we create the function <code>initialize()</code>. Inside this function we are going to define the basic settings of the map. In line 3 we create a new variable, <code>latlng</code>. <code>latlng</code> stands for latitudes and longitudes. The variable contains the coordinates we&#8217;re going to use as the center of our map.<br />
After that, we create the variable <code>settings</code>. You have a lot of options here.</p>
<p><code>zoom</code> specifies&#8212;you guessed it&#8212;how far the map will be zoomed in. Play around with the number to get it to fit your location.</p>
<p><code>center</code> specifies our center. By writing <code>latlng</code>, we refer to the variable we created earlier, and the coordinate inside that will be used.</p>
<p>The last code changes the layout of the map to a bit more minimalistic look in my opinion. The controls in the upper right corner (Map, Satellite, Terrain) are changed to a drop down menu, and the scaling/navigation controls in the left size are changed to small controls.</p>
<p><code>mapTypeId: google.maps.MapTypeId.ROADMAP</code> defines that our map should be of the type <code>ROADMAP</code> – you can change this to either <code>SATELLITE</code>, <code>HYBRID</code> or <code>TERRAIN</code>.</p>
<p>Below the previous code, write this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> map <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">Map</span><span style="color: #009900;">&#40;</span>document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;map_canvas&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> settings<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>This code creates the variable <code>map</code>, and defines that the map should use the settings we just created.</p>
<p>Write</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;">}
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></pre></td></tr></table></div>

<p> to end the function, and move to <code>&lt;body&gt;</code>, and write this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">body</span> <span style="color: #000066;">onload</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;initialize()&quot;</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;map_canvas&quot;</span> <span style="color: #000066;">style</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;width:800px; height:500px&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">body</span>&gt;</span></pre></td></tr></table></div>

<p>By doing this we are telling our site to execute the <code>initialize()</code> function when the site is loaded, and insert a <code>&lt;div&gt;</code> with the size we want our map to be.</p>
<p>Try to view your site now. Cool, isn&#8217;t it?</p>
<h3><a id="adding_markers">Adding Markers</a></h3>
<p>Now we have to add some markers. Let&#8217;s start by creating a standard marker&#8212;we&#8217;ll customize it in a moment.</p>
<p>Right below</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> map <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">Map</span><span style="color: #009900;">&#40;</span>document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;map_canvas&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> settings<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p> insert the following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">  <span style="color: #003366; font-weight: bold;">var</span> companyPos <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">LatLng</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">57.0442</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">9.9116</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #003366; font-weight: bold;">var</span> companyMarker <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">Marker</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
      position<span style="color: #339933;">:</span> companyPos<span style="color: #339933;">,</span>
      map<span style="color: #339933;">:</span> map<span style="color: #339933;">,</span>
      title<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;Some title&quot;</span>
  <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Try to update your page, and watch the magic. So, what have we done?</p>
<p>First, we create the variable <code>companyPos</code>, where we specify the position of the marker. Next, we create the marker itself using the variable <code>companyMarker</code>. You can add more settings than these, but we will get to that later. These settings are fairly logical, so I won&#8217;t go into more depth with them.</p>
<h3><a id="custom_markers">Customizing the Markers</h3>
<p>Even though this could be enough to show your customer how to find you, we can still make it a lot nicer. Create an image in Photoshop with the size 100&#215;50 pixels, and create something similar to this:<br />
<div id="attachment_660" class="wp-caption alignnone" style="width: 110px"><a class="lightbox" title="Create your logo" href="http://stiern.com/site/wp-content/everything/logo.png"><img class="size-full wp-image-660" title="Create your logo" src="http://stiern.com/site/wp-content/everything/logo.png" alt="Create your logo" width="100" height="50" /></a><p class="wp-caption-text">Create your logo</p></div></p>
<p>Next, create a shadow for your image:</p>
<div id="attachment_663" class="wp-caption alignnone" style="width: 140px"><a class="lightbox" title="The logo shadow" href="http://stiern.com/site/wp-content/everything/logo_shadow.png"><img class="size-full wp-image-663" title="The logo shadow" src="http://stiern.com/site/wp-content/everything/logo_shadow.png" alt="The logo shadow" width="130" height="50" /></a><p class="wp-caption-text">The logo shadow</p></div>
<p>To add these images as a marker instead of the standard marker, change the marker code to this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> companyLogo <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">MarkerImage</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'images/logo.png'</span><span style="color: #339933;">,</span>
	<span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">Size</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">100</span><span style="color: #339933;">,</span><span style="color: #CC0000;">50</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
	<span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">Point</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #339933;">,</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
	<span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">Point</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">50</span><span style="color: #339933;">,</span><span style="color: #CC0000;">50</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> companyShadow <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">MarkerImage</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'images/logo_shadow.png'</span><span style="color: #339933;">,</span>
	<span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">Size</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">130</span><span style="color: #339933;">,</span><span style="color: #CC0000;">50</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
	<span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">Point</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #339933;">,</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
	<span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">Point</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">65</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">50</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> companyPos <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">LatLng</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">57.0442</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">9.9116</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> companyMarker <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">Marker</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
	position<span style="color: #339933;">:</span> companyPos<span style="color: #339933;">,</span>
	map<span style="color: #339933;">:</span> map<span style="color: #339933;">,</span>
	icon<span style="color: #339933;">:</span> companyLogo<span style="color: #339933;">,</span>
	shadow<span style="color: #339933;">:</span> companyShadow<span style="color: #339933;">,</span>
	title<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;Company Title&quot;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>What we have done here is also really simple. The variable <code>companyImage</code> points to the name of the logo image. Then it defines the size of the image, the origin of the image, and the tip of the image (where the image will be attached to the coordinate). Next, we do the exact same thing for the shadow in the variable <code>companyShadow</code>. In our <code>companyMarker</code> variable we add <code>icon</code> and <code>shadow</code>, and that is basically it.</p>
<p>Now, if you refresh your site, you will se that the marker has changed into your own logo with an added shadow to it as well. To add more markers, you just follow the same method (remember to change the names of the variables).</p>
<p>If you have two markers very close to each other, you might want to add some z-index. The marker with the highest z-index, is the one on top:</p>
<div id="attachment_674" class="wp-caption alignnone" style="width: 157px"><a class="lightbox" title="Adding zIndex allows you to choose which marker should be on top" href="http://stiern.com/site/wp-content/everything/zindex.png"><img class="size-full wp-image-674" title="Adding zIndex allows you to choose which marker should be on top" src="http://stiern.com/site/wp-content/everything/zindex.png" alt="Adding zIndex allows you to choose which marker should be on top" width="147" height="87" /></a><p class="wp-caption-text">Adding zIndex allows you to choose which marker should be on top</p></div>

<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="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> companyMarker <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">Marker</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
	position<span style="color: #339933;">:</span> companyPos<span style="color: #339933;">,</span>
	map<span style="color: #339933;">:</span> map<span style="color: #339933;">,</span>
	icon<span style="color: #339933;">:</span> companyImage<span style="color: #339933;">,</span>
	shadow<span style="color: #339933;">:</span> companyShadow<span style="color: #339933;">,</span>
	title<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;Høgenhaug&quot;</span><span style="color: #339933;">,</span>
	zIndex<span style="color: #339933;">:</span> <span style="color: #CC0000;">4</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<h3><a id="infobox">Adding Infoboxes</a></h3>
<p>To add a description of your company when the visitor clicks on the logo we can add a infobox. With the Google Maps API it&#8217;s peace of cake.</p>
<div id="attachment_677" class="wp-caption alignnone" style="width: 510px"><a class="lightbox" title="Clicking your company logo will bring up an infobox" href="http://stiern.com/site/wp-content/everything/infobox.png"><img class="size-full wp-image-677" title="Clicking your company logo will bring up an infobox" src="http://stiern.com/site/wp-content/everything/infobox.png" alt="Clicking your company logo will bring up an infobox" width="500" height="398" /></a><p class="wp-caption-text">Clicking your company logo will bring up an infobox</p></div>
<p>Paste this code right after you define the <code>map</code> variable:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> contentString <span style="color: #339933;">=</span> <span style="color: #3366CC;">'&lt;div id=&quot;content&quot;&gt;'</span><span style="color: #339933;">+</span>
    <span style="color: #3366CC;">'&lt;div id=&quot;siteNotice&quot;&gt;'</span><span style="color: #339933;">+</span>
    <span style="color: #3366CC;">'&lt;/div&gt;'</span><span style="color: #339933;">+</span>
    <span style="color: #3366CC;">'&lt;h1 id=&quot;firstHeading&quot; class=&quot;firstHeading&quot;&gt;Høgenhaug&lt;/h1&gt;'</span><span style="color: #339933;">+</span>
    <span style="color: #3366CC;">'&lt;div id=&quot;bodyContent&quot;&gt;'</span><span style="color: #339933;">+</span>
    <span style="color: #3366CC;">'&lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.&lt;/p&gt;'</span><span style="color: #339933;">+</span>
    <span style="color: #3366CC;">'&lt;/div&gt;'</span><span style="color: #339933;">+</span>
    <span style="color: #3366CC;">'&lt;/div&gt;'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">var</span> infowindow <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">InfoWindow</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
    content<span style="color: #339933;">:</span> contentString
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>The code here is fairly straight-forward, and you are of course not limited to headlines and paragraphs – there is room for images as well. To make the infobox appear when your logo is clicked, simply add this code right before the last <code>}</code> in the <code>initialize()</code> function:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">google.<span style="color: #660066;">maps</span>.<span style="color: #660066;">event</span>.<span style="color: #660066;">addListener</span><span style="color: #009900;">&#40;</span>companyMarker<span style="color: #339933;">,</span> <span style="color: #3366CC;">'click'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  infowindow.<span style="color: #000066;">open</span><span style="color: #009900;">&#40;</span>map<span style="color: #339933;">,</span>companyMarker<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>To make the infobox just a little more pretty, add some styles in your stylesheet file:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">body <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> Helvetica<span style="color: #00AA00;">,</span> Arial<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</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;">10pt</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>And there you have it. One piece of fine-looking Google Map to include on your company website, your travel blog, etc.</p>
<h3><a id="download">Download</a></h3>
<p>If you&#8217;d like to download the sample files, you can get &#8216;em <a href="http://dl.getdropbox.com/u/32709/googlemaps.zip" title="Download the example files">right here</a>. Be sure to leave a comment!</p>

<p><a href="http://feedads.g.doubleclick.net/~a/5IXcdVbahAOsnzx4t4EoMkpQlJY/0/da"><img src="http://feedads.g.doubleclick.net/~a/5IXcdVbahAOsnzx4t4EoMkpQlJY/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/5IXcdVbahAOsnzx4t4EoMkpQlJY/1/da"><img src="http://feedads.g.doubleclick.net/~a/5IXcdVbahAOsnzx4t4EoMkpQlJY/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/stiern/~4/43xmsJog1Mg" height="1" width="1"/>]]></content:encoded><description>Maps are often placed on a company website to help customers find their way there. For that, Google Maps is excellent. But wouldn&amp;#8217;t it be nice to add your company logo, parking lots, train stations, etc. to the map, to help the customer even more? It is very simple, and in this article I am [...]</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://stiern.com/tutorials/adding-custom-google-maps-to-your-website/feed</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">75</slash:comments><feedburner:origLink>http://stiern.com/tutorials/adding-custom-google-maps-to-your-website</feedburner:origLink></item><item><title>8 OS X Apps With Beautiful Icons</title><link>http://feedproxy.google.com/~r/stiern/~3/x0rrCtAEh9U/8-os-x-apps-with-beautiful-icons</link><category>Articles</category><category>Applications</category><category>Billings</category><category>Coda</category><category>Espresso</category><category>ForkLift</category><category>Mac OS X</category><category>MindNode</category><category>QuickTime</category><category>Times</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Peter</dc:creator><pubDate>Sun, 06 Sep 2009 02:14:33 PDT</pubDate><guid isPermaLink="false">http://stiern.com/?p=553</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>There are a lot of cool Mac applications out there, but unfortunately only some of them has beautiful icons. I&#8217;ve tried to collect some apps that I believe have pretty icons. Just like the interface means a lot to the user experience, I actually think the icon does as well. Some software developers understands this, and some unfortunately don&#8217;t.</p>
<p><span id="more-553"></span></p>
<p>I&#8217;m sure there&#8217;s many other apps with cool icons out there, and if you like one in particular, please let me know in the comments.</p>
<h3>Espresso ($78)</h3>
<p><em> </em></p>
<p><em> </em></p>
<p><em> </em></p>
<div id="attachment_554" class="wp-caption alignnone" style="width: 310px"><a class="lightbox" title="Espresso" href="http://macrabbit.com/espresso/"><img class="size-medium wp-image-554  " title="Espresso" src="http://stiern.com/site/wp-content/everything/Espresso-300x300.png" alt="Espresso" width="300" height="300" /></a></dt>
</dl>
</div>
<p>Now, this icon really makes me wanna lick the screen&#8230; The steam from the cup is so delicious! Espresso is MacRabbit&#8217;s web development software, and it&#8217;s not only the icon that&#8217;s nice.</p>
<h3>Bodega (free)</h3>
<div class="mceTemp">
<dl id="attachment_557" class="wp-caption alignnone" style="width: 310px;">
<dt class="wp-caption-dt"><a class="lightbox" title="Bodega" href="http://appbodega.com/"><img class="size-medium wp-image-557 " title="Bodega" src="http://stiern.com/site/wp-content/everything/Bodega-300x300.png" alt="" width="300" height="300" /></a></dt>
</dl>
</div>
<p>Bodega is created by IDFusion Software and Centrix.ca. It is the iPhone App Store for Mac apps. It comes with a stunning interface, and it seems to be growing incredibly fast. And, oh yeah–the icon is great!</p>
<h3>ForkLift ($19.95)</h3>
<div class="mceTemp">
<dl id="attachment_561" class="wp-caption alignnone" style="width: 310px;">
<dt class="wp-caption-dt"><a class="lightbox" title="ForkLift" href="http://www.binarynights.com/forklift/"><img class="size-medium wp-image-561" title="ForkLift" src="http://stiern.com/site/wp-content/everything/ForkLift-300x300.png" alt=" " width="300" height="300" /></a><p class="wp-caption-text"> </p></div>
<p>Are you as tired of Cyberduck as I am? Then you should try ForkLift. It is an advanced FTP client that is fast, and has all the features you&#8217;ll ever need from a FTP client. The interface is beautiful and so is the icon.</p>
<h3>MindNode (free)</h3>
<div id="attachment_563" class="wp-caption alignnone" style="width: 310px"><a class="lightbox" title="Mindnode" href="http://www.mindnode.com/"><img class="size-medium wp-image-563" title="Mindnode" src="http://stiern.com/site/wp-content/everything/Mindnode-300x300.png" alt="" width="300" height="300" /></a><p class="wp-caption-text"> </p></div>
<p>MindNode is a really cool piece of software. It helps you organize and structure your ideas in really neat mind maps. The icon is nothing I&#8217;ve seen before–I love the way the plant comes out of the frame.</p>
<h3>QuickTime Player X (free)</h3>
<div id="attachment_564" class="wp-caption alignnone" style="width: 310px"><a class="lightbox" title="QuickTimePlayerX" href="http://www.apple.com/macosx/what-is-macosx/quicktime.html"><img class="size-medium wp-image-564" title="QuickTimePlayerX" src="http://stiern.com/site/wp-content/everything/QuickTimePlayerX-300x300.png" alt="" width="300" height="300" /></a><p class="wp-caption-text"> </p></div>
<p>With Snow Leopard Apple released QuickTime Player X with an entirely new interface and some cool new features (and unfortunately without some of the very useful features from QuickTime Player 7). Nevertheless, the icon got a complete redesign, and I don&#8217;t think I&#8217;m the only one who thinks they got pretty well away with it.</p>
<h3>Times ($30)</h3>
<div id="attachment_566" class="wp-caption alignnone" style="width: 310px"><a class="lightbox" title="Times" href="http://www.acrylicapps.com/times/"><img class="size-medium wp-image-566" title="Times" src="http://stiern.com/site/wp-content/everything/Times-300x300.png" alt="" width="300" height="300" /></a><p class="wp-caption-text"> </p></div>
<p>Acrylic has tried to reinvent the RSS reader with their app Times, and I think they succeeded, although for me $30 is a bit too much to spend on a RSS reader. However, the app does feature a beautiful icon.</p>
<h3>Coda ($99)</h3>
<div id="attachment_569" class="wp-caption alignnone" style="width: 310px"><a class="lightbox" title="Coda" href="http://panic.com/coda/"><img class="size-medium wp-image-569" title="Coda" src="http://stiern.com/site/wp-content/everything/Coda-300x300.png" alt=" " width="300" height="300" /></a><p class="wp-caption-text"> </p></div>
<p>Coda is Panic&#8217;s web development client, and has for a long time been the by far most popular web development client as well. Now that Espresso&#8217;s out, let&#8217;s see what happens. Even though I actually never really understood why the icon is a leaf, I still think it&#8217;s a very beautiful icon.</p>
<h3>Billings ($56)</h3>
<div id="attachment_570" class="wp-caption alignnone" style="width: 310px"><a class="lightbox" title="Billings" href="http://www.billingsapp.com/"><img class="size-medium wp-image-570" title="Billings" src="http://stiern.com/site/wp-content/everything/Billings-300x300.png" alt=" " width="300" height="300" /></a><p class="wp-caption-text"> </p></div>
<p>Billings is really popular these days. It is a feature packed invoicing app with time billing and it&#8217;s very easy to use.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/sJxHo9tP_-YVGBkyOCcevXdAyNQ/0/da"><img src="http://feedads.g.doubleclick.net/~a/sJxHo9tP_-YVGBkyOCcevXdAyNQ/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/sJxHo9tP_-YVGBkyOCcevXdAyNQ/1/da"><img src="http://feedads.g.doubleclick.net/~a/sJxHo9tP_-YVGBkyOCcevXdAyNQ/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/stiern/~4/x0rrCtAEh9U" height="1" width="1"/>]]></content:encoded><description>There are a lot of cool Mac applications out there, but unfortunately only some of them has beautiful icons. I&amp;#8217;ve tried to collect some apps that I believe have pretty icons. Just like the interface means a lot to the user experience, I actually think the icon does as well. Some software developers understands this, [...]</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://stiern.com/articles/8-os-x-apps-with-beautiful-icons/feed</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">1</slash:comments><feedburner:origLink>http://stiern.com/articles/8-os-x-apps-with-beautiful-icons</feedburner:origLink></item><item><title>Enhancing Your Site with WebKit</title><link>http://feedproxy.google.com/~r/stiern/~3/-3SYCehFDR0/enhancing-your-site-with-webkit</link><category>Tutorials</category><category>CSS</category><category>Web Design</category><category>WebKit</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Peter</dc:creator><pubDate>Fri, 03 Jul 2009 07:00:36 PDT</pubDate><guid isPermaLink="false">http://stiern.com/?p=366</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p><a href="http://webkit.org/">WebKit</a> is an open source browser engine. <a title="Apple" href="http://apple.com/">Apple</a> uses WebKit in Safari, Mail, and other applications. <a title="Google Chrome" href="http://www.google.com/chrome">Google&#8217;s Chrome</a> browser, along with the S60 browser and the iPhone browser, is also built on WebKit. Some of the cool features of WebKit is transitions and transforms. With purely CSS you can create stunning animations. Your site will still work in other browsers, but the users with WebKit browsers will just get a slightly better experience.</p>
<p><span id="more-366"></span></p>
<p></p>
<p>Take for example Elliot Jay Stocks&#8217; new website, elliotjaystocks.com. It is in it self a very beautiful website, but if you open it in e.g. Safari 4, it&#8217;s even more beutiful. When you hover your mouse over the images, the border will slowly fade into a lighter color. In non-WebKit browsers, it&#8217;ll just be a very sudden transition. This done solely by CSS.</p>
<div id="attachment_368" class="wp-caption alignnone" style="width: 510px"><a href="http://elliotjaystocks.com"><img class="size-full wp-image-368" title="elliotjaystocks" src="http://stiern.com/site/wp-content/everything/Billede-4.png" alt="Elliot Jay Stocks' new website" width="500" height="385" /></a><p class="wp-caption-text">Elliot Jay Stocks&#39; new website</p></div>
<p>Another example is <a href="http://www.atebits.com/">Atebits&#8217;</a> website. Atebits is the company behind the Twitter app <a title="Tweetie for Mac" href="http://www.atebits.com/tweetie-mac/">Tweetie</a>. Let&#8217;s have a look at their front page:</p>
<div id="attachment_372" class="wp-caption alignnone" style="width: 510px"><a href="http://atebits.com/"><img class="size-full wp-image-372" title="Atebits' website" src="http://stiern.com/site/wp-content/everything/Billede-5.png" alt="Atebits' website" width="500" height="345" /></a><p class="wp-caption-text">Atebits&#39; website</p></div>
<p>That&#8217;s just beautiful, huh? Well, let&#8217;s dive into how we easily can add similar function to our own site.</p>
<p>The first property we have to learn is <code>-webkit-transition</code>. The <code>-webkit-transition</code> property is a shortcode for the three properties <code>-webkit-transition-property</code>, <code>-webkit-transition-duration</code> and <code>-webkit-transition-timing-function</code>.</p>
<p>We&#8217;ll probably learn this the best by having a look at an example, so here goes: We want to create a div that, when hovered, fades into another color. Here&#8217;s the code:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">div <span style="color: #00AA00;">&#123;</span>
  -webkit-transition<span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">color</span> 0.4s linear<span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#777777</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
div<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#999999</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>And here&#8217;s the example:</p>
<div class="webkitarticle">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</div>
<p>This wasn&#8217;t so hard, was it? Now let&#8217;s move on to using the <code>-webkit-transform</code> property. It allows you to scale, rotate, translate, and skew the object. It even allows you to use matrices for advanced transformations. Let&#8217;s try to rotate and skew the div from before:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">div <span style="color: #00AA00;">&#123;</span>
  -webkit-transition<span style="color: #00AA00;">:</span> all 0.4s linear<span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#777777</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
div<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span>
  -webkit-transform<span style="color: #00AA00;">:</span> scale<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">1.3</span><span style="color: #00AA00;">&#41;</span> skew<span style="color: #00AA00;">&#40;</span>3deg<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#999999</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<div class="webkitarticle2">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</div>
<p>This is just a little glimpse into what you can do with WebKit. Hopefully, you&#8217;ll find it useful.</p>
<p><span style="color: #ffffff;">i55iqj8amt</span></p>

<p><a href="http://feedads.g.doubleclick.net/~a/eAfiWF8IIM4DJyLfGVnnroJpOtM/0/da"><img src="http://feedads.g.doubleclick.net/~a/eAfiWF8IIM4DJyLfGVnnroJpOtM/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/eAfiWF8IIM4DJyLfGVnnroJpOtM/1/da"><img src="http://feedads.g.doubleclick.net/~a/eAfiWF8IIM4DJyLfGVnnroJpOtM/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/stiern/~4/-3SYCehFDR0" height="1" width="1"/>]]></content:encoded><description>WebKit is an open source browser engine. Apple uses WebKit in Safari, Mail, and other applications. Google&amp;#8217;s Chrome browser, along with the S60 browser and the iPhone browser, is also built on WebKit. Some of the cool features of WebKit is transitions and transforms. With purely CSS you can create stunning animations. Your site will [...]</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://stiern.com/tutorials/enhancing-your-site-with-webkit/feed</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">6</slash:comments><feedburner:origLink>http://stiern.com/tutorials/enhancing-your-site-with-webkit</feedburner:origLink></item><item><title>Lights and Shadows in Photoshop</title><link>http://feedproxy.google.com/~r/stiern/~3/wUIF74i9PUM/lights-and-shadows-in-photoshop</link><category>Tutorials</category><category>Graphic Design</category><category>Photoshop</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andreas</dc:creator><pubDate>Fri, 03 Jul 2009 06:53:43 PDT</pubDate><guid isPermaLink="false">http://stiern.com/?p=336</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p><!--StartFragment--></p>
<p>This tutorial is not too advanced but mostly to help to understand the power of shadow and light in short terms! There’s no “boring” text here. So if you are not used to Photoshop, do yourself a favor and read it all before continuing to the next step! You might learn something!</p>
<p><span id="more-336"></span></p>
<p></p>
<p>The thing about a good picture is to give it a feel of depth. You need not to give the receiver any reason to speculate whether a shadow is placed weird or a light source is coming in at a wrong angle. Often I can even find shadows and light sources in non edited pictures that look unreal. That is mostly in very poorly illuminated pictures.</p>
<p>In this picture you have an idea of where the light source comes from. Still it could handle a bit more tension and depth!</p>
<div id="attachment_338" class="wp-caption alignnone" style="width: 510px"><a rel="lightbox" href="http://stiern.com/site/wp-content/everything/lights_and_shadows_noned.png"><img class="size-full wp-image-338" src="http://stiern.com/site/wp-content/everything/lights_and_shadows_noned.png" alt="lights_and_shadows_noned" width="500" height="334" /></a><p class="wp-caption-text">The initial picture</p></div>
<p>To bring the picture to life, we will add some depth and sharpness. Too much editing can destroy a picture as well, so be careful not to gaze too long at your editing. Your effects and layers could end indifferent to others!</p>
<p>Let’s see if we can end here:</p>
<div id="attachment_397" class="wp-caption alignnone" style="width: 510px"><a rel="lightbox" href="http://stiern.com/site/wp-content/everything/lights_and_shadows_done.png"><img class="size-full wp-image-397  " src="http://stiern.com/site/wp-content/everything/lights_and_shadows_done.png" alt="The final picture" width="500" height="334" /></a><p class="wp-caption-text">The final picture</p></div>
<p>The retouching gives the receiver no reason to doubt as to where the light source is coming from.</p>
<p>Let’s get to it!</p>
<p>And don’t worry about naming the layers. We’ll not end up with more than 5 or 6 of them. I’m usually really sloppy when it comes to naming layers. It’s the last thing I do so that I can jump right into it if need be later on.</p>
<h3>Step 1</h3>
<p>Open your picture.</p>
<div id="attachment_404" class="wp-caption alignnone" style="width: 510px"><a rel="lightbox" href="http://stiern.com/site/wp-content/everything/las_open.png"><img class="size-full wp-image-404  " src="http://stiern.com/site/wp-content/everything/las_open.png" alt="Open your picture in Photoshop" width="500" height="305" /></a><p class="wp-caption-text">Open your picture in Photoshop</p></div>
<h3>Step 2</h3>
<p>Take your <em>clone stamp tool</em> (hotkey <em>s</em>). Now hold down the <em>alt</em> key and choose a suiteable area of skin you want to clone from. Run the mouse over the part you want to edit and click. We don’t ”clean” up the impurities in the skin because they&#8217;re ”unnatural”, but because they will end up standing out too much at the final outcome if we don’t.</p>
<div id="attachment_406" class="wp-caption alignnone" style="width: 510px"><a rel="lightbox" href="http://stiern.com/site/wp-content/everything/las_4.png"><img class="size-full wp-image-406 " src="http://stiern.com/site/wp-content/everything/las_4.png" alt="las_4" width="500" height="310" /></a><p class="wp-caption-text">Use the clone tool to remove impurities</p></div>
<h3>Step 3</h3>
<p>Now take your <em>dodge tool</em> (hotkey <em>o</em>, the black lollipop) and remember to set your <strong><em><span style="font-weight: normal">range</span></em></strong> to midttones and your <em>opacity</em> to somewhat in the 60’s (in this example). Gently affect the eyes where the light would hit them. Most often in the lower part or the whole eye. Remember not too much, even if it looks cool. We want it to look natural!</p>
<div id="attachment_414" class="wp-caption alignnone" style="width: 510px"><a rel="lightbox" href="http://stiern.com/site/wp-content/everything/las_dodge.png"><img class="size-full wp-image-414  " src="http://stiern.com/site/wp-content/everything/las_dodge.png" alt="Use the dodge tool to simulate light" width="500" height="305" /></a><p class="wp-caption-text">Use the dodge tool to simulate light</p></div>
<h3>Step 4</h3>
<p>Press the <em>New ajustment layer</em> button or go <em>Layer » New Ajustment Layer » Curves</em> . Now go 1/6’th up the curve and drag it down until the result is pleasing. Fill the layer with 60% black. Choose a brush with opacity of approximately 25% and a flow of about 60% and go easily around the dark areas with a reasonable large brush for the cheekbones and neck. Use a smaller brush for the lines at the eyes, the mouth, the nose etc.</p>
<div id="attachment_415" class="wp-caption alignnone" style="width: 510px"><a rel="lightbox" href="http://stiern.com/site/wp-content/everything/las_curves.png"><img class="size-full wp-image-415 " src="http://stiern.com/site/wp-content/everything/las_curves.png" alt="Create a new adjustment layer" width="500" height="305" /></a><p class="wp-caption-text">Create a new adjustment layer</p></div>
<h3>Step 5</h3>
<p>Now repeat Step 4. But this time with lights instead of the shadows. That means make a new Curves layer, fill with 60% black, go 1/6’th down the curve from the top, and pull it up until the result is pleasing. For the brush part, just repeat step 4. If you need more effect with the brush choose a higher opacity setting.</p>
<div id="attachment_416" class="wp-caption alignnone" style="width: 510px"><a rel="lightbox" href="http://stiern.com/site/wp-content/everything/las_curves2.png"><img class="size-full wp-image-416 " src="http://stiern.com/site/wp-content/everything/las_curves2.png" alt="Create another adjustment layer" width="500" height="305" /></a><p class="wp-caption-text">Create another adjustment layer</p></div>
<h3>Step 6</h3>
<p>Now the more fun part. The ”effect”. Go <em>Layer » New Ajustment Layer » Gradient Map</em>. Select <em>Dither</em> and make sure you set the Layer setting to <em>overlay</em> and approximately 35-50% <em>opacity</em>, but again, that depends what picture you are working on, how dark the colors are, how big the picture is, etc. Play around with the gradient a little to find out which one matches your picture the best. (Look at the eyes popping out now. If you brought them out too much at the beginning they would look surreal by now, and we don’t want that.)</p>
<div id="attachment_417" class="wp-caption alignnone" style="width: 510px"><a href="http://stiern.com/site/wp-content/everything/las_adjust.png"><img class="size-full wp-image-417 " src="http://stiern.com/site/wp-content/everything/las_adjust.png" alt="Let's start making the actual effect" width="500" height="305" /></a><p class="wp-caption-text">Let&#39;s start making the actual effect</p></div>
<h3>Step 7</h3>
<p>Select the all layers (except you source picture) and group them  <em>Cmd+G</em> (<em>Ctrl+G</em> on Windows). Right click and duplicate group. Next you need to merge the new group, so go <em>Cmd+E</em> (<em>Ctrl+E </em>on Windows).</p>
<p>Now go<strong> </strong><em>Filter » Other » High Pass</em> and set it to about 4 and a layer setting of <em>overlay</em>. Again, that setting depends on the size, content, quality etc. of the picture. This <em>High Pass</em> filter is to sharpen up the image. This will do a lot to the eyes for example, but you can see for yourself.</p>
<h3>Step 8</h3>
<p>With the <em>High Pass</em> layer now selected I would, no matter what picture you are retouching, go <em>Layer » Layer Mask » Reveal All.</em> Get the <em>Brush tool</em><strong> </strong>with 60% opacity and 60% black and go over the largest areas. In my picture it would be the cheek, grass and the shirt. Go over the things that should not be striking to the eye at first when looking at the picture.</p>
<h3>Step 9</h3>
<p><span style="font-weight: normal;font-size: 13px">Clean it up, maybe add some more light or shadow if your image can handle it.</span></p>
<h3>That&#8217;s it</h3>
<div class="wp-caption alignnone" style="width: 510px"><a rel="lightbox" href="http://stiern.com/site/wp-content/everything/lights_and_shadows_done.png"><img src="http://stiern.com/site/wp-content/everything/lights_and_shadows_done.png" alt="The final picture" width="500" height="334" /></a><p class="wp-caption-text">The final picture</p></div>
<p>Hope you learned something! Take care!</p>

<p><a href="http://feedads.g.doubleclick.net/~a/P7iPJe60OvpmIVsJX3Kjykqyg9U/0/da"><img src="http://feedads.g.doubleclick.net/~a/P7iPJe60OvpmIVsJX3Kjykqyg9U/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/P7iPJe60OvpmIVsJX3Kjykqyg9U/1/da"><img src="http://feedads.g.doubleclick.net/~a/P7iPJe60OvpmIVsJX3Kjykqyg9U/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/stiern/~4/wUIF74i9PUM" height="1" width="1"/>]]></content:encoded><description>This tutorial is not too advanced but mostly to help to understand the power of shadow and light in short terms! There’s no “boring” text here. So if you are not used to Photoshop, do yourself a favor and read it all before continuing to the next step! You might learn something!


The thing about a [...]</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://stiern.com/tutorials/lights-and-shadows-in-photoshop/feed</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">5</slash:comments><feedburner:origLink>http://stiern.com/tutorials/lights-and-shadows-in-photoshop</feedburner:origLink></item><item><title>Stiern.com Relaunch</title><link>http://feedproxy.google.com/~r/stiern/~3/tLzotumwAIE/stiern-com-relaunch</link><category>Stiern.com</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Peter</dc:creator><pubDate>Fri, 03 Jul 2009 06:51:35 PDT</pubDate><guid isPermaLink="false">http://stiern.com/?p=391</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>Hello, and welcome to the relaunch of Stiern.com. My former design was ugly, and so I decided to make a new one. I like it, and I hope you&#8217;ll like it too. I&#8217;ve decided not to support IE6, as the target group of this website is not IE6 users. As with many new sites, there can be some issues. I hope that you will not hesitate to contact me if you find anything unusual around here – thanks!</p>
<p>Well, I won&#8217;t bother you with more of this. I&#8217;ll get something posted in the near future for your pleasure.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/AbyzJJedGjwUGGMTEW7MNLKmfC0/0/da"><img src="http://feedads.g.doubleclick.net/~a/AbyzJJedGjwUGGMTEW7MNLKmfC0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/AbyzJJedGjwUGGMTEW7MNLKmfC0/1/da"><img src="http://feedads.g.doubleclick.net/~a/AbyzJJedGjwUGGMTEW7MNLKmfC0/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/stiern/~4/tLzotumwAIE" height="1" width="1"/>]]></content:encoded><description>Hello, and welcome to the relaunch of Stiern.com. My former design was ugly, and so I decided to make a new one. I like it, and I hope you&amp;#8217;ll like it too. I&amp;#8217;ve decided not to support IE6, as the target group of this website is not IE6 users. As with many new sites, there [...]</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://stiern.com/stierncom/stiern-com-relaunch/feed</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">6</slash:comments><feedburner:origLink>http://stiern.com/stierncom/stiern-com-relaunch</feedburner:origLink></item><item><title>Which Social Networks Are You Part Of?</title><link>http://feedproxy.google.com/~r/stiern/~3/_N41ujVTNcY/which-social-networks-are-you-part-of</link><category>Articles</category><category>Dopplr</category><category>Facebook</category><category>Flickr</category><category>Last.fm</category><category>LinkedIn</category><category>MySpace</category><category>Social Networking</category><category>Twitter</category><category>Vimeo</category><category>YouTube</category><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Peter</dc:creator><pubDate>Thu, 23 Apr 2009 14:09:52 PDT</pubDate><guid isPermaLink="false">http://stiern.com/?p=312</guid><content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/"><![CDATA[<p>Social networking has eventually become crucial for surviving (!), and it seems there are endless posibilities as to finding the right ones to be part of. For me, it all started with <a title="Facebook" href="http://facebook.com/">Facebook</a> about two years ago. My friends tried to convince me to sign up, and I finally gave in. Since then, Facebook has developed in to a commercial monster, and I hardly log on anymore. But still, Facebook was where it begun. My interest in social networks has only grown since then, and I tell you, there is a cornucopia of social networks out there. But which ones should you be a part of? It is a jungle. I&#8217;d like to take you through the social networks I&#8217;m a part of, and also mention a few that I&#8217;ll never be a part of.</p>
<p><span id="more-312"></span></p>
<h2>Twitter</h2>
<p><img class="alignnone size-full wp-image-323" title="Twitter" src="http://stiern.com/site/wp-content/everything/twitter.png" alt="Twitter" width="500" height="100" /></p>
<p><a title="Twitter" href="http://twitter.com/">Twitter</a> is for me the most important social network. It is the place for me to share links to great articles, ask questions about software or design related stuff, and lots of other stuff. If you&#8217;re not a member of Twitter, you&#8217;re falling behind. Twitter is the <a title="Twitter is growing fast!" href="http://www.web-strategist.com/blog/2009/01/11/a-collection-of-soical-network-stats-for-2009/">fastest growing</a> social network ever with an increase of unique visitors of almost 1400 % in one year. That&#8217;s crazy, and the number speaks for itself. Sign up now!</p>
<p><a title="Follow me at Twitter" href="https://twitter.com/pshoeg">Follow me on Twitter</a></p>
<h2>Facebook</h2>
<p><img class="alignnone size-full wp-image-325" title="facebook" src="http://stiern.com/site/wp-content/everything/facebook.png" alt="facebook" width="500" height="100" /></p>
<p>I think I can surely say, that you&#8217;re a member of <a title="Facebook" href="http://facebook.com">Facebook</a>. If you aren&#8217;t—good for you! Facebook has over the last year become more and more commercial. Oh, and there&#8217;s also this thing about them owning your pictures (which they, as far as I know, are changing) and using them in advertisements. Still, Facebook is probably where most of your friends are. And in the end, it <em>is </em>a great way of keeping in touch with long distance friends, or just knowing every step they take. A couple of my friends have deactivated their Facebook accounts (you can&#8217;t delete it), and I&#8217;m considering following in their footsteps, but I don&#8217;t think I&#8217;m ready yet…</p>
<p><a title="Be my friend at Facebook" href="http://www.facebook.com/profile.php?id=640595271">Be my friend at Facebook</a></p>
<h2>Flickr</h2>
<p><img class="alignnone size-full wp-image-326" title="flickr" src="http://stiern.com/site/wp-content/everything/flickr.png" alt="flickr" width="500" height="100" /></p>
<p>Until recently, I haven&#8217;t really used <a title="Flickr" href="http://flickr.com">Flickr</a> as much as I want to. Flickr is a great way of sharing your photos with your family and your friends, or with the world. Flickr became attractive to me the minute I found out that users with free accounts suddenly were able to create more than three sets, a feature that until then only was available for users with pro accounts. I&#8217;ve searched for similar photo sharing services, and there&#8217;s a lot of different alternatives to Flickr, such as <a title="Picasa" href="http://picasaweb.google.com/home">Picasa</a>, <a title="Zooomr" href="http://www.zooomr.com/" class="broken_link" >Zooomr</a> and <a title="Fotonauts" href="http://www.fotonauts.com/">Fotonauts</a>, but I just don&#8217;t think that any of them can live up to the features and the high standard of photos at Flickr.</p>
<p><a title="Be my contact at Flickr" href="http://www.flickr.com/photos/pshoeg/">Be my contact at Flickr</a></p>
<h2>Vimeo</h2>
<p><img class="alignnone size-full wp-image-327" title="vimeo" src="http://stiern.com/site/wp-content/everything/vimeo.png" alt="vimeo" width="500" height="100" /></p>
<p><a title="Vimeo" href="http://vimeo.com">Vimeo</a> is my new favourite social network. The cool thing about Vimeo over e.g. YouTube, is that it consists of only original videos. The design of the site is amazing, and it&#8217;s incredibly easy to use. It&#8217;s not as big as YouTube, hence not so immense. There&#8217;s a lot of great stuff for inspiration there, and you should definitely check out the <a title="Staff Picks at Vimeo" href="http://vimeo.com/staffpicks">Staff Picks channel</a>, where some amazing videos can be found.</p>
<p><a title="Be my contact at Vimeo" href="http://vimeo.com/pshoeg">Be my contact at Vimeo</a></p>
<h2>Dopplr</h2>
<p><img class="alignnone size-full wp-image-328" title="dopplr" src="http://stiern.com/site/wp-content/everything/dopplr.png" alt="dopplr" width="500" height="100" /></p>
<p>I only recently discovered <a title="Dopplr" href="http://dopplr.com">Dopplr</a>, a place to share you travelling experiences and plans. It allows you to plan your trip into details, and find other people who are going the same places as you. You can invite people to follow your trips, so you can keep them updated while you&#8217;re away. I haven&#8217;t tried this while I&#8217;m travelling yet, but I&#8217;m looking forward to this summer where my wife and I are spending a month in the states. Who know, maybe Dopplr will come in handy?</p>
<p><a title="Connect with me at Dopplr" href="http://www.dopplr.com/traveller/pshoeg">Connect with me at Dopplr</a></p>
<h2>LinkedIn</h2>
<p><img class="alignnone size-full wp-image-329" title="linkedin" src="http://stiern.com/site/wp-content/everything/linkedin.png" alt="linkedin" width="500" height="100" /></p>
<p><a title="LinkedIn" href="https://www.linkedin.com/">LinkedIn</a> is mostly for work related stuff. It&#8217;s a great place to meet new or future colleagues, and some have found their new job through LinkedIn just by knowing people who knows people, who knows people, who&#8230; You get the point! Use LinkedIn to build up a large network, and make sure you&#8217;re introduced to other peoples&#8217; bosses—maybe they&#8217;ll hire you. LinkedIn is you professional identity online, contrary to e.g. Facebook which is&#8230; Well, not so professional.</p>
<p><a title="Be my contact at LinkedIn" href="http://www.linkedin.com/in/pshoeg">Be my contact at LinkedIn</a></p>
<h2>Social Networks I&#8217;m Not a Member Of</h2>
<p>If I should pick one social network, that I know for sure I&#8217;ll never be a member of, it has to be <a title="MySpace" href="http://www.myspace.com/">MySpace</a>. It is very infrequent I find a well-designed MySpace profile. It&#8217;s just all too confusing to me. I&#8217;ve tried using <a title="Last.fm" href="http://www.last.fm/">Last.fm</a> and similar, but they just never fell into my taste. I like owning my own music. <a title="i use this" href="http://osx.iusethis.com/">i use this</a>, <a title="Wakoopa" href="http://wakoopa.com/">Wakoopa</a>, and other equivalents, are not my style either, but hey, maybe someone like them&#8230;</p>
<p>That&#8217;s about it for me. Now it&#8217;s your turn! Which social networks are you part of? And why? Which social networks will you never sign up to? And why? Please leave you comment below!</p>

<p><a href="http://feedads.g.doubleclick.net/~a/t05TH7YsGQbM659f3Rg3lMw42FY/0/da"><img src="http://feedads.g.doubleclick.net/~a/t05TH7YsGQbM659f3Rg3lMw42FY/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/t05TH7YsGQbM659f3Rg3lMw42FY/1/da"><img src="http://feedads.g.doubleclick.net/~a/t05TH7YsGQbM659f3Rg3lMw42FY/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/stiern/~4/_N41ujVTNcY" height="1" width="1"/>]]></content:encoded><description>Social networking has eventually become crucial for surviving (!), and it seems there are endless posibilities as to finding the right ones to be part of. For me, it all started with Facebook about two years ago. My friends tried to convince me to sign up, and I finally gave in. Since then, Facebook has [...]</description><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://stiern.com/articles/which-social-networks-are-you-part-of/feed</wfw:commentRss><slash:comments xmlns:slash="http://purl.org/rss/1.0/modules/slash/">1</slash:comments><feedburner:origLink>http://stiern.com/articles/which-social-networks-are-you-part-of</feedburner:origLink></item></channel></rss>
