Friday, March 05, 2010

Verify a User's Email Address Using PHP

Verify a User's Email Address Using PHP: "// take a given email address and split it into the �
username and domain.
list($userName, $mailDomain) = split('@', $email);
if (checkdnsrr($mailDomain, 'MX')) {
�// this is a valid email domain!
}
else {
�// this email domain doesn't exist! bad dog! no biscuit!
}"

Javascript framework: jQuery vs Dojo vs ...

dojo-vs-jquery-vs-mootools-vs-prototype-performance-comparison

mootools-vs-jquery-vs-prototype-vs-yui-vs-dojo-comparison-revised

Which Javascript framework (jQuery vs Dojo vs ... )? - Stack Overflow

Google Closure Templates


JQuery:
  • CSS selectors

  • filtering your selection


  • A minimalist system focused primarily on operating on existing DOM structures, JQuery features a hybrid XPath/CSS query language (Dojo uses standard CSS 3 queries) and provides a rich set of options and operations on the results of these queries.


    DOJO:
  • OOP (and other paradigms) done right.

  • Widget infrastructure done right.

  • Modules done right with all necessary goodies:
  • Lazy loading of modules dynamically.

  • Possibility to extract only necessary modules and build a custom one-file profile.

  • Asynchronous loading of modules if desired.

  • Simple integration with CDNs for heavy-duty web applications.


  • Sheer breadth of available modules in DojoX including graphics, charting, grids, and so on.

  • Ability to use it in non-browser environments.

  • Attention to details in widgets:
  • support for i18n (including LTR and RTL languages),

  • support for l10n (including standard date, currency, number formatting),

  • provisions for people with special needs (automatic high-contrast mode, keyboard-only support, and so on) — useful for regular users too, and mandatory for most government contracts.


  • its build/minification system

  • its easy extensibility and robust OO design


  • If all you want is to write one-liners and add simple progressive enhancements to existing web applications, you can do it with pretty much any framework, or even with a pure JavaScript. But as soon as your web application becomes bigger or more complex good packaging, good support for your favorite methodologies, good building blocks, and the ability to make your own building blocks become more and more important.

    Dojo on Stack Overflow

    OTHER:
    GQuery (jQuery port for GWT):
    I am a java developer so there is a bias for this framework. The other reason why I recommend it is for the performance. Check out the GQuery vs jQuery performance comparison at http://letusdemo.appspot.com/

    YUI:
    YUI is developed in-house at Yahoo and features extensive, high-quality documentation and examples. Designed for speed and targeted at a population of professional PHP developers, YUI is designed with the needs of Yahoo-scale applications in mind.

    Wednesday, March 03, 2010

    Twitter

    http://www.htmlgoodies.com/beyond/webmaster/article.php/3868036

    Monday, March 01, 2010

    Photo Protection

    http://www.dedestruct.com/2008/02/13/image-protection-and-copyright/