Aaron Saray

open source programmer,
web developer

entrepreneur, author
and musician

My Blog

contains PHP, Web and business/entrepreneurial related content. Please join in the conversation!

Author Archives: Aaron

Read Something Else

Many years ago, a business mentor of mine told me that I should “read something else.” I didn’t know what he meant so I asked for more. He said I should go find some biographies, some history books, etc, and … Continue reading

Posted in business, professional tips | Tagged , | 2 Comments

Don’t Always Lead: Sometimes Just Be Great

What is the measurement of a good career? Promotion? Raises? Running a project / leading a team? Usually all of this. However, the most traditional measurement of success in a career is moving upward. Time to run a department, time … Continue reading

Posted in business, professional tips | Tagged , | 1 Comment

Zend Framework Use Filter with Paginator

By default, when using the Zend Paginator, the result set will come back as an array. If you are using a paginator associated with a db result set, and that db has a class defined for its row, it will … Continue reading

Posted in zend framework | Tagged | Leave a comment

When writing unit tests, test against absolutes

So, while chatting with one of the developers on my team, we started talking about testing an XML document creation process he had been working on. He wrote a unit test and said “see, here is my class which generates … Continue reading

Posted in testing | Tagged | Leave a comment

How to Add PHPUnit to your Include Path (for autocompletion) in Eclipse PDT

By default, PHPUnit is not part of the default installation of Eclipse PDT. (Zend Studio is another beast, however…) It’s easy to add the PHPUnit install to your include path however. Make sure that the PHPUnit install is the same … Continue reading

Posted in Eclipse PDT, phpunit | Tagged , | Leave a comment

Creating a custom Zend Framework Body Script helper

It drives me nuts that the best practices with javascript that is not required for the initial rendering of your application is to be placed at the bottom of the document, yet frameworks (like Zend Framework) do not support that … Continue reading

Posted in javascript, zend framework | Tagged , | 2 Comments

Split Read/Write Connections in Zend Framework Database on the Application Level

I’m no sys admin, so I can’t be sure, but I’ve seen lots of issues with using things like MySQL Proxy to fully separate the write and read queries in an application. Maybe it works, I don’t know… but I … Continue reading

Posted in mysql, zend framework | Tagged , | Leave a comment

Zend Framework Static Router URLs Not Found in Zend Navigation

For a CMS I’ve been working on, there are a number of custom routes that are added statically in a loop. These point to specific ID’s of articles on on the default module’s page viewing controller/action. Sometimes these routes need … Continue reading

Posted in zend framework | Tagged | 1 Comment

How to Quickly Mask a Credit Card Number

So, often I have to show a masked credit card on the screen. However, I really want to go the extra mile and show the user a secure, fully masked credit card number that still reflects their original card. For … Continue reading

Posted in PHP, programming | Tagged , | Leave a comment

Running PHPUnit on Remote System from Command Line

If I need to run PHPUnit on a remote system against a code suite, I will write a simple shell script like the following to do it for me. (Bonus points, you can even include this as an External Tool … Continue reading

Posted in Eclipse PDT, phpunit | Tagged , | 1 Comment