AS3 Access Stage Dimensions in Sub Class
Posted on | April 24, 2012 | No Comments
This post will show how to access the width and height dimensions of the stage in the preloader class.
Read more
Custom Zend Validate EmailAddress Error Message
Posted on | April 23, 2012 | 1 Comment
Anyone who has tried to validate a user input using Zend_Validate_EmailAddress will find that there are a LOT of error messages returned – one for each problem with the email address:
- Invalid format
- Invalid hostname
- Invalid mx record
- and 5 more
This class will replaces all the error messages with one message.
Read more
Progressive Enhancement vs Graceful Degradation
Posted on | April 20, 2012 | 5 Comments
There are two approaches to solving the problem: Progressive Enhancement and Graceful Degradation.
This post will introduce both concepts (hopefully unbiasedly), with examples of both.
Read more
jQuery UI Slider Legend Under Slider
Posted on | April 19, 2012 | 7 Comments
It is possible to control a select element, showing the options as the slider is moved. But what happens if the options are not as simple or predictable as 1, 2, 3,..?
Read more
AS3, FlashDevelop, and Me
Posted on | April 7, 2012 | No Comments
Read more
Check if a Module is Available in Zend Framework
Posted on | April 5, 2012 | 1 Comment
For example, you may have a ‘products’ module that allows you to add, edit, and view products. Later you decide you want to start selling these so create an ‘ecart’ module. In a later application you install the ecart module but not the products module, and wonder why it doesn’t work…
This bit of code will check if the dependent module is available to the application.
Read more
Use GMail to send Emails in Zend Framework
Posted on | April 4, 2012 | 1 Comment
It may be that your server does not allow you to send emails, for example a shared server or localhost that you cannot configure.
In either case, if you are using the Zend Framework’s Zend_Mail component, you can have your application send the emails through GMail.
Read more
Zend Form Default Decorators
Posted on | April 2, 2012 | 4 Comments
Read more
Prevent Scaling With ActionScript 3
Posted on | March 28, 2012 | No Comments
Read more
GreaseMonkey April Fools Script
Posted on | March 27, 2012 | No Comments
April 1st is typically associated with playing pranks on friends and co-workers. Sometimes these can be as simple as putting a bit of paper over the sensor on their mouse, unplugging a keyboard, or changing their desktop background to a broken LCD display image.
GreaseMonkey is a Firefox add-on that allows you to customize the way a web page displays or behaves, by using small bits of JavaScript.
This April Fools Script will randomly insert a random character of the alphabet where the user is typing in Firefox (for example an email in Gmail).
Read more