<?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>Harry Bailey</title>
	<atom:link href="http://harrybailey.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://harrybailey.com</link>
	<description>just a little bit geeky</description>
	<lastBuildDate>Wed, 09 May 2012 10:17:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Move your Sites folder in OS X with a SymLink NOT an Alias</title>
		<link>http://harrybailey.com/2012/05/move-your-sites-folder-in-os-x-with-a-symlink-not-an-alias/</link>
		<comments>http://harrybailey.com/2012/05/move-your-sites-folder-in-os-x-with-a-symlink-not-an-alias/#comments</comments>
		<pubDate>Wed, 09 May 2012 10:17:53 +0000</pubDate>
		<dc:creator>Harry</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[OS X 10.7]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://harrybailey.com/?p=673</guid>
		<description><![CDATA[Two hours of my life were wasted on this one, even though I&#8217;ve done it before. So&#8230; If you want to move your ~/Sites folder into say Dropbox or AeroFS or Google Drive or SkyDrive and then you still want to point to it from its default location don&#8217;t use an alias. I know an [...]]]></description>
			<content:encoded><![CDATA[<p>Two hours of my life were wasted on this one, even though I&#8217;ve done it before. So&#8230;</p>
<p>If you want to move your ~/Sites folder into say Dropbox or AeroFS or Google Drive or SkyDrive and then you still want to point to it from its default location don&#8217;t use an alias.</p>
<p>I know an alias is only a ctrl-click away, but it means all sorts of pain.</p>
<p>Instead, move the folder. Open Terminal and type:</p>
<pre>
ln -s ~/Dropbox/Sites ~/Sites
</pre>
<p>Replace Dropbox with whatever the folder of your service is called.</p>
<p>Restart Apache either by restarting Web Sharing in System Preference -> Sharing or by using Terminal and typing:</p>
<pre>
apachectl graceful
</pre>
<p>Cross your fingers and open a virtual host in your web browser. I fought with an Alias and all sorts of folder settings and httpd.conf lines to try and get it working, and then all I needed was to use a SymLink in its place.</p>
<p>Cheers to James Galley, my desk neighbour for helping my brain to click on this one.</p>
]]></content:encoded>
			<wfw:commentRss>http://harrybailey.com/2012/05/move-your-sites-folder-in-os-x-with-a-symlink-not-an-alias/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mac Book Pro + OS X Lion external monitor issues</title>
		<link>http://harrybailey.com/2012/02/mac-book-pro-os-x-lion-external-monitor-issues/</link>
		<comments>http://harrybailey.com/2012/02/mac-book-pro-os-x-lion-external-monitor-issues/#comments</comments>
		<pubDate>Fri, 17 Feb 2012 08:11:22 +0000</pubDate>
		<dc:creator>Harry</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[OS X 10.7]]></category>

		<guid isPermaLink="false">http://harrybailey.com/?p=640</guid>
		<description><![CDATA[This is a short post to allow me to keep track of all the issues I have seen with graphics when using my Macbook Pro on OS X Lion with an external monitor. There is a thread on the apple discussion forums which is worth a follow too: https://discussions.apple.com/message/16881510#16881510 The app switcher contrast issue: If [...]]]></description>
			<content:encoded><![CDATA[<p>This is a short post to allow me to keep track of all the issues I have seen with graphics when using my Macbook Pro on OS X Lion with an external monitor. There is a thread on the apple discussion forums which is worth a follow too:</p>
<p><a href="https://discussions.apple.com/message/16881510#16881510">https://discussions.apple.com/message/16881510#16881510</a></p>
<p>The app switcher contrast issue:</p>
<p><a href="http://harrybailey.com/wp-content/uploads/2012/02/Untitled.jpg"><img src="http://harrybailey.com/wp-content/uploads/2012/02/Untitled-300x72.jpg" alt="app switch contrast" title="app switch contrast" width="300" height="72" class="aligncenter size-medium wp-image-641" /></a></p>
<p>If you click the image above you will see the app switcher has very high colour contrast.</p>
<p>The White / invisible app switcher icons:</p>
<p><a href="http://harrybailey.com/wp-content/uploads/2012/02/pixilated-rainbox-app-switcher-1.png"><img src="http://harrybailey.com/wp-content/uploads/2012/02/pixilated-rainbox-app-switcher-1-300x56.png" alt="" title="pixilated-rainbox-app-switcher-1" width="300" height="56" class="aligncenter size-medium wp-image-670" /></a></p>
<p>Click the image above for a better quality image.</p>
<p>Other issues I have seen, but haven&#8217;t got screenshots of yet&#8230;</p>
<p>White / invisible app switcher icons<br />
Distorted (bold and blurry) text in app windows<br />
App windows which contain diagonal coloured noise</p>
<p>A restart of my mac seems to fix the issues temporarily.</p>
]]></content:encoded>
			<wfw:commentRss>http://harrybailey.com/2012/02/mac-book-pro-os-x-lion-external-monitor-issues/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Create Add Root FTP Account in cPanel</title>
		<link>http://harrybailey.com/2012/02/create-add-root-ftp-account-in-cpanel/</link>
		<comments>http://harrybailey.com/2012/02/create-add-root-ftp-account-in-cpanel/#comments</comments>
		<pubDate>Thu, 02 Feb 2012 16:30:26 +0000</pubDate>
		<dc:creator>Harry</dc:creator>
				<category><![CDATA[cPanel]]></category>

		<guid isPermaLink="false">http://harrybailey.com/?p=634</guid>
		<description><![CDATA[When you get a new hosting account you get an account user. These user details can be used to log into cPanel if you have it, but can also be used to connect via an ftp client to upload your sites files. This always puts me on edge though. If someone gets your details they [...]]]></description>
			<content:encoded><![CDATA[<p>When you get a new hosting account you get an account user. These user details can be used to log into cPanel if you have it, but can also be used to connect via an ftp client to upload your sites files.</p>
<p>This always puts me on edge though. If someone gets your details they can&#8217;t just access your ftp but can also log in and make any changes that they want to your site.</p>
<p>For this reason I generally set up a new ftp account just to use for ftp access.</p>
<p>Until now I&#8217;ve never worked out how to access the root of a site with an ftp account. Generally I just accept access to the public_html folder and leave it at that. But today I finally worked out how to give an ftp account root access to a hosting accounts files.</p>
<p><span id="more-634"></span></p>
<p>When setting up your new account you have to choose a folder to give access to. Leaving the field blank is not valid, but strangely putting just a single forward slash is, IF you can work out how. Generally no matter how hard you try cPanel chooses a folder it thinks you&#8217;re trying to type and fills the field with it. Grrrrr, annoying. But&#8230;</p>
<p><strong>If you focus the folder field, type / and then reverse tab you can exit the field leaving just a / there. If you&#8217;re wondering what a reverse tab is, it&#8217;s done with shift-tab and tabs back up the form.</strong></p>
<p>Behold, a new ftp account with root site access to the file structure.</p>
<p>As an added tip, I always end ftp accounts with -ftp so they are obviously not email addresses and generally start them with the name of the person who needs access:</p>
<p>harry-ftp@example.com</p>
<p>If it&#8217;s access to a specific area then I add that too:</p>
<p>harry-templates-ftp@example.com</p>
<p>Happy ftping!</p>
]]></content:encoded>
			<wfw:commentRss>http://harrybailey.com/2012/02/create-add-root-ftp-account-in-cpanel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Animating Fade Of Twitter Bootstrap Buttons</title>
		<link>http://harrybailey.com/2011/11/animating-fade-of-twitter-bootstrap-buttons/</link>
		<comments>http://harrybailey.com/2011/11/animating-fade-of-twitter-bootstrap-buttons/#comments</comments>
		<pubDate>Thu, 17 Nov 2011 11:49:37 +0000</pubDate>
		<dc:creator>Harry</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://harrybailey.com/?p=632</guid>
		<description><![CDATA[I came across a curious issue today. You can&#8217;t select a period of time over which to fade out and fade in Twitter Bootstrap buttons. If you apply jQuery fadeTo() or animate() they fade out and they fade in, but they do it in their own time. This may be related to a css transition [...]]]></description>
			<content:encoded><![CDATA[<p>I came across a curious issue today. You can&#8217;t select a period of time over which to fade out and fade in Twitter Bootstrap buttons.</p>
<p>If you apply jQuery fadeTo() or animate() they fade out and they fade in, but they do it in their own time.</p>
<p>This may be related to a css transition which is applied in the bootstrap css, I haven&#8217;t had a chance to look, but the workaround for me is to put the button in a span and fade the span in and out instead.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">   &lt;span&gt;&lt;a href=&quot;#&quot; class=&quot;btn small&quot;&gt;Button Text&lt;/a&gt;&lt;/span&gt;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://harrybailey.com/2011/11/animating-fade-of-twitter-bootstrap-buttons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add Random Hashes With Mysql</title>
		<link>http://harrybailey.com/2011/11/add-random-hashes-with-mysql/</link>
		<comments>http://harrybailey.com/2011/11/add-random-hashes-with-mysql/#comments</comments>
		<pubDate>Tue, 01 Nov 2011 09:37:42 +0000</pubDate>
		<dc:creator>Harry</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://harrybailey.com/?p=620</guid>
		<description><![CDATA[Adding a new column to a table which needs to contain a different random hash for each row? Mysql can easily generate md5 strings and update all rows in the table for you UPDATE thetable SET thecolumn = MD5&#40;RAND&#40;&#41;&#41; WHERE thecolumn IS NULL]]></description>
			<content:encoded><![CDATA[<p>Adding a new column to a table which needs to contain a different random hash for each row?</p>
<p>Mysql can easily generate md5 strings and update all rows in the table for you</p>

<div class="wp_syntax"><div class="code"><pre class="sql sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">UPDATE</span> thetable
<span style="color: #993333; font-weight: bold;">SET</span> thecolumn <span style="color: #66cc66;">=</span> MD5<span style="color: #66cc66;">&#40;</span>RAND<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #993333; font-weight: bold;">WHERE</span> thecolumn <span style="color: #993333; font-weight: bold;">IS</span> <span style="color: #993333; font-weight: bold;">NULL</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://harrybailey.com/2011/11/add-random-hashes-with-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS3 Element Wiggle With Keyframes</title>
		<link>http://harrybailey.com/2011/09/css3-element-wiggle-with-keyframes/</link>
		<comments>http://harrybailey.com/2011/09/css3-element-wiggle-with-keyframes/#comments</comments>
		<pubDate>Thu, 29 Sep 2011 11:45:09 +0000</pubDate>
		<dc:creator>Harry</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[The Web]]></category>

		<guid isPermaLink="false">http://harrybailey.com/?p=617</guid>
		<description><![CDATA[This technique produces something similar to the wiggle you get on an iPhone when deleting items. Be aware that keyframe animation is still very poor in Chrome and cases freezing and jumping if multiple items are animated at once. The animation css below results in a hovered element rotating back and forth around it&#8217;s centre [...]]]></description>
			<content:encoded><![CDATA[fetchit-21<p>This technique produces something similar to the wiggle you get on an iPhone when deleting items.</p>
<p>Be aware that keyframe animation is still very poor in Chrome and cases freezing and jumping if multiple items are animated at once.</p>
<p>The animation css below results in a hovered element rotating back and forth around it&#8217;s centre point. You can update the number of degrees and length of animation to change the appearance.</p>
<p>Just add this css and give your element the class &#8216;wiggler&#8217; to implement</p>

<div class="wp_syntax"><div class="code"><pre class="css css" style="font-family:monospace;">&nbsp;
<span style="color: #808080; font-style: italic;">/* safari and chrome */</span>
<span style="color: #a1a100;">@-webkit-keyframes wiggle {</span>
	<span style="color: #933;">0%</span> <span style="color: #00AA00;">&#123;</span>-webkit-transform<span style="color: #00AA00;">:</span>rotate<span style="color: #00AA00;">&#40;</span>4deg<span style="color: #00AA00;">&#41;</span>;<span style="color: #00AA00;">&#125;</span>
	<span style="color: #933;"><span style="color: #cc66cc;">50</span>%</span> <span style="color: #00AA00;">&#123;</span>-webkit-transform<span style="color: #00AA00;">:</span>rotate<span style="color: #00AA00;">&#40;</span>-4deg<span style="color: #00AA00;">&#41;</span>;<span style="color: #00AA00;">&#125;</span>
	<span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span> <span style="color: #00AA00;">&#123;</span>-webkit-transform<span style="color: #00AA00;">:</span>rotate<span style="color: #00AA00;">&#40;</span>4deg<span style="color: #00AA00;">&#41;</span>;<span style="color: #00AA00;">&#125;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* firefox */</span>
<span style="color: #a1a100;">@-moz-keyframes wiggle {</span>
	<span style="color: #933;">0%</span> <span style="color: #00AA00;">&#123;</span>-moz-transform<span style="color: #00AA00;">:</span>rotate<span style="color: #00AA00;">&#40;</span>4deg<span style="color: #00AA00;">&#41;</span>;<span style="color: #00AA00;">&#125;</span>
	<span style="color: #933;"><span style="color: #cc66cc;">50</span>%</span> <span style="color: #00AA00;">&#123;</span>-moz-transform<span style="color: #00AA00;">:</span>rotate<span style="color: #00AA00;">&#40;</span>-4deg<span style="color: #00AA00;">&#41;</span>;<span style="color: #00AA00;">&#125;</span>
	<span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span> <span style="color: #00AA00;">&#123;</span>-moz-transform<span style="color: #00AA00;">:</span>rotate<span style="color: #00AA00;">&#40;</span>4deg<span style="color: #00AA00;">&#41;</span>;<span style="color: #00AA00;">&#125;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* anyone brave enough to implement the ideal method */</span>
<span style="color: #a1a100;">@keyframes wiggle {</span>
	<span style="color: #933;">0%</span> <span style="color: #00AA00;">&#123;</span>transform<span style="color: #00AA00;">:</span>rotate<span style="color: #00AA00;">&#40;</span>4deg<span style="color: #00AA00;">&#41;</span>;<span style="color: #00AA00;">&#125;</span>
	<span style="color: #933;"><span style="color: #cc66cc;">50</span>%</span> <span style="color: #00AA00;">&#123;</span>transform<span style="color: #00AA00;">:</span>rotate<span style="color: #00AA00;">&#40;</span>-4deg<span style="color: #00AA00;">&#41;</span>;<span style="color: #00AA00;">&#125;</span>
	<span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span> <span style="color: #00AA00;">&#123;</span>transform<span style="color: #00AA00;">:</span>rotate<span style="color: #00AA00;">&#40;</span>4deg<span style="color: #00AA00;">&#41;</span>;<span style="color: #00AA00;">&#125;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.wiggler</span><span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span>
	-webkit-animation<span style="color: #00AA00;">:</span> wiggle 0.5s infinite;
	-moz-animation<span style="color: #00AA00;">:</span> wiggle 0.5s infinite;
	animation<span style="color: #00AA00;">:</span> wiggle 0.5s infinite;
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<script> var amzn_wdgt={widget:'Carousel'}; amzn_wdgt.marketPlace='US'; amzn_wdgt.tag='fetchit-21'; amzn_wdgt.widgetType='SearchAndAdd'; amzn_wdgt.keywords='css3'; amzn_wdgt.title=''; amzn_wdgt.width='500'; amzn_wdgt.height='175'; amzn_wdgt.searchIndex='Books'; amzn_wdgt.shuffleProducts='False'; amzn_wdgt.showBorder='False'; </script><script src='http://wms.assoc-amazon.com/20070822/US/js/swfobject_1_5.js'></script>
]]></content:encoded>
			<wfw:commentRss>http://harrybailey.com/2011/09/css3-element-wiggle-with-keyframes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reordering Yii Results Without Another Select</title>
		<link>http://harrybailey.com/2011/09/reordering-yii-results-without-another-select/</link>
		<comments>http://harrybailey.com/2011/09/reordering-yii-results-without-another-select/#comments</comments>
		<pubDate>Wed, 14 Sep 2011 13:13:26 +0000</pubDate>
		<dc:creator>Harry</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Yii]]></category>

		<guid isPermaLink="false">http://harrybailey.com/?p=563</guid>
		<description><![CDATA[In case you weren&#8217;t aware, you can reorder the results you already have from a previous Yii call. For example&#8230; &#160; $users = User::model&#40;&#41;-&#62;findByPk&#40;2&#41;; $posts = $user-&#62;posts&#40;array&#40;'order'=&#62;' created Desc '&#41;&#41;; There were just ordered our users posts by created date descending. We can also do filtering&#8230; &#160; $users = User::model&#40;&#41;-&#62;findByPk&#40;2&#41;; $posts = $user-&#62;posts&#40;array&#40;'condition'=&#62;' status=1 '&#41;&#41;; [...]]]></description>
			<content:encoded><![CDATA[fetchit-21<p>In case you weren&#8217;t aware, you can reorder the results you already have from a previous Yii call. For example&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;">&nbsp;
<span style="color: #000088;">$users</span> <span style="color: #339933;">=</span> User<span style="color: #339933;">::</span><span style="color: #004000;">model</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">findByPk</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span>;
<span style="color: #000088;">$posts</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">posts</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="">'order'</span><span style="color: #339933;">=&gt;</span><span style="">' created Desc '</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>;</pre></div></div>

<p>There were just ordered our users posts by created date descending.</p>
<p>We can also do filtering&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;">&nbsp;
<span style="color: #000088;">$users</span> <span style="color: #339933;">=</span> User<span style="color: #339933;">::</span><span style="color: #004000;">model</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">findByPk</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span>;
<span style="color: #000088;">$posts</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">posts</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="">'condition'</span><span style="color: #339933;">=&gt;</span><span style="">' status=1 '</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>;</pre></div></div>

<p>So now we only have active posts. We could also combine a condition and a status.</p>
<p>You can find out more here: <a href="http://www.yiiframework.com/doc/guide/1.1/en/database.arr#dynamic-relational-query-options">http://www.yiiframework.com/doc/guide/1.1/en/database.arr#dynamic-relational-query-options</a></p>
<script> var amzn_wdgt={widget:'Carousel'}; amzn_wdgt.marketPlace='US'; amzn_wdgt.tag='fetchit-21'; amzn_wdgt.widgetType='SearchAndAdd'; amzn_wdgt.keywords='yii'; amzn_wdgt.title=''; amzn_wdgt.width='500'; amzn_wdgt.height='175'; amzn_wdgt.searchIndex='Books'; amzn_wdgt.shuffleProducts='False'; amzn_wdgt.showBorder='False'; </script><script src='http://wms.assoc-amazon.com/20070822/US/js/swfobject_1_5.js'></script>
]]></content:encoded>
			<wfw:commentRss>http://harrybailey.com/2011/09/reordering-yii-results-without-another-select/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Friend Request Form Inside A Facebook Iframe Application</title>
		<link>http://harrybailey.com/2011/09/a-friend-request-form-inside-a-facebook-iframe-application/</link>
		<comments>http://harrybailey.com/2011/09/a-friend-request-form-inside-a-facebook-iframe-application/#comments</comments>
		<pubDate>Sun, 04 Sep 2011 21:25:01 +0000</pubDate>
		<dc:creator>Harry</dc:creator>
				<category><![CDATA[Facebook]]></category>
		<category><![CDATA[The Web]]></category>

		<guid isPermaLink="false">http://harrybailey.com/?p=558</guid>
		<description><![CDATA[The example given on the Facebook developer documentation page ( http://developers.facebook.com/docs/reference/fbml/serverFbml/ ) doesn&#8217;t work. This one does. Note how some html is escaped and the multi-friend-selector is inside the form. The code below allows you to add the large version of a friend select in the form of an invite tool to your iframe facebook [...]]]></description>
			<content:encoded><![CDATA[fetchit-21<p>The example given on the Facebook developer documentation page ( http://developers.facebook.com/docs/reference/fbml/serverFbml/ ) doesn&#8217;t work. This one does.</p>
<p>Note how some html is escaped and the multi-friend-selector is inside the form.</p>
<p>The code below allows you to add the large version of a friend select in the form of an invite tool to your iframe facebook applications:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;fb:serverFbml style=&quot;width: 755px;&quot;&gt;  
     &lt;script type=&quot;text/fbml&quot;&gt;
        &lt;fb:fbml&gt;
            &lt;fb:request-form
                action=&quot;&quot;
                method=&quot;post&quot;
                invite=&quot;true&quot;
                type=&quot;XFBML&quot;
                content=&quot;This is a test invitation from XFBML test app
                &amp;lt;fb:req-choice url=&amp;quot;see fb:req-choice docs for details.&amp;quot;
                    label=&amp;quot;Ignore the Facebook test app!&amp;quot; /&amp;gt;
             &quot;&gt;
				&lt;fb:multi-friend-selector
                    showborder=&quot;false&quot;
                    actiontext=&quot;Invite your friends to use Socially.&quot; /&gt;
             &lt;/fb:request-form&gt;
         &lt;/fb:fbml&gt;
    &lt;/script&gt;
&lt;/fb:serverFbml&gt;</pre></div></div>

<script> var amzn_wdgt={widget:'Carousel'}; amzn_wdgt.marketPlace='US'; amzn_wdgt.tag='fetchit-21'; amzn_wdgt.widgetType='SearchAndAdd'; amzn_wdgt.keywords='facebook applications'; amzn_wdgt.title=''; amzn_wdgt.width='500'; amzn_wdgt.height='175'; amzn_wdgt.searchIndex='Books'; amzn_wdgt.shuffleProducts='False'; amzn_wdgt.showBorder='False'; </script><script src='http://wms.assoc-amazon.com/20070822/US/js/swfobject_1_5.js'></script>
]]></content:encoded>
			<wfw:commentRss>http://harrybailey.com/2011/09/a-friend-request-form-inside-a-facebook-iframe-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Twitter Bootstrap Tabs On Right Side</title>
		<link>http://harrybailey.com/2011/09/twitter-bootstrap-tabs-on-right-side/</link>
		<comments>http://harrybailey.com/2011/09/twitter-bootstrap-tabs-on-right-side/#comments</comments>
		<pubDate>Sat, 03 Sep 2011 18:33:41 +0000</pubDate>
		<dc:creator>Harry</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[The Web]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://harrybailey.com/?p=556</guid>
		<description><![CDATA[Twitter&#8217;s bootstrap css currently doesn&#8217;t support tabs on the right hand side or floated right. We&#8217;ll here is the css to allow it. We&#8217;ll stick to existing naming. Twitter use secondary-nav within topbar so let&#8217;s use that&#8230; .tabs .secondary-nav &#123; float:right; margin-left:10px; margin-right:0; &#125; The the html for the tab you want to float right [...]]]></description>
			<content:encoded><![CDATA[fetchit-21<p>Twitter&#8217;s bootstrap css currently doesn&#8217;t support tabs on the right hand side or floated right. We&#8217;ll here is the css to allow it.</p>
<p>We&#8217;ll stick to existing naming. Twitter use secondary-nav within topbar so let&#8217;s use that&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="css css" style="font-family:monospace;"><span style="color: #6666ff;">.tabs</span> <span style="color: #6666ff;">.secondary-nav</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">right</span>;
	<span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span>;
	<span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span>0;
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>The the html for the tab you want to float right you need:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;li class=&quot;secondary-nav&quot;&gt;&lt;a href=&quot;#&quot;&gt;Link Text&lt;/a&gt;&lt;/li&gt;</pre></div></div>

<p>The outcome is most tabs on the left and any with the new class positioned over to the right.</p>
<script> var amzn_wdgt={widget:'Carousel'}; amzn_wdgt.marketPlace='US'; amzn_wdgt.tag='fetchit-21'; amzn_wdgt.widgetType='SearchAndAdd'; amzn_wdgt.keywords='twitter development'; amzn_wdgt.title=''; amzn_wdgt.width='500'; amzn_wdgt.height='175'; amzn_wdgt.searchIndex='Books'; amzn_wdgt.shuffleProducts='False'; amzn_wdgt.showBorder='False'; </script><script src='http://wms.assoc-amazon.com/20070822/US/js/swfobject_1_5.js'></script>
]]></content:encoded>
			<wfw:commentRss>http://harrybailey.com/2011/09/twitter-bootstrap-tabs-on-right-side/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Replace Spotlight With Alfred App</title>
		<link>http://harrybailey.com/2011/08/replace-spotlight-with-alfred-app/</link>
		<comments>http://harrybailey.com/2011/08/replace-spotlight-with-alfred-app/#comments</comments>
		<pubDate>Mon, 29 Aug 2011 11:18:14 +0000</pubDate>
		<dc:creator>Harry</dc:creator>
				<category><![CDATA[apps]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[alfred app]]></category>

		<guid isPermaLink="false">http://harrybailey.com/?p=549</guid>
		<description><![CDATA[If you own a Mac and you haven&#8217;t heard of Alfred App then you&#8217;ve likely been living in a bunker for a while. At very least Alfred allows you to quickly start applications. If you choose to delve deeper you can use it to search and open files, run applescripts, quick jump to webpage searches, [...]]]></description>
			<content:encoded><![CDATA[wp-carousel-20<p>If you own a Mac and you haven&#8217;t heard of <a href="http://www.alfredapp.com/">Alfred App</a> then you&#8217;ve likely been living in a bunker for a while.</p>
<p>At very least Alfred allows you to quickly start applications. If you choose to delve deeper you can use it to search and open files, run applescripts, quick jump to webpage searches, send emails, control iTunes and 999 other clever tricks.</p>
<p>When you first get your Mac you will likely have heard of Spotlight, a built in application that can be used to search applications and files. It&#8217;s hotkey is cmd-space. It isn&#8217;t as flexible as Alfred App but it has the best hotkey combination going.</p>
<p>Before we start if you&#8217;ve turned off Alfred&#8217;s menu bar icon, turn it back on in Alfred appearance preferences. It&#8217;s makes for the easiest method of opening during hotkey move.</p>
<p>Here is how to move Alfred App to use cmd-space and Spotlight to use ctrl-space:</p>
<p>System Preferences -> Keyboard -> Keyboard Shortcuts</p>
<p><img src="http://harrybailey.com/wp-content/uploads/2011/08/Keyboard-shortcuts-300x151.png" alt="spotlight keyboard shortcuts" title="spotlight keyboard shortcuts" width="300" height="151" class="size-medium wp-image-550" /></p>
<p>1) In the left column click Spotlight.<br />
2) In the right column click the current key combination for spotlight of ⌘Space (cmd-space) and input your replacement key combination. I recommend ^Space (ctrl-space) although some other applications occasionally reserve it (such as Things App). At this point if you can see it you could also switch the second hotkey combination over to ⌥^Space (alt-ctrl-space).<br />
3) Don&#8217;t worry about remembering the old hotkeys. If you change your mind later as you can click Restore Defaults to undo your changes.</p>
<p>You can close system preferences now.</p>
<p>So we&#8217;ve moved Spotlight, but now we need to move Alfred to ⌘Space (cmd-space).</p>
<p>Click on Alfred&#8217;s top hat menu bar icon and select preferences. (you may need to restart Alfred at this point for it to recognise that you&#8217;ve moved Spotlight to a new hotkey.</p>
<p>Choose General and you should see a large box Alfred Hotkey box. Click it and press our new hotkey for Alfred App.<br />
 ⌘Space (cmd-space)</p>
<p><img src="http://harrybailey.com/wp-content/uploads/2011/08/Alfred-Preferences-300x225.png" alt="Alfred Preferences" title="Alfred Preferences" width="300" height="225" class="size-medium wp-image-551" /></p>
<p>And that&#8217;s it. You should now see Spotlight when you hit ^Space (ctrl-space) and Alfred when you click ⌘Space (cmd-space).</p>
<script> var amzn_wdgt={widget:'Carousel'}; amzn_wdgt.marketPlace='US'; amzn_wdgt.tag='wp-carousel-20'; amzn_wdgt.widgetType='SearchAndAdd'; amzn_wdgt.keywords='productivity'; amzn_wdgt.title=''; amzn_wdgt.width='500'; amzn_wdgt.height='175'; amzn_wdgt.searchIndex='Books'; amzn_wdgt.shuffleProducts='False'; amzn_wdgt.showBorder='False'; </script><script src='http://wms.assoc-amazon.com/20070822/US/js/swfobject_1_5.js'></script>
]]></content:encoded>
			<wfw:commentRss>http://harrybailey.com/2011/08/replace-spotlight-with-alfred-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

