Calendar

<<February>>
MoTuWeThFrSaSu
1234567
891011121314
15161718192021
22232425262728

Download YouTube videos

Fri, 11 Dec 2009 21:37 - Daniel - Other - Comments (0)


Recently I wanted to download a video from YouTube. I searched for a Greasemonkey script to do the job, but I only found a old, no longer working script. Since I really wanted to download that video I fixed the script, added some options to adjust the quality and used jQuery to do the html code generation.

And since I'm a good person I uploaded the script back on userscripts.org for everyone to use.

Whenever you watch a video on YouTube you get a selection box for the quality and a download link. Just select the quality you want and click on the link or select "Save link as" and the video starts downloading. If you get a blank page, the quality you selected is not available. Just go back and select a different quality setting and try again.

YouTube Video Downloads on Userscripts.org


Tags: javascript mp4 video jquery userscripts userscripts.org youtube flv download



(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



ts2webviewer

Thu, 27 Nov 2008 18:56 - Daniel - Other - Comments (0)


I got fed up with my old Teamspeak2 web viewer, and since I wanted to try some stuff I wrote a new version myself. I wanted to test jQuery a bit and tried to d as much as possible with objects in php.

The ts2webviewer is still missing some things, like hiding channels, showing verbose information about the server, channels and clients and I'd like to extend the admin interface to allow more commands then just kick players, but if you want, you can get a sneak peak at the code here: ts2webviewer-0.0.1.tar.bz2


Tags: php teamspeak jquery javascript



1