<?xml version="1.0" encoding="UTF-8"?>
<rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Hacking Corner</title>
	
	<link>http://blog.fealdia.org</link>
	<description>Ramblings of a free software enthusiast</description>
	<lastBuildDate>Sat, 06 Mar 2010 07:07:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/HackingCorner" /><feedburner:info uri="hackingcorner" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>ViewSVN full history released</title>
		<link>http://feedproxy.google.com/~r/HackingCorner/~3/O0pw3iYtxsw/</link>
		<comments>http://blog.fealdia.org/2010/03/06/viewsvn-full-history-released/#comments</comments>
		<pubDate>Sat, 06 Mar 2010 07:07:07 +0000</pubDate>
		<dc:creator>hoxu</dc:creator>
				<category><![CDATA[projects]]></category>
		<category><![CDATA[viewsvn]]></category>

		<guid isPermaLink="false">http://blog.fealdia.org/?p=586</guid>
		<description>The full history of ViewSVN (2004-2007) is now public and hosted in a gitorious repository. Ohloh statistics are also available.

At this point the repository is mostly of historical value and the older versions can probably only serve as (bad) examples in many different ways. Or a good example on how (originally) really really badly written [...]&lt;img src="http://feeds.feedburner.com/~r/HackingCorner/~4/O0pw3iYtxsw" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://blog.fealdia.org/2010/03/06/viewsvn-full-history-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.fealdia.org/2010/03/06/viewsvn-full-history-released/</feedburner:origLink></item>
		<item>
		<title>Separating history of a git repository subtree</title>
		<link>http://feedproxy.google.com/~r/HackingCorner/~3/_jj1vTG8Ysk/</link>
		<comments>http://blog.fealdia.org/2010/02/20/separating-history-of-a-git-repository-subtree/#comments</comments>
		<pubDate>Sat, 20 Feb 2010 08:43:38 +0000</pubDate>
		<dc:creator>hoxu</dc:creator>
				<category><![CDATA[tips]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://blog.fealdia.org/?p=573</guid>
		<description>Most people probably already know that it&amp;#8217;s possible to merge histories of multiple repositories by using the subtree merge strategy [1]. However, sometimes you also need to separate/decouple the history of a repository&amp;#8217;s subdirectory into a stand-alone repository. This post outlines how.

In this example we decouple dokuwiki/lib/plugins/piwik from the dokuwiki repository.
$ git clone --no-hardlinks ~/projects/others/dokuwiki [...]&lt;img src="http://feeds.feedburner.com/~r/HackingCorner/~4/_jj1vTG8Ysk" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://blog.fealdia.org/2010/02/20/separating-history-of-a-git-repository-subtree/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.fealdia.org/2010/02/20/separating-history-of-a-git-repository-subtree/</feedburner:origLink></item>
		<item>
		<title>Disk usage reports – JDiskReport</title>
		<link>http://feedproxy.google.com/~r/HackingCorner/~3/Xn1LFyxYgw4/</link>
		<comments>http://blog.fealdia.org/2010/02/16/disk-usage-reports-jdiskreport/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 14:59:55 +0000</pubDate>
		<dc:creator>hoxu</dc:creator>
				<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://blog.fealdia.org/?p=564</guid>
		<description>In case you have wondered how to find out which files to delete to free up disk space, wonder no more. JDiskReport can easily visualize the disk usage of a directory tree with pie charts and other diagrams. Very useful for having a quick look at what is eating up the space, and since it [...]&lt;img src="http://feeds.feedburner.com/~r/HackingCorner/~4/Xn1LFyxYgw4" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://blog.fealdia.org/2010/02/16/disk-usage-reports-jdiskreport/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.fealdia.org/2010/02/16/disk-usage-reports-jdiskreport/</feedburner:origLink></item>
		<item>
		<title>git status / utf-8 umlaut tip</title>
		<link>http://feedproxy.google.com/~r/HackingCorner/~3/lEeHm6LRKqg/</link>
		<comments>http://blog.fealdia.org/2010/01/16/git-status-utf-8-umlaut-tip/#comments</comments>
		<pubDate>Sat, 16 Jan 2010 09:06:12 +0000</pubDate>
		<dc:creator>hoxu</dc:creator>
				<category><![CDATA[tips]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://blog.fealdia.org/?p=554</guid>
		<description>git status and other commands display utf-8 filenames containing umlauts (äö etc) differently from the shell, eg. as escaped (\266, \303 etc). So in case you are having problems with umlauts, the following command should help:
$ git config core.quotepath false
From man git-config(1) for core.quotepath:
The commands that output paths (e.g.  ls-files, diff), when not
given the -z [...]&lt;img src="http://feeds.feedburner.com/~r/HackingCorner/~4/lEeHm6LRKqg" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://blog.fealdia.org/2010/01/16/git-status-utf-8-umlaut-tip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.fealdia.org/2010/01/16/git-status-utf-8-umlaut-tip/</feedburner:origLink></item>
		<item>
		<title>git tips/tricks</title>
		<link>http://feedproxy.google.com/~r/HackingCorner/~3/-zR6kgw19Ic/</link>
		<comments>http://blog.fealdia.org/2009/12/14/git-tipstricks/#comments</comments>
		<pubDate>Mon, 14 Dec 2009 18:02:33 +0000</pubDate>
		<dc:creator>hoxu</dc:creator>
				<category><![CDATA[tips]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://blog.fealdia.org/?p=536</guid>
		<description>I have to admit the more I use git the more I love it. Here are some random tips of commands I have found useful.

-p is your friend
$ git add -p
Hand-pick what changes to add to the next commit.
$ git reset -p
The same as before, but in reverse. Eg. remove some changes from the index.
$ [...]&lt;img src="http://feeds.feedburner.com/~r/HackingCorner/~4/-zR6kgw19Ic" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://blog.fealdia.org/2009/12/14/git-tipstricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.fealdia.org/2009/12/14/git-tipstricks/</feedburner:origLink></item>
		<item>
		<title>Sorting dicts by value in python</title>
		<link>http://feedproxy.google.com/~r/HackingCorner/~3/TK5LK63Ucng/</link>
		<comments>http://blog.fealdia.org/2009/11/27/sorting-dicts-by-value-in-python/#comments</comments>
		<pubDate>Fri, 27 Nov 2009 15:38:41 +0000</pubDate>
		<dc:creator>hoxu</dc:creator>
				<category><![CDATA[tips]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://blog.fealdia.org/?p=515</guid>
		<description>A couple of tips (read: notes to self:) using sorted() and lambda to sort dicts by values in python.

Often you need to count occurrences of previously-unknown keys. The most usual way is to store these in a dict like this:

d = {}
d[key] = d.get(key, 0) + 1

Eventually you end up with something like:

d = {'joe': [...]&lt;img src="http://feeds.feedburner.com/~r/HackingCorner/~4/TK5LK63Ucng" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://blog.fealdia.org/2009/11/27/sorting-dicts-by-value-in-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.fealdia.org/2009/11/27/sorting-dicts-by-value-in-python/</feedburner:origLink></item>
		<item>
		<title>Hedgewars – a worms clone</title>
		<link>http://feedproxy.google.com/~r/HackingCorner/~3/sA_pwniWVqk/</link>
		<comments>http://blog.fealdia.org/2009/11/21/hedgewars-a-worms-clone/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 16:58:38 +0000</pubDate>
		<dc:creator>hoxu</dc:creator>
				<category><![CDATA[fun]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[games]]></category>

		<guid isPermaLink="false">http://blog.fealdia.org/?p=480</guid>
		<description>Since it&amp;#8217;s been over two years since the last time I blogged about Debian games, I figured it&amp;#8217;s time to mention this small gem.
Hedgewars is a pretty polished &amp;#38; very playable Worms clone. It supports quick singleplayer games against the AI, hotseat multiplayer games, and multiplayer games over the internet. Naturally, the multiplayer game is [...]&lt;img src="http://feeds.feedburner.com/~r/HackingCorner/~4/sA_pwniWVqk" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://blog.fealdia.org/2009/11/21/hedgewars-a-worms-clone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.fealdia.org/2009/11/21/hedgewars-a-worms-clone/</feedburner:origLink></item>
		<item>
		<title>Debian popcon statistics for gitstats</title>
		<link>http://feedproxy.google.com/~r/HackingCorner/~3/cwbDMw1SzOk/</link>
		<comments>http://blog.fealdia.org/2009/11/21/debian-popcon-statistics-for-gitstats/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 07:20:43 +0000</pubDate>
		<dc:creator>hoxu</dc:creator>
				<category><![CDATA[projects]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[gitstats]]></category>

		<guid isPermaLink="false">http://blog.fealdia.org/?p=476</guid>
		<description>Who said you can&amp;#8217;t know how many Debian users are there for a given package?  
The popcon installations for gitstats seem to be up to 100 at the moment (package rank 17712 &amp;#8211; my unstable installation claims to know 28085 normal packages). Out of those, 23 users actually use it actively.
Now if there was [...]&lt;img src="http://feeds.feedburner.com/~r/HackingCorner/~4/cwbDMw1SzOk" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://blog.fealdia.org/2009/11/21/debian-popcon-statistics-for-gitstats/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.fealdia.org/2009/11/21/debian-popcon-statistics-for-gitstats/</feedburner:origLink></item>
		<item>
		<title>CD/DVD tray stuck on Debian Sid</title>
		<link>http://feedproxy.google.com/~r/HackingCorner/~3/HmYsmEqBHyI/</link>
		<comments>http://blog.fealdia.org/2009/11/19/cddvd-tray-stuck-on-debian-sid/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 14:43:08 +0000</pubDate>
		<dc:creator>hoxu</dc:creator>
				<category><![CDATA[tips]]></category>
		<category><![CDATA[debian]]></category>

		<guid isPermaLink="false">http://blog.fealdia.org/?p=471</guid>
		<description>In case anyone has run into this peculiar bug, the problem seems to be devkit-disks-daemon (in devicekit-disks package). Debian bug #550316.
Killing the daemon allows you to open the tray normally. Bad gnomes this time.&lt;img src="http://feeds.feedburner.com/~r/HackingCorner/~4/HmYsmEqBHyI" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://blog.fealdia.org/2009/11/19/cddvd-tray-stuck-on-debian-sid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.fealdia.org/2009/11/19/cddvd-tray-stuck-on-debian-sid/</feedburner:origLink></item>
		<item>
		<title>ViewGit 0.0.5 released</title>
		<link>http://feedproxy.google.com/~r/HackingCorner/~3/O12BtQPmiIA/</link>
		<comments>http://blog.fealdia.org/2009/11/16/viewgit-0-0-5-released/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 18:24:49 +0000</pubDate>
		<dc:creator>hoxu</dc:creator>
				<category><![CDATA[releases]]></category>
		<category><![CDATA[viewgit]]></category>

		<guid isPermaLink="false">http://blog.fealdia.org/?p=469</guid>
		<description>ViewGit 0.0.5 has been released.
Freshmeat announcement is pending:
Improved RSS interoperability, added a new default style, simple authorisation plugin, and git-issues plugin.
On a very much related note, the new SourceForge.net interface is a usability horror. Took me 18 minutes to figure out how to make the bloody file release. I guess I was wrong when I [...]&lt;img src="http://feeds.feedburner.com/~r/HackingCorner/~4/O12BtQPmiIA" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://blog.fealdia.org/2009/11/16/viewgit-0-0-5-released/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://blog.fealdia.org/2009/11/16/viewgit-0-0-5-released/</feedburner:origLink></item>
	</channel>
</rss>
