Salman A.

29 Followers
3 Blog Followers
Following: 7
Following Blogs: 0

Latest Activity

Google Maps Marker Generator with Dynamic Labels

Salman A. posted an article on - Jun 25, 2011, 5:42 am
Few hours ago I stumbled upon a question on stackoverflow.com where someone asked if it was possible to overlay a number on top of a custom Google map marker? Something like creating: from this: without using Photoshop! Read more...
Comment - Like

Redirecting Your Visitors to Your Preferred Domain

Salman A. posted an article on - Mar 31, 2011, 6:04 am
A typical website is configured to serve the same content via two addresses: example.com and www.example.com. This redundancy will increase the chances of someone reaching that website directly; but poses a problem for search engines, and you. Search engines treat a domain and its subdomains ...
Comment - Like

Zoom-to-Fit All Markers on Google Map v3

Salman A. posted an article on - Mar 15, 2011, 2:41 am
Google Maps API version 3, like its predecessor, allows you to automatically center and zoom the map around a set of coordinates. This is useful when you add markers or other overlays to a Google map programmatically; the API can center and zoom the map optimally so that all overlays are visible at ...
Comment - Like

PNG Color Problem in Internet Explorer

Salman A. posted an article on - Mar 7, 2011, 6:22 am
PNG is the most versatile image file format for web graphics. The PNG image file format: Supports palette-based, grayscale and RGB images Features loss-less data compression, full alpha channel and interlacing Provides higher compression when compared with equivalent GIF image...
Comment - Like

URL Rewriting On IIS/PHP Using PATH_INFO

Salman A. posted an article on - Feb 17, 2011, 3:37 am
IIS does not directly support URL rewriting. For this purpose you need extensions such as Helicon Tech ISAPI Rewrite, Ionic's Isapi Rewrite Filter or URL Rewrite Module for IIS 7.0. Without such extensions, PHP applications that capitalize on URL rewriting may work on IIS with not-so-clean URLs; or ...
Comment - Like

Multiple Submit Buttons: Changing Order of Default Button

Salman A. posted an article on - Jan 24, 2011, 4:34 am
When a form contains more than one submit button, the name-value pair submitted by the browser is that of the button that was activated (via click for example). But what happens if you press "Enter" to submit the form? The answer is simple: the name-value pair submitted by the browser is that of the...
Comment - Like

Load JavaScript Files Dynamically Using Prototype Framework

Salman A. posted an article on - Jul 6, 2010, 3:13 am
At times you may want to load JavaScript dynamically after the page is loaded. Selective, dynamic or lazy loading of JavaScript files can help you: Decrease the initial (or total) download size of page Increase the download performance of page Increase the rendering performance o...
Comment - Like

Running a Background Process from PHP on Linux

Salman A. posted an article on - Apr 14, 2010, 3:13 am
While PHP is capable of handling just about anything, there are times when you must take the load away from PHP and hand it over to another program. Processing huge amount of data is one case; examples include sending thousands of emails, moving thousands of files from one location to another, b...
Comment - Like

Change Z-Index of Google Map Markers

Salman A. posted an article on - Mar 26, 2010, 5:18 am
Google Maps API stacks the markers on the map upon its own discretion. However at times you may want to change the stacking order of specific markers; for example you may want to place a marker on top of all other markers so that it is always fully visible and emphasized. A marker's stacking ...
Comment - Like
Salman A. is following
Salman A. has updated the About Me section
Salman A. has updated the About Me section

Selecting Random Records from a Table

Salman A. posted an article on - Aug 18, 2009, 7:53 am
How do you go about selecting N random records from a database? You can always write code for this purpose but that code will be complicated, long and slow-performer. You can instead write a query and let the database handle all the logic for you. Read more...
Comment - Like

Adding Street View Support to Google Maps

Salman A. posted an article on - Jul 26, 2009, 6:05 am
Google Maps API version 2.104 introduces new classes that allow you to integrate Google Street View into your Google Maps. Google Street View provides 360° horizontal and 290° vertical panoramic views for various streets around the world. The following demo shows how you can use the Google ...
Comment - Like

Determine Blogger Page Type From JavaScript Using Template Codes

Salman A. posted an article on - Dec 31, 1969, 7:00 pm
You can check the Blogger page type (index, item or archive) from JavaScript by adding this template code to the head section of your Blogger template: Read more...
Comment - Like

Retrieve Title, Description and Thumbnail of a YouTube Video Using JavaScript and AJAX

Salman A. posted an article on - Dec 31, 1969, 7:00 pm
The YouTube Data API allows an application to interact with YouTube and perform a variety of operations; such as searching for videos, retrieve video information and upload a video on behalf of a user. The API also provides programmatic access to the video and user information stored on YouTube. Maj...
Comment - Like

PHP Rounded Corner Graphics Generator Script

Salman A. posted an article on - Dec 31, 1969, 7:00 pm
The following PHP code sample uses GD library functions to dynamically generate rounded corner graphics. This PHP script allows you to specify corner radius, corner color and background color and generates the graphics in GIF format. Use this script to dynamically generate rounded corners that blend...
Comment - Like

YouTube JavaScript API Player with Playlist

Salman A. posted an article on - Dec 31, 1969, 7:00 pm
I have received appreciable feedback on my previous articles about embedding single and multiple YouTube videos in webpages. Based on that, I have created another example for embedding multiple YouTube videos with some enhancements: JavaScript driven playlist The video playlist is eas...
Comment - Like

VBScript Ceil and Floor Functions

Salman A. posted an article on - Dec 31, 1969, 7:00 pm
VBScript does not have native Ceiling and Floor functions. In order to use these function in your financial or mathematical applications, you will have to write your own VBScript implementation. By definition: The ceiling and floor functions map a real number to the next largest or next ...
Comment - Like

Box with Round Corners Using CSS and Images - Part 2

Salman A. posted an article on - Dec 31, 1969, 7:00 pm
This is another technique for creating round corners using CSS and images. This technique uses nine nested DIVs and images that are positioned and tiled using CSS background-position and background-repeat properties. It does not use any absolute positioning, margin positioning or hacks. As usual, I ...
Comment - Like

Installing PHP 5 on IIS 5.1/IIS 6.0 with FastCGI

Salman A. posted an article on - Dec 31, 1969, 7:00 pm
Rumor has it that a PHP+FastCGI installation provides a significant performance boost compared to a regular PHP+CGI installation. Some claim that it is even better than a PHP+ISAPI installation as it allows PHP to run just the way it is supposed to be without the inherent performance penalty associa...
Comment - Like

About Me

Just another geek

Salman A.'s Blogs:

Salman A.'s Followers

Salman A. is Following

Invite Your Friends

Invite your contacts to blogged from:
gmail yahoo