Michelangelo van Dam wrote a neat little article to help with single user Twitter access. What that means is that you can set up a Twitter application and then start tweeting without having to use a username and password. Michelangelo did it in the context of a Zend Framework MVC application and so this blog post is only about doing what he did using the Twitter service as a library instead of the whole kit ‘n kiboodle. Basically, here’s your code. 1 2 3 4 5 6 7 8 9
Don’t know if it’d happen. Just curious at this point. The reason why I even asked the question was because WordPress, love it or hate it (I actually love it), is antiquated and, quite honestly, difficult to build for. But if you were to build something that replaced it you would be facing a massive uphill battle due to its market size. Ecosystem REALLY matters and it would matter doubly here. So if you were to build a blogging platform it would need to have some kind of compatibility or
Any time I start a new ZF MVC project I am inevitably left with the unenviable task of bootstrapping a resource. I’m not particularly a fan of them but I’m still trying to drink the Kool-Aid. The problem is that getting a resource autoloader going seems to be a mind-numbing experience that leads to a line of code or two. So, rather than search for a project where I did it once before and then copy and paste the code into the project I figured I’d just blog about it
Yes, I know I work for Zend and that means that I should automatically be familiar with everything the company does. Especially when it comes to Zend Framework 2. But I have to confess that while I’m most definitely watching it, I have not been able to work with it in any meaningful sense. Until today. I got to play with the Event Manager. I did like the plugin functionality in ZF1, but it required some pretty static coding. In some cases, like the front controller plugins, it makes more
I forget why, but a few days ago I started doing some digging around with authentication in Zend_Amf_Server. I had figured that I would add an adapter to the Zend_Amf_Server::setAuth() method and that would be it. But I was wrong. AMF allows for multiple request bodies to be sent at the same time. Of those there are several “special” types of commands. One of those commands is logging in. What this means is that you don’t need a method that logs someone in for you. Zend_Amf_Server handles authentication separately from
Last week I wrote up a few blog posts (here, here and here) about creating a Flex based dashboard that utilized message queues to pass data. It was a really fun example to write but there was one thing I did not get to implement. What I wanted to do was use the sales notification mechanism to pass PHP objects to Flex using the message queue. But I could not get the unserialization mechanism to work and so I had to settle for passing a simple message that a sale
In yesterday’s post I talked a little bit about some of the details on how I used messaging to connect a front end on demand request to a back end scheduled data processing mechanism. In this post we’re going to talk about how to send data from a web page to a running Flex application without using HTTP. It is really quite easy. First up you need a message queue that supports Stomp. Stomp is a text-based message queue protocol that a good number of message queue applications support. I
Today (June 1st) I got to give an online talk with Adobe on how to create a stunning analytics dashboard with Flex and PHP (recording here). I’m a horrible graphic designer and so I don’t know how stunning it was, but from the technical perspective we covered a lot and it was a lot of fun to write. Several of the attendees asked for code and so here is what I’ve written. Like the webinar, it will take a little bit of time to get it working. But the end
A little while ago I had come upon the problem of having to store sensitive data in a user session. The solution that I (and several others came upon) was creating a mechanism for storing encrypted data in a session. But what we wanted to do was build something that didn’t have a single point of failure. We also wanted to build something portable. What we built was a simple Zend Framework session handler for storing sensitive data.
I’m working on an example of mobile detection with the new Zend Framework 1.11 beta that was just released when I came upon an interesting problem. That problem is; how do I debug requests coming in from the mobile phone? The answer is actually relatively easy. I’m doing this using a Zend Framework application, but the concepts that you’ll see here can be used quite easily across any type of framework.