<?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>Guillaume Piot &#124; Application Developer &#38; User Interface Designer &#187; Cheat sheet</title>
	<atom:link href="http://gpiot.com/category/development-tips/cheat-sheet/feed/" rel="self" type="application/rss+xml" />
	<link>http://gpiot.com</link>
	<description></description>
	<lastBuildDate>Tue, 30 Apr 2013 08:42:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Facebook page tab: hide scroll bars from iframe</title>
		<link>http://gpiot.com/facebook-page-tab-hide-scroll-bars-from-iframe/</link>
		<comments>http://gpiot.com/facebook-page-tab-hide-scroll-bars-from-iframe/#comments</comments>
		<pubDate>Tue, 18 Oct 2011 19:05:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cheat sheet]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://gpiot.com/?p=347</guid>
		<description><![CDATA[In the following case, we are using an iFrame to render a page tab in our Facebook page. The page in the iFrame is hosted on a different server. 1. First of all, we need to setup the Facebook app [...]]]></description>
			<content:encoded><![CDATA[<p>In the following case, we are using an iFrame to render a page tab in our Facebook page. The page in the iFrame is hosted on a different server.</p>
<p><strong> </strong></p>
<p>1. First of all, we need to setup the Facebook app canvas settings accordingly (in the advanced settings of the app):</p>
<p><a href="http://gpiot.com/wp-content/uploads/2011/10/Screen-Shot-2011-10-18-at-11.05.57.png"><img class="alignnone size-full wp-image-353" title="Screen Shot 2011-10-18 at 11.05.57" src="http://gpiot.com/wp-content/uploads/2011/10/Screen-Shot-2011-10-18-at-11.05.57.png" alt="" width="630" /></a></p>
<p>2. Then using javascript we&#8217;ll ask Facebook to resize the frame automatically. Add the following code inside your page &lt;head&gt;:</p>
<div class="codecolorer-container html4strict default" 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 /></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: #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> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&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> <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;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span>// <span style="color: #009900;">&lt;!<span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span></span><br />
<span style="color: #009900;"> &nbsp; &nbsp; &nbsp; FB.Canvas.setAutoResize<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</span><br />
<span style="color: #009900;"><span style="color: #66cc66;">//</span> <span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</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></div></td></tr></tbody></table></div>
<p>3. Finally, we need to force our body and html tag to avoid scroll bars. In your style sheet add the following:</p>
<div class="codecolorer-container css default" 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 /></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;">,</span> html <span style="color: #00AA00;">&#123;</span><br />
<br />
<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><br />
<br />
<span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div>
<p>or inline with the html code:</p>
<div class="codecolorer-container html4strict default" 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 /></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: #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;">style</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;overflow:hidden;&quot;</span>&gt;</span><br />
<br />
<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> <span style="color: #000066;">style</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;overflow:hidden;&quot;</span>&gt;</span></div></td></tr></tbody></table></div>
<p>This has worked for me to remove all the scroll bars. It&#8217;s working on the 18th of October, but because Facebook keep changing their code, it may change in the future.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://gpiot.com/facebook-page-tab-hide-scroll-bars-from-iframe/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Linux: search for string in files from command line</title>
		<link>http://gpiot.com/linux-search-for-string-in-files-from-command-line/</link>
		<comments>http://gpiot.com/linux-search-for-string-in-files-from-command-line/#comments</comments>
		<pubDate>Fri, 10 Sep 2010 11:49:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cheat sheet]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://localhost/devblog/?p=43</guid>
		<description><![CDATA[grep -H -r &#8220;string to find&#8221; /folder/where/you/want/to/search]]></description>
			<content:encoded><![CDATA[<p>grep -H -r &#8220;string to find&#8221; /folder/where/you/want/to/search</p>
]]></content:encoded>
			<wfw:commentRss>http://gpiot.com/linux-search-for-string-in-files-from-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
