Tag Archives: Google

Advantages: Let Google Host jQuery For Your Website

Most of us (Web Developer) use JQuery during the development, if you are not aware about the jQuery or interested in any other JavaScript Library then below is just a very quick overview about the jQuery.


jQuery is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers. With a combination of versatility and extensibility, jQuery has changed the way that millions of people write JavaScript.”


Well, how you include that in your file, generally as below.

[code lang=”js”]<script type="text/javascript" src="/js/jQuery.1.8.x.min.js"></script>[/code]


We all know that the load of JavaScript directly affect the site page load time and Obviously on SEO. Then how to get rid by jQuery?
No worries, you know as usual Google always help us so let Google host jQuery for your website.


You can let Google AJAX Libraries CDN (content delivery network) serve jQuery directly from Google’s network as below.
There are three main benefits of doing this is Decreased latency, Increased parallelism and Better caching that directory affect you site page load.


You should use/include JQuery as below

[code lang=”js”]<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>[/code]


Benefits of Google CDN Networks(Google hosted JavaScript Libraries)


Decreased Latency
A Content Delivery Network (CDN) distributes static content across various servers, diverse physical locations worldwide. When a user visits a page serving files from a CDN, their download will automatically target the closest available server in the network which can reduce download times.


Increased Parallelism
All browsers limit the number of connections that can be made simultaneously. Depending on which browser, this limit may be as low as two connections per hostname.
Using the Google AJAX Libraries CDN eliminates one request to your site, allowing more of your local content to be downloaded in parallel.


Better Caching
When a user visits a site, their browser will download static files so that when the user visits that page the files will not have to be downloaded again, saving bandwidth usage, server load.
Google AJAX Libraries CDN is that your users may not need to download jQuery at all.


If you’re curious why the <script> reference is missing the leading http:, It’s a trick which allows you to use a single reference that works on both HTTP and HTTPS pages.


“Protocol-less” URL is the best way to reference third party content that’s available via both HTTP and HTTPS.


Can not receive emails sent from my mail server to my test accounts on gmail, hotmail and yahoo, how to resolve this issue?

On a normal server, there is a limit of mails, that can be sent in a day, but due to error or some issue if a large number of mails sent automatically from your server, and then they (gmail, hotmail yahoo and other) block the incoming mails from that server.


This means that your IP address is blocked and reported as a spam IP, to remove it from the spam list,


1. Go to http://www.spamhaus.org/lookup.lasso
2. Check your IP/Domain if it is blocked
3. If it is blocked select to remove it from black list


Wait between half and one hour and then try again to send an email to hotmail, gmail or yahoo.



Get live currency rates in PHP and currency conversion using APIs

Get live currency rates in PHP & conversion using APIs

In the below method, we get live currency rates from Google.
This function uses CURL so make sure you have enabled curl extension in php.


Google has an inbuilt calculator which can also be used for converting a currency into another.Doing so is really simple, you just type “AMOUNT”, “CURRENCY_CONVERTING_FROM” in “CURRENCY_CONVERTING_TO” and search, the inbuilt calculator will give you the result.

Try this


Google also has a secret calculator API (http://www.google.com/ig/calculator) that is usually used for iGoogle gadgets, but its free and open, anyone can use it.
So if you want to convert a currency into another using the API, you can grab the below code.



function get_currency($from_Currency, $to_Currency, $amount) {

$amount = urlencode($amount);
$from_Currency = urlencode($from_Currency);
$to_Currency = urlencode($to_Currency);

$url = "http://www.google.com/finance/converter?a=$amount&from=$from_Currency&to=$to_Currency";

$ch = curl_init();
$timeout = 0;
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);

curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1)");
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$rawdata = curl_exec($ch);
$data = explode(‘bld>’, $rawdata);
$data = explode($to_Currency, $data[1]);
return round($data[0], 2);

// Call the function to get the currency converted
echo get_currency(‘USD’, ‘INR’, 1);




You can also do same by using live currency Value from yahoo finance (http://finance.yahoo.com/)

Here is an example to get the value of US Dollar in Indian Rupees.



$from   = ‘USD’; /*change it to your required currencies */
$to     = ‘INR’;
$url    = ‘http://download.finance.yahoo.com/d/quotes.csv?e=.csv&f=sl1d1t1&s=’. $from . $to .’=X’;

$handle = @fopen($url, ‘r’);
if ($handle) {
$result = fgets($handle, 4096);
$allData = explode(‘, ‘, $result); /* Get all the contents to an array */
$dollarValue = $allData[1];
echo ‘Value of $1 in Indian Rupees is &#8377; ‘.$dollarValue;



Alternate of Google Map

Even Google Map is free to use and have a large library and blogs to help. It’s good news for developer that there are more Maps Library available now to integrate in your application 🙂


Don’t worry to increase or learn new library of Maps, as each Map library have some unique feature, so match your requirement and integrate the Map that best suit to your requirements.


The Advanced functionality of these Maps are available on their website, I am also adding the URL of the Map API library.
Go through from these and increase your knowledge about the MAP.


1. Microsoft Bing
Microsoft’s Bing Maps gives you a rich set of tools to help you create amazing map experience. Choose from our super fast AJAX Control 7.0, REST Services API.A unique feature of Bing maps is their ‘Bird’s eye’ view, which gives aerial views from several perspective angles.


2. Nokia (Yahoo Maps)
Nokia purchased Navteq (one of the major suppliers of map data) in 2007, and has been powering Yahoo maps since 2011.It provides APIs for mobile applications and web browsers.
JavaScript API, REST API, Mobile HTML5 Framework, Java API, Qt API is available & working fine for Nokia Maps.


3. MapQuest
MapQuest is the company that lets you choose between using licensed maps or open maps. Even using licensed map data, it has free accounts with no limits on map views. However, it does limit you to 5K calls per day for routing (including for multiple destinations), geocoding, and search.


4. OpenLayers
OpenLayers makes it easy to put a dynamic map in any web page. It can display map tiles and markers loaded from any source that shows how flexible and powerful API designed to be used in advanced mapping applications.OpenLayers has been developed to further the use of geographic information of all kinds. OpenLayers is completely free, Open Source JavaScript. It is a mature API with lots of features, but it can be difficult to use in mobile applications since it was designed before they became popular.


5. Leaflet
Leaflet is a modern and newest open-source JavaScript library for mobile-friendly interactive maps.
Many of the companies switching away from Google Maps use the Leaflet API. It was designed to work well with both desktop and mobile applications and is small and fast. Being newer, it is not as powerful as some of the other APIs, but what it lacks in features it makes up for in flexibility. It has a powerful object model that makes it easy to add features or customize existing features to your needs.


6. Modest Maps
As its name implies, Modest Maps is a small, extensible, and free library for designers and developers who want to use interactive maps in their own projects. It provides a core set of features in a tight, clean package with plenty of hooks for additional functionality. There are lot of ports, including for Python, PHP, Processing, and Open Frameworks facilitate using Modest Maps in desktop (non-browser-based) applications, native mobile applications, and on servers.


7. Polymaps
The goal of Polymaps is to better support rich, large-scale data overlays on interactive maps by extending the tile metaphor to vector graphics.
Other APIs use image tiles to render maps, but they still need to display geographic information (such as markers and routes) by rendering it directly. Map data can be loaded using standard formats such as GeoJSON and rendered directly.


If you have gone through the documentations of these all, you have found that every Map API is unique in his way, so choose the best suits.
Anyway, if you think Google Map is more better then these all, go ahead with Google Map 🙂


The Best Web Search Engines List

There are so many search engines available on Internet.
Most of the users want only a single search engine that delivers basic key features as


  • Relevant results (results you are actually interested in)
  • Uncluttered, easy to read interface
  • Helpful options to broaden or tighten a search
  • Quick response (less time consuming)

I prefer Google.Google is fast, relevant, and the largest single catalog of Web pages available today
Below are some other Search engines available, these are also used very much by the people.

Alexa Rank : 27
Estimated Unique Monthly Visitors : 165,000,000

Alexa Rank : 4
Estimated Unique Monthly Visitors : 160,000,000

Alexa Rank : 52
Estimated Unique Monthly Visitors : 125,000,000

Alexa Rank : 64
Estimated Unique Monthly Visitors : 33,000,000

Alexa Rank : 118
Estimated Unique Monthly Visitors : 19,000,000

Alexa Rank : 1640
Estimated Unique Monthly Visitors : 4,300,000

Alexa Rank : 3617
Estimated Unique Monthly Visitors : 2,900,000

Alexa Rank : 6358
Estimated Unique Monthly Visitors : 2,700,000

Alexa Rank : 3038
Estimated Unique Monthly Visitors : 2,600,000

Alexa Rank : 1862
Estimated Unique Monthly Visitors : 2,000,000

Alexa Rank : 5903
Estimated Unique Monthly Visitors : 1,450,000

Alexa Rank : 4422
Estimated Unique Monthly Visitors : 1,150,000

Alexa Rank : 7676
Estimated Unique Monthly Visitors : 700,000


Note : All the above data related to search engines have collected on dated 03/31/2012.


Google’s Chrome is biggest gainer with respect to IE & Firefox in Browser Wars

Top 5 most popular internet web browsers

A large number of people use the browser that comes with their computer’s operating system.


Internet Explorer on Windows
Safari on the Mac
Firefox on Linux


Apart from these Microsoft’s Internet Explorer is still the world’s most popular browser, but (IE) and Mozilla’s Firefox lost a lot of market share(users) to Google’s Chrome in 2011, which is now in second place.

According to StatCounter’s 2011 data (see image below), IE currently has a 39% market share, Chrome is at 27%, while Firefox holds 25% of the market.

2011 Browser Usage Statistics

Safari and Opera follow with 6% and 2% market share, respectively.

Internet Explorer started 2011 with a 46% share of the market, and Firefox was over 30%. Both browsers steadily lost their share throughout the year, and almost all of it went to Google Chrome, which is clearly the year’s biggest gainer.