Development

MP3 Encoder on Alchemy">Shine MP3 Encoder on Alchemy

Posted by on 31 August, 2011 at 10:18 am

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 […]

WAVWriter.as

Posted by on 31 August, 2011 at 9:59 am

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 […]

Flex Builder 4.5.x Test Drive for Mobile Tutorials

Posted by on 2 August, 2011 at 11:34 am

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 […]

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

Posted by on 2 August, 2011 at 11:19 am

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 […]

PHP">Encrypt session data in PHP

Posted by on 3 May, 2011 at 6:28 pm

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, […]

XML to JSON in PHP">XML to JSON in PHP

Posted by on 3 May, 2011 at 5:53 pm

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 […]

PHP">Create daemons in PHP

Posted by on 29 March, 2011 at 2:51 pm

 
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 […]

A Zend Framwork compound form element for dates

Posted by on 21 March, 2011 at 10:29 am

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 […]

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

Posted by on 14 March, 2011 at 10:15 am

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)) ?: […]

& Eclipse Code Templates and Snippets for PHP">Zend Studio & Eclipse Code Templates and Snippets for PHP

Posted by on 2 March, 2011 at 9:49 pm

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 […]

ExtJs, ExtDesigner and Zend Framework

Posted by on 2 March, 2011 at 9:33 am

Nils-Fredrik G. Kaland writes; Let’s say you are work­ing on the user inter­face in Ext Designer / Sen­cha Ext Js, and after a while you find out you have ended up with a great amount of data stores. You also need to han­dle lots of Ajax requests and all the server side coding […]

Unit Testing Doctrine 2 Entities

Posted by on 6 February, 2011 at 12:15 pm

Inte­grate Doc­trine 2 into your Zend Frame­work project. Drive with tests first!
via Zendcasts.

UTF-8 fields in MySQL">About using UTF-8 fields in MySQL

Posted by on 20 December, 2010 at 11:01 am

Joshua Thi­jssen writes; I some­times hear: “make every­thing utf-8 in your data­base, and all will be fine”. This so-called advice could not be fur­ther from the truth. Indeed, it will take care of inter­na­tion­al­iza­tion and code-page prob­lems when you use UTF-8, but it comes with a price, which may be too high for you to […]

Handling exceptions in a Front Controller plugin – Rob Allen’s DevNotes

Posted by on 20 December, 2010 at 10:03 am

Rob Allen wites in his DevNotes; If you have a Zend Frame­work Front Con­troller plu­gin which throws an excep­tion, then the action is still exe­cuted and then the error action is then called, so that the dis­played out­put shows two actions ren­dered, with two lay­outs also ren­dered. This is almost cer­tainly not […]

Local config files and Zend_Application

Posted by on 29 November, 2010 at 11:57 am

Rob Allen writes; A friend of mine recently had a require­ment where she wanted to have two con­fig files loaded into Zend_Application, so that the spe­cific set­tings for the server were not stored in the ver­sion con­trol sys­tem.
Hence she has two con­fig files: application.ini and local.ini where local.ini is dif­fer­ent on each server.
The eas­i­est way […]

Get Adobe Flash playerPlugin by wpburn.com wordpress themes