BLOG HAS NEW ADDRESS

BLOG HAS BEEN MOVED TO www.BestFromGoogle.blogspot.com

Thursday, April 14, 2011

Page Speed : Performance Analyzer from Google Labs

Page Speed another product from Google Labs , but this
time not of much use to the public , but a product
developed keeping the web developers in mind .

There exists two versions of this product
1) Page Speed Offline which you install into your
Chrome or Firefox Browser .
2) Page Speed Online which gives you the performance
report online .

We took the test and the site http://googlelatiude.blogspot.com/
got an rating of 86 out of 100 on desktop analysis & from mobile
point of view scored 80 out of 100 .

Page Speed did give us suggestions on how to improve the performance
and they were really informative .The suggestions were classified
as
  • High Priority
  • Medium Priority
  • Low Priority
Luckily we had hardly any High Priority Performance degrading factors
& we are working on Page Speed Suggestions .

With the massive shift in the internet users towards mobile , optimizing 
your website for mobile has become more crucial than doing for the
desktop pc. Page Speed provides you suggestions on how to improve
your site performance for mobile devices .

Check out the Page Speed Home Page 

Read more...

Google Safe Browsing : Will Reduce the Adsense Click Fraud

Google Online Security Blog: Safe Browsing Diagnostic To The Rescue

Read more...

Google Chrome Speech Recognition mashup with Google Maps


 Click Like If you Agree
Google see its browser as the central part of its future computing devices .
With Chrome OS to be released in US,UK ,India and other countries in 
around June 2011 , Google Chrome will be used for everthing from listening
to music to creating office documents .

The latest version of Google Chrome enables support for Speech Recognition,
based on HTML5 standards . You can now specify speech as one of your 
inputs in your HTML5 form , record what the user speaks and interpret it .

Speech Recognition is one of the widely unexplored fields and with Google
entering this field ,we will surely find many speech based API's in near future.

How Google Chrome Speech Recognition works ?

Even though there aren't much details on the web regarding the working 
of Google's Speech Recognition algorithm , it is roughly based on calculating
the MFCC co-efficient of each and every word  Google has in its database ,
when you speak a word and pass it to the Google Server to interpret ,it 
matches the MFCC of the word spoken by you with its database and returns
you the closest matching word from the database . What all words might 
Google have in its database ?? The greatest weapon Google has  is its data
that ranges from the Searching trends to Regional Searching data and this is
a one factor that will make it one of the top Speech Recognition Enterprise.
Google makes use of its huge database to give user specific speech to text
conversion based on the regional data it has .

How to use Google Speech Recognition in Google Maps Application ??

  1. Create an input tag with text as type like this                                                                                 <input type="text" id="address" x-webkit-speech />    
  2. Create an div in which your Google Map will be displayed .
  3. Create function to geocode your address .
  4. Create an marker to display the location on the map .





   













Complete code below is as follows 

<html> 
<head> 
<title>Google Speech Recognition Mashup Google Maps</title> 
<style>
#map_canvas {
  height: 400;
 width : 600
  }
</style>

<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> 
<script type="text/javascript"> 

 function initialize() {
   geocoder = new google.maps.Geocoder();
    var latlng = new google.maps.LatLng(-34.397, 150.644);
    var myOptions = {
      zoom: 8,
      center: latlng,
      mapTypeId: google.maps.MapTypeId.ROADMAP
    }
    map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
  }

 function codeAddress() {
    var address = document.getElementById("address").value;
    geocoder.geocode( { 'address': address}, function(results, status) {
      if (status == google.maps.GeocoderStatus.OK) {
        map.setCenter(results[0].geometry.location);
        var marker = new google.maps.Marker({
            map: map, 
            position: results[0].geometry.location
        });
      } else {
        alert("Geocode was not successful for the following reason: " + status);
      }
    });
  }
</script> 
</head> 
<body onload="initialize()"> 
  <div id="map_canvas" height="600" width="600" ></div> 
<input type="text" id="address" x-webkit-speech />
<input type="button" value="Show Location on Map" onclick="codeAddress();" />
</body> 
</html> 



This feature can be integrated with number of websites that have a field for 
address in their form .Google Speech Recognition works particularly well
with recognizing addresses , however when it comes to recognizing names
Google still has a lot to improve . One improvement Google could certainly 
make is embed extra attributes in input tag that will help it narrow down the
search results . For eg in this example it would have been great if it had given
an attrbute like place,email address or phone numbers , which would make 
the speech to text conversion more specific .
Related Articles
Geocode Address For free
Google Latitude Mashup with Google Maps

Read more...

Monday, April 11, 2011

Twitter used for Email Harvesting!!!!


 Click Like If you Agree
Your favourite social networking site Twitter can now be used for
Email Harvesting making it a threat to your online security and
privacy . Well even I was shocked to learn this at the first place
when I learnt how simple it was !!!

Social Networking site Twitter has this great feature of searching
twitter for the latest twitter updates at http://search.twitter.com/
Just go to this twitter search page , enter your search keyword and
there you have the latest tweets on twitter regarding the keyword
you have searched .




Spammers use the same technique for Email Harvesting  .In your
twitter search box type in @gmail.com OR @yahoo.com OR
the keyword mail me at and you can get the list of Email address
in your twitter search page .  People tweeting usually have this bad
habit of leaving their email address in their tweets while tweeting and
this eventually becomes a threat to their online privacy .Email Harvetsers
can write a simple program that runs every X seconds fetching them
new email address . So the next time you leave your Email address
online in Twitter or any of the Web directories ,get ready to be the
target of the spammers .

Read more...

Google Groups targetted for Email Harvesting!!!

Email Harvesting??
Well to many who dont have much idea what email harvesting is ,
let me put it down in few words. E-mail harvesting is the process
of obtaining lists of email address using various methods for use in
bulk email or other purposes usually grouped as spam. 


Why is Email Harvesting done for ??


Email Harvesting is a great tool that can be used to market your 
product .You get a list of email address using Email Bots that 
crawl the web to get the email address from different websites
all over the web .




What are the tools available for Email Harvesting ?? 


  • Email Grabber 
  • GSA Email Spider
  • Email Extractor
Google Groups a Target of Email Harvesting??

 I recently found a great increase in spam in my inbox & 
liitle research on Google showed me Google groups was
one of the major targets of Email Harvesting Bots  .The major
reason for it being targetted was some of the google groups 
used to make their posters email address publicly visible ,
this would make it easy for the spammers extract the email
address.Still the question remained was how were the spam
mail being sent ending up in my Gmail Inbox rather than the
Gmail Spam section?? The spammers joined this group using 
their spam email address & hence they could easily bypass the
Gmail's Spam Filter which resulted in spam reaching your inbox.

Read more...

Sunday, April 10, 2011

Periodic Table of Google API's

Did you know ? Google has its own periodic table just as periodic table of
chemical elements . So spend more time developing , rather than spending
time searching for which API will suit your developing needs . Well I myself
found it to be a gift & I bet it will be same for you .

                               Click on the image to zoom 






Google Periodic Table also lists the different categories of API's
like Search ,Books API,Gadgets,Chrome,Location based API's .
So next time an API gets added all you have to do is view the
periodic table & you know whats new in Google Products??

Read more...

Sunday, April 3, 2011

Geocode Address for free

Note : The current page looks has been disoriented due to the
           new design to the blog . We will try to bring this back to
           normal as soon as possible . Sorry!!!


 While googling on the web for a  geocode address 
database which I needed for one of my projects and
after visitng a number of sites that did give   me
an geocode address database but at an cost ranging
from $30-$200 that I couldn't afford at any  cost.
So I decided to use Google Maps , Yahoo Maps   and  
Microsoft Bing Maps to  create  my  free   geocode
address database.So the first thing I had to check
out was which of this mapping giants would me give
me the most accurate results .So I started by 
testing out the values returned by each of the maps.
For well known places all 3 of them would give  me
accurate results, but as places became less famous,
Microsoft Bing really sucked & was giving me a city
level accuracy only!!!!




So Microsoft Bing Maps was ruled out as being suitable for creating 
 an geocode address database . Now the next option was Google Maps &  Yahoo
 Maps and the good news was that both were giving the most accurate & almost
 the same reuslts all the time .I wonder if this two Mapping Giants use the
 same common database ??  
 



Is there any difference between Google Maps and Yahoo Maps ???

Each has its own pros & cons and telling which one is better is still a tough job . 1)Google Maps is extensively used in many web applications as comapred to yahoo and graphic wise Google Maps is far more superior than Yahoo Maps . 2)Yahoo Maps takes less time to load than Google Maps . 3)Google Maps allows you to geocode address at 2000 queries per day . 4)Yahoo Maps on the other hand allows you to geocode address at the rate of 50,0000 queries a day i.e almost 25 times more queriies a day . 5)Google Maps Api allows you to use their Directions Api but Yahoo Maps Api doesn't allow you to use their Directions Api expect on the Yahoo Maps homepage .

So lets get started  setting up the geocode address database !! 

Yahoo Maps Geocode Address Database Creation


// Json encode the data
function json_code ($json) 
{ 
$json = substr($json, strpos($json,'{')+1, strlen($json));
$json = substr($json, 0, strrpos($json,'}'));
$json=preg_replace('/(^|,)([\\s\\t]*)([^:]*) (([\\s\\t]*)):(([\\s\\t]*))/s',
'$1"$3"$4:',trim($json));
return json_decode('{'.$json.'}', true);
} 

// function to get the geocode of the address
function geoCodeYp($point)
{
$yahoo_appid = 'Your yahoo app id'; // Replace your Yahoo AppID here            
$pointenc = urlencode($point);
// URL Formation that will fetch you the results on query
$url="http://where.yahooapis.com/geocode?
location=".$pointenc."&gflags=R&appid=".$yahoo_appid."&flags=J";
// get the contents of the URL formed
$jsondata = file_get_contents($url);
$json_data= '{
  a: 1,
  b: 245,
  c with whitespaces: "test me",
  d: "function () { echo \"test\" }",
  e: 5.66
  }';  

 $coord=explode(" ",$point);
        // this will json encode the data .
 $convertedtoarray=$this->json_code($jsondata);
        // line1 of addrress comprising of house,street no etc
        // line 2 of address comprising of city state country
 $line1 =$convertedtoarray['ResultSet']['Results']['0']['line1'] ;
 $line2 =$convertedtoarray['ResultSet']['Results']['0']['line1'] ;
 $county =$convertedtoarray['ResultSet']['Results']['0']['county'] ;
 $street =$convertedtoarray['ResultSet']['Results']['0']['street'] ;
 
if(($line1=="")||($line2=="")||($county=="")||($street==""))
{
   $yahooresults['status']="noresult";
}
else
{
$countrycode=$convertedtoarray['ResultSet']['Results']['0']['countrycode'] ;
$statecode  =$convertedtoarray['ResultSet']['Results']['0']['statecode']   ;
//$county   =$convertedtoarray['ResultSet']['Results']['0']['county'] ;
$city     =$convertedtoarray['ResultSet']['Results']['0']['city'] ; 
$house     =$convertedtoarray['ResultSet']['Results']['0']['house'] ;
$latitude   =$convertedtoarray['ResultSet']['Results']['0']['latitude'] ;
$longitude  =$convertedtoarray['ResultSet']['Results']['0']['longitude'] ;     

$yahooresults = array('countrycode'=>$countrycode,'statecode'=>$statecode,
'county'=>$county,'city'=>$city,'street'=>$street,'house'=>$house,
'latitude'=>$latitude,'longitude'=>$longitude);    
}
 
 return $yahooresults ;
}




This are the two functions which you need to create the geocode address 
database . So how do I call this geocode function .
Include this two functions in a single  php  file .
1)Suppose you want to get the geocode address  of  a 
place say "Bohemia" . You can simply call the function as 
geoCodeYp("Bohemia") .
To further store the result in database :
$result=geoCodeYp("Bohemia") ;
// get each of the values as
$latitude=$result['latitude'];
$longitude=$result['longitude'];
.............remaining variables..................
You can store each of the results in database by retrieving
the remaining values .

2) To geocode address of a point(latitude&longitude)
//Example
$latitude="72.5632"
$longitude="19.756";
// You have to include space between the latitude & longitude
$point=$latitude." ".$longitude ;
//call the geocode function
geocode($point);

Time required to setup the geocode address database??

Suppose you have to want to geocode the address of around 5,00,000 address 1 yahoo appid -> 10 days 2 yahoo appid -> 5 days 10 yahoo appid -> 1 day
This way you can create your own geocode address database . 
"If you liked anything about this post or have any queries 
free feel to comment .
If you are not a developer & want help in setting up the 
geocode address database you can send me a mail or comment
on this post ."



Bookmark or Share this article :



Read more...

About This Blog

This Tech Blog is about a month old and increasing
number of pageviews and a steady increase in
our loyal readers has prompted us in writing
unique articles that will be of great use to all the
webmasters .The blog currently has only 15+
unique google tricks and hacks , we will be adding
new tricks as and when we stumble upon something
useful to our readers .

  © Blogger templates The Professional Template by Ourblogtemplates.com 2008

Back to TOP