<?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>The Four-eyed Journal &#187; Featured Articles</title>
	<atom:link href="http://jrocas.com.ph/archives/category/featured-articles/feed/" rel="self" type="application/rss+xml" />
	<link>http://jrocas.com.ph</link>
	<description>A geek&#039;s musings on technology, politics, the web &#38; life</description>
	<lastBuildDate>Sat, 19 May 2012 09:46:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>Could HTC Make a Better iOS Handset?</title>
		<link>http://jrocas.com.ph/archives/could-htc-make-a-better-ios-handset/</link>
		<comments>http://jrocas.com.ph/archives/could-htc-make-a-better-ios-handset/#comments</comments>
		<pubDate>Tue, 20 Sep 2011 12:55:36 +0000</pubDate>
		<dc:creator>jhay</dc:creator>
				<category><![CDATA[Featured Articles]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[HTC]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://jrocas.com.ph/?p=3848</guid>
		<description><![CDATA[HTC was never a handset make in the limelight until Android made its debut. Suddenly, they were one of the most popular handset manufacturers on the market, with models like the Wildfire and Desire HD flying off store shelves and receiving great reviews from the press. The iPhone, while lauded as the world&#8217;s best smartphone [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><span class="drop_cap">H</span>TC was never a handset make in the limelight until Android made its debut. Suddenly, they were one of the most popular handset manufacturers on the market, with models like the Wildfire and Desire HD flying off store shelves and receiving great reviews from the press. </p>
<p>The iPhone, while lauded as the world&#8217;s best smartphone by many a user, has also been plagued by a recent poor design choice for the iPhone 4&#8242;s casing, resulting in the phone losing signal when held in a normal, right-handed manner. Their solution? Pay more for a rubber case to go around the sleek metallic edges of the handset. </p>
<p>It&#8217;s arguable that this wouldn&#8217;t have happened with HTC, or indeed any other manufacturer, and iPhone sales are rising despite this hiccup. But perhaps one of the reasons Apple are reluctant to give iOS to handset devs isn&#8217;t because it&#8217;s theirs and theirs alone &#8211; perhaps it&#8217;s because there&#8217;s a chance a company like HTC could do a better job. </p>
<p>Keeping their operating systems exclusive to their own platforms has always been Apple&#8217;s modus operandi, and whether you&#8217;d like to use OSX or iOS to work or play <a href="http://es.partypoker.com/">Party Poker</a>, it&#8217;s certain you&#8217;ll be paying through the nose for an Apple device unless you&#8217;re IT-savvy enough to get a Hackintosh set-up running. </p>
<p>There have been hoaxes, where individuals have created mock-ups of iOS running on a non-Apple device, but thus far, no one&#8217;s cracked it yet. This is primarily because Apple ensure that their operating systems work alongside specific hardware, which makes it harder for other devices to emulate the OS to a high standard. </p>
<p>Would we use a HTC iOS device? Probably &#8211; there&#8217;s no reason not to, and this goes for a wide range of makes, from Samsung to Nokia. But Apple&#8217;s OSX and iOS are their golden geese, so for now we&#8217;ll just have to wait, or splash out on a device fresh from the Steve Jobs production line. </p>
<img src="http://jrocas.com.ph/0838b5e6/266bb3f2/CCBot/1.0 (+http://www.commoncrawl.org/bot.html).gif" /><ul class="related_post"><li><a href="http://jrocas.com.ph/archives/bitdefender-warns-iphone-jailbreakers-about-security/" title="BitDefender Warns iPhone Jailbreakers About Security">BitDefender Warns iPhone Jailbreakers About Security</a> (1)</li><li><a href="http://jrocas.com.ph/archives/unlocked-apple-iphones-being-sold-in-hong-kong/" title="Unlocked Apple iPhones being sold in Hong Kong">Unlocked Apple iPhones being sold in Hong Kong</a> (5)</li><li><a href="http://jrocas.com.ph/archives/globe-will-sell-iphone-in-the-philippines-mixed-reactions/" title="Globe will sell iPhone in the Philippines: Mixed reactions">Globe will sell iPhone in the Philippines: Mixed reactions</a> (7)</li><li><a href="http://jrocas.com.ph/archives/your-iphone-could-be-toxic/" title="Your iPhone could be toxic?!">Your iPhone could be toxic?!</a> (4)</li><li><a href="http://jrocas.com.ph/archives/short-of-expectation-iphone-4s-and-samsung-galaxy-nexus-leads-to-hopeful-2012/" title="Short-of-expectation iPhone 4s and Samsung Galaxy Nexus leads to hopeful 2012">Short-of-expectation iPhone 4s and Samsung Galaxy Nexus leads to hopeful 2012</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://jrocas.com.ph/archives/could-htc-make-a-better-ios-handset/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Amazon CloudFront CDN to speed up WordPress</title>
		<link>http://jrocas.com.ph/archives/using-amazon-cloudfront-cdn-to-speed-up-wordpress/</link>
		<comments>http://jrocas.com.ph/archives/using-amazon-cloudfront-cdn-to-speed-up-wordpress/#comments</comments>
		<pubDate>Wed, 08 Dec 2010 05:46:56 +0000</pubDate>
		<dc:creator>jhay</dc:creator>
				<category><![CDATA[Featured Articles]]></category>
		<category><![CDATA[WordPress & Blogging]]></category>
		<category><![CDATA[Amazon Cloudfront]]></category>
		<category><![CDATA[Amazon S3]]></category>
		<category><![CDATA[Cloud computing]]></category>
		<category><![CDATA[WordPress Optimization]]></category>

		<guid isPermaLink="false">http://jrocas.com.ph/?p=3219</guid>
		<description><![CDATA[In this tutorial, I will show you how to speed up your WordPress-powered blog by using Amazon Cloudfront CDN service.

The tutorial is simple to follow and very easy to do. Once up and running it will not only speed up your blog, it will also help you save up on precious bandwidth, lessen the load on your web server and giving you more control over your costs.

Ultimately, it will help you relax more knowing you can create content that when gets picked up in Digg or StumbleUpon, your blog would be better prepared for the traffic spikes.]]></description>
			<content:encoded><![CDATA[<p></p><p><span class="drop_cap">F</span>inally, here it is. The steps I used to speed up this WordPress-powered blog of mine with Amazon CloudFront CDN.</p>
<p>By now you&#8217;ve probably heard of and know what a CDN or Content Distribution Network is? Not yet? Here&#8217;s a recap. A Content Distribution Network or CDN is a network of servers scattered throughout the globe, usually in strategic places called &#8216;edge locations&#8217;, that contains copies of your website&#8217;s files or content. It could be images, videos, PDFs, scripts, CSS files etc. </p>
<p>When someone visits your website, the server nearest geographically to that visitor delivers the corresponding site files it has, instead of being pulled from the actual server hosting your website, which could be a thousand miles away from that said visitor. The effect is faster load times for your site which is what visitors really really love.</p>
<p>Amazon CloudFront CDN is exactly that, a network of edge servers throughout the world ready to host your site files and speed up your website. Today, I&#8217;m going to help you integrate it with your WordPress blog making it load even faster than before.</p>
<h3>Things you need:</h3>
<p><strong>Amazon AWS account</strong> &#8211; to access Amazon CloudFront CDN and Amazon S3<br />
<strong>W3 Total Cache Plugin</strong> for WordPress<br />
<strong>S3Fox</strong> plugin for managing your AWS account via Firefox</p>
<p>Here are the steps:</p>
<p><strong>1) Sign up for an Amazon AWS</strong></p>
<p>Create your <a href="http://aws.amazon.com/">Amazon Web Services</a> account which is your key to signup for Amazon CloudFront CDN and Amazon S3.</p>
<p>Once your signup is completed, you will be given an Access Key ID and matching Secret Access Key which you will need later on in this setup.</p>
<div id="attachment_3228" class="wp-caption aligncenter" style="width: 531px">
	<img src="http://images.jrocas.com.ph/wp-content/uploads/2010/12/AWS-Security-credentials.jpg" alt="AWS Security credentials" title="AWS Security credentials" width="531" height="221" class="size-full wp-image-3228" />
	<p class="wp-caption-text">Remember to keep this only to your self</p>
</div>
<p>Amazon S3 is a cheap storage solution that will used to store your files for use by Amazon CloudFront CDN. They&#8217;re like twins that make this magic happen.</p>
<p><strong>2) Create an S3 bucket.</strong><br />
Download and install <a href="https://addons.mozilla.org/en-US/firefox/addon/3247">S3Fox for Firefox</a>. Use your Access Key ID and Secret Access Key mentioned earlier to get it working with your AWS account.</p>
<p>Once connected, create an S3 bucket and name it something like &#8220;<em>cdn.yourdomain.com</em>&#8221; in my case I used &#8220;<span class="highlight_green">turbo.jrocas.com.ph</span>&#8221;</p>
<p>This is where your theme and media files will be stored and Amazon CDN to use as an origin or source for distribution of your files.</p>
<div id="attachment_3220" class="wp-caption aligncenter" style="width: 300px">
	<img src="http://images.jrocas.com.ph/wp-content/uploads/2010/12/Create-new-bucket-300x257.jpg" alt="" title="Create new S3 bucket" width="300" height="257" class="size-medium wp-image-3220" />
	<p class="wp-caption-text">You need an Amazon S3 bucket to host your files.</p>
</div>
<p><strong>3) Create a CloudFront Distribution</strong><br />
Choose the bucket you&#8217;re going to use as an origin for Cloudfront, right-click then select enable distribution.<br />
<div id="attachment_3221" class="wp-caption aligncenter" style="width: 300px">
	<a href="http://images.jrocas.com.ph/wp-content/uploads/2010/12/Screenshot-Manage-Distributions.jpg" rel="lightbox" title="Create a Cloudfront distribution"><img src="http://images.jrocas.com.ph/wp-content/uploads/2010/12/Screenshot-Manage-Distributions-300x242.jpg" alt="Create Cloudfront Distribution using S3Fox" title="Manage Distributions" width="300" height="242" class="size-medium wp-image-3221" /></a>
	<p class="wp-caption-text">Follow the steps to create your Amazon Cloudfront distribution</p>
</div></p>
<p><strong>4)Create CNAMEs for your CDN</strong><br />
This is a fancy way of masking the ugly default URI of your CloudFront distribution, e.g. &#8220;<span class="highlight_red">http://d346xe97ckw69d.cloudfront.net</span>&#8221; into something much cooler like a subdomain for your URI which is &#8220;<span class="highlight_blue">cdn.yourdomain.com</span>&#8221; or what ever you like to call it. In my case I used <span class="highlight_green">turbo.jrocas.com.ph</span>. Plus, this makes it look that you&#8217;re some big Internet magnate or something.</p>
<p><strong>5) Create the CNAME records for your domain</strong><br />
Contact your webhost or domain registrar for assistance with this step, tell them you want a CNAME record that lets <span class="highlight_blue">cdn.yourdomain.com</span> to point to your CloudFront&#8217;s default URI <span class="highlight_red">http://d346xe97ckw69d.cloudfront.net</span>. Wait for a few minutes or hours for the changes to be propagated.<br />
<div id="attachment_3224" class="wp-caption aligncenter" style="width: 545px">
	<img src="http://images.jrocas.com.ph/wp-content/uploads/2010/12/Create-CNAME.jpg" alt="Create CNAM records" title="Create CNAME" width="545" height="100" class="size-full wp-image-3224" />
	<p class="wp-caption-text">Remember to coordinate with your domain registrar or web host to create these CNAME records</p>
</div></p>
<p class="note">I used four subdomains, turbo, turbo1, turbo2, etc. because most browsers can perform simultaneous HTTP requests for faster web page loading. Though others may not agree with this method. It&#8217;s really up to your preferences.</p>
<p><strong>6) Setup your WordPress blog</strong><br />
Download and install the <a href="http://wordpress.org/extend/plugins/w3-total-cache/">W3 Total Cache plugin</a>. This is a popular and powerful caching plugin that easily integrates with most CDN providers like Amazon CloudFront with your WordPress blog.<br />
<div id="attachment_3227" class="wp-caption aligncenter" style="width: 300px">
	<a href="http://images.jrocas.com.ph/wp-content/uploads/2010/12/Configure-W3-Total-Cache.jpg" rel="lightbox" title="Configure W3 Total Cache plugin"><img src="http://images.jrocas.com.ph/wp-content/uploads/2010/12/Configure-W3-Total-Cache-300x197.jpg" alt="Configure W3 Total Cache plugin" title="Configure W3 Total Cache plugin" width="300" height="197" class="size-medium wp-image-3227" /></a>
	<p class="wp-caption-text">Configure W3 Total Cache plugin</p>
</div></p>
<p>It&#8217;s completely up to you whether you&#8217;re going to deploy all the caching features of the W3 Total Cache plugin but for this tutorial, we&#8217;re just going to focus on getting it to work with your newly created Amazon CloudFront distribution.</p>
<p><strong>7)Upload your files to Amazon CloudFront</strong><br />
After uploading your static files to your Amazon CloudFront distribution, you can preview how it will work or deploy it live to your blog. And that&#8217;s it, your WordPress blog is now being accelerated by Amazon Cloudfront CDN, just like the other pro-bloggers who also use other CDN providers to speed up their blogs.</p>
<p>You can use various <a href="http://tools.pingdom.com">online tools</a> to see how it has improved your blog&#8217;s load times but expect to see an improvement of around 3x or up to 6x in some geographic locations.</p>
<p>Another great thing about this whole setup is you can turn it on or off whenever you feel like it and no harm would come to your blog.</p>
<p>Compared to most CDN providers which provide bulk charges, Amazon CloudFront is more cost-efficient because of its pay-per-use billing scheme and reasonable rates. You can use it for a month, a week, half-a-year and you only pay for that long and how much resources like storage and bandwidth you have actually used.</p>
<p>Hope this has helped you a lot and if you have questions or experience with Amazon CloudFront or other CDN providers, do share your stories with us through the comments thread below.</p>
<img src="http://jrocas.com.ph/0838b5e6/266bb3f2/CCBot/1.0 (+http://www.commoncrawl.org/bot.html).gif" /><ul class="related_post"><li><a href="http://jrocas.com.ph/archives/using-amazon-s3-to-host-images-for-your-blog/" title="Using Amazon S3 to host images for your blog">Using Amazon S3 to host images for your blog</a> (3)</li><li><a href="http://jrocas.com.ph/archives/amazon-cloud-drive-no-file-sharing-no-privacy/" title="Amazon Cloud Drive &#8211; No file sharing, no privacy">Amazon Cloud Drive &#8211; No file sharing, no privacy</a> (0)</li><li><a href="http://jrocas.com.ph/archives/hosting-facebook-a-real-test-for-cloud-computing/" title="Hosting Facebook: A Real Test for Cloud Computing">Hosting Facebook: A Real Test for Cloud Computing</a> (0)</li><li><a href="http://jrocas.com.ph/archives/windows-cloud-will-microsoft-finally-take-google-head-on/" title="Windows Cloud &#8211; will Microsoft finally take Google head-on?">Windows Cloud &#8211; will Microsoft finally take Google head-on?</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://jrocas.com.ph/archives/using-amazon-cloudfront-cdn-to-speed-up-wordpress/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Add Social Media Links to your Thesis Sidebar - Custom hook for subscription box to your Thesis theme</title>
		<link>http://jrocas.com.ph/archives/add-social-media-links-to-your-thesis-sidebar/</link>
		<comments>http://jrocas.com.ph/archives/add-social-media-links-to-your-thesis-sidebar/#comments</comments>
		<pubDate>Sat, 13 Nov 2010 11:47:01 +0000</pubDate>
		<dc:creator>jhay</dc:creator>
				<category><![CDATA[Featured Articles]]></category>
		<category><![CDATA[WordPress & Blogging]]></category>
		<category><![CDATA[Blog tutorials]]></category>
		<category><![CDATA[social bookmarks]]></category>
		<category><![CDATA[Thesis]]></category>

		<guid isPermaLink="false">http://jrocas.com.ph/?p=2959</guid>
		<description><![CDATA[When I got my copy of the Thesis WordPress Theme, one of the design elements I wanted was to have a proper box in the sidebar where readers can easily subscribe to this blog&#8217;s feeds and connect with me via social networking sites. Upon knowing that Thesis is backed up by wonderful support from DIYThemes [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><span class="drop_cap">W</span>hen I got my copy of the Thesis WordPress Theme, one of the design elements I wanted was to have a proper box in the sidebar where readers can easily subscribe to this blog&#8217;s feeds and connect with me via social networking sites.</p>
<p>Upon knowing that Thesis is backed up by wonderful support from DIYThemes and the community of Thesis users, I was confident the &#8216;<em>social media links</em>&#8216; box would up and running within a day or two of switching to Thesis. Turns out that this is not 100% true as some of the tutorials listed in the support forums are either outdated or have been taken down by their creators who have probably moved on to other projects or themes.</p>
<p>As many of you have noticed, that social media links box has made its appearance just today. The delay was caused by my entry-level CSS and PHP coding skills but ultimately a tutorial listed as a must-see resource for customizing Thesis, but has been left with a broken code which has rendered it unusable for ordinary Thesis users like yours truly.</p>
<p>That tutorial is &#8220;<a href="http://adambarber.tv/2009/adding-social-media-links-to-thesis/">Adding Social Media Links to Thesis</a>&#8221; by Adam Barber. It&#8217;s over a year old and the blog itself which hosts the tutorial has been left idle for a long time now. Which was frustrating because his tutorial was exactly what I needed.</p>
<p>My obsession for getting a social media links box for my blog and my penchant for messing around with PHP and CSS has pushed me to troubleshoot the code and make it work. After spending some three hours on it, I now share a &#8216;fixed&#8217; code from the tutorial which I then customized according to my own preferences.</p>
<p class="alert">Note: The following steps and code were heavily based on Adam Barber&#8217;s original tutorial, so all credits are directed at him.</p>
<h4>Step 1.</h4>
<p> The code below goes into your <strong>custom_functions.php</strong> file. Added were the missing opening div class selector. Don&#8217;t forget to put in the correct links to your RSS feeds or social media profiles.</p>
<pre class="brush: php; title: ; notranslate">
// Social Media Links Function

function social_media_links(){
 ?&gt;
 &lt;div class=&quot;socialmedia_sidebar&quot;&gt;
 &lt;ul&gt;
 &lt;li&gt;&lt;a id=&quot;rss&quot; href=http://feeds.feedburner.com/TheFour-eyedJournal&quot;&gt;
 &lt;span&gt;Recieve updates&lt;/span&gt;
 &lt;span&gt;via rss feed&lt;/span&gt;
 &lt;/a&gt;
 &lt;/li&gt;

&lt;li&gt;&lt;a id=&quot;email&quot; href=&quot;http://feedburner.google.com/fb/a/mailverify?uri=TheFour-eyedJournal&amp;loc=en_US&quot;&gt;
 &lt;span&gt;Subscribe&lt;/span&gt;
 &lt;span&gt;via Email&lt;/span&gt;
 &lt;/a&gt;
 &lt;/li&gt; 

&lt;li&gt;&lt;a id=&quot;twitter&quot; href=&quot;http://twitter.com/jhayrocas&quot;&gt;
 &lt;span&gt;@jhayrocas&lt;/span&gt;
 &lt;span&gt;on twitter&lt;/span&gt;
 &lt;/a&gt;
 &lt;/li&gt; 

 &lt;li&gt;&lt;a id=&quot;facebook&quot; href=&quot;http://facebook.com/JuliusRocas&quot;&gt;
 &lt;span&gt;Julius Rocas&lt;/span&gt;
 &lt;span&gt;on facebook&lt;/span&gt;
 &lt;/a&gt;
 &lt;/li&gt;
 &lt;/ul&gt;

 &lt;div&gt;&lt;/div&gt;  

 &lt;/div&gt;
 &lt;?php
} 

// Add the function to the proper hook
add_action('thesis_hook_after_multimedia_box', 'social_media_links');</pre>
<h4>Step 2.</h4>
<p> The code below goes into your <strong>custom.css stylesheet</strong>. I&#8217;ve made adjustments suited for this blog and have removed the hover effects. Also, the span selector had been fixed to match the code above for styling the links.</p>
<pre class="brush: css; auto-links: false; title: ; notranslate">
/* Define the clear div to offset the link floats */
div.clear{ clear: both; height: 1px; width: 1px; }

/* This is the style for the container */
div.socialmedia_sidebar { background: #eee; margin: -20px 0 5px 0;
/* If you are using this below the media box,
use a negative top margin to raise it up. If not, adjust accordingly */
padding: 5px 0 118px 10px; border-top: 1px dashed black; border-bottom: 1px dashed black; }

div.socialmedia_sidebar ul li{ float: left; list-style: none; text-align: center; }

div.socialmedia_sidebar span{ font-size: 1.7em; display: block; }

div.socialmedia_sidebar span{ font-style: italic; }

div.socialmedia_sidebar ul li a{ width: 200px; padding: 5px; display: block; border: 1px solid #fff; }

/* Non-hover profile links */
#twitter{ background: #FEF9BF url('images/twitter-48.png') 5px 5px no-repeat; height: 44px; text-indent: 35px;}
#facebook{ background: #FEF9BF url('images/facebook-48.png') 5px 5px no-repeat; height: 44px; text-indent: 45px;}
#email{ background: #FEF9BF url('images/email-48.png') 5px 5px no-repeat; height: 44px; text-indent: 40px;}
#rss{ background: #FEF9BF url('images/rss-48.png') 5px 5px no-repeat; height: 44px; text-indent: 45px;}
</pre>
<p>The end result is what can now be seen on the sidebar of this blog underneath the multimedia box. Icons used came from the <a href="http://www.kadom.net/275/kadom-clean-social-icons-set-40-free-social-media-icons">social media icon pack by Kadom</a>, which is available as a free download. Except for the Email icon which I had to create myself using a PSD template that is included in the same icon pack.</p>
<p>Tools used were gedit, because I&#8217;m using Ubuntu, and Firebug extension for Firefox. Hope this will be of good use to my fellow Thesis users and if you&#8217;re not using <a href="http://jrocas.com.ph/go/thesis.php">Thesis</a> yet, I suggest you do. This neat customization and many others will soon be available to make your blog top-notch.</p>
<img src="http://jrocas.com.ph/0838b5e6/266bb3f2/CCBot/1.0 (+http://www.commoncrawl.org/bot.html).gif" /><ul class="related_post"><li><a href="http://jrocas.com.ph/archives/thesis-1-8-2-jetpack-and-few-other-updates/" title="Thesis 1.8.2, Jetpack and few other updates">Thesis 1.8.2, Jetpack and few other updates</a> (2)</li><li><a href="http://jrocas.com.ph/archives/blog-reboot-now-running-on-thesis-theme-for-wordpress/" title="Blog reboot: Now running on Thesis Theme for WordPress">Blog reboot: Now running on Thesis Theme for WordPress</a> (6)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://jrocas.com.ph/archives/add-social-media-links-to-your-thesis-sidebar/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Using Amazon S3 to host images for your blog - Optimize WordPress by offloading your images to Amazon&#039;s cloud</title>
		<link>http://jrocas.com.ph/archives/using-amazon-s3-to-host-images-for-your-blog/</link>
		<comments>http://jrocas.com.ph/archives/using-amazon-s3-to-host-images-for-your-blog/#comments</comments>
		<pubDate>Mon, 16 Aug 2010 09:20:40 +0000</pubDate>
		<dc:creator>jhay</dc:creator>
				<category><![CDATA[Featured Articles]]></category>
		<category><![CDATA[WordPress & Blogging]]></category>
		<category><![CDATA[Amazon S3]]></category>
		<category><![CDATA[Cloud computing]]></category>
		<category><![CDATA[WordPress Optimization]]></category>

		<guid isPermaLink="false">http://jrocas.com.ph/?p=2522</guid>
		<description><![CDATA[This blog had seen better traffic days and had not experienced traffic spikes from Digg, Del.ico.us or StumbleUpon in the last 12 months. But in the rare cases it did, all of the shared webhosting services I’ve tried broke down and came close to suspending my account because of the sudden strain on their servers. [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><img src="http://images.jrocas.com.ph/wp-content/uploads/2010/08/aws_logo_v3._V192598809_.gif" alt="Amazon AWS logo" title="Amazon AWS" width="164" height="60" class="alignright size-full wp-image-2524" />This blog had seen better traffic days and had not experienced traffic spikes from Digg, Del.ico.us or StumbleUpon in the last 12 months. But in the rare cases it did, all of the shared webhosting services I’ve tried broke down and came close to suspending my account because of the sudden strain on their servers.</p>
<p>Upgrading to a VPS or dedicated hosting is not the solution at this time because those traffic spikes were just temporary, and after the buzz, I would be left with a much more costly hosting that I actually don’t need most days of the week/month.</p>
<p>Getting more storage and bandwidth from my current webhost would just be a temporary solution, because as the Uploads folder gets fatter with media files over time, it will not only need more storage space and bandwidth, it ultimately gives more load to the server’s CPU. In a shared web hosting environment, that’s a major problem.</p>
<p>The solution then is to offload media content, primarily images, to somewhere else that is more capable of handling and serving that content. That’s where Amazon S3 comes in.</p>
<h3>What is offloading content and what is Amazon S3?</h3>
<p>As mentioned earlier, <a href="http://codex.wordpress.org/WordPress_Optimization/Offloading">offloading content</a> is hosting static files like images, CSS files, JavaScripts, etc. to a different server. While this is a common technique in high performance systems like Google, Flickr, Tumblr, etc. ordinary webmasters and bloggers like us can also benefit especially if our shared webhosting environment is struggling with the load.</p>
<p><a href="http://aws.amazon.com/s3/">Amazon S3 or Simple Storage Service</a> is ‘a dedicated static file hosting service on a pay-per-usage basis. With no minimum costs, it might be practical for lower traffic sites which are reaching the peak that a shared or single server can handle.’</p>
<p>I admit that when I first head about Amazon S3, I thought it was reserved only for the big boys and developers who really know how to setup and optimize web servers and stuff, you know, real server monkeys and those with deep pockets.</p>
<p>It turns out that Amazon S3 is cost-effective as it’s on a pay-per-use basis. Their current rates are reasonable and practical. I won’t go into full detail about their pricing schemes but from what I’ve gathered, high traffic sites which use Amazon S3 spend an average of $2-10 a day. This blog is not on that level yet, so costs are projected to be a fraction of that per day. And so as traffic grows, so will the site income right?</p>
<p>The steps I followed in this setup can be found on <a href="http://www.inquisitr.com/39348/using-amazon-s3-for-image-hosting-with-a-wordpress-blog/">Inquisitr</a>, which offloaded their images to Amazon S3 back in September of 2009.</p>
<h3>Things you need for this project</h3>
<p>You need an <a href="http://aws.amazon.com/what-is-aws/">Amazon AWS account</a>. It’s easy to sign up for or if you already have an Amazon account all you need now is to add a credit card to that account to be able to sign up for Amazon AWS which would be your gateway to having an Amazon S3 account.</p>
<h3>Setting up your Amazon S3 bucket</h3>
<p>Once you have an Amazon S3 account, you can use the <a href="https://addons.mozilla.org/en-US/firefox/addon/3247">S3Fox</a> plugin for Firefox which allows you to fully manage your Amazon S3 account. If FireFTP is for handling your FTP needs, then S3Fox is for handling your S3 account all from the comforts of a browser.</p>
<p>You simply need your <strong>Amazon S3 Account Name</strong>, <strong>Access Key</strong> and <strong>Secret Key</strong>. All these can be found in the “Security Credentials” section of your Amazon AWS account.</p>
<div id="attachment_2525" class="wp-caption aligncenter" style="width: 512px">
	<img src="http://images.jrocas.com.ph/wp-content/uploads/2010/08/S3Fox.jpg" alt="Create an S3 bucket using S3Fox" title="S3Fox" width="512" height="237" class="size-full wp-image-2525" />
	<p class="wp-caption-text">Create an S3 bucket using S3Fox</p>
</div>
<p>Once S3Fox is connected to your S3 Account, you can use it to create what Amazon calls a “bucket” or a folder in Amazon S3. Click on the blue folder with a star to create your bucket, use a name that is unique and descriptive of its function. In this case, since it would be used for storing images from your WP blog, the typical name would be: <em>images.yourdomain.com</em>.</p>
<div id="attachment_2526" class="wp-caption aligncenter" style="width: 492px">
	<img src="http://images.jrocas.com.ph/wp-content/uploads/2010/08/S3Fox-Edit-ACL.jpg" alt="Edit ACL using S3Fox" title="S3Fox-Edit-ACL" width="492" height="368" class="size-full wp-image-2526" />
	<p class="wp-caption-text">Edit ACL using S3Fox</p>
</div>
<p>Right-click on it, and select Edit ACL. Make sure that you, the account owner, is the only who has the full access control to that bucket while the public aka ‘Everyone’ is only granted ‘Read’ permission.</p>
<p>Once that is done, we’re ready to prepare your WordPress blog to work with your Amazon S3 bucket.</p>
<h3>Setting up your WordPress blog</h3>
<p>The most common plugin used for this is the <a href="http://wordpress.org/extend/plugins/tantan-s3/">Amazon S3 for WordPress plugin</a>. It has been a long while since the author updated the plugin but it works well with WP 3.0+. Download and install the plugin in your blog.</p>
<p>In the Amazon S3 plugin setup page, you’ll need again your Access Key and Secret Key.</p>
<div id="attachment_2527" class="wp-caption aligncenter" style="width: 300px">
	<a href="http://images.jrocas.com.ph/wp-content/uploads/2010/08/Amazon-S3-Plugin.jpg" title="Amazon S3 for WP Plugin" rel="lightbox"><img src="http://images.jrocas.com.ph/wp-content/uploads/2010/08/Amazon-S3-Plugin-300x108.jpg" alt="Amazon S3 for WordPress plugin" title="Amazon-S3-Plugin" width="300" height="108" class="size-medium wp-image-2527" /></a>
	<p class="wp-caption-text">Amazon S3 for WordPress plugin (click for larger view)</p>
</div>
<p>Choose the bucket you created earlier using S3Fox from the drop-down menu.</p>
<p class="alert">Ask support from your webhost first regarding CNAME records creation.</p>
<p>‘<strong>Hostname settings</strong>’ this is a tricky part. If you want your images to have the url <em>images.yourdomain.com</em> instead of <em>images.yourdomain.com.s3.amazonaws.com</em>, then you would need to create a CNAME record for your domain.</p>
<p>It’s risky setting this up on your own using CPanel, so the best way is to contact the support team of your webhost or domain registrar and request that they create the CNAME entry for you.</p>
<p>Just tell them that you need ‘<em>images.yourdomain.com</em>’ pointed to ‘<em>images.yourdomain.com.s3.amazonaws.com</em>’ wait for the propagation which could last between a few minutes to 24 hours.</p>
<p>Enabling <strong>File Uploads</strong> will allow all of your WordPress uploads to go to your S3 account. This will add a new button next to the Upload/Insert section whenever you create a new post, allowing you to choose between your server or S3 on a per post basis.</p>
<p><strong>Expires Header</strong> is a feature that is related to caching. Since blog posts are often updated over time, enabling this option will do no harm.</p>
<p><strong>File Permissions</strong> &#8211; enabling this is a must because it sets all your uploads to be publicly viewable. S3 sets files to private by default so this feature saves you the trouble of tweaking permissions for each file uploaded.</p>
<p>And that’s it! You’ve now setup your blog to offload your uploaded images and media to your own Amazon S3 bucket.</p>
<p><strong>Advantages</strong>:</p>
<ul>
<li>Less  system demand for your server.</li>
<li>No need to worry about where to host your images or media, because it’s all up in the ‘cloud.’</li>
<li>Your images would be served more reliably because you’ve got Amazon’s vast infrastructure handling it.</li>
</ul>
<p><strong>Disadvantages</strong></p>
<ul>
<li>Costs could go up as you use the service more, but as a result of traffic growth</li>
<li>Your images are now in a third party server so complications about copyright or country-based restrictions may arise.</li>
</ul>
<p>As for me though, I’m happy with the setup. Images I use in this blog, including the theme elements are served faster and have improved page load times. I’d give it a month’s trial to see how it performs and if the costs are justified.</p>
<p>But offloading images to Amazon S3 is only one half of this grand plan to optimize your WordPress blog. In the next installment, I’d tell how I setup my WP to be optimized using <strong>Amazon Cloudfront CDN</strong>. Stay tuned for that.</p>
<img src="http://jrocas.com.ph/0838b5e6/266bb3f2/CCBot/1.0 (+http://www.commoncrawl.org/bot.html).gif" /><ul class="related_post"><li><a href="http://jrocas.com.ph/archives/using-amazon-cloudfront-cdn-to-speed-up-wordpress/" title="Using Amazon CloudFront CDN to speed up WordPress">Using Amazon CloudFront CDN to speed up WordPress</a> (7)</li><li><a href="http://jrocas.com.ph/archives/amazon-cloud-drive-no-file-sharing-no-privacy/" title="Amazon Cloud Drive &#8211; No file sharing, no privacy">Amazon Cloud Drive &#8211; No file sharing, no privacy</a> (0)</li><li><a href="http://jrocas.com.ph/archives/hosting-facebook-a-real-test-for-cloud-computing/" title="Hosting Facebook: A Real Test for Cloud Computing">Hosting Facebook: A Real Test for Cloud Computing</a> (0)</li><li><a href="http://jrocas.com.ph/archives/windows-cloud-will-microsoft-finally-take-google-head-on/" title="Windows Cloud &#8211; will Microsoft finally take Google head-on?">Windows Cloud &#8211; will Microsoft finally take Google head-on?</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://jrocas.com.ph/archives/using-amazon-s3-to-host-images-for-your-blog/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Using the Internet on your iPad - Consider your connectivity options</title>
		<link>http://jrocas.com.ph/archives/using-the-internet-on-your-ipad/</link>
		<comments>http://jrocas.com.ph/archives/using-the-internet-on-your-ipad/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 09:53:18 +0000</pubDate>
		<dc:creator>jhay</dc:creator>
				<category><![CDATA[Featured Articles]]></category>
		<category><![CDATA[Broadband Internet]]></category>
		<category><![CDATA[iPad]]></category>

		<guid isPermaLink="false">http://jrocas.com.ph/?p=2411</guid>
		<description><![CDATA[So, you have an iPad and cannot wait to get it out of its packaging to explore its exciting features. Some of the device’s features may need you to connect to the Internet. Before you get started however, you need to be able to connect to the Internet on your iPad. You are able to [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>So, you have an iPad and cannot wait to get it out of its packaging to explore its exciting features. Some of the device’s features may need you to connect to the Internet. Before you get started however, you need to be able to connect to the Internet on your iPad. You are able to use it with wired connectivity because it has a dock connector, but the simplest and most popular way to connect to the Internet on your iPad is to use a wireless connection.</p>
<p>If you have high speed internet at home this is ideal for browsing on your device. If you do not have high speed internet then it’s recommended to purchase a high speed internet deal, as this will allow you to get the most out of your iPad. After all, you do not want a slow and sometimes disconnecting iPad.  Fortunately, modern technology allows you to get the best deals for your Internet. </p>
<p>The iPad is able to pick up a wireless connection and connect to that when a password has been inserted. This will then be saved for future uses so you don’t have to remember it every time. <a href="http://www.broadbandchoices.co.uk/">Broadband</a> gives you this freedom, and is a lot easier than connecting to the Internet with wires or cables. Make sure you get the most out of your iPad.</p>
<p>Connecting to the internet on your iPad can be expensive depending on what type of broadband you decide to use. If you opt for home broadband you are likely to find the best broadband deals online and all you need to do is pay a monthly fee for a great service and fast broadband. Do be careful if you decide to use <a href="http://www.broadbandchoices.co.uk/pay-as-you-go-mobile-broadband.html">mobile broadband pay as you go</a> or take out <a href="http://www.broadbandchoices.co.uk/mobile-broadband-guide.html">mobile broadband</a> as a contract, as some providers offer unlimited browsing but with a fair usage policy. Fair usage means your provider reserves the right to manage your speeds at certain times of the day, or days of the month, to make sure everyone on the network enjoys the same quality of service.</p>
<img src="http://jrocas.com.ph/0838b5e6/266bb3f2/CCBot/1.0 (+http://www.commoncrawl.org/bot.html).gif" /><ul class="related_post"><li><a href="http://jrocas.com.ph/archives/so-what-if-globe-rolls-out-4g-what-we-need-are-betterinternet-services/" title="So what if Globe rolls out 4G? What we need are #betterinternet services">So what if Globe rolls out 4G? What we need are #betterinternet services</a> (0)</li><li><a href="http://jrocas.com.ph/archives/new-gadgets-to-look-out-for-in-2011/" title="New Gadgets to Look Out For In 2011">New Gadgets to Look Out For In 2011</a> (1)</li><li><a href="http://jrocas.com.ph/archives/finally-house-inquiry-on-substandard-broadband-internet-services-in-the-philippines/" title="Finally: House Inquiry on Substandard Broadband Internet Services in the Philippines">Finally: House Inquiry on Substandard Broadband Internet Services in the Philippines</a> (0)</li><li><a href="http://jrocas.com.ph/archives/bitdefender-warns-iphone-jailbreakers-about-security/" title="BitDefender Warns iPhone Jailbreakers About Security">BitDefender Warns iPhone Jailbreakers About Security</a> (1)</li><li><a href="http://jrocas.com.ph/archives/why-is-the-apple-ipad-banned-in-israel/" title="Why is the Apple iPad banned in Israel?">Why is the Apple iPad banned in Israel?</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://jrocas.com.ph/archives/using-the-internet-on-your-ipad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 33/82 queries in 0.084 seconds using disk: basic
Object Caching 1151/1183 objects using memcached
Content Delivery Network via Amazon Web Services: CloudFront: turbo.jrocas.com.ph

Served from: jrocas.com.ph @ 2012-05-22 23:32:14 -->
