Export Chrome Extensions

Today I searched export chrome extensions and found a simple solution that gave me a backup of my extensions plus everything else. There is nothing worse than getting a new computer and your web browser is nothing like your used to. It would be nice to export all of your personal setting from chrome to your new computer, such as history, bookmarks, extensions, and cookies. The simplest way to back up your chrome data is to save your old profile over your new installed profile. The folder that contains your profile is “C:\Users\\AppData\Local\Google\Chrome\User Data\Default” on vista\win7. Locations for other systems are located here. Fire up chrome on your new computer and you are back the same old browsing experience on your new computer in seconds.

IPhone Add a Word To Dictionary

Today I Searched how to add a word to the iPhone dictionary. My colleague had a problem that it would always suggest the name Rod for Rob. We could not figure out how to get it in the dictionary. I read that after you X out a suggested fix, the word you typed is supposed to be added to the dictionary. This did not seem to be working for some reason. I found the following suggestion on a Google search that I thought I would pass along. If you search for a word using the Google toolbar in Safari, it is also added to the dictionary. Use the following steps to get a word into the iPhone dictionary.

  1. Open Safari
  2. Type Word in Google Search
  3. Search For Word

Below is the blog I found this tip on, thanks!

http://iphoneindia.gyanin.com/2009/05/26/iphone-tricks-add-words-to-iphone-dictionary-disable-auto-correct-and-auto-capitalize/

Make AJAX Call To A Different Domain Using PHP & JQuery

Today I Searched how to make an AJAX call to a URL on a different domain. My first attempt failed with a security error. I dug into the problem a bit and found out that PHP can be used as a proxy to fetch the web content.

AJAX Calls PHP Script On Your Domain -> PHP Script Fetches Content From Remote Domain -> PHP Script Returns The Remote Data Back To The AJAX Call

Below is a sample PHP script that I found and tweaked.

// Set your return content type
header('Content-type: text/html');

// Website url to open
$daurl = 'http://www.otherdomain.com/index.php?sku=' . $_GET["sku"];

// Get that website's content
$handle = fopen($daurl, "r");

// If there is something, read and return
if ($handle) {
    while (!feof($handle)) {
        $buffer = fgets($handle, 4096);
        echo $buffer;
    }
    fclose($handle);
}

Below is the AJAX call to load the content into a div using JQuery

$("#loadremotecontent").load('getprice.php?sku=322000');

The script could be further modified to pass in the entire URL as a parameter so it could be more generic. I would love to hear about other cross domain AJAX options if anyone has any other suggestions.

Go back to top