<?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>Agyuku</title>
	<atom:link href="http://agyuku.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://agyuku.net</link>
	<description>Programming and randomness</description>
	<lastBuildDate>Sat, 19 May 2012 02:34:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>nginx: [emerg] unknown directive &#8220;if(-f&#8221;</title>
		<link>http://agyuku.net/2012/05/nginx-emerg-unknown-directive-if-f/</link>
		<comments>http://agyuku.net/2012/05/nginx-emerg-unknown-directive-if-f/#comments</comments>
		<pubDate>Sat, 19 May 2012 02:34:39 +0000</pubDate>
		<dc:creator>Lloyd</dc:creator>
				<category><![CDATA[Debugging]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[web server]]></category>

		<guid isPermaLink="false">http://agyuku.net/?p=916</guid>
		<description><![CDATA[Nerd Talk If you&#8217;re working on nginx configuration and you can&#8217;t start or reload it because you&#8217;re getting an error like this: nginx: &#91;emerg&#93; unknown directive &#34;if(-f&#34; in /etc/nginx/nginx.conf:67 nginx: configuration file /etc/nginx/nginx.conf test failed You need to make sure that the &#8220;if&#8221; and the &#8220;(&#8221; are separated with a space: # will cause syntax [...]]]></description>
			<content:encoded><![CDATA[<h4>Nerd Talk</h4>
<p>If you&#8217;re working on nginx configuration and you can&#8217;t start or reload it because you&#8217;re getting an error like this:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">nginx: <span style="color: #7a0874; font-weight: bold;">&#91;</span>emerg<span style="color: #7a0874; font-weight: bold;">&#93;</span> unknown directive <span style="color: #ff0000;">&quot;if(-f&quot;</span> <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>nginx<span style="color: #000000; font-weight: bold;">/</span>nginx.conf:<span style="color: #000000;">67</span>
nginx: configuration <span style="color: #c20cb9; font-weight: bold;">file</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>nginx<span style="color: #000000; font-weight: bold;">/</span>nginx.conf <span style="color: #7a0874; font-weight: bold;">test</span> failed</pre></div></div>

<p>You need to make sure that the &#8220;if&#8221; and the &#8220;(&#8221; are separated with a space:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># will cause syntax error</span>
<span style="color: #000000; font-weight: bold;">if</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>-f <span style="color: #007800;">$document_root</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$uri</span>.php<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
   rewrite ^<span style="color: #7a0874; font-weight: bold;">&#40;</span>.<span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #007800;">$1</span>.php <span style="color: #c20cb9; font-weight: bold;">last</span>;
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># this is correct</span>
<span style="color: #666666; font-style: italic;"># notice the space between &quot;if&quot; and &quot;(&quot;</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>-f <span style="color: #007800;">$document_root</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$uri</span>.php<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
   rewrite ^<span style="color: #7a0874; font-weight: bold;">&#40;</span>.<span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #007800;">$1</span>.php <span style="color: #c20cb9; font-weight: bold;">last</span>;
<span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></div></div>

<p>That should fix the issue and you should be able to start/reload nginx successfully.<br />
As a programmer I tend to assume that &#8220;if(-f &#8230; )&#8221; will work because in essence it&#8217;s a valid syntax for <em>if</em> statements. For nginx, you should play by its rules because you&#8217;ll get a bunch of these errors if you don&#8217;t.</p>
]]></content:encoded>
			<wfw:commentRss>http://agyuku.net/2012/05/nginx-emerg-unknown-directive-if-f/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Instagram</title>
		<link>http://agyuku.net/2012/05/instagram/</link>
		<comments>http://agyuku.net/2012/05/instagram/#comments</comments>
		<pubDate>Sun, 13 May 2012 06:52:50 +0000</pubDate>
		<dc:creator>Lloyd</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Photography]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[instagram]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[photography]]></category>
		<category><![CDATA[photos]]></category>

		<guid isPermaLink="false">http://agyuku.net/?p=896</guid>
		<description><![CDATA[I like it, in fact I&#8217;m starting to get addicted to it :) My only complaint so far is it doesn&#8217;t actually have a description field as your main caption goes into comments &#8211; there&#8217;s also no caption/tags edit functionality yet.]]></description>
			<content:encoded><![CDATA[<p><img style="margin: 0px 5px;" title="Instagram" src="http://upload.wikimedia.org/wikipedia/en/thumb/2/28/Instagram_logo.png/120px-Instagram_logo.png" alt="" width="57" height="57" align="left" vspace="5" /> I like it, in fact I&#8217;m starting to get addicted to it :)<br />
My only complaint so far is it doesn&#8217;t actually have a description field as your main caption goes into comments &#8211; there&#8217;s also no caption/tags edit functionality <em>yet</em>.</p>
]]></content:encoded>
			<wfw:commentRss>http://agyuku.net/2012/05/instagram/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New ToDos</title>
		<link>http://agyuku.net/2012/05/new-todos/</link>
		<comments>http://agyuku.net/2012/05/new-todos/#comments</comments>
		<pubDate>Sun, 13 May 2012 00:57:18 +0000</pubDate>
		<dc:creator>Lloyd</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[bleh]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[new things]]></category>
		<category><![CDATA[todos]]></category>

		<guid isPermaLink="false">http://agyuku.net/?p=889</guid>
		<description><![CDATA[I figured I should cut down the usual habits to make room for new-old-forgotten ones. Not very long ago I started getting less active on Facebook &#8211; it includes no commenting, likes, private messaging, chat, etc. So basically you won&#8217;t feel my presence as if you don&#8217;t have me as a friend or you&#8217;ve totally [...]]]></description>
			<content:encoded><![CDATA[<p>I figured I should cut down the usual habits to make room for new-old-forgotten ones. Not very long ago I started getting less active on Facebook &#8211; it includes no commenting, likes, private messaging, chat, etc. So basically you won&#8217;t feel my presence as if you don&#8217;t have me as a friend or you&#8217;ve totally forgotten my existence. I still visit but not as &#8220;sociable&#8221; as before, the only activity that I have for the past few months is just uploading landscape photos which nobody appreciates. Now that I&#8217;ve said all that, I have a small list which I will try to fulfill as a mini personal goal:</p>
<p>1) Less to no Facebook usage -<em> just because</em><br />
2) Tweet more &#8211; <em>it&#8217;s fun!</em><br />
3) Write new blog posts<br />
4) Visit people&#8217;s websites to make new connections &#8211; <em>hopefully!</em><br />
5) Do more photography work<br />
6) Write/read codes on free time (if not doing photography work) to exercise brain<br />
7) Read more tech news and articles to get up to date infos<br />
8) Find a girlfriend (optional)</p>
<p>That sounds about right, I think I will just keep on updating my list as soon as something comes up but it should be a good start.</p>
]]></content:encoded>
			<wfw:commentRss>http://agyuku.net/2012/05/new-todos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Blogging again soon!</title>
		<link>http://agyuku.net/2012/05/blogging-again-soon/</link>
		<comments>http://agyuku.net/2012/05/blogging-again-soon/#comments</comments>
		<pubDate>Sat, 05 May 2012 16:37:47 +0000</pubDate>
		<dc:creator>Lloyd</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[akismet]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://agyuku.net/?p=875</guid>
		<description><![CDATA[NOT! Well, I might actually do it if I can pull something out of my head but guess what? No one reads this stuff anyway! HAH! I just updated my WordPress installation to the latest and greatest &#8211; and they used that silly update message again! I&#8217;m also hoping to get those pesky spams out [...]]]></description>
			<content:encoded><![CDATA[<p>NOT! Well, I might actually do it if I can pull something out of my head but guess what? No one reads this stuff anyway! HAH! I just updated my WordPress installation to the latest and greatest &#8211; <em>and they used that silly update message again</em>! I&#8217;m also hoping to get those pesky spams out of my previous posts by using the Akismet API.</p>
<p>Next time I&#8217;<span style="color: #c0c0c0;"><span style="color: #000000;">ll</span> <em>try</em></span> to write something other than site updates ^_^<br />
<strong>Morning edit</strong>: <del><em>Want to know a secret? I&#8217;m eating a very sweet mango now!</em></del><em> Not anymore, that was last night!<br />
</em></p>
]]></content:encoded>
			<wfw:commentRss>http://agyuku.net/2012/05/blogging-again-soon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hello</title>
		<link>http://agyuku.net/2012/02/hello/</link>
		<comments>http://agyuku.net/2012/02/hello/#comments</comments>
		<pubDate>Sun, 26 Feb 2012 04:35:18 +0000</pubDate>
		<dc:creator>Lloyd</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[bored]]></category>
		<category><![CDATA[time]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://agyuku.net/?p=862</guid>
		<description><![CDATA[Today I have time to update my WordPress installation and I found it funny, too. &#8220;Thank you for updating to the latest version! Using WordPress 3.3.1 will improve your looks, personality, and web publishing experience. Okay, just the last one, but still. :)&#8221; Wait..this turned out to be my first 2012 post!]]></description>
			<content:encoded><![CDATA[<p>Today I have time to update my WordPress installation and I found it funny, too.<br />
&#8220;Thank you for updating to the latest version! Using WordPress 3.3.1 will improve your looks, personality, and web publishing experience. Okay, just the last one, but still. :)&#8221;</p>
<p>Wait..this turned out to be my first 2012 post!</p>
]]></content:encoded>
			<wfw:commentRss>http://agyuku.net/2012/02/hello/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Happy Birthday!</title>
		<link>http://agyuku.net/2011/11/%e8%aa%95%e7%94%9f%e6%97%a5%e3%81%8a%e3%82%81%e3%81%a7%e3%81%a8%e3%81%86%e3%80%82/</link>
		<comments>http://agyuku.net/2011/11/%e8%aa%95%e7%94%9f%e6%97%a5%e3%81%8a%e3%82%81%e3%81%a7%e3%81%a8%e3%81%86%e3%80%82/#comments</comments>
		<pubDate>Sat, 26 Nov 2011 19:42:43 +0000</pubDate>
		<dc:creator>Lloyd</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[birthday]]></category>

		<guid isPermaLink="false">http://agyuku.net/?p=847</guid>
		<description><![CDATA[age++;]]></description>
			<content:encoded><![CDATA[<p><span style="color: green;">age++;</span></p>
]]></content:encoded>
			<wfw:commentRss>http://agyuku.net/2011/11/%e8%aa%95%e7%94%9f%e6%97%a5%e3%81%8a%e3%82%81%e3%81%a7%e3%81%a8%e3%81%86%e3%80%82/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>From coding to capturing moments</title>
		<link>http://agyuku.net/2011/11/from-coding-to-capturing-moments/</link>
		<comments>http://agyuku.net/2011/11/from-coding-to-capturing-moments/#comments</comments>
		<pubDate>Sat, 19 Nov 2011 03:41:25 +0000</pubDate>
		<dc:creator>Lloyd</dc:creator>
				<category><![CDATA[Photography]]></category>
		<category><![CDATA[500px]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[hobby]]></category>
		<category><![CDATA[landscape]]></category>
		<category><![CDATA[photography]]></category>
		<category><![CDATA[photos]]></category>

		<guid isPermaLink="false">http://agyuku.net/?p=852</guid>
		<description><![CDATA[Since the day I started with my career I&#8217;ve been so busy, in fact, there&#8217;s nothing else to do but work. It&#8217;s been the same old routine but because I love what I&#8217;m doing, it&#8217;s not something to complain about. Not long ago, I wished to do something else, something I haven&#8217;t tried and was [...]]]></description>
			<content:encoded><![CDATA[<p>Since the day I started with my career I&#8217;ve been so busy, in fact, there&#8217;s nothing else to do but work. It&#8217;s been the same old routine but because I love what I&#8217;m doing, it&#8217;s not something to complain about. Not long ago, I wished to do something else, something I haven&#8217;t tried and was hoping to fill the empty spaces of my life.. and so my interest in photography started. It was a no brainer choice because it feels close to what I&#8217;m doing everyday except I won&#8217;t be dealing with codes but pictures. I knew it was not going to be easy because it never was, it needs judgment and skill. I don&#8217;t have a good judgment and skill. I&#8217;m just some guy entering a new realm with a vast universe of people who have spent their entire lives doing it. But, it&#8217;s not a problem. I&#8217;m here to learn. This year I was able to travel in different places and do things I haven&#8217;t done before &#8211; I was able to get away from the city limits. It&#8217;s also one of the reasons why I&#8217;ve been busy. </p>
<p>I spent majority of my free time tinkering with my camera and traveling with friends who share the same interest. It was a tiring new hobby and is expensive, too. We went to places around the country where people don&#8217;t normally go to just to explore and take the time to experiment with our skills. I can count the places we&#8217;ve visited but I&#8217;ve already lost count how many times I tried to make a good photo and most of them are failures. Despite not being in the level of the experts, I still have the spirit that one day I will be good enough. But for now, I&#8217;ll carry my patience with me and learn as we go along.</p>
<p><img src="http://i.imgur.com/7sUXH.jpg"></p>
<p><small>View some of my photos on <a href="http://www.flickr.com/photos/tradyblix/" target="_blank">flickr</a> and <a href="http://500px.com/lloyd" target="_blank">500px</a>.</small></p>
]]></content:encoded>
			<wfw:commentRss>http://agyuku.net/2011/11/from-coding-to-capturing-moments/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Not busy?</title>
		<link>http://agyuku.net/2011/11/not-busy/</link>
		<comments>http://agyuku.net/2011/11/not-busy/#comments</comments>
		<pubDate>Sat, 19 Nov 2011 02:18:42 +0000</pubDate>
		<dc:creator>Lloyd</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[bored]]></category>
		<category><![CDATA[busy]]></category>
		<category><![CDATA[weekend]]></category>

		<guid isPermaLink="false">http://agyuku.net/?p=843</guid>
		<description><![CDATA[It&#8217;s surprising how I only have few tabs opened during weekends compared on weekdays where I have more than a dozen and more than 2 windows opened. It&#8217;s also surprising that I&#8217;m taking the time to write about it, too.]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s surprising how I only have few tabs opened during weekends compared on weekdays where I have more than a dozen and more than 2 windows opened. It&#8217;s also surprising that I&#8217;m taking the time to write about it, too.<br />
<img src="http://i.imgur.com/tP92m.png"></p>
]]></content:encoded>
			<wfw:commentRss>http://agyuku.net/2011/11/not-busy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick update</title>
		<link>http://agyuku.net/2011/08/quick-update/</link>
		<comments>http://agyuku.net/2011/08/quick-update/#comments</comments>
		<pubDate>Wed, 24 Aug 2011 09:49:08 +0000</pubDate>
		<dc:creator>Lloyd</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://agyuku.net/?p=821</guid>
		<description><![CDATA[The guy who owns this site is busy and lazy to post. He just logged in today and updated WordPress to the latest version. That&#8217;s all.]]></description>
			<content:encoded><![CDATA[<p>The guy who owns this site is busy and lazy to post. He just logged in today and updated WordPress to the latest version. That&#8217;s all.</p>
]]></content:encoded>
			<wfw:commentRss>http://agyuku.net/2011/08/quick-update/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Adobe Flash player update installation</title>
		<link>http://agyuku.net/2011/04/adobe-flash-player-update-installation/</link>
		<comments>http://agyuku.net/2011/04/adobe-flash-player-update-installation/#comments</comments>
		<pubDate>Sat, 02 Apr 2011 13:04:09 +0000</pubDate>
		<dc:creator>Lloyd</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[flash player]]></category>

		<guid isPermaLink="false">http://agyuku.net/?p=795</guid>
		<description><![CDATA[I always notice things, even unimportant ones. Today, I noticed Adobe&#8217;s flash update installer. When updating a software you usually see the word Install once and after that you only need to press Next and Done. For Adobe, showing the Install button once is not enough, they show it twice. It&#8217;s not a problem really, [...]]]></description>
			<content:encoded><![CDATA[<p>I always notice things, even unimportant ones. Today, I noticed Adobe&#8217;s flash update installer. When updating a software you usually see the word <strong>Install</strong> once and after that you only need to press <strong>Next</strong> and <strong>Done</strong>. For Adobe, showing the <strong>Install</strong> button once is not enough, they show it twice. It&#8217;s not a problem really, but I&#8217;m guessing or probably the first Install button should indicate a <strong>Download</strong> button because clicking it doesn&#8217;t install the update, it downloads it and then installation happens. I took some screenshots of the update process and it shows that I may be correct with my guess.</p>
<p>First one says install:<br />
<img src="http://i.imgur.com/Yaqi2.png"></p>
<p>The next one which happens after clicking the &#8220;Install&#8221; button is actually a download:<br />
<img src="http://i.imgur.com/q6TRo.png"></p>
<p>Next one, there is another &#8220;Install&#8221; button, this time it&#8217;s the real one:<br />
<img src="http://imgur.com/y8M2H.png"></p>
<p>Last one, installation is completed:<br />
<img src="http://i.imgur.com/ottqx.png"></p>
<p>See what I&#8217;m saying? </p>
]]></content:encoded>
			<wfw:commentRss>http://agyuku.net/2011/04/adobe-flash-player-update-installation/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

