Posts

Showing posts from September, 2007

Google Maps Geo Coding Example

Geocoding is the process of converting addresses (like "Bangalore") into geographic coordinates (like latitude 12.97xxxxx and longitude 77.f9xxxx), which you can use to place markers or position the map. The Google Maps API includes a Geocoding service that can be accessed directly via an HTTP request or by using a GClientGeocoder object. Note that geocoding is a time and resource intensive task. Whenever possible, pre-geocode your addresses (using the HTTP geocoder or other geocoding service), and store your results. Getting the Geo Code using Google Api For a Particular Geo Address using ::class GClientGeocoder:: This class is used to communicate directly with Google servers to obtain geocodes for user specified addresses. In addition, a geocoder maintains its own cache of addresses, which allows repeated queries to be answered without a round trip to the server. The Following Example shows How to echo/alert the Longitude and Latitude of a Particular location va

How To Create New Users In Mysql With PRIVILEGES

Adding New User In MySQL We can create users in MySQL in two ways: 1) By using statements intended for creating accounts, such as CREATE USER or GRANT 2) By manipulating the MySQL grant tables directly with statements such as INSERT, UPDATE, or DELETE I will show you how, can we add user using the first method, that is using MySQL grant command. First, use the mysql program to connect to the server as the MySQL root user. Here root user is representing the Main Super Admin kind of user. If we have password for this Super user root then perform the following command, First, use the mysql program to connect to the server as the MySQL root user: shell> mysql --u=root –p The system will ask you for password, then enter the password Shell>******* If you don’t have any password set for the Super User root, u can connect to the MySQL server as follows, shell> mysql --user=root Then select the mysql database (Note:: here the name of the database is it

Short Tutorials On UML and UML Class Diagram

Image
UML Stands For Unified Modeling Language. Class Diagram:: The purpose of the class diagram is to show the types being modeled within the system and there relationship. In an object oriented application, classes have attributes (member variables), operations (member functions) and relation-ships with other classes. The UML class diagram can depict all these things quite easily. For Example, for the following public class Customer, Class Customer{ public String name; public String address; public String creditRating(){ } } Class Diagram is as follows, Figure 1: Class Diagram The UML representation of a class is a rectangle containing