Monday, January 7, 2008
Twitterlibphp
I put twitterlibphp on Google Code and released it under the GPL. I noticed I was getting a little search traffic for Twitter PHP classes, so this should make it a little easier. You can check it out at its project page.
Sunday, December 30, 2007
Lost my domains
I couldn't afford hosting and the domains, so I cancelled them. Tinydinosaur.com and rbrw.net are now things of the past.
Tuesday, December 11, 2007
Tuesday, November 27, 2007
rbrw Progress
I'm really pleased with how the rbrw framework is coming along. As with all new software though, problems have been discovered with it. The framework makes extensive use of output buffering, which can hide sneaky bugs and errors, and that has been causing some frustration. To rectify that, the new version of the framework has it's own error handler that gracefully handles both PHP and framework-generated errors. Along with that, I added basic widget functionality (really a glorified include). I don't think it undermines the idea of the framework, but we'll see how that goes.
I'm really not a fan of SVN, it puts too many data/settings/garbage files all over the place. So from now on, don't check out the source from SVN. Just download the zips.
I'm really not a fan of SVN, it puts too many data/settings/garbage files all over the place. So from now on, don't check out the source from SVN. Just download the zips.
Monday, November 26, 2007
Twitter PHP Class
I've been working like a motherfucker lately. My latest creation is the implementation of the Twitter API for PHP. You can check that out here.
I think that's just about the entire Twitter API.
Anyway, if you haven't already, check out my main project: the rbrw Framework.
I think that's just about the entire Twitter API.
Anyway, if you haven't already, check out my main project: the rbrw Framework.
Parsing Atom Times
I almost forgot about this. The main obstacle in getting tinydinosaur's display of Blogger's Atom feed was getting the time right. If my host, 1&1, was worth their salt, PHP's built in strtotime() function would have worked fine. Much to my disappointment though, it didn't. After searching for a replacement, I ended up deciding to write my own.
Here's what I came up with: http://pastebin.com/f7ccbca8b
I used parse_datetime() as the function name because it was the name of a function I had found somewhere else and was using until I decided to use my own. Anyway, how it works is simple. It parses out the necessary data from the Atom time, and returns the result mktime() function with the extracted data passed to it. You can then use parse_datetime() as an argument to the date() function to format the date however you wish.
Here's what I came up with: http://pastebin.com/f7ccbca8b
I used parse_datetime() as the function name because it was the name of a function I had found somewhere else and was using until I decided to use my own. Anyway, how it works is simple. It parses out the necessary data from the Atom time, and returns the result mktime() function with the extracted data passed to it. You can then use parse_datetime() as an argument to the date() function to format the date however you wish.
rbrw Framework
I've developed a PHP framework that takes some good ideas from the idea of MVC architecture, and I have decided to make it open source in the hopes that someone will find it, use it, and improve it (but without losing sight of what it was meant for).
Basically, it's a simple framework that allows for you to completely separate program logic and presentation. No more PHP template files including header and footer files, and mixing PHP with HTML. Now you can split your application into controllers, layouts, and views, each one having a specific function without any mess or clutter.
Check out the homepage at rbrw.net, or check out the project page at Google Code.
Basically, it's a simple framework that allows for you to completely separate program logic and presentation. No more PHP template files including header and footer files, and mixing PHP with HTML. Now you can split your application into controllers, layouts, and views, each one having a specific function without any mess or clutter.
Check out the homepage at rbrw.net, or check out the project page at Google Code.
Subscribe to:
Posts (Atom)
