This weekend, I got the chance to play around with HTML5 maps by Simplemaps.com. Here are the stuff you need to know to set up HTML5 maps on your website and my thoughts on the same.
Almost all web browsers by default highlight the selected text on a webpage with a light blue background. But did you know that using CSS, you can change the color, background-color or any other CSS property of a selected chunk of text?
You may have seen such effect on several beautifully designed websites and may have wondered how is it achieved.
If you are using Apache web server chances are that it is configured by default to show an index of available files in a directory if the standard index files; index.php or index.html are not available in that particular directory.
To avoid such behavior and prevent listing of files in a sub-directory of your site, you can of course configure Apache using .htaccess rules but there is an extremely simple solution that works just as well.
Here are 5 PowerPoint templates that you can use to create Engineering PowerPoint presentations.
5 days ago, I uploaded an application for Nokia Belle that displays Google Maps for your current position and places you search for.
That app was very primitive and could not be called a real map application.
Here is a newer completely overhauled version of it in which I have tried to implement as many features of the Google Maps application as possible. Jump to download link.
Features of gMap v2.0
- Display current position using GPS
- Full touch panning support
- Save locations in a favorites list
- Search for any place on earth
- Get complete weather information of current place on map
- Displays distances and direction of places from your current position
gMap version 2.0 has been released with full support for touch, weather tab, favorites option and better UI.
check it out here: dynamicguru.com/symbian/gmap-2-0-now-with-weather-favorites-feature/
Google Maps is still not supported on most Symbian devices running Belle fp1 & fp2.
So I decided to create a simple map application on my own.
This is a very primitive map app that uses the Google Static Maps API and Google Geocoding API.
Though it can not really substitute for Google Maps app, it does fulfill my map needs to a large extent.
- Displays current position using in-built GPS
- Ability to search for places
- Zoom In/Out
- Move map using on-screen arrows
- Displays distance and direction of your current position from the map position
One of the most common tasks encountered when dealing with numbers in application development is rounding them off.
For this the
Math.round() method comes in handy and can be used like this:
' var someNumber=5.568942354894534; var x=Math.round(someNumber); '
After the line is executed,
x now holds the value 6.
But what if that is not we wanted? What if I wanted to round off the number to 2 places of decimals?