preload preload preload preload

Minification v Obfuscation


23rd October 2009 Java Script 12 Comments
JavaScript is a load-and-go language. Programs are delivered to the execution site as text (not as executable or semi-compiled class files) where it is compiled and executed. JavaScript works well with the Web, which is a text delivery system, because it is delivered as text. There are two downsides of textual delivery of programs. The first is code size. The source can contain material (such as whitespace and comments) which aids in the human interpretability of the program, but which is not needed for its execution. Transmitting superfluous material can significantly delay the download ...
Read More »

calculating reverse color


8th October 2009 php logics 7 Comments
some times, we may have to provide the customer to choose colors, as he likes, this is one requirement, where customer can select background color, and here is the code to calculate the text color, which can be clearly visible on the background color the customer chooses. here is a small function to do that // gives opposite color function reversecolor($color) { $newcolor = "#"; for ($i=1; $i < strlen($color); $i++) { $hex = $color{$i}; $int = hexdec($hex); $revint = ($int + 8 ) % 16; $revhex = dechex($revint); $newcolor ...
Read More »

random color code generation function


7th October 2009 php logics 3 Comments
A small function to generate random colors function generateRandomColors( $num = 1 ) { $colors = array(); for ( $i=0; $i < $num; $i++ ) { $colors[] = substr(md5(4*$i),0,6); } return $colors; } ...
Read More »

Choosing a smart password


7th October 2009 General 8 Comments
As part of National Cyber Security Awareness Month, we'd like to take this opportunity to remind you about smart password practices. Help ensure you're protecting your computer, website, and personal information by checking out our security series on the Google blog or visitinghttp://www.staysafeonline.org. Phishing, a topic that's been in the news, is unfortunately a common way for hackers to trick you into sharing personal information like your account password. If you suspect you've been a victim of a phishing attack, we recommend you immediately change your password, update the ...
Read More »

Welcome to phplogics.com


4th October 2009 php tutorial 2 Comments
yes, you guessed it right, this site is not different than any other freely available scripts. But, Always try it to be more useful. ...
Read More »