Updates...
Thu, 03 Dec 2009 15:43 - Daniel - Other - Comments (0)
I should probably write something about the latest addition to the site. Well, lets see.
First, the development/code section is now at dev.pew.cc and svn.pew.cc respectively. Every project that I work on and want to publish gets a folder at svn.pew.cc and an entry at dev.pew.cc.
Next is yabs. yabs is now at version 0.8.0. No big changes since the last release candidate. The next minor version is in the works and includes mostly bugfixes. The next major version will include a improved template system, but this requires extensive changes to the admin panel, so it will take some time to get this release out. Don't hold your breath.
The last thinig is img.pew.cc. This is a image hosting service. Think imagshack.us if you want. When you upload an image it will sotre it on the server, create a preview pic and give you some code snippets for linking to the image. You also can and should tag your image and the site will suggest tags based on the letters you entered so far.
There are currently no limits to who can upload or how much. If the service gets abused I'll implement limits, but for now you can enjoy it as it is.
The code for img.pew.cc is at svn.pew.cc/img and there is a wiki page at dev.pew.cc.
And last but not least there are a few new plugins for yabs because I had to create them for a website. I'm not sure how usefull they are but check them out and use them if you like.
Tags: php yabs sqlite pew.cc plugins img.pew.cc dev.pew.cc svn.pew.cc
(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
1