affect vs effect

Affect Verb

Effect Noun

Advertisements

Delphi vs Alternatives

Broad comparison of programming enviroments (IDE’s) with internal GUI support:

  • Delphi / C++ Builder Community Edition (WINNER)
    • Free (for yearly income under $5000)
    • Small executable file
    • Very fast execution
    • Very fast compiling
    • No external software requirement
    • Good Cross-Platform support
  • Visual Studio
    • Free
    • Small executable file
    • Very fast execution
    • Fast compiling
    • External software requirement (.Net Framework)
    • Very Bad Cross-Platform support (Xamarin sucks)
  • Qt
    • Only free for open source projects
    • Very large executable file
    • Fast execution
    • Slow compiling
    • No external software requirement
    • Very good Cross-Platform support
  • Java
    • Free (with limitations)
    • Small executable file
    • Slow execution
    • Slow compiling
    • External software requirement (Java Virtual Machine)
    • Good Cross-Platform support

PHP getRealIpAddress Function

HTTP_X_FORWARDED_FOR can have multiple IPs like 1.1.1.1, 2.2.2.2

function getRealIpAddr()  
{  
    if (!empty($_SERVER['HTTP_CLIENT_IP']))  
    {  
        $ip=$_SERVER['HTTP_CLIENT_IP'];  
    }  
    elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR']))
     
    {  
        $ip=$_SERVER['HTTP_X_FORWARDED_FOR'];  
    }  
    else  
    {  
        $ip=$_SERVER['REMOTE_ADDR'];  
    }  
    return $ip;  
}