<?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>A Coder's Life</title>
	<atom:link href="http://coder.kidsreturn.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://coder.kidsreturn.org</link>
	<description>A web developer's life</description>
	<lastBuildDate>Mon, 21 May 2012 09:51:49 +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>Project: Allspark</title>
		<link>http://coder.kidsreturn.org/2012/05/project-allspark/</link>
		<comments>http://coder.kidsreturn.org/2012/05/project-allspark/#comments</comments>
		<pubDate>Thu, 10 May 2012 21:55:51 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[System]]></category>

		<guid isPermaLink="false">http://coder.kidsreturn.org/?p=530</guid>
		<description><![CDATA[Case: Fractal Design Define Mini $129 CPU: Intel I7-3770T $280 Motherboard: ASRock Z77 Extreme4-M $139 PSU: PicoPSU-160-XT &#038; EA11803A-120 $60 (2nd hand) Memory: GSkill ARES F3-1600C10D-16GAO 2x8GB $129 HDD: 2TB Samsung HD204UI $110 (2nd hand) SSD: Kingston SSDNOW S50 16GB $45 Misc: Various HDD cables $45]]></description>
			<content:encoded><![CDATA[<p>Case: <a href="http://www.fractal-design.com/?view=product&#038;category=2&#038;prod=58" title="Fractal Design Define Mini" target="_blank">Fractal Design Define Mini</a> $129<br />
CPU: <a href="http://ark.intel.com/products/65525/Intel-Core-i7-3770T-Processor-(8M-Cache-up-to-3_70-GHz)" target="_blank">Intel I7-3770T</a> $280<br />
Motherboard: <a href="http://www.asrock.com/mb/overview.asp?Model=Z77%20Extreme4-M" target="_blank">ASRock Z77 Extreme4-M</a> $139<br />
PSU: <a href="http://www.mini-box.com/picoPSU-160-XT" target="_blank">PicoPSU-160-XT &#038; EA11803A-120</a> $60 (2nd hand)<br />
Memory: <a href="http://gskill.com/products.php?index=482" target="_blank">GSkill ARES F3-1600C10D-16GAO</a> 2x8GB $129<br />
HDD: 2TB Samsung HD204UI $110 (2nd hand)<br />
SSD: Kingston SSDNOW S50 16GB $45<br />
Misc: Various HDD cables $45</p>
]]></content:encoded>
			<wfw:commentRss>http://coder.kidsreturn.org/2012/05/project-allspark/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find file created or modified within certain time range</title>
		<link>http://coder.kidsreturn.org/2012/04/find-file-created-or-modified-within-certain-time-range/</link>
		<comments>http://coder.kidsreturn.org/2012/04/find-file-created-or-modified-within-certain-time-range/#comments</comments>
		<pubDate>Sat, 14 Apr 2012 00:26:35 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://coder.kidsreturn.org/?p=526</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<pre class="brush: bash; title: ; notranslate">
# ctime search in created at time
# mtime search in modified at time
# -1 in this example is 1 day
find . -type f -ctime -1 -exec ls -al {} \;
find . -type f -mtime -1 -exec ls -al {} \;
# this line search in between time
# this example search all file changed on 1st of Oct 2010
find . -type f -newermt 2010-10-01 ! -newermt 2010-10-02
</pre>
]]></content:encoded>
			<wfw:commentRss>http://coder.kidsreturn.org/2012/04/find-file-created-or-modified-within-certain-time-range/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Optimizing server running Magento</title>
		<link>http://coder.kidsreturn.org/2012/04/optimizing-server-running-magento/</link>
		<comments>http://coder.kidsreturn.org/2012/04/optimizing-server-running-magento/#comments</comments>
		<pubDate>Tue, 10 Apr 2012 14:47:35 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://coder.kidsreturn.org/?p=523</guid>
		<description><![CDATA[Obviously the actual value depends on your hardware and website. These settings are for 3g RAM server. Might tweak further with more statistics coming in. my.cnf of mysql apache.conf Note: setting innodb_buffer_pool_size will cause innodb to fail]]></description>
			<content:encoded><![CDATA[<p>Obviously the actual value depends on your hardware and website. These settings are for 3g RAM server. Might tweak further with more statistics coming in.</p>
<p>my.cnf of mysql</p>
<pre class="brush: bash; title: ; notranslate">
[mysqld]
key_buffer = 256M
max_allowed_packet = 32M
myisam_sort_buffer_size = 32M
tmp_table_size = 64M
table_cache = 512
sort_buffer_size = 4M
read_buffer_size = 4M
read_rnd_buffer_size = 2M
query_cache_type = 1
query_cache_size = 64M
query_cache_limit = 2M
thread_cache_size = 8
innodb_buffer_pool_size = 128M
innodb_thread_concurrency = 6
</pre>
<p>apache.conf</p>
<pre class="brush: bash; title: ; notranslate">
KeepAlive on
KeepAliveTimeout 2
MaxKeepAliveRequests 100
</pre>
<p>Note: setting innodb_buffer_pool_size will cause innodb to fail</p>
]]></content:encoded>
			<wfw:commentRss>http://coder.kidsreturn.org/2012/04/optimizing-server-running-magento/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Git checkout previous deleted content</title>
		<link>http://coder.kidsreturn.org/2012/04/git-checkout-previous-deleted-content/</link>
		<comments>http://coder.kidsreturn.org/2012/04/git-checkout-previous-deleted-content/#comments</comments>
		<pubDate>Wed, 04 Apr 2012 00:56:29 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://coder.kidsreturn.org/?p=521</guid>
		<description><![CDATA[Source: http://stackoverflow.com/questions/953481/restore-a-deleted-file-in-a-git-repo]]></description>
			<content:encoded><![CDATA[<pre class="brush: bash; title: ; notranslate">
#Find the last commit that affected the given path. As the file isn't in the HEAD commit, this commit must have deleted it.
git rev-list -n 1 HEAD -- &lt;file_path&gt;

#Then checkout the version at the commit before.
git checkout &lt;deleting_commit&gt;^ -- &lt;file_path&gt;

#Or in one command, if $file is the file in question.
git checkout $(git rev-list -n 1 HEAD -- &quot;$file&quot;)^ -- &quot;$file&quot;
</pre>
<p>Source: <a href="http://stackoverflow.com/questions/953481/restore-a-deleted-file-in-a-git-repo" target="_blank">http://stackoverflow.com/questions/953481/restore-a-deleted-file-in-a-git-repo</a></p>
]]></content:encoded>
			<wfw:commentRss>http://coder.kidsreturn.org/2012/04/git-checkout-previous-deleted-content/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vagrantup worth look into</title>
		<link>http://coder.kidsreturn.org/2012/04/vagrantup-worth-look-into/</link>
		<comments>http://coder.kidsreturn.org/2012/04/vagrantup-worth-look-into/#comments</comments>
		<pubDate>Mon, 02 Apr 2012 16:06:46 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://coder.kidsreturn.org/?p=519</guid>
		<description><![CDATA[http://vagrantup.com/]]></description>
			<content:encoded><![CDATA[<p><a href="http://vagrantup.com/" target="_blank">http://vagrantup.com/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://coder.kidsreturn.org/2012/04/vagrantup-worth-look-into/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OSX Dotfile</title>
		<link>http://coder.kidsreturn.org/2012/04/osx-dotfile/</link>
		<comments>http://coder.kidsreturn.org/2012/04/osx-dotfile/#comments</comments>
		<pubDate>Sun, 01 Apr 2012 09:11:34 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[OS X]]></category>

		<guid isPermaLink="false">http://coder.kidsreturn.org/?p=517</guid>
		<description><![CDATA[This looks good for devs on OSX. https://github.com/mathiasbynens/dotfiles/blob/master/.osx]]></description>
			<content:encoded><![CDATA[<p>This looks good for devs on OSX.<br />
<a href="https://github.com/mathiasbynens/dotfiles/blob/master/.osx" target="_blank">https://github.com/mathiasbynens/dotfiles/blob/master/.osx</a></p>
]]></content:encoded>
			<wfw:commentRss>http://coder.kidsreturn.org/2012/04/osx-dotfile/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running bash script at background</title>
		<link>http://coder.kidsreturn.org/2012/03/running-bash-script-at-background/</link>
		<comments>http://coder.kidsreturn.org/2012/03/running-bash-script-at-background/#comments</comments>
		<pubDate>Thu, 29 Mar 2012 14:34:42 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://coder.kidsreturn.org/?p=515</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<pre class="brush: bash; title: ; notranslate">
# append &amp; will run the script into background
./myscript &amp;
# jobs will list background jobs
jobs
[1]+  Running ./myscript &amp;
# fg [job number] will bring the job to foreground
fg 1
# Ctrl + z on a running script will suspend the job
# hit Ctrl + z
[1]+  Stopped ./myscript &amp;
# To resume the job into background again
bg 1
# To completely terminate the job
# first back it to fg
fg 1
# then Ctrl + c
</pre>
]]></content:encoded>
			<wfw:commentRss>http://coder.kidsreturn.org/2012/03/running-bash-script-at-background/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add PPA repository to Ubuntu</title>
		<link>http://coder.kidsreturn.org/2012/03/add-ppa-repository-to-ubuntu/</link>
		<comments>http://coder.kidsreturn.org/2012/03/add-ppa-repository-to-ubuntu/#comments</comments>
		<pubDate>Thu, 29 Mar 2012 14:22:05 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://coder.kidsreturn.org/?p=513</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<pre class="brush: bash; title: ; notranslate">
# need this to get add-apt-repository
apt-get install python-software-properties
# now add your ppa key
add-apt-repository ppa:whateverpackage/ppa
</pre>
]]></content:encoded>
			<wfw:commentRss>http://coder.kidsreturn.org/2012/03/add-ppa-repository-to-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Trouble with Magento Extension Install? Try manual approach</title>
		<link>http://coder.kidsreturn.org/2012/03/trouble-with-magento-extension-install-try-manual-approach/</link>
		<comments>http://coder.kidsreturn.org/2012/03/trouble-with-magento-extension-install-try-manual-approach/#comments</comments>
		<pubDate>Wed, 28 Mar 2012 10:43:50 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://coder.kidsreturn.org/?p=509</guid>
		<description><![CDATA[Sometimes Magento refuse to install extension via Magento Connect. But you can always try to convert the extension to actual package and overwrite your existing installation. Of course, use with caution. http://freegento.com/ddl-magento-extension.php http://miragedesign.net/tools/download-magento-extension/ BTW so far I don&#8217;t like Magento.]]></description>
			<content:encoded><![CDATA[<p>Sometimes Magento refuse to install extension via Magento Connect. But you can always try to convert the extension to actual package and overwrite your existing installation. Of course, use with caution.</p>
<p><a href="http://freegento.com/ddl-magento-extension.php" target="_blank">http://freegento.com/ddl-magento-extension.php</a></p>
<p><a href="http://miragedesign.net/tools/download-magento-extension/" target="_blank">http://miragedesign.net/tools/download-magento-extension/</a></p>
<p>BTW so far I don&#8217;t like Magento.</p>
]]></content:encoded>
			<wfw:commentRss>http://coder.kidsreturn.org/2012/03/trouble-with-magento-extension-install-try-manual-approach/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Some WordPress Resources</title>
		<link>http://coder.kidsreturn.org/2012/03/some-wordpress-resources/</link>
		<comments>http://coder.kidsreturn.org/2012/03/some-wordpress-resources/#comments</comments>
		<pubDate>Wed, 28 Mar 2012 10:41:57 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://coder.kidsreturn.org/?p=507</guid>
		<description><![CDATA[http://wp.smashingmagazine.com/2011/10/04/create-custom-post-meta-boxes-wordpress/ http://wp.smashingmagazine.com/2011/10/18/how-to-use-ajax-in-wordpress/ http://wp.smashingmagazine.com/2011/11/17/wordpress-multisite-practical-functions-methods/ http://www.wpfunction.me/ http://wp-snippets.com/ http://perishablepress.com/code-snippets/]]></description>
			<content:encoded><![CDATA[<p><a href="http://wp.smashingmagazine.com/2011/10/04/create-custom-post-meta-boxes-wordpress/" target="_blank">http://wp.smashingmagazine.com/2011/10/04/create-custom-post-meta-boxes-wordpress/</a></p>
<p><a href="http://wp.smashingmagazine.com/2011/10/18/how-to-use-ajax-in-wordpress/" target="_blank">http://wp.smashingmagazine.com/2011/10/18/how-to-use-ajax-in-wordpress/</a></p>
<p><a href="http://wp.smashingmagazine.com/2011/11/17/wordpress-multisite-practical-functions-methods/" target="_blank">http://wp.smashingmagazine.com/2011/11/17/wordpress-multisite-practical-functions-methods/</a></p>
<p><a href="http://www.wpfunction.me/" target="_blank">http://www.wpfunction.me/</a></p>
<p><a href="http://wp-snippets.com/" target="_blank">http://wp-snippets.com/</a></p>
<p><a href="http://perishablepress.com/code-snippets/" target="_blank">http://perishablepress.com/code-snippets/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://coder.kidsreturn.org/2012/03/some-wordpress-resources/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Server memory troubleshooting</title>
		<link>http://coder.kidsreturn.org/2012/03/server-memory-troubleshooting/</link>
		<comments>http://coder.kidsreturn.org/2012/03/server-memory-troubleshooting/#comments</comments>
		<pubDate>Sun, 25 Mar 2012 08:03:28 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://coder.kidsreturn.org/?p=505</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<pre class="brush: bash; title: ; notranslate">
top
ps aux
ps auxw
pmap
vmstat
ps -A --sort -rss -o comm,pmem | head -n 11
free -m
</pre>
]]></content:encoded>
			<wfw:commentRss>http://coder.kidsreturn.org/2012/03/server-memory-troubleshooting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NFS server on Mac</title>
		<link>http://coder.kidsreturn.org/2012/03/nfs-server-on-mac/</link>
		<comments>http://coder.kidsreturn.org/2012/03/nfs-server-on-mac/#comments</comments>
		<pubDate>Mon, 19 Mar 2012 02:02:32 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[OS X]]></category>

		<guid isPermaLink="false">http://coder.kidsreturn.org/?p=500</guid>
		<description><![CDATA[http://ivanvillareal.com/osx/nfs-mac-osx-lion/ http://support.apple.com/kb/HT4745]]></description>
			<content:encoded><![CDATA[<p><a href="http://ivanvillareal.com/osx/nfs-mac-osx-lion/" target="_blank">http://ivanvillareal.com/osx/nfs-mac-osx-lion/</a><br />
<a href="http://support.apple.com/kb/HT4745" target="_blank">http://support.apple.com/kb/HT4745</a></p>
]]></content:encoded>
			<wfw:commentRss>http://coder.kidsreturn.org/2012/03/nfs-server-on-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tunnel</title>
		<link>http://coder.kidsreturn.org/2012/03/tunnel/</link>
		<comments>http://coder.kidsreturn.org/2012/03/tunnel/#comments</comments>
		<pubDate>Fri, 16 Mar 2012 07:52:49 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[OS X]]></category>
		<category><![CDATA[System]]></category>

		<guid isPermaLink="false">http://coder.kidsreturn.org/?p=497</guid>
		<description><![CDATA[First establish the tunnel: Then Mac System Preferences > Network > Advanced > Proxies Tick &#8220;SOCKS Proxy&#8221;: localhost:8080]]></description>
			<content:encoded><![CDATA[<p>First establish the tunnel:</p>
<pre class="brush: bash; title: ; notranslate">
ssh -D 8080 -fCqN user@server.com
</pre>
<p>Then Mac System Preferences > Network > Advanced > Proxies<br />
Tick &#8220;SOCKS Proxy&#8221;: localhost:8080</p>
]]></content:encoded>
			<wfw:commentRss>http://coder.kidsreturn.org/2012/03/tunnel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bootstrap related websites</title>
		<link>http://coder.kidsreturn.org/2012/03/bootstrap-related-websites/</link>
		<comments>http://coder.kidsreturn.org/2012/03/bootstrap-related-websites/#comments</comments>
		<pubDate>Wed, 14 Mar 2012 03:47:40 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://coder.kidsreturn.org/?p=495</guid>
		<description><![CDATA[http://wrapbootstrap.com/ http://bootswatch.com/]]></description>
			<content:encoded><![CDATA[<p><a href="http://wrapbootstrap.com/" target="_blank">http://wrapbootstrap.com/</a><br />
<a href="http://bootswatch.com/" target="_blank">http://bootswatch.com/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://coder.kidsreturn.org/2012/03/bootstrap-related-websites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Template Hierarchy</title>
		<link>http://coder.kidsreturn.org/2012/03/wordpress-template-hierarchy/</link>
		<comments>http://coder.kidsreturn.org/2012/03/wordpress-template-hierarchy/#comments</comments>
		<pubDate>Tue, 13 Mar 2012 11:39:38 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://coder.kidsreturn.org/?p=476</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><img src="http://coder.kidsreturn.org/wp-content/uploads/2012/03/Template-Hierarchy-320x160.png" alt="" title="Template Hierarchy" width="320" height="160" class="box"></p>
]]></content:encoded>
			<wfw:commentRss>http://coder.kidsreturn.org/2012/03/wordpress-template-hierarchy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Extend your jQuery selector</title>
		<link>http://coder.kidsreturn.org/2012/03/extend-your-jquery-selector/</link>
		<comments>http://coder.kidsreturn.org/2012/03/extend-your-jquery-selector/#comments</comments>
		<pubDate>Tue, 13 Mar 2012 07:29:13 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://coder.kidsreturn.org/?p=470</guid>
		<description><![CDATA[Source: http://www.websanova.com/tutorials/jquery/12-awesome-jquery-selector-extensions Example:]]></description>
			<content:encoded><![CDATA[<p>Source: <a href="http://www.websanova.com/tutorials/jquery/12-awesome-jquery-selector-extensions" target="_blank">http://www.websanova.com/tutorials/jquery/12-awesome-jquery-selector-extensions</a></p>
<p>Example:</p>
<pre class="brush: jscript; title: ; notranslate">
### Select everything that has ID on the tag ###
$.extend($.expr[':'],
{
    hasId: function(el)
    {
        return $(el).attr('id') !== undefined &amp;&amp; $(el).attr('id') !== '';
    }
}
$(&quot;#container :hasId&quot;);

### Select everything that's current in &quot;view&quot; ###
$.extend($.expr[':'],
{
    inView: function(el)
    {
        var offset = $(el).offset();

        return !(
            (offset.top &gt; $(window).height() + $(document).scrollTop()) ||
            (offset.top + $(el).height() &lt; $(document).scrollTop()) ||
            (offset.left &gt; $(window).width() + $(document).scrollLeft()) ||
            (offset.left + $(el).width() &lt; $(document).scrollLeft())
        )
    }
}
$(&quot;#container :inView&quot;);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://coder.kidsreturn.org/2012/03/extend-your-jquery-selector/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tighten up security</title>
		<link>http://coder.kidsreturn.org/2012/03/tighten-up-security/</link>
		<comments>http://coder.kidsreturn.org/2012/03/tighten-up-security/#comments</comments>
		<pubDate>Sun, 11 Mar 2012 14:13:08 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://coder.kidsreturn.org/?p=464</guid>
		<description><![CDATA[A list of things you can do to improve your (ubuntu) server security. Install mod_evasive and mod_security Tweak php.ini (/etc/php5/apache2/php.ini) Install curl so you can still grab remote files after fopen turned off Install fail2ban Let unattended upgrades]]></description>
			<content:encoded><![CDATA[<p>A list of things you can do to improve your (ubuntu) server security.</p>
<p>Install mod_evasive and mod_security</p>
<pre class="brush: bash; title: ; notranslate">
apt-get install libapache2-mod-evasive libapache-mod-security
mv /etc/modsecurity/modsecurity.conf-recommended /etc/modsecurity/modsecurity.conf
</pre>
<p>Tweak php.ini (/etc/php5/apache2/php.ini)</p>
<pre class="brush: bash; title: ; notranslate">
# append those to disable_functions
# system,show_source,symlink,exec,dl,shell_exec,passthru,phpinfo,escapeshellarg,escapeshellcmd

allow_url_fopen = Off

open_basedir = /home/www-data/
</pre>
<p>Install curl so you can still grab remote files after fopen turned off</p>
<pre class="brush: bash; title: ; notranslate">
apt-get install curl php5-curl
</pre>
<p>Install fail2ban</p>
<pre class="brush: bash; title: ; notranslate">
apt-get install fail2ban
</pre>
<p>Let unattended upgrades</p>
<pre class="brush: bash; title: ; notranslate">
apt-get install unattended-upgrades
dpkg-reconfigure unattended-upgrades
</pre>
]]></content:encoded>
			<wfw:commentRss>http://coder.kidsreturn.org/2012/03/tighten-up-security/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install PostgreSQL on Mac Lion via Homebrew</title>
		<link>http://coder.kidsreturn.org/2012/03/install-postgresql-on-mac-lion-via-homebrew/</link>
		<comments>http://coder.kidsreturn.org/2012/03/install-postgresql-on-mac-lion-via-homebrew/#comments</comments>
		<pubDate>Tue, 06 Mar 2012 14:27:46 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[OS X]]></category>

		<guid isPermaLink="false">http://coder.kidsreturn.org/?p=456</guid>
		<description><![CDATA[First install homebrew if you haven&#8217;t already: https://github.com/mxcl/homebrew/wiki/installation Now install postgresql via homebrew Wait for everything to finish. Create postgreSQL database: Fix conflict from Mac&#8217;s own postgreSQL: source: http://nextmarvel.net/blog/2011/09/brew-install-postgresql-on-os-x-lion/ Also, make sure /usr/local/bin comes first in your /etc/paths. Run &#8220;brew doctor&#8221; to check if there is any path issue. You need to fix those issues [...]]]></description>
			<content:encoded><![CDATA[<p>First install homebrew if you haven&#8217;t already:<br />
<a href="https://github.com/mxcl/homebrew/wiki/installation" target="_blank">https://github.com/mxcl/homebrew/wiki/installation</a></p>
<p>Now install postgresql via homebrew</p>
<pre class="brush: bash; title: ; notranslate">
brew update &amp;&amp; brew upgrade
brew install postgresql
</pre>
<p>Wait for everything to finish. </p>
<p>Create postgreSQL database:</p>
<pre class="brush: bash; title: ; notranslate">
initdb /usr/local/var/postgres
</pre>
<p>Fix conflict from Mac&#8217;s own postgreSQL:<br />
source: <a href="http://nextmarvel.net/blog/2011/09/brew-install-postgresql-on-os-x-lion/" target="_blank">http://nextmarvel.net/blog/2011/09/brew-install-postgresql-on-os-x-lion/</a></p>
<pre class="brush: bash; title: ; notranslate">
BREW_POSTGRES_DIR=`brew info postgres | awk '{print $1&quot;/bin&quot;}' | grep &quot;/postgresql/&quot;`
LION_POSTGRES_DIR=`which postgres | xargs dirname`
LION_PSQL_DIR=`which psql | xargs dirname`

sudo mkdir -p $LION_POSTGRES_DIR/archive
sudo mkdir -p $LION_PSQL_DIR/archive

for i in `ls $BREW_POSTGRES_DIR`
do
    if [ -f $LION_POSTGRES_DIR/$i ]
    then
        sudo mv $LION_POSTGRES_DIR/$i $LION_POSTGRES_DIR/archive/$i
        sudo ln -s $BREW_POSTGRES_DIR/$i $LION_POSTGRES_DIR/$i
    fi

    if [ -f $LION_PSQL_DIR/$i ]
    then
        sudo mv $LION_PSQL_DIR/$i $LION_PSQL_DIR/archive/$i
        sudo ln -s $BREW_POSTGRES_DIR/$i $LION_PSQL_DIR/$i
    fi
done
</pre>
<p>Also, make sure /usr/local/bin comes first in your /etc/paths. Run &#8220;brew doctor&#8221; to check if there is any path issue.</p>
<p>You need to fix those issues before install bundled stuff such as rails pg gem (if not, use &#8220;gem uninstall pg &#038;&#038; gem install pg&#8221; to reinstall pg gem).</p>
<p>Start service:</p>
<pre class="brush: bash; title: ; notranslate">
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
</pre>
<p>To stop service:</p>
<pre class="brush: bash; title: ; notranslate">
pg_ctl -D /usr/local/var/postgres stop -s -m fast
</pre>
<p>To make postgreSQL auto start:</p>
<pre class="brush: bash; title: ; notranslate">
mkdir -p ~/Library/LaunchAgents
cp /usr/local/Cellar/postgresql/9.1.3/homebrew.mxcl.postgresql.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
</pre>
<p>To remove this auto start:</p>
<pre class="brush: bash; title: ; notranslate">
launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
</pre>
<p>To upgrade from old version of this auto start (first remove auto start see previous section):</p>
<pre class="brush: bash; title: ; notranslate">
cp /usr/local/Cellar/postgresql/NEW.VERSION.ID/homebrew.mxcl.postgresql.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
</pre>
<p>To Install adminpack (so pgAdmin stop complaining):</p>
<pre class="brush: bash; title: ; notranslate">
psql -d postgres
CREATE EXTENSION adminpack;
</pre>
<p>Also, download pgAdmin:<br />
<a href="http://www.pgadmin.org/download/macosx.php" target="_blank">http://www.pgadmin.org/download/macosx.php</a></p>
]]></content:encoded>
			<wfw:commentRss>http://coder.kidsreturn.org/2012/03/install-postgresql-on-mac-lion-via-homebrew/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Normalize.css</title>
		<link>http://coder.kidsreturn.org/2012/02/normalize-css/</link>
		<comments>http://coder.kidsreturn.org/2012/02/normalize-css/#comments</comments>
		<pubDate>Wed, 29 Feb 2012 02:40:33 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://coder.kidsreturn.org/?p=454</guid>
		<description><![CDATA[https://github.com/necolas/normalize.css]]></description>
			<content:encoded><![CDATA[<p><a href="https://github.com/necolas/normalize.css" target="_blank">https://github.com/necolas/normalize.css</a></p>
]]></content:encoded>
			<wfw:commentRss>http://coder.kidsreturn.org/2012/02/normalize-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Page Scroller plugin</title>
		<link>http://coder.kidsreturn.org/2012/02/page-scroller-plugin/</link>
		<comments>http://coder.kidsreturn.org/2012/02/page-scroller-plugin/#comments</comments>
		<pubDate>Wed, 22 Feb 2012 05:38:56 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://coder.kidsreturn.org/?p=451</guid>
		<description><![CDATA[http://pagescroller.com/]]></description>
			<content:encoded><![CDATA[<p><a href="http://pagescroller.com/">http://pagescroller.com/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://coder.kidsreturn.org/2012/02/page-scroller-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

