The T-Mobile Google G1
So I decided the time had come to get a smartphone. There’s only really two options the way I see it.
In the red corner, the slick-as-you-like, shiny, fashionable, Apple iPhone.
In the blue corner, the open-source, all-your-data-are-belong-to-us, Google G1.
I’ll save the theatrics as you know from the title that I went for the G1. But the pros-cons weighting was a difficult process with many factors. However me being me, the main one and the one that rules them all was price in the end. So lets make this all about the Google G1, and in order to falsely encourage you to thinks it’s great I’ll start with the cons.
Multiple Drag and Drop between two lists with jQuery
I wanted this functionality for a project a while ago. I google’d and found that lots of others did too, but no one had done it. Or at least not in a way that I could understand. In fact, I’m not sure I completely understand it anymore. It works very well, but also it could have some improvement. I would like to be able to drag the mouse to create a selection, but this in itself poses the difficultly of how to distinguish a “drag-to-move” from a “drag-to-select”.
Still I found it an interesting proof-of-concept and maybe you will too. The test can be found here: Select and Drag Demo.
DarkAuth for CakePHP
I thought I’d add a page to satisfy those of you who may have arrived here from the Cookbook, or anywhere else one of the DarkAuth pages was linked from.
I don’t really have much to do with this Component any more, although it still works great! I found that the built in Auth Component is plenty powerful enough, even if it doesn’t quite work work how I would have designed it.
Anyway, here’s the component (tested with CakePHP 1.2 RC3) DarkAuthComponent. Enjoy! It’s highly commented, so hopefully you’ll be able to work out what it does and how to use it…
jQuery SuperSelect
A little while back I was working on a project and wanted a selectbox to look a bit more pretty, but with complete backwards compatibility with regular select boxs.
I.E. If I already had a select box on the page, and it had various JavaScript events hanging off it already, I wanted that to function still but I wanted the box to be prettier.
The first idea was to use CSS to just style the box. But then I realised that each browser and OS has it’s own different way of rendering the controls. So I turned to JavaScript, and the always useful jQuery library. I wrote a plugin that will immediately transform any selectboxes into prettier ones, allows icons for the options, all with valid xhtml and works completely fine with JavaScript (or the plugin) disabled. Pretty cool, eh?
Well, I put the original demo page I designed for it back online, so check out the plugin!.
CakePHP Evangelism and T-Cake
So I’ve had this blog for 3 posts now and none of them has a “cakephp” tag yet. Shocking. So here we go…
If you don’t know what CakePHP is and you’ve ever created a web application, or even a website that did more than show a static page, then you should check it out. CakePHP is a web application framework designed for rapid application development using the MVC Design Pattern and with a focus on Convention over Configuration.
What this means in practical terms is that you can built an access controlled, database driven, dynamic web sites/applications in a fraction of the time that it would to start from scratch. A simple blog could be built in a matter of minutes. I could go on for hours. So I won’t, but really – if you make web apps, consider using a framework and CakePHP is excellent.