<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">
	<title>Dani's Blog</title>
	
	<link rel="alternate" title="Dani's Blog" href="http://blog.pew.cc/" />
	<updated>2009-10-13T20:30:00+01:00</updated>

	<author>
		<name>Daniel</name>
		<uri>http://blog.pew.cc/blog/author/Daniel/</uri>
	</author>


	<category term="Other" />

	<category term="Rest of the World" />

	<category term="Blogs" />

	<category term="Computer" />

	<category term="World of Warcraft" />

	<category term="Server" />

	<category term="Linux" />

	<id>http://blog.pew.cc/</id>
	<generator version="0.8.0">
		yabs atom feed generator http://yabs.tac-ops.net
	</generator>

	<link rel="self" href="http://feeds.feedburner.com/pewcc/blog" type="application/atom+xml" /><feedburner:browserFriendly></feedburner:browserFriendly><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><entry>
		<title type="xhtml">
			<div xmlns="http://www.w3.org/1999/xhtml">
				(Yet another) short URL service
			</div>
		</title>
		<link rel="alternate" title="(Yet another) short URL service" href="http://blog.pew.cc/blog/%28Yet+another%29+short+URL+service/" />
		<id>http://blog.pew.cc/blog/%28Yet+another%29+short+URL+service/</id>
		<updated>2009-10-13T20:30:00+01:00</updated>
		<author>
			<name>Daniel</name>
			<uri>http://blog.pew.cc/blog/author/Daniel/</uri>
		</author>
		<content type="xhtml">
			<div xmlns="http://www.w3.org/1999/xhtml">
				<p>I've set up a short URL service at <a href="http://url.pew.cc/">url.pew.cc</a>. It's basically the same as <a href="http://tinyurl.com/">tinyurl.com</a>, but with a cool ajax UI. Yay ;). And the best? url.pew.cc is one character shorter then tinyurl.com. Now if that ain't a perfect reason to use it.<br /><br />Anyway, I just wanted to do my own url shortening and don't rely on a third party service for it. url.pew.cc is powered by php and sqlite. It has the same API as tinyurl.com. http://url.pew.cc/files/api-create.php?url=URL will respond with the short url. Adding format xml will respond with an xml file and a bit more verbose error messages, e.g. http://url.pew.cc/files/api-create.php?format=xml&amp;amp;url=URL.<br /><br />The xml format used is:<br /><br /><pre>&amp;lt;shorturl&amp;gt;<br />  &amp;lt;status&amp;gt;0&amp;lt;/status&amp;gt;<br />  &amp;lt;url&amp;gt;ORIGINAL URL&amp;lt;/url&amp;gt;<br />  &amp;lt;short&amp;gt;SHORT VERSION&amp;lt;/short&amp;gt;<br />&amp;lt;/shorturl&amp;gt;</pre><br />And for errors:<br /><pre>&amp;lt;shorturl&amp;gt;<br />  &amp;lt;status&amp;gt;1&amp;lt;/status&amp;gt;<br />  &amp;lt;error&amp;gt;ERROR MESSAGE&amp;lt;/error&amp;gt;<br />&amp;lt;/shorturl&amp;gt;</pre><br />Sorry, there is no create.php for a fancy html output. If you want to use it as a bookmarklet, this will have to do. Bookmark this link: <a href="javascript:void(location.href='http://url.pew.cc/files/api-create.php?url='+encodeURIComponent(location.href))">url.pew.cc</a><br /><br />If it works alright I might share the code at some point.<br /><br /><br /><br />Tags: <a href="http://blog.pew.cc/tag/php/">php</a> <a href="http://blog.pew.cc/tag/jquery/">jquery</a> <a href="http://blog.pew.cc/tag/javascript/">javascript</a> <a href="http://blog.pew.cc/tag/pew.cc/">pew.cc</a> <a href="http://blog.pew.cc/tag/sqlite/">sqlite</a> <a href="http://blog.pew.cc/tag/tinyurl/">tinyurl</a> <a href="http://blog.pew.cc/tag/shorturl/">shorturl</a> </p>
			</div>
		</content>
		<category term="Other" />
	</entry>

	<entry>
		<title type="xhtml">
			<div xmlns="http://www.w3.org/1999/xhtml">
				Craft DB WoW Addon
			</div>
		</title>
		<link rel="alternate" title="Craft DB WoW Addon" href="http://blog.pew.cc/blog/Craft+DB+WoW+Addon/" />
		<id>http://blog.pew.cc/blog/Craft+DB+WoW+Addon/</id>
		<updated>2009-10-11T14:10:00+01:00</updated>
		<author>
			<name>Daniel</name>
			<uri>http://blog.pew.cc/blog/author/Daniel/</uri>
		</author>
		<content type="xhtml">
			<div xmlns="http://www.w3.org/1999/xhtml">
				<p><img border="0" alt="" src="/images/wow.jpg" /><br /><br />Craft DB keeps track of crafter on your server. Whenever you open a profession link, the skills and the name of the crafter will be saved and can be displayed when needed. If you are looking for that Blade Ward enchant and can't remember who has the recipe, you can use CraftDB to look who has it.<br /><br /><a href="/images/CraftDB-002.png"><img height="293" border="0" width="400" alt="" style="width: 400px; height: 293px;" src="/images/CraftDB-002.png" /></a><br /><br />Craft DB will display names in different colors if they are online, offline, in your guild, on your friendlist or just some random guy who posted his profession into the trade channel<br /><br />As soon as you open a profession window (either your own, or from a link), Craft DB will scan all the available recipes and saves them and the name of the person for later use.<br /><br />Craft DB provides a LibDataBroker launcher to open the windows.

If you don't have a LibDataBroker display addon installed, you can use /craftdb or /cdb to open Craft DB.<br /><br />When you enter something into the search box, Craft DB will perform a search on the currently selected profession and only displays the matching spell names.<br /><br />Here's the project on <a href="http://www.wowace.com/">wowace.com</a>: <a href="http://www.wowace.com/addons/craftdb/">Craft DB</a><br />Here's the download on <a href="http://www.curse.com/">curse.com</a>: <a href="http://wow.curse.com/downloads/wow-addons/details/craftdb.aspx">Craft DB</a><br /><br /><br />Tags: <a href="http://blog.pew.cc/tag/curse/">curse</a> <a href="http://blog.pew.cc/tag/wow/">wow</a> <a href="http://blog.pew.cc/tag/world+of+warcraft/">world of warcraft</a> <a href="http://blog.pew.cc/tag/wow+addon/">wow addon</a> <a href="http://blog.pew.cc/tag/lua/">lua</a> <a href="http://blog.pew.cc/tag/ace/">ace</a> <a href="http://blog.pew.cc/tag/wowace/">wowace</a> </p>
			</div>
		</content>
		<category term="Other" />
	</entry>

	<entry>
		<title type="xhtml">
			<div xmlns="http://www.w3.org/1999/xhtml">
				Video containers are shit
			</div>
		</title>
		<link rel="alternate" title="Video containers are shit" href="http://blog.pew.cc/blog/Video+containers+are+shit/" />
		<id>http://blog.pew.cc/blog/Video+containers+are+shit/</id>
		<updated>2009-10-08T14:51:00+01:00</updated>
		<author>
			<name>Daniel</name>
			<uri>http://blog.pew.cc/blog/author/Daniel/</uri>
		</author>
		<content type="xhtml">
			<div xmlns="http://www.w3.org/1999/xhtml">
				<p>This is going to be a rant, so skip it if you don't care.<br /><br />Video playback is a pain in the ass. It's not just about codecs and players, but the video containers themselves are shit. I only had one container that has not caused problems yet. Everything else bugged sooner or later.<br /><br />WMV regularly fails to resume video playback after pause in Media Player Classic. No idea why, but pause just doesn't work here.<br /><br />MP4 caused some weird problems in mplayer, where the video length is all wrong and the audio and video go out of sync. No idea what's wrong with those shitty files, but I pretty much can't watch those files like this. And to make matters worse, mplayer is the only video player that has decent performance on Linux with Compiz running. The only way to fix these files was to remux them to MKV.<br /><br />AVI files sometimes come without an index, requiring rebuilding of said index. I just don't get how a encoder can fuck up a video so much that it's unplayable on some players. And why doesn't anyone check before redistributing this files?<br /><br />The only container I'm happy with is Matroska (MKV). The playback works in every player I use and I have yet to encounter shitty behaviour in any player.<br /><br /><br />Tags: <a href="http://blog.pew.cc/tag/mkv/">mkv</a> <a href="http://blog.pew.cc/tag/avi/">avi</a> <a href="http://blog.pew.cc/tag/mp4/">mp4</a> <a href="http://blog.pew.cc/tag/wmv/">wmv</a> <a href="http://blog.pew.cc/tag/video/">video</a> <a href="http://blog.pew.cc/tag/mplayer/">mplayer</a> </p>
			</div>
		</content>
		<category term="Other" />
	</entry>

	<entry>
		<title type="xhtml">
			<div xmlns="http://www.w3.org/1999/xhtml">
				checkcrc
			</div>
		</title>
		<link rel="alternate" title="checkcrc" href="http://blog.pew.cc/blog/checkcrc/" />
		<id>http://blog.pew.cc/blog/checkcrc/</id>
		<updated>2009-09-04T14:32:00+01:00</updated>
		<author>
			<name>Daniel</name>
			<uri>http://blog.pew.cc/blog/author/Daniel/</uri>
		</author>
		<content type="xhtml">
			<div xmlns="http://www.w3.org/1999/xhtml">
				<p>checkcrc is a programm to compare crc32 checksum. Files coming from irc<br />bots will often be named like "somename_[DEADBEEF].avi", where DEADBEEF<br />is the crc32 checksum. checkcrc will try to find checksum strings in<br />filenames and will compare them to the files checksum.<br /><br />checkcrc can also be used to create checksums of files by using the -c<br />swtich.<br /><br />I coded it because I wanted to use some C again and because I really needed a tool to check all those file I leeched from IRC ;). I tried a few things that were new to me, like using options and regex in C and using the GNU configure and build system.<br /><br />It's fun to use but the GNU documentation sucks for someone who trys these tools for the first times. It's well documentated, but there are very few examples about how to use and there are not really examples about good practise in there. I mostly looked at other projects code and some tutorials to find out what I had to do.<br /><br />Usage: checkcrc [-cvh] [file ...]<br />&amp;nbsp;<br />&amp;nbsp;&amp;nbsp;&amp;nbsp; -c&amp;nbsp; Only calculate checksums, don't try to find a checksum string to compare<br />&amp;nbsp;&amp;nbsp;&amp;nbsp; -v&amp;nbsp; Display version number<br />&amp;nbsp;&amp;nbsp;&amp;nbsp; -g&amp;nbsp; Display this help<br /><br />&amp;nbsp;&amp;nbsp;&amp;nbsp; file can by any number of files you want to check.<br /><br />&amp;nbsp;&amp;nbsp;&amp;nbsp; <br />For instructions how to compile and install checkcrc see INSTALL.<br /><br />Download <a href="http://files.pew.cc/checkcrc/checkcrc-0.1.0.tar.gz">checkcrc-0.1.0.tar.gz</a><br /><br /><br />Tags: <a href="http://blog.pew.cc/tag/checkcrc/">checkcrc</a> <a href="http://blog.pew.cc/tag/crc32/">crc32</a> <a href="http://blog.pew.cc/tag/checksum/">checksum</a> <a href="http://blog.pew.cc/tag/c/">c</a> <a href="http://blog.pew.cc/tag/gcc/">gcc</a> <a href="http://blog.pew.cc/tag/automake/">automake</a> <a href="http://blog.pew.cc/tag/autoconf/">autoconf</a> <a href="http://blog.pew.cc/tag/gnu/">gnu</a> <a href="http://blog.pew.cc/tag/gpl+v3/">gpl v3</a> <a href="http://blog.pew.cc/tag/make/">make</a> </p>
			</div>
		</content>
		<category term="Other" />
	</entry>

	<entry>
		<title type="xhtml">
			<div xmlns="http://www.w3.org/1999/xhtml">
				eee PCs Boot Booster
			</div>
		</title>
		<link rel="alternate" title="eee PCs Boot Booster" href="http://blog.pew.cc/blog/eee+PCs+Boot+Booster/" />
		<id>http://blog.pew.cc/blog/eee+PCs+Boot+Booster/</id>
		<updated>2009-09-03T13:12:00+01:00</updated>
		<author>
			<name>Daniel</name>
			<uri>http://blog.pew.cc/blog/author/Daniel/</uri>
		</author>
		<content type="xhtml">
			<div xmlns="http://www.w3.org/1999/xhtml">
				<p>All eee PCs have a feature called Boot Booster. This caches the Bios and Video Bios onto the HDD and speeds up booting by a few seconds.<br /><br />To enable it you have to set up a primary partition on the first HDD with at least 8 MB and the type code 0xEF.<br /><br />After the next reboot the Bios will cache itself into this partition and a new option is available in the Boot options called Boot Booster. Enable it and the eee PC will skill Bios loading and Bios configuration and will directly load the Boot Loader.<br /><br /><br />Tags: <a href="http://blog.pew.cc/tag/bios/">bios</a> <a href="http://blog.pew.cc/tag/eee/">eee</a> <a href="http://blog.pew.cc/tag/asus/">asus</a> </p>
			</div>
		</content>
		<category term="Other" />
	</entry>

</feed>
