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

<channel>
	<title>atomiku</title>
	<atom:link href="http://atomiku.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://atomiku.com</link>
	<description>web development, scripting, music/mixing, etc...</description>
	<lastBuildDate>Mon, 14 May 2012 12:58:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>From web developer to designer&#8230;</title>
		<link>http://atomiku.com/2012/02/from-developer-to-designer/</link>
		<comments>http://atomiku.com/2012/02/from-developer-to-designer/#comments</comments>
		<pubDate>Tue, 21 Feb 2012 22:07:47 +0000</pubDate>
		<dc:creator>atomiku</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://atomiku.com/?p=293</guid>
		<description><![CDATA[A great developer, but not so much a designer. It seems that over the years working as a web developer all my my focus went into just that&#8230; developing. I read online though that there are many people who work exclusively as developers and never design a PSD in their life. One of the pitfalls [...]]]></description>
			<content:encoded><![CDATA[<p><strong><em></em></strong>A great developer, but not so much a designer. It seems that over the years working as a web <em>developer</em> all my my focus went into just that&#8230; <em>developing. </em>I read online though that there are many people who work exclusively as developers and never design a PSD in their life.</p>
<blockquote><p>One of the pitfalls many developers face is their inability to make a great design for the product they code, either for lack of time, ability or interest. While design certainly isn’t everything, it is one of the bigger factors that can help make or break your business. To be a successful, self-reliant and cost-effective developer, having a basic understanding of design will be a crucial asset.</p></blockquote>
<p>Over the years I have relied on templates or being supplied PSD&#8217;s by excellent designers I have worked with. Going from developer to designer is going to take a while. A few things I am going to be trying this year:<br />
<span id="more-293"></span></p>
<h3>Tutorials</h3>
<p>Photoshop tutorials are a great way to learn new techniques and ideas. The site I have always gone to for &#8216;good tutorials&#8217; is: http://goodtutorials.com/</p>
<h3>Inspiration</h3>
<p>A lot of wonderful web design inspiration can be found at &#8211; http://patterntap.com/</p>
<p>A rather funny comparison between web designers and web developers below, you may want to click to view bigger:</p>
<p><a href="http://atomiku.com/wordpress/wp-content/uploads/2012/02/web-designers-vs-developers.png"><img title="web-designers-vs-developers" src="http://atomiku.com/wordpress/wp-content/uploads/2012/02/web-designers-vs-developers-658x1024.png" alt="" width="554" height="858" /></a></p>
<p><em>Infographic by: <a href="http://twitter.com/#!/shanesnow" target="_blank" rel="external nofollow">Shane Snow</a>.</em></p>
<p>So, anybody have any advice or success stories from going from developer to designer? I&#8217;d love to hear&#8230; thanks for reading.</p>
]]></content:encoded>
			<wfw:commentRss>http://atomiku.com/2012/02/from-developer-to-designer/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Simple jQuery plugin for Vertically Centering</title>
		<link>http://atomiku.com/2012/02/simple-jquery-plugin-for-vertically-centering/</link>
		<comments>http://atomiku.com/2012/02/simple-jquery-plugin-for-vertically-centering/#comments</comments>
		<pubDate>Fri, 17 Feb 2012 14:10:24 +0000</pubDate>
		<dc:creator>atomiku</dc:creator>
				<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://atomiku.com/?p=286</guid>
		<description><![CDATA[Came across this while needing to vertically center a div within another div: 1234567891011&#40;function &#40;$&#41; &#123; // VERTICALLY ALIGN FUNCTION $.fn.vAlign = function&#40;&#41; &#123; &#160; &#160; return this.each&#40;function&#40;i&#41;&#123; &#160; &#160; var ah = $&#40;this&#41;.height&#40;&#41;; &#160; &#160; var ph = $&#40;this&#41;.parent&#40;&#41;.height&#40;&#41;; &#160; &#160; var mh = Math.ceil&#40;&#40;ph-ah&#41; / 2&#41;; &#160; &#160; $&#40;this&#41;.css&#40;'margin-top', mh&#41;; &#160; &#160; &#125;&#41;; [...]]]></description>
			<content:encoded><![CDATA[<p>Came across this while needing to vertically center a div within another div:</p>
<div class="codecolorer-container javascript dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br /></div></td><td><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&#40;</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><br />
<span style="color: #006600; font-style: italic;">// VERTICALLY ALIGN FUNCTION</span><br />
$.<span style="color: #660066;">fn</span>.<span style="color: #660066;">vAlign</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><br />
&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">each</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>i<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> ah <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">height</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> ph <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">parent</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">height</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> mh <span style="color: #339933;">=</span> Math.<span style="color: #660066;">ceil</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>ph<span style="color: #339933;">-</span>ah<span style="color: #009900;">&#41;</span> <span style="color: #339933;">/</span> <span style="color: #CC0000;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'margin-top'</span><span style="color: #339933;">,</span> mh<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span>jQuery<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
<p>Then you can use $(&#8216;.classname&#8217;).vAlign(); or $(&#8216;#image&#8217;).vAlign(); &#8211; Make sure to use this once the document has loaded, within $(document).ready(function(){})!</p>
]]></content:encoded>
			<wfw:commentRss>http://atomiku.com/2012/02/simple-jquery-plugin-for-vertically-centering/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Great WordPress Plugins</title>
		<link>http://atomiku.com/2012/02/great-wordpress-plugins/</link>
		<comments>http://atomiku.com/2012/02/great-wordpress-plugins/#comments</comments>
		<pubDate>Wed, 15 Feb 2012 16:25:06 +0000</pubDate>
		<dc:creator>atomiku</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://atomiku.com/?p=270</guid>
		<description><![CDATA[WordPress is certainly one of the most feature rich and user friendly publishing platforms available today. At the same time it is loved for its openness, extendability and great open source community. WordPress is today used in serious projects and on large commercial websites besides the millions of hard working bloggers sharing their valuable knowledge. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.tripwiremagazine.com/2011/12/best-wordpress-plugins.html" target="_blank" rel="external nofollow"><img class="alignleft  wp-image-274" title="Wordpress-Plugin-Logo" src="http://atomiku.com/wordpress/wp-content/uploads/2012/02/Wordpress-Plugin-Logo.jpg" alt="" width="124" height="124" /></a>WordPress is certainly one of the most feature rich and user friendly publishing platforms available today. At the same time it is loved for its openness, extendability and great open source community. WordPress is today used in serious projects and on large commercial websites besides the millions of hard working bloggers sharing their valuable knowledge. This trend have created a huge market for professional high quality premium themes and recently we have also seen a market emerge for premium plugins as nearly any kind. Someone wrote a great article about it here: &#8220;35 Best WordPress Plugins&#8221; &#8211; <a href="http://www.tripwiremagazine.com/2011/12/best-wordpress-plugins.html" target="_blank" rel="external nofollow">http://www.tripwiremagazine.com/2011/12/best-wordpress-plugins.html</a></p>
<p>I will be posting more useful WordPress plugins soon. I have found quite a few I use, plus a few I&#8217;ve been developing myself.</p>
]]></content:encoded>
			<wfw:commentRss>http://atomiku.com/2012/02/great-wordpress-plugins/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Styling your WordPress Comments</title>
		<link>http://atomiku.com/2012/02/styling-your-wordpress-comments/</link>
		<comments>http://atomiku.com/2012/02/styling-your-wordpress-comments/#comments</comments>
		<pubDate>Mon, 13 Feb 2012 00:47:34 +0000</pubDate>
		<dc:creator>atomiku</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://atomiku.com/?p=206</guid>
		<description><![CDATA[I recently stumbled across a website that shows you how to customise your theme&#8217;s comments skin, and also provides you with some nice code/themes that you can drop into the template file, such as: Green Gravatar:  The Speech Bubble: The blog post can be found at: http://www.darrenhoyt.com/2007/08/18/styling-your-wordpress-comments/. I realize though that it was written in 2007, and the wordpress code [...]]]></description>
			<content:encoded><![CDATA[<p>I recently stumbled across a website that shows you how to customise your theme&#8217;s comments skin, and also provides you with some nice code/themes that you can drop into the template file, such as:</p>
<p><strong>Green Gravatar: </strong></p>
<p><img class="size-full wp-image-208 alignnone" title="comment2" src="http://atomiku.com/wordpress/wp-content/uploads/2012/02/comment2.jpg" alt="" width="431" height="162" /></p>
<p><strong>The Speech Bubble:</strong></p>
<p><a href="http://atomiku.com/wordpress/wp-content/uploads/2012/02/comment1.gif"><img class="alignnone size-full wp-image-209" title="comment1" src="http://atomiku.com/wordpress/wp-content/uploads/2012/02/comment1.gif" alt="" width="431" height="162" /></a></p>
<p>The blog post can be found at: <a href="http://www.darrenhoyt.com/2007/08/18/styling-your-wordpress-comments/" target="_blank" rel="external nofollow">http://www.darrenhoyt.com/2007/08/18/styling-your-wordpress-comments/</a>. I realize though that it was written in 2007, and the wordpress code may have updated since then. I am going to make some comment themes of my own to use, and may update these ones too.</p>
]]></content:encoded>
			<wfw:commentRss>http://atomiku.com/2012/02/styling-your-wordpress-comments/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fasthosts shared SSL and osCommerce: Not happening!</title>
		<link>http://atomiku.com/2012/02/fasthosts-shared-ssl-and-oscommerce-not-happening/</link>
		<comments>http://atomiku.com/2012/02/fasthosts-shared-ssl-and-oscommerce-not-happening/#comments</comments>
		<pubDate>Thu, 09 Feb 2012 11:39:11 +0000</pubDate>
		<dc:creator>atomiku</dc:creator>
				<category><![CDATA[osCommerce]]></category>

		<guid isPermaLink="false">http://atomiku.com/?p=45</guid>
		<description><![CDATA[First things first: osCommerce will not work when using a shared SSL certificate on Fasthosts (and probably other hosts that use shared SSL, too). I had searched everywhere for a solution but nobody seems to be able to get it to work. I came close, but the closer I came the more problems occurred. Let me [...]]]></description>
			<content:encoded><![CDATA[<p>First things first: <strong>osCommerce will not work when using a shared SSL certificate on Fasthosts</strong> (and probably other hosts that use shared SSL, too). I had searched everywhere for a solution but nobody seems to be able to get it to work. I came close, but the closer I came the more problems occurred.</p>
<p>Let me go into detail&#8230; I&#8217;ll first explain what Shared SSL is: This is an SSL certificate that you share with someone else. It means that the host will usually have the certificate signed for a generic domain such as secure-server.co.uk or secure15.fasthosts.net. When you use shared SSL, your secure website is located at: https://secure-server.co.uk/your-domain-name.co.uk/ rather than https://your-domain-name.co.uk/ &#8211; The browser will issue security warnings when trying to access https://your-domain-name.co.uk/ because the shared SSL certificate isn&#8217;t signed to your domain. A dedicated SSL certificate would be specifically signed to your domain.</p>
<p>So let me explain the issue with trying to secure your osCommerce installation with SSL when using a shared certificate&#8230; When the user logs in, the session cookie is saved to your domain name. This cookie can only be read by osCommerce while on your domain, right? It&#8217;s for security, PHP can&#8217;t go around reading other domain&#8217;s cookies. So once the user reaches the checkout process and osCommerce wants to redirect to the secure URL, rather than redirecting to https://your-domain/ it will redirect to the shared SSL domain at https://your-host.com/your-domain.com/ &#8211; This will cause major problems for osCommerce as it will no longer be able to read the cookies. Technically you could run your whole shop from the shared SSL domain, but in my opinion this would look unprofessional.</p>
<p>The second problem is that when you get a shared SSL certificate, usually you are given a completely separate directory for your SSL site to be uploaded into, so you would have to upload a separate installation of osCommerce into the SSL folder and reconfigure the paths etc. Many problems occur when trying to do this. <strong>My advice is to buy a dedicated SSL certificate if you wish to secure your osCommerce shop. </strong>If anyone HAS managed to get this working, please leave a comment as I would be surprised because it would require a fair amount of code changes for osCommerce.</p>
]]></content:encoded>
			<wfw:commentRss>http://atomiku.com/2012/02/fasthosts-shared-ssl-and-oscommerce-not-happening/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>atoChat v1.0</title>
		<link>http://atomiku.com/2012/02/atochat-v1-0/</link>
		<comments>http://atomiku.com/2012/02/atochat-v1-0/#comments</comments>
		<pubDate>Sun, 05 Feb 2012 22:41:02 +0000</pubDate>
		<dc:creator>atomiku</dc:creator>
				<category><![CDATA[atoChat]]></category>

		<guid isPermaLink="false">http://atomiku.com/?p=162</guid>
		<description><![CDATA[Just a recap here, of some things that have changed in atoChat v1.0: Installer updated with new skin Now almost XHTML compliant Javascript moved to its own .js file, instead of being in the index.php All the ajax calls are much more stable now, it initializes it&#8217;s own xmlHttp object for each call instead of [...]]]></description>
			<content:encoded><![CDATA[<p>Just a recap here, of some things that have changed in atoChat v1.0:</p>
<ul>
<li>Installer updated with new skin</li>
<li>Now almost XHTML compliant</li>
<li>Javascript moved to its own .js file, instead of being in the index.php</li>
<li>All the ajax calls are much more stable now, it initializes it&#8217;s own xmlHttp object for each call instead of using a global one.</li>
<li>Help screen updated, looks much better now</li>
<li>showsmileys() will now only display image files. Good for when windows makes that annoying Thumbs.db file, then atoChat ends up thinking it&#8217;s a smiley.</li>
<li>Cleaned up all the files and includes</li>
<li>Now using atolib library</li>
<li>Update checker updated</li>
<li>Color picker added instead of dropdown menu</li>
<li>Central PHP script for the chat is no longer central</li>
</ul>
<p>Please <a title="Newsletter" href="http://atomiku.com/newsletter/">subscribe to the newsletter</a> so I can let you guys know when it is released. Thanks!</p>
]]></content:encoded>
			<wfw:commentRss>http://atomiku.com/2012/02/atochat-v1-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding/Editing Tables for posts in WordPress</title>
		<link>http://atomiku.com/2012/02/addingediting-tables-for-posts-in-wordpress/</link>
		<comments>http://atomiku.com/2012/02/addingediting-tables-for-posts-in-wordpress/#comments</comments>
		<pubDate>Fri, 03 Feb 2012 12:47:23 +0000</pubDate>
		<dc:creator>atomiku</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://atomiku.com/?p=128</guid>
		<description><![CDATA[http://wordpress.org/extend/plugins/mce-table-buttons/]]></description>
			<content:encoded><![CDATA[<p>http://wordpress.org/extend/plugins/mce-table-buttons/</p>
]]></content:encoded>
			<wfw:commentRss>http://atomiku.com/2012/02/addingediting-tables-for-posts-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove scrollbars and get your facebook app/canvas iframe to autosize to height &#8211; FB.Canvas.setAutoGrow()</title>
		<link>http://atomiku.com/2012/02/remove-scrollbars-and-get-your-facebook-app-canvas-iframe-to-autosize-to-height-fb-canvas-setautogrow/</link>
		<comments>http://atomiku.com/2012/02/remove-scrollbars-and-get-your-facebook-app-canvas-iframe-to-autosize-to-height-fb-canvas-setautogrow/#comments</comments>
		<pubDate>Thu, 02 Feb 2012 11:59:34 +0000</pubDate>
		<dc:creator>atomiku</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://atomiku.com/?p=123</guid>
		<description><![CDATA[Note: This works with the new facebook 810px width canvas page! Also, my example is currently down, but the code below still works. If you have created a Facebook application that has an canvas iframe tab and you want the iframe to automatically grow to the size of the content, you can use FB.Canvas.setAutoGrow() within [...]]]></description>
			<content:encoded><![CDATA[<p><b>Note:</b> This works with the new facebook 810px width canvas page! Also, my example is currently down, but the code below still works.</p>
<p>If you have created a Facebook application that has an canvas iframe tab and you want the iframe to automatically grow to the size of the content, you can use FB.Canvas.setAutoGrow() within the frame. If you haven&#8217;t already created a facebook tab, follow this tutorial first: as it is the best way to do this in my opinion: <a href="http://www.dreamgrow.com/how-to-set-up-a-custom-facebook-landing-page/" target="_blank" rel="external nofollow">http://www.dreamgrow.com/how-to-set-up-a-custom-facebook-landing-page/</a>. First of all you need to edit your application, so go to https://developers.facebook.com/apps/ and click &#8216;Edit App&#8217;. Then in Settings -&gt; Advanced, scroll down to Canvas Settings and make sure Canvas Height is set to &#8216;fluid&#8217;:</p>
<p><a href="http://atomiku.com/wordpress/wp-content/uploads/2012/02/facebookcanvassettings.png"><img class="alignnone size-full wp-image-136" title="facebookcanvassettings" src="http://atomiku.com/wordpress/wp-content/uploads/2012/02/facebookcanvassettings.png" alt="" width="464" height="130" /></a></p>
<p>You&#8217;re not done yet, you need to insert the FB.Canvas.setAutoGrow() function into your iframe&#8217;s body. The facebook developer site states that you should use this code:</p>
<div class="codecolorer-container javascript dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br /></div></td><td><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">window.<span style="color: #660066;">fbAsyncInit</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><br />
&nbsp; FB.<span style="color: #660066;">init</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; appId &nbsp; &nbsp; &nbsp;<span style="color: #339933;">:</span> <span style="color: #3366CC;">'YOUR_APP_ID'</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">// App ID</span><br />
&nbsp; &nbsp; ... <span style="color: #006600; font-style: italic;">// Other configuration variables here</span><br />
&nbsp; <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; FB.<span style="color: #660066;">Canvas</span>.<span style="color: #660066;">setAutoGrow</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">//&lt;--- This</span><br />
<span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div>
<p>However, I noticed that setAutoGrow will not properly work on some browsers (mainly firefox) if you put it within window.fbAsyncInit function like how the facebook developer site states. Instead, run FB.Canvas.setAutoGrow() on window.onload instead &#8211; this will ensure that the timer starts after the browser has finished rendering the document and the DOM is ready:</p>
<div class="codecolorer-container javascript dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br /></div></td><td><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">window.<span style="color: #660066;">fbAsyncInit</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><br />
&nbsp; FB.<span style="color: #660066;">init</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; appId <span style="color: #339933;">:</span> <span style="color: #3366CC;">'YOUR_APP_ID'</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">// App ID</span><br />
&nbsp; &nbsp; ... <span style="color: #006600; font-style: italic;">// Other configuration variables here</span><br />
&nbsp; <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
window.<span style="color: #000066;">onload</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><br />
&nbsp; FB.<span style="color: #660066;">Canvas</span>.<span style="color: #660066;">setAutoGrow</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">100</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">//Run the timer every 100 milliseconds, you can increase this if you want to save CPU cycles</span><br />
<span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div>
<p>Your facebook iframe should be auto growing to the height of the content now. If it isn&#8217;t, leave a comment and I will help you. Even though the iframe height is sizing automatically, you may still have a vertical scrollbar visible. To remove this, set overflow:hidden on the body:</p>
<div class="codecolorer-container css dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">body <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span><span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<h2>Iframe Code Example</h2>
<p>Below is an example of how your page should look, an example of the application can be seen here: <a href="http://www.facebook.com/pages/atomikucom/250331981713993?sk=app_236448559776994" target="_blank" rel="external nofollow">http://www.facebook.com/pages/atomikucom/250331981713993?sk=app_236448559776994</a>.</p>
<div class="codecolorer-container html4strict dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:400px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #00bbdd;">&lt;!DOCTYPE html&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/html.html"><span style="color: #000000; font-weight: bold;">html</span></a> <span style="color: #000066;">lang</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;en&quot;</span>&gt;</span><br />
&nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/head.html"><span style="color: #000000; font-weight: bold;">head</span></a>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/meta.html"><span style="color: #000000; font-weight: bold;">meta</span></a> <span style="color: #000066;">charset</span><span style="color: #66cc66;">=</span>utf-<span style="color: #cc66cc;">8</span>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/title.html"><span style="color: #000000; font-weight: bold;">title</span></a>&gt;</span>Title Here<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/title.html"><span style="color: #000000; font-weight: bold;">title</span></a>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/style.html"><span style="color: #000000; font-weight: bold;">style</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; body {overflow:hidden;} /*This is handy for removing horizontal/vertical scrollbars as we won't need them if we autosize; */<br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/style.html"><span style="color: #000000; font-weight: bold;">style</span></a>&gt;</span><br />
&nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/head.html"><span style="color: #000000; font-weight: bold;">head</span></a>&gt;</span><br />
&nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/body.html"><span style="color: #000000; font-weight: bold;">body</span></a>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;fb-root&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;https://connect.facebook.net/en_US/all.js&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; window.fbAsyncInit = function() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; FB.init({<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; appId : 'YOUR_APP_ID', //Your facebook APP here<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cookie : true // enable cookies to allow the server to access the session<br />
&nbsp; &nbsp; &nbsp; &nbsp; });<br />
&nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; window.onload = function() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; FB.Canvas.setAutoGrow(91);<br />
&nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a>&gt;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span>Your content here...<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
&nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/body.html"><span style="color: #000000; font-weight: bold;">body</span></a>&gt;</span> &nbsp; <br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/html.html"><span style="color: #000000; font-weight: bold;">html</span></a>&gt;</span></div></td></tr></tbody></table></div>
<p>Everything should be working now. If you have any problems, or found this post helpful, leave a comment and I will try to help.</p>
<p><strong>Edit Feb 13th:</strong> I have updated the above complete iframe sample to demonstrate how it works. Tested in firefox, opera and chrome on mac. If it doesn&#8217;t work for your facebook canvas then you are doing something wrong. There are tutorials available on how to create a facebook app tab canvas. I recommend this post, as it is the best way to do this in my opinion: <a href="http://www.dreamgrow.com/how-to-set-up-a-custom-facebook-landing-page/" target="_blank" rel="nofollow external">http://www.dreamgrow.com/how-to-set-up-a-custom-facebook-landing-page/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://atomiku.com/2012/02/remove-scrollbars-and-get-your-facebook-app-canvas-iframe-to-autosize-to-height-fb-canvas-setautogrow/feed/</wfw:commentRss>
		<slash:comments>34</slash:comments>
		</item>
		<item>
		<title>Site Updates and atoChat v1.0 beta</title>
		<link>http://atomiku.com/2012/01/site-updates-and-atochat-v1-0-beta/</link>
		<comments>http://atomiku.com/2012/01/site-updates-and-atochat-v1-0-beta/#comments</comments>
		<pubDate>Fri, 27 Jan 2012 04:37:57 +0000</pubDate>
		<dc:creator>atomiku</dc:creator>
				<category><![CDATA[atoChat]]></category>
		<category><![CDATA[Updates]]></category>

		<guid isPermaLink="false">http://atomiku.com/?p=108</guid>
		<description><![CDATA[New pages up: Atomic Inc, Bass Piratez, DJ Zappa and teroMUD. atoChat v1.0 is basically ready so a beta link will be added to the atoChat page late March, if you would like to try the beta before that time then please send me your email address through the contact form, thanks. atoChat v1.0 screenshots [...]]]></description>
			<content:encoded><![CDATA[<p>New pages up: Atomic Inc, Bass Piratez, DJ Zappa and teroMUD. atoChat v1.0 is basically ready so a beta link will be added to the atoChat page late March, if you would like to try the beta before that time then please send me your email address through the contact form, thanks. atoChat v1.0 screenshots to follow&#8230;</p>
<p>Here is a screenshot of atoChat v0.5 in action:<br />
<a href="http://atomiku.com/wordpress/wp-content/uploads/2012/01/atoChat-23145.png"><img class="alignnone  wp-image-111" title="atoChat-23145" src="http://atomiku.com/wordpress/wp-content/uploads/2012/01/atoChat-23145.png" alt="" width="554" height="269" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://atomiku.com/2012/01/site-updates-and-atochat-v1-0-beta/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>osCommerce v2.3.1 and SagePay Direct: Error 4020: Invalid IP Address</title>
		<link>http://atomiku.com/2012/01/oscommerce-v2-3-1-and-sagepay-direct-error-4020-invalid-ip-address/</link>
		<comments>http://atomiku.com/2012/01/oscommerce-v2-3-1-and-sagepay-direct-error-4020-invalid-ip-address/#comments</comments>
		<pubDate>Thu, 19 Jan 2012 12:25:00 +0000</pubDate>
		<dc:creator>atomiku</dc:creator>
				<category><![CDATA[osCommerce]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[oscommerce]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://atomiku.com/?p=34</guid>
		<description><![CDATA[Two possible error messages for 4020: &#8220;Information received from an Invalid IP address&#8221; and just &#8220;Invalid IP address&#8221;. While I was configuring SagePay Direct for an osCommerce store I made, the checkout process wasn&#8217;t completing because SagePay was returning error 4020. This means that the IP address I added to the &#8220;Valid IPs&#8221; tab on [...]]]></description>
			<content:encoded><![CDATA[<p>Two possible error messages for 4020: &#8220;Information received from an Invalid IP address&#8221; and just &#8220;Invalid IP address&#8221;.</p>
<p>While I was configuring SagePay Direct for an osCommerce store I made, the checkout process wasn&#8217;t completing because SagePay was returning error 4020. This means that the IP address I added to the &#8220;Valid IPs&#8221; tab on the SagePay control panel isn&#8217;t matching up with the IP address the request is coming from. If you&#8217;re getting this error too then it is most likely because you&#8217;ve entered the wrong IP, or no IP at all. You can log in to SagePay live at <a href="https://live.sagepay.com/mysagepay/" target="_blank" rel="external nofollow">https://live.sagepay.com/mysagepay/</a>. If you switch SagePay to Simulator mode, the error message will also include the IP address it received the request from, so then you can go and add the correct IP address. You can sign up for a simulator account at <a href="https://support.sagepay.com/apply/RequestSimAccount.aspx" target="_blank" rel="external nofollow">https://support.sagepay.com/apply/RequestSimAccount.asp</a> &#8211; If you definitely have the correct IP address added, and you are still getting the same error, then something else must be up&#8230;</p>
<p><strong>Attempt #1:</strong> I figured out that perhaps SagePay had updated their API and my SagePay Direct payment module for osCommerce was out of date? The osCommerce community addons website shows that the latest version of SagePay Direct payment module is <strong>v1.1</strong>, whereas I was using v1.0. It seems that the osCommerce v2.3.1 package I downloaded shipped with SagePay Direct v1.0. After installing v1.1 I am still getting the same error. Something else must be up?</p>
<p><strong>Attempt #2 (solution<strong>!</strong>):</strong> SagePay seems to be returning &#8220;Error 4020: Invalid IP Address&#8221; because the transaction wasn&#8217;t being secured with SSL. It&#8217;s actually a legal requirement in UK, due to data security standards laws, to secure all sensitive information (address, credit card numberr, etc) by having the checkout process encrypted with 128bit SSL. The error seems to have gone away.</p>
]]></content:encoded>
			<wfw:commentRss>http://atomiku.com/2012/01/oscommerce-v2-3-1-and-sagepay-direct-error-4020-invalid-ip-address/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

