RSS
 

Archive for October, 2009

Flash CS5 Physics

24 Oct

Flash CS5 introduces a whole bunch of new features in order to keep up to date with the current necessities in the development of RIAs and other software for Mobile hardware such as the iPhone.

The following video will show some of Flash CS5 gaming capabilities and, starting at 3min50sec, an introduction to Flash CS5 physics.

For more information on Flash CS5 you may consult Adobe Technologies page on Flash CS5

 
No Comments

Posted in Tools

 

Adobe Photoshop CS5 Patchmatch

21 Oct

This new algorithm is inserted into Photoshop CS5 Healing tool giving it the amazing capability of creating a completely new image.

Image Recomposing / reshuffling

Image recomposing allows you to move parts of an image around and attaching it to other parts of the image. This allows you to create a completely new image effect simply by drag and drop method.

Image Completion / Inpainting

There was a time when removing foreign people and objects from an image had it’s dificulty. The new algorithm allows you to remove objects from an image quick and simple.

Image re-targeting

Adobe also implemented the directional similarity algorithm that simplifies repetitive structures with additional constrain tools to achieve better results.

The following video explains and shows Image reshuffling, In-painting and Image re-targeting methods:

Unfortunately if you notice the message in the end of the film, Photoshop response time is not as quick as seen on video as Adobe explains:

Except where noted, all image updates are shown in real time using 2 CPU cores for synthesis.

Some user interactions (Drawing paint strokes & lines) have been sped up by 5x for brevity.

Which means that this algorithm will eat your CPU heart out when you try to use it. Unfortunately this means I can’t test CS5 at home.

For more information visit the following links:

 
1 Comment

Posted in Tools

 

Stefan Sagmeister: The power of time off

05 Oct

I am a strong defender that to be successful at anything you must love it and you must enjoy it. If you don’t than something is not right.

link: Stefan Sagmeister

 
 

Check if email domain exists with PHP

04 Oct

So let’s create a function to allow you to check the dns record of a full email address:

function VerifyEmailAddress($email) {
    list($user, $domain) = explode("@", $email);
    $result = checkdnsrr($domain, 'MX');
    return($result);
}

This function breaks the email string example@domain.tld giving the username the the content before @ and the domain the content after the @.
If you insert an email like example@domain.tld the user would be example and the domain would be domain.tld.

After breaking the email into user and domain the function calls checkdnsrr to check is the MX records on the $domain variable returning 1 is the domain exists or 0 if the domain does not exist.

Now you need to call it when checking an email:

if(VerifyEmailAddress($email) != 1) {
    echo "The e-mail you inserted is not valid.";
}

And here you have it. You can now check if the domain of an email exists.
For complete email verification I advise you to implement the following functions:

  • Check if email string inserted is a correct email for. Must have string@string.com
  • Check if the email domain exists. You can use this tutorial for that
  • Limit the amount of tries, for a determined period of time, a user can insert an email in order to stop possible spam bots
 
 
 

Page optimized by WP Minify WordPress Plugin