Thu, 18 Feb 2010 14:40 - Daniel - Other - Comments (0)
I didn't like any of the php libraries available from openid.net, so I wrote my own simple OpenID 2.0 client implementation. Tie library takes an OpenID identifier, trys to find to correct endpoint, sends to user to login and verifies the login when the user comes back. Everything is done without relying on other librarys or storing data on the server. See dev.pew.cc/wiki/openid for more information about the library.
Also, img.pew.cc now accepts OpenID logins. If you log in you can delete your images or edit the tags and browse all images you have uploaded with your OpenID account.
If you find bug in my OpenID library or on img.pew.cc you can create a ticket to let me know.
Tags: pew.cc img.pew.cc php
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
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:
And for errors:
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.
Mon, 29 Jun 2009 19:11 - Daniel - Other - Comments (0)
I've got a new domain: pew.cc. The old tac-ops.net was nice, but kinda long and some people told me that they couldn't remember it. The now one is only 5 chars even with the ending, so everyone should be able to remember it. Also, its the sound my laser gun makes when I shoot you ;).
All the stuff that was on tac-ops.net will remain that. For now I only moved the blog from dani.tac-ops.net to blog.pew.cc and redirected all the old links to the new domain. files.tac-ops.net and all the other stuff will stay the same for the time being.
I had quite a hard time setting up the name servers for pew.cc. My secondary NS woudn't fetch the zone file after an update. It turned out that the master NS wasn't sending notices to the slave NS. Well' he was sending updates, but not for the pew.cc domain. Everything seemed alright, until i discovered that the domain I use for the NS server aliases was also configured in the master NS, but the A records for the ns1 and ns2 subdomains were missing. When the master NS tried to look up adresses for nameserver to send the notices to he coudn't find the IP. Removing the old zone entry solved the problem.
Tags: domain pew.cc tac-ops.net bind