4 September, 2011
Kevin Schroeder writes; 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 […]
Tags: AIR, Flash, Flex, Zend Framework, Zend_Amf, Zend_Amf_Server, Zend_Auth
Posted in AIR, Development, Flash, Flex, PHP, Security, Zend Framework
1 September, 2011
roustalski writes somthing that will save you quite a bit of time if you get caught with this runtime error; When you show a popup in Flex in a mobile environment, defined as the style “interactionMode” being set to InteractionMode.TOUCH in this context, that is based on a component that does not implement the mx.managers.IFocusManagerContainer […]
Tags: AIR, Flash, Flex, Skinnable
Posted in AIR, Development, Flash, Flex
31 August, 2011
Since Flex 4.5, you have had the ability to develop and export your projects as Android, iOS and PlayBook mobile applications that behave as native ones.
You can also export your Flex mobile project as AIR desktop apps. Just open Flash builder, open your project and choose Project > Export release build. You can then export a […]
Tags: AIR, Android, Flash, Flex, iOS, PlayBook, Tutorial
Posted in AIR, Android, Development, Flash, Flex, iOS, PlayBook
31 August, 2011
Leonardo França writes; Zend AMF is an implementation done in PHP to work with the communication protocol binary AMF (Action Message Format) and is part of ZendFramework. I had to implement a system to upload files that were a little different than what is typically used in Flash, with this feature had to be integrated […]
Tags: AIR, Flash, Flex, PHP, Zend Framework, ZendAMF, Zend_Amf_Server
Posted in AIR, Android, Development, Flash, Flex, PHP, Zend Framework
31 August, 2011
Shine (formely 8hz-MP3) is a simple lightweight C-based MP3 encoder made by LAME developer Gabriel Bouvigne.
Description of Shine on his website:
The goal of this encoder was not quality, but simplicity. I tryed to simplify the encoding process as much as possible. So Shine is then a good starting point when a programmer needs a very […]
Tags: AIR, Flash, Flex, MP3, Sound
Posted in AIR, Android, Development, Flash, Flex
31 August, 2011
Helper class to write WAV formated audio files. The class expects audio input data in a byte array with samples represented as floats.
The default compressed code is set to PCM. The class resamples and formats the audio samples according to the class properties. The resampling geared for performance and not […]
Tags: AIR, Flash, Flex, Sound, WAV
Posted in AIR, Development, Flash, Flex
2 August, 2011
Here is a very good multi-part tutorial on the ins and outs of mobile client / server development, that adds some quite useful functionality on Android, Apple IOS and Blackberry mobile devices.
In this Test Drive, you are going to create a Flex mobile application that retrieves, displays, and modifies database records (see Figure […]
Tags: Flash, Flex, PHP, Zend, Zend Framework, ZendAMF
Posted in AIR, Android, Development, Flash, Flex, PHP
2 August, 2011
Flash Builder 4.5 has a built-in data paging feature that generates ActionScript code to retrieve data from the database incrementally on demand. For example, suppose your database has thousands of records and you want to fetch only 20 rows at a time and display them in a data grid. When you […]
Tags: DataGrid, Flash, Flex, PHP
Posted in AIR, Development, Flash, Flex, PHP
20 June, 2011
Rob Allen as usual writes useful stuff; One thing that is different between Zend_Config_Xml and Zend_Config_Ini is that with Zend_Config_Xml you can pass in an XML string as the first parameter of the constructor and it will work. This doesn’t work with Zend_Config_Ini as we use parse_ini_file() under the hood.
With PHP 5.3 however there is is […]
Tags: Zend Framework, Zend_Config, Zend_Config_Ini
Posted in Classes, Zend Framework
3 May, 2011
Zimuel writes; As promised in my last post I present an example of strong cryptography in PHP to secure session data.
This is a very simple implementation that can be used to improve the security of PHP applications especially in shared environments where different users have access to the same resources. As you know, […]
Tags: PHP, Security, Zend Framework, Zend_Session, Zend_Session_SaveHandler_DbTable
Posted in Development, PHP
3 May, 2011
Zimuel writes; Last friday, in occasion of the April Zend Framework Bug-Hunt, I started to look at this bug: ZF-3257. This is an issue related to the Zend_Json class that occurs during the conversion from XML to JSON for some specific XML documents, like this one:
$xml= ‘bar’;
The result using Zend_Json::fromXml($xml, false) , where false indicated […]
Tags: JSON, PHP, xml
Posted in Development, PHP
29 March, 2011
Kevin van Zonneveld wrote a life saving article that saved me quite a bit of time; Everyone knows PHP can be used to create websites. But it can also be used to create desktop applications and commandline tools. And now with a class called System_Daemon, you can even create daemons using nothing but PHP. And […]
Tags: daemon, linux, PHP
Posted in Development, PHP
21 March, 2011
Rob Allen writes; A while ago I needed to ask a user for their date of birth on a Zend_Form. The design showed three separate select elements to do this:
Screen shot of a 3 select boxes for a date on a form
A little bit of googling found this site http://codecaine.co.za/posts/compound-elements-with-zend-form which has not unfortunately disappeared, so the […]
Tags: Zend Framework, Zend_Form
Posted in Classes, Development, Zend Framework
14 March, 2011
ralphschindler writes; Usage of the Conditional Ternary operator to reduce brace and newline waste when processing optional method parameters
< ?php
class Coordinate
{
protected $x;
protected $y;
public function __construct($x = null, $y = null)
{
(empty($x)) ?: […]
Tags: optimization, PHP
Posted in Development, PHP
2 March, 2011
Saša Stamenković writes; I know many of us have struggled with coding PHP using various text editors and IDE-s. Sooner or later, we pick our favourite weapon of choice and use it for every day development. My weapon of choice is Eclipse PDT (Helios) and today I will talk about code templates.
Just to make it […]
Tags: Eclipse, Snippets, Templates, Zend Studio
Posted in Development, Zend Studio