<?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>Shiki &#187; General</title>
	<atom:link href="http://shikii.net/blog/category/general/feed/" rel="self" type="application/rss+xml" />
	<link>http://shikii.net/blog</link>
	<description>no awesome tagline here</description>
	<lastBuildDate>Thu, 26 Aug 2010 08:41:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Creating PID files for beanstalkd on CentOS</title>
		<link>http://shikii.net/blog/creating-pid-files-for-beanstalkd-on-centos/</link>
		<comments>http://shikii.net/blog/creating-pid-files-for-beanstalkd-on-centos/#comments</comments>
		<pubDate>Mon, 09 Aug 2010 13:48:35 +0000</pubDate>
		<dc:creator>Shiki</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://shikii.net/blog/?p=138</guid>
		<description><![CDATA[Yep, managing servers is hard >.&#60; I&#8217;ve been trying to set beanstalkd to be managed by monit on CentOS. Unfortunately beanstalkd doesn&#8217;t seem to create pid files on CentOS (it creates one in Ubuntu though). Pid files are needed by monit so it can check if the process is still running or not. Many grueling [...]]]></description>
			<content:encoded><![CDATA[<p>Yep, managing servers is <strong>hard</strong> >.&lt; I&#8217;ve been trying to set <a href="http://kr.github.com/beanstalkd/">beanstalkd</a> to be managed 
by <a href="http://mmonit.com/monit/">monit</a> on CentOS. Unfortunately beanstalkd doesn&#8217;t seem to create pid files on CentOS (it creates one in Ubuntu though). 
Pid files are needed by monit so it can check if the process is still running or not. Many grueling hours later, I settled with 
modifying <strong><code>/etc/init.d/beanstalkd</code></strong> and adding this to the <code>start()</code> function (after <code>daemon $exec</code>&#8230;):</p>

<pre><code>echo `ps auxf | grep -v grep | grep "$exec -d $options" | awk '{print $2}'` &gt; /var/run/beanstalkd.pid
</code></pre>

<p>I have no idea what all those grep and awk exactly mean. ^_^x But the effect is it creates the pid file in <code>/var/run/beanstalkd.pid</code> containing 
the correct process id of beanstalkd. You could then have monit watch that pid file.</p>

<p><a href="http://gist.github.com/515422">Here&#8217;s</a> the whole modified script. And this is my main reference: http://gist.github.com/508889. A huge thanks to him (Sam X).</p>
]]></content:encoded>
			<wfw:commentRss>http://shikii.net/blog/creating-pid-files-for-beanstalkd-on-centos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The undefined curl function in console (WampServer)</title>
		<link>http://shikii.net/blog/the-undefined-curl-function-in-console-wampserver/</link>
		<comments>http://shikii.net/blog/the-undefined-curl-function-in-console-wampserver/#comments</comments>
		<pubDate>Thu, 15 Apr 2010 08:57:06 +0000</pubDate>
		<dc:creator>Shiki</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wampserver]]></category>

		<guid isPermaLink="false">http://shikii.net/blog/?p=122</guid>
		<description><![CDATA[Stupid stupid me. On Windows/WampServer, I&#8217;ve always had this problem when working with PHP code that can run in the console and using cURL methods.. PHP Fatal error: Call to undefined function curl_init() in D:\Shiki\github\yii-clockwerk\test-app\CurlHelper.php on line 90 Fatal error: Call to undefined function curl_init() in D:\Shiki\github\yii-clockwerk\test-app\CurlHelper.php on line 90 It (cURL) works in the [...]]]></description>
			<content:encoded><![CDATA[<p>Stupid stupid me. On Windows/WampServer, I&#8217;ve always had this problem when working with PHP code that can run in the console and using 
<a href="http://php.net/manual/en/book.curl.php">cURL</a> methods..</p>

<pre><code>PHP Fatal error:  Call to undefined function curl_init() in D:\Shiki\github\yii-clockwerk\test-app\CurlHelper.php on line 90
Fatal error: Call to undefined function curl_init() in D:\Shiki\github\yii-clockwerk\test-app\CurlHelper.php on line 90
</code></pre>

<p>It (cURL) works in the browser but not when in console. I didn&#8217;t think that it was 
<a href="http://old.nabble.com/Using-curl-inside-cake-console-td20409372.html">this simple</a> to fix. The PHP CLI uses a different config 
file (php.ini) compared to the one used by WampServer/Apache. You can see the location of the config file being used by typing:</p>

<pre><code>php --ini
</code></pre>

<p>Result:</p>

<pre><code>Configuration File (php.ini) Path: C:\Windows
Loaded Configuration File:         C:\wamp\bin\php\php5.3.0\php.ini
Scan for additional .ini files in: (none)
Additional .ini files parsed:      (none)
</code></pre>

<p>You can then fix the curl problem by enabling it in the php.ini file being used. Make sure this is not commented out:</p>

<pre><code>extension=php_curl.dll
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://shikii.net/blog/the-undefined-curl-function-in-console-wampserver/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8220;Ignoring funny ref&#8221; error on Git + Dropbox</title>
		<link>http://shikii.net/blog/ignoring-funny-ref-error-on-git-dropbox/</link>
		<comments>http://shikii.net/blog/ignoring-funny-ref-error-on-git-dropbox/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 03:54:28 +0000</pubDate>
		<dc:creator>Shiki</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[dropbox]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://shikii.net/blog/?p=70</guid>
		<description><![CDATA[At Twidl HQ, we use a combination of Git and Dropbox for managing our source code. It&#8217;s a simple but awesome setup. Sometimes, we get this really cryptic error when fetching from our main repo (our shared Dropbox folder): Ignoring funny ref 'refs/remotes/origin/master (Shiki's conflicted copy 2010-01-14)' locally It seems to happen when 2 people [...]]]></description>
			<content:encoded><![CDATA[<p>At <a href="http://twidl.it">Twidl HQ</a>, we use a combination of <a href="http://git-scm.com/">Git</a> and <a href="https://www.dropbox.com/">Dropbox</a> 
for managing our source code. It&#8217;s a simple but awesome setup. Sometimes, we get this really cryptic error when <strong>fetching</strong> from our main repo 
(our <em>shared</em> Dropbox folder):</p>

<pre><code>Ignoring funny ref 'refs/remotes/origin/master (Shiki's conflicted copy 2010-01-14)' locally
</code></pre>

<p>It seems to happen when 2 people push to <code>origin/master</code> at almost the same time. This makes Dropbox update the same file and seems to be 
the cause of the error. When this happens, you can bet that one of the people who did the push will <strong>lose</strong> his changes to <code>origin/master</code>. 
So you&#8217;ll have to fix it accordingly.</p>

<p>The &#8220;funny ref&#8221; error does not have any critical effect on the repo and Git seems to work perfectly. It will just annoy you every time 
you try to fetch. It turns out that this <code>"master (Shiki's conflicted copy 2010-01-14)"</code> is a branch in the main repo. 
Simply deleting it will remove the error. In terminal, go to your main repo&#8217;s <em>(Dropbox)</em> root folder:</p>

<pre><code>git branch -d "master (Shiki's conflicted copy 2010-01-14)"
</code></pre>

<p>If you&#8217;re not sure of the name of the conflicting branch, you can execute <code>git branch</code> to show all branches. 
There should at least be a &#8220;master&#8221; branch and your conflicting branch.</p>
]]></content:encoded>
			<wfw:commentRss>http://shikii.net/blog/ignoring-funny-ref-error-on-git-dropbox/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Installing the missing Extract feature in Photoshop CS4</title>
		<link>http://shikii.net/blog/installing-the-missing-extract-feature-in-photoshop-cs4/</link>
		<comments>http://shikii.net/blog/installing-the-missing-extract-feature-in-photoshop-cs4/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 12:37:27 +0000</pubDate>
		<dc:creator>Shiki</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[cs4]]></category>
		<category><![CDATA[extract]]></category>
		<category><![CDATA[photoshop]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://shikii.net/blog/?p=3</guid>
		<description><![CDATA[Yeah so I&#8217;m a little late on this. Primarily because I&#8217;m no designer and I don&#8217;t use Photoshop that much. But I just found out that the Extract filter has been removed from CS4. Or maybe CS3 too? I didn&#8217;t notice until I needed to use it at work today where I just had to [...]]]></description>
			<content:encoded><![CDATA[<div class="wide"><img class="alignnone size-full wp-image-4" title="Extract Filter in Adobe Photoshop CS4" src="http://shikii.net/blog/wp-content/uploads/2009/08/extractfilter.jpg" alt="Extract Filter in Adobe Photoshop CS4" width="640" /></div>

<p>Yeah so I&#8217;m a little late on this. Primarily because I&#8217;m no designer and I don&#8217;t use Photoshop that much. But I just found out that the Extract filter has been removed from CS4. Or maybe CS3 too? I didn&#8217;t notice until I needed to use it at work today where I just had to take out some cats and dogs out of their backgrounds.</p>

<p>So, with some googling I found <a href="http://blogs.adobe.com/jnack/2008/10/where_did_extra.html">this article</a> by John Nack. There he explains why they took Extract and other filters/plugins away. I still wish they retained Extract though, it&#8217;s kinda useful for us noob Photoshop users :p Thankfully you can still install the missing features. Just follow these steps:</p>

<ol>
    <li>Download the plugins package. Download <a href="http://www.adobe.com/support/downloads/detail.jsp?ftpID=4047">here</a> for Mac, and <a href="http://www.adobe.com/support/downloads/detail.jsp?ftpID=4048">here</a> for Windows.</li>
    <li>In the package you should find 3 language folders. Open the one you need (ie English) and copy the child folder named <strong>Goodies</strong> and paste it somewhere safe like the Photoshop application folder. That&#8217;s /Applications/Adobe Photoshop CS4 for Mac and somewhere in C:/Program Files/ for Windows (sorry I can&#8217;t be too precise).</li>
    <li>Open Photoshop. Go to Preferences &gt; Plug-Ins. Find a setting named <strong>Additional Plug-Ins Folder</strong> and set that to the Goodies folder.</li>
    <li>Restart Photoshop.</li>
</ol>

<p>That should do it.</p>
]]></content:encoded>
			<wfw:commentRss>http://shikii.net/blog/installing-the-missing-extract-feature-in-photoshop-cs4/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
