May 17th 2012

Improve your typing skills by playing a game



z type Improve your typing skills by playing a game

May 16th 2012

Geolocation of IP



Most of the websites serve the same content to all of their visitors,  but… serving personalized content to the visitor makes difference from other sites.

There are many ways to do it, in this article we will see how to obtain visitor geographical location, once we know where the visitor is from… then we can display dynamic content based on it!.

 

“Geolocation is the identification of the real-world geographic location of a visitor based on the IP address.”

 
We will use “freegeoip.net” API to get the geographical location of the visitor based on the IP address, freegeoip.net offers a public RESTful web service for searching geolocation of IP addresses and host names.

Usage

http://freegeoip.net/{format}/{ip_or_hostname}

{format}

output format “csv” or “xml” or “json”

{ip_or_hostname}

ip or hostname

Example

Request

http://freegeoip.net/json/google.com

Response

{"city": "Mountain View", "region_code": "CA", "longitude": "-122.057", "region_name": "California", "country_code": "US", "latitude": "37.4192", "country_name": "United States", "ip": "173.194.77.113", "zipcode": "94043", "metrocode": "807"}

PHP Code

function geolocationfromip() {

$m_strUrl = "http://freegeoip.net/json/".$_SERVER['REMOTE_ADDR'];
$m_arrGeo = json_decode(file_get_contents($url), true);
return $m_arrGeo;

}

Demo

May 4th 2012

PhoneGap – Mobile development framework



PhoneGap is an open-source mobile development framework which enables software programmers to build applications for mobile devices using JavaScript, HTML5 and CSS3, instead of lower-level languages such as Objective-C. The resulting applications are hybrid, meaning that they are neither truly native nor purely web based.

phonegap PhoneGap   Mobile development framework

The mobile framework allows web developers to natively target all smartphones with a single codebase (JavaScript, HTML and CSS) by enabling a Foreign Function Interface (FFI) to an embedded WebView or Webkit on the device. PhoneGap currently supports development for the below operating systems

supported platforms PhoneGap   Mobile development framework

Jan 2nd 2012

Android App Development



androids Android App Development

Started Android development…! thought of catching up with the green guy as android is steadily conquering the smartphone market.

Goolge App Inventor IDE helped a lot… to start with the app development without knowing any basic knowledge of the SDK/API’s, I had evaluated many… but this was faster and straight forward for the job which we have in hand!

Login Android App Development Login
Dashboard Android App Development Dashboard
Noticeboard Android App Development Noticeboard
Dec 31st 2011

2012



HAPPY NEW YEAR…!

 

“New year… same old resolutions!”