<?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>Üstün's Blog</title>
	<atom:link href="http://ustun.fi/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://ustun.fi/blog</link>
	<description>verbose debugging output</description>
	<lastBuildDate>Wed, 02 Feb 2011 19:19:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Artificial Intelligence for Games, Second Edition</title>
		<link>http://ustun.fi/blog/2011/02/02/artificial-intelligence-for-games-second-edition/</link>
		<comments>http://ustun.fi/blog/2011/02/02/artificial-intelligence-for-games-second-edition/#comments</comments>
		<pubDate>Wed, 02 Feb 2011 19:19:25 +0000</pubDate>
		<dc:creator>Üstün</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[ai]]></category>
		<category><![CDATA[mac os x]]></category>

		<guid isPermaLink="false">http://ustun.fi/blog/?p=180</guid>
		<description><![CDATA[I started reading this book, Artificial Intelligence for Games, but the the example code was not compiling under Mac OS X. It seems like I fixed it. Here&#8217;s the authors&#8217; repository, and this is my fork with fixes.]]></description>
			<content:encoded><![CDATA[<p>I started reading this book, <a href="http://www.amazon.com/Artificial-Intelligence-Games-Second-Millington/dp/0123747317/ref=dp_ob_title_bk" target="_blank">Artificial Intelligence for Games</a>, but the the example code was not compiling under Mac OS X. It seems like I fixed it.</p>
<p>Here&#8217;s the authors&#8217; <a href="https://github.com/idmillington/aicore" target="_blank">repository</a>, and this is my <a href="https://github.com/badZeppelin/aicore" target="_blank">fork</a> with fixes.</p>
]]></content:encoded>
			<wfw:commentRss>http://ustun.fi/blog/2011/02/02/artificial-intelligence-for-games-second-edition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Silence</title>
		<link>http://ustun.fi/blog/2011/02/01/silence/</link>
		<comments>http://ustun.fi/blog/2011/02/01/silence/#comments</comments>
		<pubDate>Tue, 01 Feb 2011 18:44:01 +0000</pubDate>
		<dc:creator>Üstün</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[gcc]]></category>
		<category><![CDATA[macro]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://ustun.fi/blog/?p=176</guid>
		<description><![CDATA[Just to make some little noise after not pushing anything to this blog, I will share this nice trick I learned today. If you want to see what macros gcc define on your platform: gcc -E -dM -xc /dev/null does the job for you.]]></description>
			<content:encoded><![CDATA[<p>Just to make some little noise after not pushing anything to this blog, I will share this nice trick I learned today. If you want to see what macros gcc define on your platform:</p>
<pre>gcc -E -dM -xc /dev/null</pre>
<p>does the job for you.</p>
]]></content:encoded>
			<wfw:commentRss>http://ustun.fi/blog/2011/02/01/silence/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Mändäbur</title>
		<link>http://ustun.fi/blog/2010/09/16/mandabur/</link>
		<comments>http://ustun.fi/blog/2010/09/16/mandabur/#comments</comments>
		<pubDate>Thu, 16 Sep 2010 20:46:41 +0000</pubDate>
		<dc:creator>Üstün</dc:creator>
				<category><![CDATA[Music]]></category>
		<category><![CDATA[band]]></category>
		<category><![CDATA[cover]]></category>
		<category><![CDATA[demo]]></category>
		<category><![CDATA[mändäbur]]></category>
		<category><![CDATA[metal]]></category>
		<category><![CDATA[orphaned land]]></category>

		<guid isPermaLink="false">http://ustun.fi/blog/?p=166</guid>
		<description><![CDATA[We&#8217;ve been trying to form a band since a long while with Mesut and Nimrod. We still do not have a drummer so we don&#8217;t rehearse live. But here comes our first demo, Ocean Land, originally an Orphaned Land song. Thanks Melih a lot for playing baglama for this song. Our name, Mändäbur, is originally [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve been trying to form a band since a long while with Mesut and Nimrod. We still do not have a drummer so we don&#8217;t rehearse live. But here comes our first demo, Ocean Land, originally an Orphaned Land song. Thanks Melih a lot for playing baglama for this song.</p>
<p>Our name, Mändäbur, is originally a Persian word(Mandbur; meaning unfortunate, unhappy) in it&#8217;s form as it is pronounced in Turkish as a loan word.<a href="http://books.google.fi/books?id=tkuV1Rtn5lQC&amp;pg=PA1325&amp;lpg=PA1325&amp;dq=mandbur+persian&amp;source=bl&amp;ots=AbHquv307E&amp;sig=NB205VaLiom_bxLgX95VfjOOyp0&amp;hl=fi&amp;ei=_YCSTNqbHY-NOJ3AzP8H&amp;sa=X&amp;oi=book_result&amp;ct=result&amp;resnum=1&amp;ved=0CBcQ6AEwAA#v=onepage&amp;q&amp;f=false" target="_blank">*</a></p>
<p>Shortly after we&#8217;ve finished recording my harddisk flew up to the harddisk heaven and I was stupid by not taking backups, the masters for the demo recording is lost in eternity.</p>
<p>By the way, if you happen to live near Helsinki and you want to play drums in a heavy metal band with middle-eastern influences, tell me.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="385" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/A-AqGqBUSKs?fs=1&amp;hl=fi_FI" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="480" height="385" src="http://www.youtube.com/v/A-AqGqBUSKs?fs=1&amp;hl=fi_FI" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>Mändäbur is:</p>
<p>Üstün Ergenoglu &#8211; Guitars</p>
<p>Nimrod Dayan &#8211; Guitars, Vocals</p>
<p>Mesut Paksoy &#8211; Bass</p>
]]></content:encoded>
			<wfw:commentRss>http://ustun.fi/blog/2010/09/16/mandabur/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Widows and Orphans</title>
		<link>http://ustun.fi/blog/2010/09/16/widows-and-orphans/</link>
		<comments>http://ustun.fi/blog/2010/09/16/widows-and-orphans/#comments</comments>
		<pubDate>Thu, 16 Sep 2010 20:26:54 +0000</pubDate>
		<dc:creator>Üstün</dc:creator>
				<category><![CDATA[Daily]]></category>
		<category><![CDATA[document]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[orphan]]></category>
		<category><![CDATA[widow]]></category>

		<guid isPermaLink="false">http://ustun.fi/blog/?p=162</guid>
		<description><![CDATA[I don&#8217;t write documents very often, but as any mortal sometimes I just have to. And when I do, I usually try to do it with LaTeX. I&#8217;m not a master user but still it saves me a lot from dealing with the layout. I just learned that there is a proper way of avoiding [...]]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t write documents very often, but as any mortal sometimes I just have to. And when I do, I usually try to do it with LaTeX. I&#8217;m not a master user but still it saves me a lot from dealing with the layout. I just learned that there is a proper way of avoiding widow and orphan lines(the last line of a paragraph in a page beginning and the first line of a paragraph in the page bottom). With these lines you can set how hard LaTeX should try to avoid those:</p>
<pre>\widowpenalty=300
\clubpenalty=300</pre>
<p>You can try with bigger numbers to tighten but it might also make your document look worse.</p>
<p>Sources: <a href="http://en.wikibooks.org/wiki/LaTeX/Page_Layout#Widows_and_orphans" target="_blank">here</a> and <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=widows" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://ustun.fi/blog/2010/09/16/widows-and-orphans/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Book World Edition II</title>
		<link>http://ustun.fi/blog/2010/08/07/my-book-world-edition-ii/</link>
		<comments>http://ustun.fi/blog/2010/08/07/my-book-world-edition-ii/#comments</comments>
		<pubDate>Sat, 07 Aug 2010 15:36:13 +0000</pubDate>
		<dc:creator>Üstün</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[arm]]></category>
		<category><![CDATA[gcc]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[my book world edition]]></category>
		<category><![CDATA[scratchbox]]></category>
		<category><![CDATA[toolchain]]></category>

		<guid isPermaLink="false">http://ustun.fi/blog/?p=141</guid>
		<description><![CDATA[This week I bought myself a network attached storage device, Western Digial My Book World Edition II. The device runs BusyBox Linux distribution under the hood. It has an Arm926T series ~200Mhz processor and 128 megabyte system memory. As far as I could see from various forums, in the previous firmware versions it already had [...]]]></description>
			<content:encoded><![CDATA[<p>This week I bought myself a network attached storage device, <a href="http://www.wdc.com/en/products/Products.asp?DriveID=589" target="_blank">Western Digial My Book World Edition II</a>. The device runs BusyBox Linux distribution under the hood. It has an Arm926T series ~200Mhz processor and 128 megabyte system memory.</p>
<p>As far as I could see from various forums, in the previous firmware versions it already had the necessary gcc toolchain inside the device but it is no longer present in the current versions. I have bumped into some tutorials on cross-compiling software for the device but as a regular <a href="http://scratchbox.org" target="_blank">scratchbox</a> user I wanted to create a scratchbox target for the device so cross-compiling stuff(especially with autotools and similar stuff) would be less painful.</p>
<p>First, I created a target with the cs2005q3.2-glibc2.5-arm toolchain that comes with scratchbox 1.0, and managed to compile and run some software successfully(e.g. gnu screen and transmission 2.03). But then later on with some other stuff that I tried to compile started spitting out runtime errors about missing symbols.</p>
<p>Then I downloaded the <a href="http://support.wdc.com/product/download.asp?groupid=118&amp;sid=130&amp;lang=en" target="_blank">archive file</a> from Western Digital&#8217;s web site which included all the source code of the software used in the distribution and also the gcc toolchain that was used to compile the system. After struggling for some hours and following the instructions on scratchbox website for <a href="http://scratchbox.org/wiki/ForeignToolchains" target="_blank">importing foreign toolchains</a>, now I can cross-compile for the device without problems. The only problem I encountered while importing the toolchain was a compile error while compiling gdbserver application. The solutions to the problem seemed a bit complicated and as I do not urgently need the gdb server I made <a href="http://gist.github.com/512890" target="_blank">some changes</a> in the Makefiles and removed it from the build. For those who don&#8217;t want to go through importing the toolchain I created the <a href="http://dl.dropbox.com/u/5907799/scratchbox-toolchain-mybook-arm-1.0.19-i386.tar.gz" target="_blank">tarball</a> and <a href="http://dl.dropbox.com/u/5907799/scratchbox-toolchain-mybook-arm_1.0.19_i386.deb" target="_blank">deb</a> package for the firmware version I have, feel free to download. After installing the package just select the mybook-arm toolchain and qemu-arm-cvs as the cpu transparency method, things should work fine.</p>
<p>Besides the gdb server error, while trying to build glib library it failed with errors of undefined reference to some inotify_* calls. I saw that the inotify related headers are present in the toolchain but the libc that comes along does not have the methods. I have no idea why it is like that, but then I managed to compile glib after I removed the headers.</p>
<p>The linux distro in the device has no package management system, so I was a bit afraid to mess stuff up with libraries. Currently I am compiling all the applications with statically linked libraries. Seems to work fine so far.</p>
]]></content:encoded>
			<wfw:commentRss>http://ustun.fi/blog/2010/08/07/my-book-world-edition-ii/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Git and Cherries</title>
		<link>http://ustun.fi/blog/2010/03/02/git-and-cherries/</link>
		<comments>http://ustun.fi/blog/2010/03/02/git-and-cherries/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 17:21:55 +0000</pubDate>
		<dc:creator>Üstün</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[commit]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[merge]]></category>

		<guid isPermaLink="false">http://ustun.fi/blog/?p=136</guid>
		<description><![CDATA[Today I needed to pick some specific changes from a local git branch and merge them to another. git cherry-pick does the job. Usage: git log source_local_branch #check the sha1 hash of the commit we want git checkout destination_local_branch #switch to the branch we want to merge the commit. git cherry-pick -x &#60;commit_id&#62; the -x [...]]]></description>
			<content:encoded><![CDATA[<p>Today I needed to pick some specific changes from a local git branch and merge them to another. git cherry-pick does the job.</p>
<p>Usage:</p>
<pre>git log source_local_branch #check the sha1 hash of the commit we want
git checkout destination_local_branch #switch to the branch we want to merge the commit.
git cherry-pick -x &lt;commit_id&gt;
</pre>
<p>the -x parameter adds the original commit id to the commit message.</p>
<pre>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://ustun.fi/blog/2010/03/02/git-and-cherries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Showing trailing whitespace in Vim</title>
		<link>http://ustun.fi/blog/2010/02/05/showing-trailing-whitespace-in-vim/</link>
		<comments>http://ustun.fi/blog/2010/02/05/showing-trailing-whitespace-in-vim/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 08:58:13 +0000</pubDate>
		<dc:creator>Üstün</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[vim]]></category>
		<category><![CDATA[whitespace]]></category>

		<guid isPermaLink="false">http://ustun.fi/blog/?p=127</guid>
		<description><![CDATA[Git has been warning me for leaving trailing whitespace in code files every now and then. So I decided to put this in my .vimrc: Source: here]]></description>
			<content:encoded><![CDATA[<p>Git has been warning me for leaving trailing whitespace in code files every now and then. So I decided to put this in my .vimrc:<br />
<script src="http://gist.github.com/295650.js?file=vim-trailing-whitespace.vim"></script></p>
<p>Source: <a href="http://vim.wikia.com/wiki/Remove_unwanted_spaces">here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ustun.fi/blog/2010/02/05/showing-trailing-whitespace-in-vim/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Showing current git branch on shell prompt</title>
		<link>http://ustun.fi/blog/2010/01/29/showing-current-git-branch-on-shell-prompt/</link>
		<comments>http://ustun.fi/blog/2010/01/29/showing-current-git-branch-on-shell-prompt/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 09:09:47 +0000</pubDate>
		<dc:creator>Üstün</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[vcs]]></category>

		<guid isPermaLink="false">http://ustun.fi/blog/?p=124</guid>
		<description><![CDATA[Found this useful piece of code to put into .bashrc, which shows the current branch when the current working directory is versioned by git.]]></description>
			<content:encoded><![CDATA[<p>Found this useful piece of code to put into .bashrc, which shows the current branch when the current working directory is versioned by git.<br />
<script src="http://gist.github.com/5129.js?file=.bashrc"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://ustun.fi/blog/2010/01/29/showing-current-git-branch-on-shell-prompt/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Listing debian packages sorted by size</title>
		<link>http://ustun.fi/blog/2009/12/29/listing-debian-packages-sorted-by-size/</link>
		<comments>http://ustun.fi/blog/2009/12/29/listing-debian-packages-sorted-by-size/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 08:43:37 +0000</pubDate>
		<dc:creator>Üstün</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[deb]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[dpkg]]></category>
		<category><![CDATA[maemo]]></category>
		<category><![CDATA[package]]></category>
		<category><![CDATA[snippet]]></category>
		<category><![CDATA[sort]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://ustun.fi/blog/?p=113</guid>
		<description><![CDATA[dpkg-query --show --showformat='${Package;-50}\t${Installed-Size} ${Status}\n' &#124; sort -k 2 -n &#124;grep -v deinstall This was the most useful thing I&#8217;ve found today. found it here.]]></description>
			<content:encoded><![CDATA[<div class="codecolorer-container bash default" 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">dpkg-query <span style="color: #660033;">--show</span> <span style="color: #660033;">--showformat</span>=<span style="color: #ff0000;">'${Package;-50}\t${Installed-Size} ${Status}\n'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sort</span> <span style="color: #660033;">-k</span> <span style="color: #000000;">2</span> <span style="color: #660033;">-n</span> <span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-v</span> deinstall</div></div>
<p>This was the most useful thing I&#8217;ve found today.</p>
<p>found it <a href="http://ubuntuforums.org/showthread.php?t=599424" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://ustun.fi/blog/2009/12/29/listing-debian-packages-sorted-by-size/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vim settings</title>
		<link>http://ustun.fi/blog/2009/12/21/vim-settings/</link>
		<comments>http://ustun.fi/blog/2009/12/21/vim-settings/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 14:25:32 +0000</pubDate>
		<dc:creator>Üstün</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[repository]]></category>
		<category><![CDATA[settings]]></category>
		<category><![CDATA[vcs]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://ustun.fi/blog/?p=105</guid>
		<description><![CDATA[I used to carry all my vim settings in a .tar.gz file wherever I would go. Sometimes it would get messy because I would forget to get something from somewhere so I would need to create it from scratch. Now I&#8217;ve got everything in a public git repository, and I hope it could be useful [...]]]></description>
			<content:encoded><![CDATA[<p>I used to carry all my <a href="http://www.vim.org/" target="_blank">vim</a> settings in a .tar.gz file wherever I would go. Sometimes it would get messy because I would forget to get something from somewhere so I would need to create it from scratch. Now I&#8217;ve got everything in a public <a title="Git Homepage" href="http://git-scm.com/" target="_blank">git</a> repository, and I hope it could be useful for other vim beginners too.</p>
<p>The repository can be found <a title="myVimSetup repository" href="http://github.com/badZeppelin/myVimSetup" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://ustun.fi/blog/2009/12/21/vim-settings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

