firefox slowness implementing old ie bug wpad
I dont know when it started but my firefox began to slow down at first connect. I click http://127.0.0.1/project then wait like some thing behind checking for something. I was curious about auto malware detection imposed by firefox and devil google. I always close option. But the lag is continuing that I hate every time, its kind of time wasting.
In the end ı sniffed my own network and found the problem. Time of writing first waiting time decreased from 2~3 seconds to 200~300mili seconds.
Firefox implemented old Explorer Bug. That is WPAD. Quoting from wpad.com "it works like this: When the browser starts, it issues a DNS address lookup for "wpad.foo.com" where "foo.com" is the domain name of the computer. Due to some Microsoft bug, some browsers look up "wpad.com," which is my host. ". Well the bug implemented is different cause firefox tries to reach only wpad. No suffix no prefix. And while waiting the dns response from servers I also wait.
Workaround is simple.Add a record to /etc/hosts file to point nowhere or localhost.
127.0.0.1 localhost wpad
Thanks open source you always invent some thing amusing.
Similar
New technique to win olimpics
At the 1968 Olympics, Dick Fosbury took the athletics world by surprise with an unusual high-jump technique.
Printing mysql_error
This is a code snipped to print mysql error.
If there is no error mysql_error returns null, thus if evaluates false and there is no output.
multiple ON DUPLICATE KEY UPDATE
Here is an example of how to update multiple columns using values supplied in the INSERT statement. This assumes that column 'a' is the unique key.
multiple ON DUPLICATE KEY UPDATE
Here is an example of how to update multiple columns using values supplied in the INSERT statement. This assumes that column 'a' is the unique key.
php unlink recursive
The shortest recursive delete possible.
<?php
/**
* Delete a file or recursively delete a directory
*
* @param string $str Path to file or directory
*/

