Posted in php, Zend Framework on September 16, 2011

Http Status codes and the ErrorController

I am working on a project with a growing API. Our responses are all JSON, and we started to handle errors in the API controllers instead of the ErrorController. To make it more easy I altered the ErrorController to also response in JSON and use the corresponding HTTP status and created a HttpStatusCode class for use wi ... Continue Reading

Posted in zend studio on May 23, 2011

Zend Studio 8.0.1 released

Zend.com isn’t updated yet, but my Zend Studio updated itself to 8.0.1. There is no change list but here is a screenshot of the updated modules Continue Reading

Posted in javascript, jquery on January 7, 2011

jQuery Dynamic Form

When you use jQuery Dynamic Form don’t forget to set the normalizeFullForm: false when creating a dynamicForm $("#div").dynamicForm("#plus", "#minus", { normalizeFullForm: false }); Default this value is set to true. When it’s set to true, it will try to normalize the who ... Continue Reading

Posted in Ubuntu, Zend Server on June 15, 2010

installing Zend Server 5.0.1 on ubuntu 10.04 LTS

When I tried to install the latest Zend Server 5.0.1 on a clean install of the latest ubuntu 10.04 LTS, I got an error… The following packages are BROKEN: php-5.3-mysql-zend-server php-5.3-mysqli-zend-server php-5.3-pdo-mysql-zend-server After some researching I found a quick solution: apt-get install mysql- ... Continue Reading

Posted in zend studio on April 27, 2010

Zend Studio 7.2 update

Check your auto-update feature because they released Zend Studio 7.2 A changelog is available on the Zend website. Here’s a small list of all the changed packages /plugins/com.ice.jni.registry_7.2.0.v20100314-1500 /plugins/com.zend.php_7.2.0.v20100314-1500 /plugins/com.zend.php.codegallery_7.2.0.v20100314-1500.j ... Continue Reading

Posted in php, Zend Framework on March 26, 2010

Bootstrap Zend Framework for use in cronjobs

If you need to start php cronjobs setting up your whole Zend Framework environment for use is the cronjob scripts is really easy. Just create a new directory cronjobs in your Zend framework project. Create the directory at the same level as the application and public folder. This way the code is not accessible for the ... Continue Reading

Posted in zend studio on March 15, 2010

How to fix Zend Studio 7.1.2 autoCompletion

Upgrading to Zend Studio 7.1.2 maybe breaks your autoComplete function. To get it working again delete the folowing file Zend/workspaces/<your workspace name>/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.dltk.ui.prefs That will force Eclipse to create a new DLTK preferences file and, for me ... Continue Reading

Posted in Development, php, Zend Framework on January 25, 2010

Zend_Pdf and damaged PDF files in acrobat

Playing with Zend_Pdf all my files open perfectly in preview.app. But switching to Adobe Acrobat I got this error: Adobe Reader could not open 'file.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded). I ... Continue Reading

Posted in php, Zend Framework on January 12, 2010

just released: Zend Framework 1.9.7

Grab the latest version at the Zend Framework website. This update fixes 46 issues. This release also resolves six security vulnerabilities found in the last few weeks. Those vulnerabilities are also patched for the 1.8 and 1.7 branch. Bug [ZF-5156] – Custom pagesize results in fatal error [ZF-5163] – _getP ... Continue Reading

Posted in Development, php, Zend Framework on January 8, 2010

Zend_Form, Validators and Custom Error Messages

Below is a code snippet if you want a simple sign-up form on you website using Zend_Form. Features are set email adres to lowercase using Zend_Filter_StringToLower. Use Zend_Validate_Emailaddress, to check the correctness of the email address. Check password for StringLenght; minimal 6 & maximum 20 characters. Cu ... Continue Reading

Posted in JIRA, jiraPress, wordpress on December 26, 2009

jiraPress updated for WordPress 2.9

jiraPress is now available on wordpress 2.9. Proof that it works is this site Check the jiraPress page for more details… Continue Reading

Posted in apache, Development, Snow Leopard on December 4, 2009

FileVault and Web development

I use FileVault on my Snow Leopard setup to protect my precious code. When I turned it on my local apache couldn’t accesss my local test folder of PHP code anymore. To correct this you need to adjust the apache user in the httpd.conf. You can find the snippet below around line number 130. User www Group www cha ... Continue Reading

Posted in Ubuntu on November 26, 2009

Ubuntu 9.04 64-bit, ATI 9.11 and compiz-fusion

After I upgraded the kernel (2.6.28-16)on my ubuntu 9.04 box, I noticed my ATI driver could use an upgrade as well. So here the steps to rebuild the latest ATI driver. In my case that would be 9.11 to power the HD 2400 XT card. First upgrade to the latest kernel. Do a dist-upgrade to rebuild any kernel-drivers. sudo a ... Continue Reading

Posted in Development on November 26, 2009

Zend Studio 7.1 beta and Mylyn

Doing a update check in the Zend Studio 7.1 beta generates an error when trying to update the Mylyn connectors Cannot complete the install because of a conflicting dependency. Software being installed: Mylyn WikiText SDK 1.2.0.v20091015-0500-e3x (org.eclipse.mylyn.wikitext.sdk.feature.group 1.2.0.v20091015-0500-e3x) ... Continue Reading

Posted in php on November 25, 2009

Set all PHP internals to UTF-8

If you have problems with transcoding strings, for example, between ISO-Latin and UTF-8, it can help if you set the internal encoding to UTF-8 ini_set('mbstring.internal_encoding','UTF-8'); ini_set('mbstring.http_input','UTF-8'); ini_set('mbstring.http_output','UTF-8'); Continue Reading

Posted in php, Zend Framework on November 25, 2009

just released: Zend Framework 1.9.6

Grab the latest version at the Zend Framework website. This update fixes 76 issues. The next release is set for December 15th. This new version might be the tagged as 1.10.0. Release Notes – Zend Framework – Version 1.9.6 Bug [ZF-3642] – Wrong count of executed queries [ZF-4841] – Zend_Form_Deco ... Continue Reading

Posted in Development, phpUnderControl on October 31, 2009

R.I.P. ZendCodeAnalyzer

In the new Zend Studio 7.1 beta the ZendCodeAnalyzer binary plugin is replaced by acom.zend.php.semanticanalysis.core_7.1.0 eclipse plugin. The functionality seems the same, but there is one drawback… I use the old ZendCodeAnalyzer in combination with php_codesniffer to check for potential code errors in our subv ... Continue Reading

Posted in php, Zend Framework on October 27, 2009

just released: Zend Framework 1.9.5

Grab the latest version at the Zend Framework website. Lot’s of Zend_Db fixes in this release. Release Notes – Zend Framework – Version 1.9.5 Bug [ZF-2358] – Zend_Service_Yahoo::webSearch ‘site’ option [ZF-2606] – Adding htmlentities() in createElement() [ZF-2962] – Zend_Db_S ... Continue Reading

Posted in php on October 23, 2009

Convert Rijksdriehoekscoördinaten to latitude ...

A Rijksdriehoekscoördinaat is used by the Dutch cadastre. Since all cadastre geo-data is not according the WGS84-standard, you need to convert a Rijksdriehoekscoördinaat (RD) to latitude / longitude values, for use in Google maps for example. You can convert them with this function PHP-function function rd2wgs ($x, ... Continue Reading

Posted in php on October 20, 2009

Geo/Spatial search using Sphinx search and php

I have some databases with geo-location data in it, and wanted it displayed on my iPhone using Layar. Doing some research on this, I found a great presentation on Geo/Spatial search in MySQL. Reading this presentation shows that doing a search of geo-locations in a radius around a geo-location, using a mysql version o ... Continue Reading

Posted in JIRA, jiraPress, wordpress on October 18, 2009

jiraPress available @ wordpress.org

As of now, jiraPress is available for download @ http://wordpress.org/extend/plugins/jirapress/. Continue Reading

Posted in Development, JIRA, jiraPress, wordpress on October 18, 2009

jiraPress released

I just created my first wordpress plugin. It’s a very small but handy plugin for making hyperlinks to JIRA issue trackers. I’m using it already here in this post. A changelog post with links to the actual issues is now just a matter op copy-pasting… Check the jiraPress page for more details. When my c ... Continue Reading

Posted in php, Zend Framework on October 17, 2009

just released: Zend Framework 1.9.4

Grab the latest version at the Zend Framework website. Lot’s of Zend_Db fixes in this release. Release Notes – Zend Framework – Version 1.9.4 Bug [ZF-6653] – Calling from() and join() “out of order” causes incorrect SELECT generation [ZF-7423] – Inexisting property _config in c ... Continue Reading

Posted in Development, JSON, Software on October 16, 2009

just released: JSONView 0.4

Version 0.4 was released a few days ago, adding support for JSONP. JSONView is a add-on for firefox and really helps debugging JSON server-respones. Read about version 0.4 in the developers blog. Continue Reading

Posted in php, phpUnit, Selenium, Snow Leopard on October 16, 2009

User Interface testing on Mac OS 10.6 Snow Leopard ...

Zend framework is my PHP framework of choice, and I like Zend Studio 7 for coding. I try to unit test as much as possible. But when in comes to User Interface testing, plain phpUnit cannot do the job. Then Selenium comes in play. So with’s the big deal? It isn’t working out of the box… My setup is a M ... Continue Reading