Hypercard What has thou wrought?

This series of posts is planned to document of some my adventures trying to leverage an abandoned Hypercard opus I did a long time ago. It’s more of a narrative than a how to. A lot of different realms come into play here. So if you aren’t up for reading a long multi-part techno-novela, scamper along now and go look for clips of Megan Fox or something.

HyperCardTop

Continue reading Hypercard What has thou wrought?

Embed.ly: One API to rule them all

Something very very cool fell into my inbox today.

The back story
I had been researching OEmbed kind of as a background project to see if I could use it in my own stuff. Now what is OEmbed, you ask? It is a specification by which a simple link transforms itself into rich content. If . . . → Read More: Embed.ly: One API to rule them all

Dynamic CSS files

I had always wished CSS files weren’t so static so you could do different things at runtime. It turns out you can do it, but exercise common sense. The exact plan you take depends on how often the CSS “variables” change value. If it’s not too often you might want to “precompile” the . . . → Read More: Dynamic CSS files

Zend Framework and Doctrine

doctrine_iconWell it’s looking like Doctrine is the heavy weight data mapping solution of the lot. Zend Framework was often criticized for having no serious Model methods. Models was just sort of where you put your nuts and bolts database code. Some folks like the structure of the Active Record model that you see in Rails some other PHP frameworks. Sure it makes it dead easy when your tables map pretty straightforwardly onto your objects but makes it harder to have complex objects involving many tables. Zend was working on their own Zend_Entity package to remedy this, but they have abandoned it in favor of integrating Doctrine. The Zend Roadmap for the future calls for tight integration of Doctrine with the framework, so there will probably be some additional automatic linkage, with the view to the framework user’s code being smaller. But both ZF 2.0 and Doctrine 2.? are for PHP5.3, which is some time down the pike for ordinary folks. On the ZF Wiki there is a proposal to integrate current versions, at least to some extent. The symfony camp are hollering that Doctrine automatically “just works” in symfony, and that’s great. But for now you do have to do a little work to integrate it with ZF.
Continue reading Zend Framework and Doctrine

How to integrate a jQuery plugin into Yii Framework

I have been studying up on Yii framework as a potential alternative to Zend. It has its pluses and minuses. Yii framework comes with jQuery included at the core. It was ridiculously easy to download a jQuery plugin, drop it in as a black box, follow the instructions for the front end, and it just works. I used the star-rating plugin. If you have a rating for a piece of content represented as a number such as 3.642/4 on a scale of 0-4, it is much more Web 2.0 friendly if you represent that graphically. Star-rating uses pimped up radio buttons to represent this number as five fractional stars. It also does the front end of dynamic interactive ratings, and as soon as I get my ajax back-end working on that I’ll post that too. Since the actual code being typed in is illegible in the video, I have included it in this article.

Continue reading How to integrate a jQuery plugin into Yii Framework

Berio Free Video Screen Capture for Leopard

Camtasia is awesome, but pricey. For the likes of me, who doesn’t do video screen capture for a living, the price just isn’t justified. Leopard comes with an app to do capture, but it requires a hookup to a MacOSX server. Out of luck again. Enter Berio. Simple Straightforward, and does . . . → Read More: Berio Free Video Screen Capture for Leopard

FirePHP: Firebug for PHP

firephp_largeFirebug is da bomb for debugging your web front end. Instead of just being able to look at the page source as it was delivered from the server, it lets you see the modified page after Javascript has run it through the ringer, it breaks things down heirarchically to help you focus, and it even lets you edit a page locally.

Now you can do the same to serverside PHP with FirePHP, a Firefox/Firebug add on. Note: You have to have Firebug to use FirePHP. I’m guessing FirePHP piggybacks onto some of its presentation structure.
Continue reading FirePHP: Firebug for PHP

Captcha a la XKCD

This XKCD comes at just the right time for me. I’m struggling with an issue with the Captcha in Yii Framework. In case you didn’t know, the captcha is that slightly distorted codeword that you type into a computer program to tell it you’re a human being. Bots supposedly can’t read them…. . . . → Read More: Captcha a la XKCD

Alternatives to Zend Framework

I am currently feeling very conflicted about Zend and everything associated with it. I heard a statement the other night by a guy who was talking about CakePHP that hit the nail on the head. Paraphrasing what he said,

“There is nothing wrong with Zend Framework, but you just get this feeling with Zend that there will come the day when it’s going to become painful for you if you don’t shell out big bucks to them.”

Shades of Microsoft…. BLEAH! I am afraid the day has come. I was a big proponent of Zend. It’s difficult to eat a bit of crow and do a 180 on something you’ve taken a stand on, but when I examine things rationally, I’ve been increasingly disillusioned with Zend. There are several sticking points, elaborated below:
Continue reading Alternatives to Zend Framework

Dojo toolkit wrapper

I’ve been finding lately that my simplest blog posts grow the longest tails. So here is one for all you dojo toolkit users or wannabe’s. I started seeing the following in dojo scripts that I hadn’t seen before, and couldn’t find any specific comments about it.

;(function(d,$){ /* your code here */})(dojo, dojo.query)

The leading . . . → Read More: Dojo toolkit wrapper