<?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>ryu&#039;s blog</title>
	<atom:link href="http://www.crtgen.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.crtgen.com</link>
	<description>just a few lines of code</description>
	<lastBuildDate>Thu, 17 May 2012 18:36:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>My new toy, a Arduino microcontroller</title>
		<link>http://www.crtgen.com/2012/05/10/my-new-toy-a-arduino-microcontroller/</link>
		<comments>http://www.crtgen.com/2012/05/10/my-new-toy-a-arduino-microcontroller/#comments</comments>
		<pubDate>Wed, 09 May 2012 22:50:45 +0000</pubDate>
		<dc:creator>ryu</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Microcontroller]]></category>

		<guid isPermaLink="false">http://www.crtgen.com/?p=241</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.crtgen.com/wp-content/uploads/2012/05/464884_3743844805303_1551725151_33008312_1839167766_o.jpg"><img class="alignnone size-large wp-image-242" title="My first Arduino order" src="http://www.crtgen.com/wp-content/uploads/2012/05/464884_3743844805303_1551725151_33008312_1839167766_o-1024x768.jpg" alt="" width="550" height="412" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.crtgen.com/2012/05/10/my-new-toy-a-arduino-microcontroller/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Howto add an application (App) to a Facebook page (with Timeline)</title>
		<link>http://www.crtgen.com/2012/04/23/howto-add-an-facebook-application-app-to-a-facebook-page-with-timeline/</link>
		<comments>http://www.crtgen.com/2012/04/23/howto-add-an-facebook-application-app-to-a-facebook-page-with-timeline/#comments</comments>
		<pubDate>Mon, 23 Apr 2012 08:34:21 +0000</pubDate>
		<dc:creator>ryu</dc:creator>
				<category><![CDATA[Facebook]]></category>
		<category><![CDATA[App]]></category>
		<category><![CDATA[Timeline]]></category>

		<guid isPermaLink="false">http://www.crtgen.com/?p=232</guid>
		<description><![CDATA[As the form to add an app to a page must be hidden somewhere (congratulations facebook, 5 stars for a user-friendly GUI!), you can build a link which opens the right dialog on your own. Just try the following: http://www.facebook.com/dialog/pagetab?app_id=&#60;YOUR_APP_ID&#62;&#038;next=&#60;YOUR_URL&#62;]]></description>
			<content:encoded><![CDATA[<p>As the form to add an app to a page must be hidden somewhere (congratulations facebook, 5 stars for a user-friendly GUI!), you can build a link which opens the right dialog on your own. Just try the following:</p>
<p>http://www.facebook.com/dialog/pagetab?app_id=&lt;YOUR_APP_ID&gt;&#038;next=&lt;YOUR_URL&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.crtgen.com/2012/04/23/howto-add-an-facebook-application-app-to-a-facebook-page-with-timeline/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP5 GeoIP PECL / Apache2 / Ubuntu</title>
		<link>http://www.crtgen.com/2012/04/06/php5-geoip-pecl-apache2-ubuntu/</link>
		<comments>http://www.crtgen.com/2012/04/06/php5-geoip-pecl-apache2-ubuntu/#comments</comments>
		<pubDate>Fri, 06 Apr 2012 10:58:34 +0000</pubDate>
		<dc:creator>ryu</dc:creator>
				<category><![CDATA[Unix/Linux]]></category>
		<category><![CDATA[Apache2]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[GeoIP]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PECL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.crtgen.com/?p=218</guid>
		<description><![CDATA[Install GeoIP for PHP via PECL: Add "extension=geoip.so" to your 'php.ini' (at the end of the file). My 'php.ini' is located at '/etc/php5/apache2/php.ini'. Download GeoIP Databases (if they aren't there already): Unfortunately there is something wrong with the paths, so I had to rename one of the files to make it work: You can see [...]]]></description>
			<content:encoded><![CDATA[<p>Install GeoIP for PHP via PECL:</p>
<pre class="brush: bash; title: ; notranslate">apt-get install libgeoip-dev php5-dev php5-geoip php-pear
pecl update-channels
pecl upgrade-all
pecl install geoip</pre>
<p>Add "extension=geoip.so" to your 'php.ini' (at the end of the file). My 'php.ini' is located at '/etc/php5/apache2/php.ini'.<br />
<br />
Download GeoIP Databases (if they aren't there already):</p>
<pre class="brush: bash; title: ; notranslate">cd /usr/share/GeoIP
wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz &amp;&amp; gunzip GeoLiteCity.dat.gz
wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz &amp;&amp; gunzip GeoIP.dat.gz</pre>
<p>Unfortunately there is something wrong with the paths, so I had to rename one of the files to make it work:</p>
<pre class="brush: bash; title: ; notranslate">mv GeoLiteCity.dat GeoIPCity.dat</pre>
<p>You can see all database files with the following command:</p>
<pre class="brush: php; title: ; notranslate">&lt;?php
var_dump(geoip_db_get_all_info());
?&gt;</pre>
<p>I couldn't figure out where to change this list. Maybe I will find a way in the future...<br />
<br />
Finally let's see where the client is located:</p>
<pre class="brush: php; title: ; notranslate">&lt;?php
var_dump(geoip_record_by_name($_SERVER['REMOTE_ADDR']));
?&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.crtgen.com/2012/04/06/php5-geoip-pecl-apache2-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HOWTO be classy</title>
		<link>http://www.crtgen.com/2012/01/24/howto-be-classy/</link>
		<comments>http://www.crtgen.com/2012/01/24/howto-be-classy/#comments</comments>
		<pubDate>Mon, 23 Jan 2012 23:04:20 +0000</pubDate>
		<dc:creator>ryu</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.crtgen.com/?p=192</guid>
		<description><![CDATA[Open these three links in three tabs and listen simultaneously: http://www.rainymood.com http://youtu.be/DIx3aMRDUL4 http://youtu.be/HMnrl0tmd3k]]></description>
			<content:encoded><![CDATA[<p>Open these three links in three tabs and listen simultaneously:</p>
<p><a title="http://www.rainymood.com" href="http://www.rainymood.com" target="_blank">http://www.rainymood.com</a><br />
<a title="http://youtu.be/DIx3aMRDUL4" href="http://youtu.be/DIx3aMRDUL4" target="_blank"> http://youtu.be/DIx3aMRDUL4</a><br />
<a title="http://youtu.be/HMnrl0tmd3k" href="http://youtu.be/HMnrl0tmd3k" target="_blank"> http://youtu.be/HMnrl0tmd3k</a></p>
<p><img class="alignnone" src="http://www.nataliedee.com/092607/classy.jpg" alt="" width="150" height="110" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.crtgen.com/2012/01/24/howto-be-classy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HOWTO Compile Objective-C in Ubuntu (11.04)</title>
		<link>http://www.crtgen.com/2011/10/13/howto-compile-objective-c-in-ubuntu-11-04/</link>
		<comments>http://www.crtgen.com/2011/10/13/howto-compile-objective-c-in-ubuntu-11-04/#comments</comments>
		<pubDate>Thu, 13 Oct 2011 10:22:17 +0000</pubDate>
		<dc:creator>ryu</dc:creator>
				<category><![CDATA[Unix/Linux]]></category>
		<category><![CDATA[gcc]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.crtgen.com/?p=176</guid>
		<description><![CDATA[To compile Objective-C code in Ubutnu, just install gcc, gobjc, gnustep and clang. The actual compile process for a file eg. called code.m starts with the following line: # gcc -o code code.m -I /usr/include/GNUstep/ -L /usr/lib/GNUstep/ -lgnustep-base -fconstant-string-class=NSConstantString But, in my case there was an error: 'error: #error The current setting for native-objc-exceptions does [...]]]></description>
			<content:encoded><![CDATA[<p>To compile Objective-C code in Ubutnu, just install gcc, gobjc, gnustep and clang.<br />
The actual compile process for a file eg. called code.m starts with the following line:</p>
<blockquote><p># gcc -o code code.m -I /usr/include/GNUstep/ -L /usr/lib/GNUstep/ -lgnustep-base -fconstant-string-class=NSConstantString</p></blockquote>
<p>But, in my case there was an error: 'error: #error The current setting for native-objc-exceptions does not match that of gnustep-base ... please correct this.'<br />
To solve this problem, do the following:</p>
<blockquote><p># vim /usr/include/GNUstep/GNUstepBase/GSConfig.h</p></blockquote>
<blockquote><p>:set nu</p></blockquote>
<p>Go to line number (in my case) 221, or search for:</p>
<blockquote><p>#define BASE_NATIVE_OBJC_EXCEPTIONS 1</p></blockquote>
<p>Replace the line with:</p>
<blockquote><p>#define BASE_NATIVE_OBJC_EXCEPTIONS 0</p></blockquote>
<p>Now the compiler should work without problems! <img src='http://www.crtgen.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.crtgen.com/2011/10/13/howto-compile-objective-c-in-ubuntu-11-04/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>HOWTO: Install PHP Memcache on Ubuntu</title>
		<link>http://www.crtgen.com/2011/09/21/howto-install-php-memcache-on-ubuntu/</link>
		<comments>http://www.crtgen.com/2011/09/21/howto-install-php-memcache-on-ubuntu/#comments</comments>
		<pubDate>Wed, 21 Sep 2011 08:44:30 +0000</pubDate>
		<dc:creator>ryu</dc:creator>
				<category><![CDATA[Unix/Linux]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Memcache]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.crtgen.com/?p=168</guid>
		<description><![CDATA[Update, install new software an restart Apache: # apt-get update &#038;&#038; apt-get upgrade # apt-get install memcached php5-memcache # /etc/init.d/apache2 restart Now test it. Start a new memcache instance: # memcached -u root -d -m 24 -l 127.0.0.1 -p 11211 This instance starts as root user using 24 MB as maximum cache size, listening on [...]]]></description>
			<content:encoded><![CDATA[<p>Update, install new software an restart Apache:</p>
<blockquote><p># apt-get update &#038;& apt-get upgrade</p></blockquote>
<blockquote><p># apt-get install memcached php5-memcache</p></blockquote>
<blockquote><p># /etc/init.d/apache2 restart</p></blockquote>
<p>Now test it. Start a new memcache instance:</p>
<blockquote><p># memcached -u root -d -m 24 -l 127.0.0.1 -p 11211</p></blockquote>
<p>This instance starts as root user using 24 MB as maximum cache size, listening on port 11211.<br />
On my system, I have this process running now:</p>
<blockquote><p>13919 ?        Sl     0:00 /usr/bin/memcached -m 64 -p 11211 -u memcache -l 127.0.0.1</p></blockquote>
<p>We can test our running memcache process by connecting via Telnet:</p>
<blockquote><p># telnet 127.0.0.1 11211</p></blockquote>
<p>An overview of the availiable commands, you can find here: <a href="http://lzone.de/articles/memcached.htm">http://lzone.de/articles/memcached.htm</a><br />
If you like to change your default memcached configuration, do the following:</p>
<blockquote><p># vim /etc/memcached.conf</p></blockquote>
<p>Don't forget to restart memcached afterwards:</p>
<blockquote><p># /etc/init.d/memcached restart</p></blockquote>
<p>At this point you would have to start all memcached instances manually. That's a thing I wouldn't like to worry about. So move the commands to rc.local:</p>
<blockquote><p># vim /etc/rc.local</p></blockquote>
<p>Add lines like this before 'exit 0':</p>
<blockquote><p>memcached -u your-user-name -d -m 16 -l 127.0.0.1 -p 11211</p></blockquote>
<p>Make sure every instance listens on a different port. For example: 11211, 11212, 11213... etc.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.crtgen.com/2011/09/21/howto-install-php-memcache-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian: Change system language</title>
		<link>http://www.crtgen.com/2011/08/28/debian-change-system-language/</link>
		<comments>http://www.crtgen.com/2011/08/28/debian-change-system-language/#comments</comments>
		<pubDate>Sun, 28 Aug 2011 00:41:31 +0000</pubDate>
		<dc:creator>ryu</dc:creator>
				<category><![CDATA[Unix/Linux]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.crtgen.com/?p=165</guid>
		<description><![CDATA[# apt-get update # apt-get install debconf # dpkg-reconfigure locales]]></description>
			<content:encoded><![CDATA[<blockquote><p># apt-get update</p></blockquote>
<blockquote><p># apt-get install debconf</p></blockquote>
<blockquote><p># dpkg-reconfigure locales</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.crtgen.com/2011/08/28/debian-change-system-language/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD: Enable root access via remote SSH</title>
		<link>http://www.crtgen.com/2011/08/28/freebsd-enable-root-access-via-remote-ssh/</link>
		<comments>http://www.crtgen.com/2011/08/28/freebsd-enable-root-access-via-remote-ssh/#comments</comments>
		<pubDate>Sun, 28 Aug 2011 00:36:52 +0000</pubDate>
		<dc:creator>ryu</dc:creator>
				<category><![CDATA[FreeBSD]]></category>

		<guid isPermaLink="false">http://www.crtgen.com/?p=162</guid>
		<description><![CDATA[On FreeBSD you can't login via remote SSH as root user. # adduser christoph User christoph will be able to gain access via SSH just as every other user. # pw usermod christoph -G wheel By putting this user in de group wheel, the user gains the right to change to root via: # su]]></description>
			<content:encoded><![CDATA[<p>On FreeBSD you can't login via remote SSH as root user.</p>
<blockquote><p># adduser christoph</p></blockquote>
<p>User christoph will be able to gain access via SSH just as every other user.</p>
<blockquote><p># pw usermod christoph -G wheel</p></blockquote>
<p>By putting this user in de group wheel, the user gains the right to change to root via:</p>
<blockquote><p># su</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.crtgen.com/2011/08/28/freebsd-enable-root-access-via-remote-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD: Reenter install tool</title>
		<link>http://www.crtgen.com/2011/08/28/freebsd-reenter-install-tool/</link>
		<comments>http://www.crtgen.com/2011/08/28/freebsd-reenter-install-tool/#comments</comments>
		<pubDate>Sun, 28 Aug 2011 00:32:56 +0000</pubDate>
		<dc:creator>ryu</dc:creator>
				<category><![CDATA[FreeBSD]]></category>

		<guid isPermaLink="false">http://www.crtgen.com/?p=160</guid>
		<description><![CDATA[# sysinstall]]></description>
			<content:encoded><![CDATA[<blockquote><p># sysinstall</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.crtgen.com/2011/08/28/freebsd-reenter-install-tool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD: Set IP for an existing interface</title>
		<link>http://www.crtgen.com/2011/08/28/freebsd-set-ip-for-an-existing-interface/</link>
		<comments>http://www.crtgen.com/2011/08/28/freebsd-set-ip-for-an-existing-interface/#comments</comments>
		<pubDate>Sun, 28 Aug 2011 00:31:15 +0000</pubDate>
		<dc:creator>ryu</dc:creator>
				<category><![CDATA[FreeBSD]]></category>

		<guid isPermaLink="false">http://www.crtgen.com/?p=157</guid>
		<description><![CDATA[Assume interface name is: em0 # vi /etc/rc.conf hostname="shiva.local" ifconfig_em0="inet 10.0.0.10 netmask 255.255.255.0" # /etc/netstart]]></description>
			<content:encoded><![CDATA[<p>Assume interface name is: em0</p>
<blockquote><p># vi /etc/rc.conf</p></blockquote>
<blockquote><p>hostname="shiva.local"<br />
ifconfig_em0="inet 10.0.0.10 netmask 255.255.255.0"</p></blockquote>
<blockquote><p># /etc/netstart</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.crtgen.com/2011/08/28/freebsd-set-ip-for-an-existing-interface/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

