I’m wondering why Safari on my Mac always slower load on facebook.com, but fast in Google Chrome. I did set the DNS for my network to Google DNS 8.8.8.8 and 8.8.4.4 and it doesn’t help much.

facebook.com reverse the IP differently from different location, if your browser prefetching it, maybe slow down from the previous IP you get. So I tried to disable the DNS Prefetching using the Terminal.

You received error from the sed command in Mac, because the argument in mac is different.
If you type in Mac terminal, you may receive error like this
[code lang=”bash”]
Justins-MacBook-Pro:2 juzhax$ sed -i ‘s/old_text/new_text/g’ example.txt
sed: 1: "config.php": command c expects \ followed by text
[/code]

The first argument should be the extension of the backup file. The correct way is
[code lang=”bash”]
Justins-MacBook-Pro:2 juzhax$ sed -i ‘.bak’ ‘s/old_text/new_text/g’ example.txt
[/code]