Find the Latitude and Longitude using Gmap


Google gives the great Javascript Api for finding the Location latitude and longitude by just giving the address only

This is following code

<script src=”;v=2&amp;sensor=true&amp;key=ABQIAAAANez3-95VQQxZUR1e1BaC7RQlRyH5qh-HDT3ImsMIYwyhpUeTghSwTS8yZGHT9D9mFG6mgXkotPdcKw&#8221; type=”text/javascript”></script>

var address =’chennai’;

var geocoder = new GClientGeocoder();

if ( geocoder ) {
function(point) {
if ( !point ) {
//alert(address + ” not found”);
$(“#error”).html(address + ” not found”);
} else {

if you need more details please visit here

How to hack websites using Joomla


Joomla! is an open source content management system platform for publishing content on the World Wide Web and intranets as well as a Model–view–controller (MVC) Web application framework. It is written in PHP, stores data in MySQL and includes features such as page caching, RSS feeds, printable versions of pages, news flashes, blogs, polls, search, and support for language internationalization. Joomla is used at 24, or 0.24%, of the 10,000 most popular websites (as ranked by Alexa).

  • In keeping with the stated vision of “Software that is free, secure and of high-quality,” any third-party extensions submitted to the official Joomla! Extension Directory (JED) web page, which was already packed with over 3800+ extensions listed as of December 15, 2009, must now also conform to the GPLv2 license for free distribution. This has allegedly caused some predictable objections from some for-profit plugin vendors.
  • Joomla! 1.5.x will work with any number of domain names in one installation, but showing different content for each one requires the use of third party extensions or modifications to the core or server configuration. However, each page can be configured to use a different template and/or can be made accessible via different domains using the “external link” menu option in Joomla! which appears as a different site to the user.
  • Bi-directional language templates that make use of Joomla!’s comprehensive bi-directional language support, other than those included with the standard install, are less common, and many don’t allow for easy switching between LTR and RTL language formats. Most other templates can be easily modified via Joomla!’s built-in template editor.
  • Access control granularity beyond Joomla! 1.5.x’s nine built-in user groups currently requires the use of third-party extensions, although this is planned for Joomla! 1.6.
  • Article organization beyond Joomla! 1.5.x’s current Section/Category hierarchy requires the use of third party extensions, however flexible category structure support is planned for Joomla 1.6
  • All “pages” (views) in Joomla! are referenced in the system by a unique ID number assigned by way of its “menu item” (link). So, for any page to function properly as part of the framework, it must have at least one menu item associated with it, whether that menu item is visible or not. This may be initially confusing to some newcomers.

By October, 2009, the 2009 Open Source CMS Market Share Report reached the conclusion that Joomla! is the web’s most popular open source content management system. That conclusion was based on an extensive analysis of rate of adoption patterns and brand strength and was backed by a survey of users.

.Htaccess Tips and Tricks

Rewrite URLs using htacccess

Upper case URL to lower case

RewriteCond %{REQUEST_URI} !([A-Z]+)
RewriteRule .* – [S=27]
RewriteRule ^(.*)A(.*)$ http://%{HTTP_HOST}/$1a$2 [R=301,L]
RewriteRule ^(.*)B(.*)$ http://%{HTTP_HOST}/$1b$2 [R=301,L]
RewriteRule ^(.*)C(.*)$ http://%{HTTP_HOST}/$1c$2 [R=301,L]
RewriteRule ^(.*)D(.*)$ http://%{HTTP_HOST}/$1d$2 [R=301,L]
RewriteRule ^(.*)E(.*)$ http://%{HTTP_HOST}/$1e$2 [R=301,L]
RewriteRule ^(.*)F(.*)$ http://%{HTTP_HOST}/$1f$2 [R=301,L]
RewriteRule ^(.*)G(.*)$ http://%{HTTP_HOST}/$1g$2 [R=301,L]
RewriteRule ^(.*)H(.*)$ http://%{HTTP_HOST}/$1h$2 [R=301,L]
RewriteRule ^(.*)I(.*)$ http://%{HTTP_HOST}/$1i$2 [R=301,L]
RewriteRule ^(.*)J(.*)$ http://%{HTTP_HOST}/$1j$2 [R=301,L]
RewriteRule ^(.*)K(.*)$ http://%{HTTP_HOST}/$1k$2 [R=301,L]
RewriteRule ^(.*)L(.*)$ http://%{HTTP_HOST}/$1l$2 [R=301,L]
RewriteRule ^(.*)M(.*)$ http://%{HTTP_HOST}/$1m$2 [R=301,L]
RewriteRule ^(.*)N(.*)$ http://%{HTTP_HOST}/$1n$2 [R=301,L]
RewriteRule ^(.*)O(.*)$ http://%{HTTP_HOST}/$1o$2 [R=301,L]
RewriteRule ^(.*)P(.*)$ http://%{HTTP_HOST}/$1p$2 [R=301,L]
RewriteRule ^(.*)Q(.*)$ http://%{HTTP_HOST}/$1q$2 [R=301,L]
RewriteRule ^(.*)R(.*)$ http://%{HTTP_HOST}/$1r$2 [R=301,L]
RewriteRule ^(.*)S(.*)$ http://%{HTTP_HOST}/$1s$2 [R=301,L]
RewriteRule ^(.*)T(.*)$ http://%{HTTP_HOST}/$1t$2 [R=301,L]
RewriteRule ^(.*)U(.*)$ http://%{HTTP_HOST}/$1u$2 [R=301,L]
RewriteRule ^(.*)V(.*)$ http://%{HTTP_HOST}/$1v$2 [R=301,L]
RewriteRule ^(.*)W(.*)$ http://%{HTTP_HOST}/$1w$2 [R=301,L]
RewriteRule ^(.*)X(.*)$ http://%{HTTP_HOST}/$1x$2 [R=301,L]
RewriteRule ^(.*)Y(.*)$ http://%{HTTP_HOST}/$1y$2 [R=301,L]
RewriteRule ^(.*)Z(.*)$ http://%{HTTP_HOST}/$1z$2 [R=301,L]
RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1 [R=301,L]

Rewriting product.php?id=12 to product-12.html

1 RewriteEngine on
2 RewriteRule ^product-([0-9]+)\.html$ product.php?id=$1

Rewriting product.php?id=12 to product/ipod-nano/12.html

1 RewriteEngine on
2 RewriteRule ^product/([a-zA-Z0-9_-]+)/([0-9]+)\.html$ product.php?id=$2

Redirecting non www URL to www URL

1 RewriteEngine On
2 RewriteCond %{HTTP_HOST} ^testl\.net$
3 RewriteRule (.*)$1 [R=301,L]

Rewriting to

1 RewriteEngine On
2 RewriteRule ^([a-zA-Z0-9_-]+)$ user.php?username=$1
3 RewriteRule ^([a-zA-Z0-9_-]+)/$ user.php?username=$1

Change the Sub domain as directory

RewriteCond %{HTTP_HOST} ^$ [OR]
RewriteCond %{HTTP_HOST} ^$
RewriteRule ^(.*)$ http:// [R=301,L]

Redirecting the domain to a new subfolder of inside public_html

1 RewriteEngine On
2 RewriteCond %{HTTP_HOST} ^test\.com$ [OR]
3 RewriteCond %{HTTP_HOST} ^www\.test\.com$
4 RewriteCond %{REQUEST_URI} !^/new/
5 RewriteRule (.*) /new/$1

Prevent Directory Listing

Add any of the following snippet to avoid directory listing.

1 Options -Indexes


1 IndexIgnore *

Find a page is home page or not in joomla


i try to just find a page is loaded in my template is home page or not in joomla CMS

this is code i found in net

<?php if(JRequest::getVar(‘view’) == “frontpage” ) : ?>
<!– your home page code –>
<?php else : ?>
<!– your code –>
<?php endif; ?>

you can do you own in home page 🙂