<?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>Lantean</title>
	<atom:link href="http://www.lantean.co/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lantean.co</link>
	<description>Thoughts</description>
	<lastBuildDate>Mon, 15 Apr 2013 01:40:52 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Waiting until two async blocks are executed</title>
		<link>http://www.lantean.co/waiting-until-two-async-blocks-are-executed/</link>
		<comments>http://www.lantean.co/waiting-until-two-async-blocks-are-executed/#comments</comments>
		<pubDate>Wed, 10 Apr 2013 01:42:33 +0000</pubDate>
		<dc:creator>lantean</dc:creator>
				<category><![CDATA[iOS]]></category>

		<guid isPermaLink="false">http://www.lantean.co/?p=1310</guid>
		<description><![CDATA[The following snippet of code.. which is super interesting, is based on this post. This allows to dispatch a block, on Main Thread, once two async operations are completed. dispatch_group_t group = dispatch_group_create&#40;&#41;; dispatch_group_async&#40;group, dispatch_get_global_queue&#40;DISPATCH_QUEUE_PRIORITY_HIGH, 0&#41;, ^ &#123; NSLog&#40;@&#34;Block1&#34;&#41;; &#91;NSThread sleepForTimeInterval:5.0&#93;; NSLog&#40;@&#34;Block1 End&#34;&#41;; &#125;&#41;; dispatch_group_async&#40;group, dispatch_get_global_queue&#40;DISPATCH_QUEUE_PRIORITY_HIGH, 0&#41;, ^ &#123; NSLog&#40;@&#34;Block2&#34;&#41;; &#91;NSThread sleepForTimeInterval:8.0&#93;; NSLog&#40;@&#34;Block2 End&#34;&#41;; &#125;&#41;; dispatch_group_notify&#40;group, dispatch_get_main_queue&#40;&#41;, ^ &#123; NSLog&#40;@&#34;Block3 :: %d&#34;, &#91;NSThread isMainThread&#93;&#41;; &#125;&#41;; <span class="ellipsis">&#8230;</span> <span class="more-link-wrap"><a href="http://www.lantean.co/waiting-until-two-async-blocks-are-executed/" class="more-link"><span>Read More &#8594;</span></a></span>]]></description>
				<content:encoded><![CDATA[<p>The following snippet of code.. which is super interesting, is based on <a href="http://stackoverflow.com/questions/11909629/waiting-until-two-async-blocks-are-executed-before-starting-another-block">this</a> post. This allows to dispatch a block, on Main Thread, once two async operations are completed.</p><p style="display:block;text-align:center"><script type="text/javascript"><!--
google_ad_client = "ca-pub-0922611459115465";
/* Lantean Leaderboard 728x90 */
google_ad_slot = "8883036008";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p></p>
<div class="codecolorer-container objc railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="objc codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">dispatch_group_t group <span style="color: #002200;">=</span> dispatch_group_create<span style="color: #002200;">&#40;</span><span style="color: #002200;">&#41;</span>;<br />
<br />
dispatch_group_async<span style="color: #002200;">&#40;</span>group, dispatch_get_global_queue<span style="color: #002200;">&#40;</span>DISPATCH_QUEUE_PRIORITY_HIGH, <span style="color: #2400d9;">0</span><span style="color: #002200;">&#41;</span>, <span style="color: #002200;">^</span> <span style="color: #002200;">&#123;</span><br />
NSLog<span style="color: #002200;">&#40;</span><span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;Block1&quot;</span><span style="color: #002200;">&#41;</span>;<br />
<span style="color: #002200;">&#91;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSThread_Class/"><span style="color: #400080;">NSThread</span></a> sleepForTimeInterval<span style="color: #002200;">:</span><span style="color: #2400d9;">5.0</span><span style="color: #002200;">&#93;</span>;<br />
NSLog<span style="color: #002200;">&#40;</span><span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;Block1 End&quot;</span><span style="color: #002200;">&#41;</span>;<br />
<span style="color: #002200;">&#125;</span><span style="color: #002200;">&#41;</span>;<br />
<br />
dispatch_group_async<span style="color: #002200;">&#40;</span>group, dispatch_get_global_queue<span style="color: #002200;">&#40;</span>DISPATCH_QUEUE_PRIORITY_HIGH, <span style="color: #2400d9;">0</span><span style="color: #002200;">&#41;</span>, <span style="color: #002200;">^</span> <span style="color: #002200;">&#123;</span><br />
NSLog<span style="color: #002200;">&#40;</span><span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;Block2&quot;</span><span style="color: #002200;">&#41;</span>;<br />
<span style="color: #002200;">&#91;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSThread_Class/"><span style="color: #400080;">NSThread</span></a> sleepForTimeInterval<span style="color: #002200;">:</span><span style="color: #2400d9;">8.0</span><span style="color: #002200;">&#93;</span>;<br />
NSLog<span style="color: #002200;">&#40;</span><span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;Block2 End&quot;</span><span style="color: #002200;">&#41;</span>;<br />
<span style="color: #002200;">&#125;</span><span style="color: #002200;">&#41;</span>;<br />
<br />
dispatch_group_notify<span style="color: #002200;">&#40;</span>group, dispatch_get_main_queue<span style="color: #002200;">&#40;</span><span style="color: #002200;">&#41;</span>, <span style="color: #002200;">^</span> <span style="color: #002200;">&#123;</span><br />
NSLog<span style="color: #002200;">&#40;</span><span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;Block3 :: %d&quot;</span>, <span style="color: #002200;">&#91;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSThread_Class/"><span style="color: #400080;">NSThread</span></a> isMainThread<span style="color: #002200;">&#93;</span><span style="color: #002200;">&#41;</span>;<br />
<span style="color: #002200;">&#125;</span><span style="color: #002200;">&#41;</span>;<br />
<br />
dispatch_release<span style="color: #002200;">&#40;</span>group<span style="color: #002200;">&#41;</span>;</div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.lantean.co/waiting-until-two-async-blocks-are-executed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixing High I/O usage on Amazon EBS</title>
		<link>http://www.lantean.co/fixing-high-io-usage-on-amazon-ebs/</link>
		<comments>http://www.lantean.co/fixing-high-io-usage-on-amazon-ebs/#comments</comments>
		<pubDate>Tue, 02 Apr 2013 02:48:42 +0000</pubDate>
		<dc:creator>lantean</dc:creator>
				<category><![CDATA[Offtopic]]></category>

		<guid isPermaLink="false">http://www.lantean.co/?p=1300</guid>
		<description><![CDATA[This humble wordpress blog is running on an AWS micro instance. We&#8217;ve got somewhere around 1k visitors each month, which is pretty awesome. But&#8230; to my surprise, the whole system is using over 14 million I/O operations. I suspected there was something wrong with this&#8230; so i proceeded to do a small research. By means of the application &#8216;iotop&#8217;, i managed to spot the I/O <span class="ellipsis">&#8230;</span> <span class="more-link-wrap"><a href="http://www.lantean.co/fixing-high-io-usage-on-amazon-ebs/" class="more-link"><span>Read More &#8594;</span></a></span>]]></description>
				<content:encoded><![CDATA[<p>This humble wordpress blog is running on an AWS micro instance. We&#8217;ve got somewhere around 1k visitors each month, which is pretty awesome. But&#8230; to my surprise, the whole system is using over 14 million I/O operations.</p>
<p>I suspected there was something wrong with this&#8230; so i proceeded to do a small research.<br />
By means of the application &#8216;iotop&#8217;, i managed to spot the I/O hog: apache!.</p>
<p>Specifically, i ran iotop with the following parameters:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> iotop <span style="color: #660033;">-a</span> <span style="color: #660033;">-P</span></div></div>
</pre>
<p>I ran a quick search on google, and found <a href="http://blog.vec.com/2012/05/29/io-problem-solved/">this</a> post.  (Thank you George, for sharing your solution!).</p>
<p>Long short story, Apache's APC plugin was using a memory mapped file, and it was writing... almost all the time.<br />
The solution?. Edit your /etc/php.d/apc.ini file, and make sure that the mmap_file_mask parameter is se to use Shared Memory, as follows:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">apc.mmap_file_mask=<span style="color: #000000; font-weight: bold;">/</span>apc.shm.XXXXXX</div></div>
</pre>
<p>That should fix it!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lantean.co/fixing-high-io-usage-on-amazon-ebs/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Installing a Webserver on AWS EC2</title>
		<link>http://www.lantean.co/webserver-on-ec2/</link>
		<comments>http://www.lantean.co/webserver-on-ec2/#comments</comments>
		<pubDate>Tue, 02 Apr 2013 02:31:17 +0000</pubDate>
		<dc:creator>lantean</dc:creator>
				<category><![CDATA[Offtopic]]></category>

		<guid isPermaLink="false">http://www.lantean.co/?p=1265</guid>
		<description><![CDATA[I&#8217;ve recently lantean.co to AWS EC2. Amazon offers a free EC2 instance for a year&#8230;. so i decided to give it a shot. The main reason i had to migrate to a self managed hosting is simple. Shared Hostings don&#8217;t allow you to fine tune several settings, such as the PHP Memory, and you might event not be able to login using ssh. What did <span class="ellipsis">&#8230;</span> <span class="more-link-wrap"><a href="http://www.lantean.co/webserver-on-ec2/" class="more-link"><span>Read More &#8594;</span></a></span>]]></description>
				<content:encoded><![CDATA[<p>I&#8217;ve recently lantean.co to AWS EC2. Amazon offers a free EC2 instance for a year&#8230;. so i decided to give it a shot.</p>
<p>The main reason i had to migrate to a self managed hosting is simple. Shared Hostings don&#8217;t allow you to fine tune several settings, such as the PHP Memory, and you might event not be able to login using ssh. What did i need to do?. It&#8217;s simple&#8230; let&#8217;s see&#8230;</p>
<h3>&nbsp;</h3>
<h3><span style="font-size: 1.17em;">Setting up the Environment</span></h3>
<ol>
<li><span style="line-height: 13px;">Signup at <a href="http://aws.amazon.com">Amazon Web Services</a>. You&#8217;ll need a credit card.</span></li>
<li>Create a new EC2 instance. Select &#8216;Micro&#8217; as the type.</li>
<li>Select the Amazon AMI. (I don&#8217;t trust 3rd party images!).</li>
<li>Follow the wizard, and generate the SSH private / public keys.</li>
<li>Setup the firewall, so only IP&#8217;s in your C class can connect through SSH, and everyone can hit the port 80.</li>
<li>Connect to your box!
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">ssh</span> <span style="color: #660033;">-i</span> certificate.pem ec2-user<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">&#91;</span>elastic-ip<span style="color: #7a0874; font-weight: bold;">&#93;</span></div></div>
</li>
<li>Setup a password for your root user
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">su</span> <span style="color: #c20cb9; font-weight: bold;">passwd</span></div></div>
</li>
<li>Install Apache
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">yum install</span> httpd<br />
service httpd start<br />
chkconfig httpd on</div></div>
</li>
<li>Install PHP
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">yum</span> instlal php php-mysql</div></div>
</li>
<li>Install mySQL
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">yum install</span> mysql-server<br />
service mysqld start<br />
chkconfig mysqld on</div></div>
</li>
<li>Secure mySQL
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql_secure_installation</div></div>
</li>
<li>Install APC
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">yum install</span> php-pecl-alc</div></div>
</li>
</ol>
<p>&nbsp;</p>
<h3>Setting up Apache</h3>
<p>Assuming we&#8217;re not gonna host just a single website, but a couple of them&#8230; we&#8217;re gonna need to setup Virtual Hosts. With VirtualHosts you can serve as many domains as you need, using a single apache installation. Steps!</p>
<ol>
<li>Log into your instance and type&#8230; (replace domain.com with your own domain):
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">su</span><br />
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>domain.com<span style="color: #000000; font-weight: bold;">/</span>public_html<br />
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>httpd<span style="color: #000000; font-weight: bold;">/</span>conf.d<span style="color: #000000; font-weight: bold;">/</span>domain.com.conf<br />
<span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>httpd<span style="color: #000000; font-weight: bold;">/</span>conf.d<span style="color: #000000; font-weight: bold;">/</span>domain.com.conf<span style="color: #000000; font-weight: bold;">/</span>httpd.conf<br />
Add the following lines:<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;</span>VirtualHost <span style="color: #000000; font-weight: bold;">*</span>:<span style="color: #000000;">80</span><span style="color: #000000; font-weight: bold;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ServerAdmin your-mail<span style="color: #000000; font-weight: bold;">@</span>domain.com<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DocumentRoot <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>domain.com<span style="color: #000000; font-weight: bold;">/</span>public_html<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ServerName www.domain.com<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ServerAlias <span style="color: #000000; font-weight: bold;">*</span>.domain.com<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ErrorLog <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>domain.com<span style="color: #000000; font-weight: bold;">/</span>error.log<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CustomLog <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>domain.com<span style="color: #000000; font-weight: bold;">/</span>requests.log combined<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;/</span>VirtualHost<span style="color: #000000; font-weight: bold;">&gt;</span></div></div>
</li>
<li>Enable htaccess in your virtual hosts:
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>httpd<span style="color: #000000; font-weight: bold;">/</span>conf<span style="color: #000000; font-weight: bold;">/</span>httpd.conf<br />
AllowOverride All</div></div>
</li>
<li>Enable logrotate:
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>logrotate.conf<br />
Add the following lines:<br />
<br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>httpd<span style="color: #000000; font-weight: bold;">/*</span>log<br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/*/*</span>log<br />
&nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #c20cb9; font-weight: bold;">size</span> 5M<br />
&nbsp; &nbsp; &nbsp; &nbsp; missingok<br />
&nbsp; &nbsp; &nbsp; &nbsp; notifempty<br />
&nbsp; &nbsp; &nbsp; &nbsp; sharedscripts<br />
&nbsp; &nbsp; &nbsp; &nbsp; delaycompress<br />
&nbsp; &nbsp; &nbsp; &nbsp; postrotate<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>service httpd reload <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #c20cb9; font-weight: bold;">true</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; endscript<br />
&nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">&#125;</span></div></div>
</li>
</ol>
<p>&nbsp;</p>
<h3>Setting up mySQL</h3>
<p>At last!. Let&#8217;s see how to create a mySQL database, add a new user, and how to import your mySQL dump, using nothing but bash.</p>
<ol>
<li>Create a new database and a new user
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql <span style="color: #660033;">-u</span> root <span style="color: #660033;">-p</span> &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;&lt;</span> You will be asked <span style="color: #000000; font-weight: bold;">for</span> your mySQL root-password<span style="color: #000000; font-weight: bold;">!</span><br />
create database wordpress;<br />
create user <span style="color: #ff0000;">'wordpress'</span><span style="color: #000000; font-weight: bold;">@</span><span style="color: #ff0000;">'localhost'</span> identified by <span style="color: #ff0000;">'password'</span>;<br />
grant all privileges on wordpress.<span style="color: #000000; font-weight: bold;">*</span> to wordpress<span style="color: #000000; font-weight: bold;">@</span>localhost;<br />
flush privileges;</div></div>
</li>
<li>Import a database dump
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql <span style="color: #660033;">-p</span> <span style="color: #660033;">-u</span> wordpress wordpress <span style="color: #000000; font-weight: bold;">&lt;</span> database_dump.sql</div></div>
</ol>
<p>&nbsp;<br />
I hope you found this short guide helpful!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lantean.co/webserver-on-ec2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixing SVN hangs on OSX</title>
		<link>http://www.lantean.co/fixing-svn-hangs-on-osx/</link>
		<comments>http://www.lantean.co/fixing-svn-hangs-on-osx/#comments</comments>
		<pubDate>Wed, 20 Mar 2013 00:02:23 +0000</pubDate>
		<dc:creator>lantean</dc:creator>
				<category><![CDATA[OSX]]></category>

		<guid isPermaLink="false">http://www.lantean.co/?p=1262</guid>
		<description><![CDATA[I&#8217;m writing this, right here, so i know where to pick it up next time i get the same issue. Thanks to Jonathan, who wrote this awesome post, and saved me quite a lot of time. Long short story, it seems there is a buggy library on OSX, that produces broken SSL connections to hang for quite some time. Workaround? sudo port install neon That <span class="ellipsis">&#8230;</span> <span class="more-link-wrap"><a href="http://www.lantean.co/fixing-svn-hangs-on-osx/" class="more-link"><span>Read More &#8594;</span></a></span>]]></description>
				<content:encoded><![CDATA[<p>I&#8217;m writing this, right here, so i know where to pick it up next time i get the same issue. Thanks to Jonathan, who wrote <a href="http://focusritedevelopmentteam.wordpress.com/2012/08/08/fixing-svn-hangs-on-os-x-an-exercise-in-troubleshooting/">this</a> awesome post, and saved me quite a lot of time.</p>
<p>Long short story, it seems there is a buggy library on OSX, that produces broken SSL connections to hang for quite some time. Workaround?</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #c20cb9; font-weight: bold;">install</span> neon</div></div>
<p>That should upgrade the faulty library, and fix this annoying issue.</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.lantean.co/fixing-svn-hangs-on-osx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSH SFTP Updater : &#8220;Private key incorrect for user&#8221;</title>
		<link>http://www.lantean.co/ssh-sftp-updater-private-key-incorrect-for-user/</link>
		<comments>http://www.lantean.co/ssh-sftp-updater-private-key-incorrect-for-user/#comments</comments>
		<pubDate>Mon, 11 Mar 2013 03:18:33 +0000</pubDate>
		<dc:creator>lantean</dc:creator>
				<category><![CDATA[Offtopic]]></category>

		<guid isPermaLink="false">http://www.lantean.co/?p=1257</guid>
		<description><![CDATA[If you&#8217;re using WordPress SSH SFTP Updater plugin, and you got the error &#8220;Private Key is Incorrect for use&#8221;&#8230; even when the keys are correct, check the following: nano /etc/ssh/sshd_config If there is a &#8220;ForceCommand internal-sftp&#8221; directive, somewhere, in sshd&#8217;s config, try disabling it. That was what was causing me issues: I had an sftp-only user, and the WP plugin doesn&#8217;t support that!.]]></description>
				<content:encoded><![CDATA[<p>If you&#8217;re using <a href="http://wordpress.org/extend/plugins/ssh-sftp-updater-support/">WordPress SSH SFTP</a> Updater plugin, and you got the error &#8220;Private Key is Incorrect for use&#8221;&#8230; even when the keys are correct, check the following:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>ssh<span style="color: #000000; font-weight: bold;">/</span>sshd_config</div></div>
<p>If there is a &#8220;ForceCommand internal-sftp&#8221; directive, somewhere, in sshd&#8217;s config, try disabling it. That was what was causing me issues:</p>
<p>I had an sftp-only user, and the WP plugin doesn&#8217;t support that!.</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.lantean.co/ssh-sftp-updater-private-key-incorrect-for-user/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
