(Yet another) short URL service
Tue, 13 Oct 2009 20:30 - Daniel - Other - Comments (0)
I've set up a short URL service at url.pew.cc. It's basically the same as tinyurl.com, 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.
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&url=URL.
The xml format used is:
<shorturl>
<status>0</status>
<url>ORIGINAL URL</url>
<short>SHORT VERSION</short>
</shorturl>
And for errors:
<shorturl>
<status>1</status>
<error>ERROR MESSAGE</error>
</shorturl>
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: url.pew.cc
If it works alright I might share the code at some point.
Tags: php jquery javascript pew.cc sqlite tinyurl
Craft DB WoW Addon
Sun, 11 Oct 2009 14:10 - Daniel - Other - Comments (0)

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.
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
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.
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.
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.
Here's the project on wowace.com: Craft DB
Here's the download on curse.com: Craft DB
Tags: curse wow world of warcraft wow addon lua ace wowace
Video containers are shit
Thu, 08 Oct 2009 14:51 - Daniel - Other - Comments (2)
This is going to be a rant, so skip it if you don't care.
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.
WMV regularly fails to resume video playback after pause in Media Player Classic. No idea why, but pause just doesn't work here.
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.
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?
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.
Tags: mkv avi mp4 wmv video mplayer
checkcrc
Fri, 04 Sep 2009 14:32 - Daniel - Other - Comments (0)
Tags: checkcrc crc32 checksum c gcc automake autoconf gnu gpl v3 make
eee PCs Boot Booster
Thu, 03 Sep 2009 13:12 - Daniel - Other - Comments (2)
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.
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.
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.
Tags: bios eee asus