Author Archive

Authentication using Zend_Amf

4 September, 2011

Kevin Schroeder writes; I for­get why, but a few days ago I started doing some dig­ging around with authen­ti­ca­tion in Zend_Amf_Server. I had fig­ured 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 mul­ti­ple request bod­ies to be sent at the same time. Of those there […]

Tags: , , , , , ,
Posted in AIR, Development, Flash, Flex, PHP, Security, Zend Framework No Comments »

SkinnableTextBase focusManager runtime error popup

1 September, 2011

roustal­ski writes somthing that will save you quite a bit of time if you get caught with this run­time error; When you show a popup in Flex in a mobile envi­ron­ment, defined as the style “inter­ac­tion­Mode” being set to InteractionMode.TOUCH in this con­text, that is based on a com­po­nent that does not imple­ment the mx.managers.IFocusManagerContainer […]

Tags: , , ,
Posted in AIR, Development, Flash, Flex No Comments »

Flex mobile in the browser

31 August, 2011

Since Flex 4.5, you have had the abil­ity to develop and export your projects as Android, iOS and Play­Book mobile appli­ca­tions that behave as native ones.
You can also export your Flex mobile project as AIR desk­top apps. Just open Flash builder, open your project and choose Project >  Export release build. You can then export a […]

Tags: , , , , , ,
Posted in AIR, Android, Development, Flash, Flex, iOS, PlayBook No Comments »

File uploads with Adobe Flex and Zend AMF

31 August, 2011

Leonardo França writes; Zend AMF is an imple­men­ta­tion done in PHP to work with the com­mu­ni­ca­tion pro­to­col binary AMF (Action Mes­sage For­mat) and is part of Zend­Frame­work. I had to imple­ment a sys­tem to upload files that were a lit­tle dif­fer­ent than what is typ­i­cally used in Flash, with this fea­ture had to be integrated […]

Tags: , , , , , ,
Posted in AIR, Android, Development, Flash, Flex, PHP, Zend Framework No Comments »

Shine MP3 Encoder on Alchemy

31 August, 2011

Shine (formely 8hz-MP3) is a sim­ple light­weight C-based MP3 encoder made by LAME devel­oper Gabriel Bou­vi­gne.
Descrip­tion of Shine on his web­site:
The goal of this encoder was not qual­ity, but sim­plic­ity. I tryed to sim­plify the encod­ing process as much as pos­si­ble. So Shine is then a good start­ing point when a pro­gram­mer needs a very […]

Tags: , , , ,
Posted in AIR, Android, Development, Flash, Flex No Comments »

WAVWriter.as

31 August, 2011

Helper class to write WAV for­mated audio files. The class expects audio input data in a byte array with sam­ples rep­re­sented as floats.
The default com­pressed code is set to PCM. The class resam­ples and for­mats the audio sam­ples accord­ing to the class prop­er­ties. The resam­pling geared for per­for­mance and not […]

Tags: , , , ,
Posted in AIR, Development, Flash, Flex No Comments »

Flex Builder 4.5.x Test Drive for Mobile Tutorials

2 August, 2011

Here is a very good multi-part tuto­r­ial on the ins and outs of mobile client / server devel­op­ment, that adds some quite use­ful func­tion­al­ity on Android, Apple IOS and Black­berry mobile devices.
In this Test Drive, you are going to cre­ate a Flex mobile appli­ca­tion that retrieves, dis­plays, and mod­i­fies data­base records (see Figure […]

Tags: , , , , ,
Posted in AIR, Android, Development, Flash, Flex, PHP No Comments »

Data paging with Flex and PHP using Flash Builder 4.5.x

2 August, 2011

Flash Builder 4.5 has a built-in data pag­ing fea­ture that gen­er­ates Action­Script code to retrieve data from the data­base incre­men­tally on demand. For exam­ple, sup­pose your data­base has thou­sands of records and you want to fetch only 20 rows at a time and dis­play them in a data grid. When you […]

Tags: , , ,
Posted in AIR, Development, Flash, Flex, PHP No Comments »

Zend_Config_Ini and a string

20 June, 2011

Rob Allen as usual writes use­ful stuff; One thing that is dif­fer­ent between Zend_Config_Xml and Zend_Config_Ini is that with Zend_Config_Xml you can pass in an XML string as the first para­me­ter of the con­struc­tor 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 how­ever there is is […]

Tags: , ,
Posted in Classes, Zend Framework No Comments »

Encrypt session data in PHP

3 May, 2011

Zimuel writes; As promised in my last post I present an exam­ple of strong cryp­tog­ra­phy in PHP to secure ses­sion data.
This is a very sim­ple imple­men­ta­tion that can be used to improve the secu­rity of PHP appli­ca­tions espe­cially in shared envi­ron­ments where dif­fer­ent users have access to the same resources. As you know, […]

Tags: , , , ,
Posted in Development, PHP No Comments »

XML to JSON in PHP

3 May, 2011

Zimuel writes; Last fri­day, in occa­sion of the April Zend Frame­work Bug-Hunt, I started to look at this bug: ZF-3257. This is an issue related to the Zend_Json class that occurs dur­ing the con­ver­sion from XML to JSON for some spe­cific XML doc­u­ments, like this one:

$xml= ‘bar’;

The result using Zend_Json::fromXml($xml, false) , where false indicated […]

Tags: , ,
Posted in Development, PHP No Comments »

Create daemons in PHP

29 March, 2011

 
Kevin van Zon­n­eveld wrote a life sav­ing arti­cle that saved me quite a bit of time; Every­one knows PHP can be used to cre­ate web­sites. But it can also be used to cre­ate desk­top appli­ca­tions and com­man­d­line tools. And now with a class called System_Daemon, you can even cre­ate dae­mons using noth­ing but PHP. And […]

Tags: , ,
Posted in Development, PHP 1 Comment »

A Zend Framwork compound form element for dates

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 sep­a­rate select ele­ments to do this:
Screen shot of a 3 select boxes for a date on a form
A lit­tle bit of googling found this site http://codecaine.co.za/posts/compound-elements-with-zend-form which has not unfor­tu­nately dis­ap­peared, so the […]

Tags: ,
Posted in Classes, Development, Zend Framework No Comments »

Usage of the Conditional Ternary operator to reduce brace and newline waste when processing optional method parameters

14 March, 2011

ralph­schindler writes; Usage of the Con­di­tional Ternary oper­a­tor to reduce brace and new­line waste when pro­cess­ing optional method parameters

< ?php
class Coor­di­nate
{
pro­tected $x;
pro­tected $y;
pub­lic func­tion __construct($x = null, $y = null)
{
(empty($x)) ?: […]

Tags: ,
Posted in Development, PHP No Comments »

Zend Studio & Eclipse Code Templates and Snippets for PHP

2 March, 2011

Saša Sta­menković writes; I know many of us have strug­gled with cod­ing PHP using var­i­ous text edi­tors and IDE-s. Sooner or later, we pick our favourite weapon of choice and use it for every day devel­op­ment. My weapon of choice is Eclipse PDT (Helios) and today I will talk about code tem­plates.
Just to make it […]

Tags: , , ,
Posted in Development, Zend Studio 2 Comments »

Get Adobe Flash player