Tuesday, 22 May 2012

Characteristics of a Network

Every network is characterized by a set of properties or factors that determines the usability of the network. These characteristics may be imposed due to hardware limitations or due to the implementation technique used. The seven major characteristics of a network are described here.

User Applications and Network - Balancing Point

There are plenty of applications that rely on a network for its operation. Applications can effect network performance and, conversely network performance can effect applications. So a careful prioritization has to be implemented so as to maintain a perfect balance between user experience and running cost.

Physical Components of a Network

A network is a collection of interconnected devices and end systems such as computers, servers etc which can communicate with each other. Networks can be found in different types of environments such as home, small office or large enterprises. Every network is composed of a few essential components which are described here.

Saturday, 19 May 2012

Geolocation in HTML5

HTML5 has added plenty of resources that enhances the web browsing experience of its users. As a web developer, the point to note is that implementing these features on your site is much easier compared to what it has to offer. In this post, I will introduce you to Geolocation, a feature with which you can obtain the position in coordinates of a user.

Thursday, 17 May 2012

Replace default Blogger Title With Post Title

You might have noticed that the default title for your blogger pages is the name of your blog itself. The disadvantage of using the default settings is that you will see the same title for all your posts. So if a user bookmarks any of your posts, he will see the blog name as the bookmark instead of the post title. This can also have a negative impact on search results as priority will be given to your blog name rather than what you post. You can easily modify the template to make the title change dynamically according to your posts, which is explained in this post.

Wednesday, 16 May 2012

Import CSV file to a Database using PHP

A CSV file, as the name suggests, contains a list of values separated by comma. The end of each row is marked by a line break. This is one of the oldest file format used in computers and hence is supported in almost all operating systems. In this post, I will describe how to use a CSV file to populate a MySQL database.

Check if Remote File Exists using PHP

You can easily check if a file exists using the PHP function file_exists(), but this function is limited to files within the same server. It will not work if you specify a location on a different domain. In that case you might want to use functions like file_get_contents(). Using these functions will download the whole file just to make sure that the file exists. This will take time and consume more memory. But this might not be what you want. You might just want to check if the file exists and not download it. In this post I have included a function with which you can do exactly the same.

INSERT IGNORE in MySQL

When you try to insert a new record in MySQL and the primary key specified in the insert query already exists, then an error will occur and the query will be aborted. Using the "IGNORE" keyword prevents errors from occurring. The records containing duplicate primary keys are ignored and the rest of the records are added. In the former case, no record will be inserted if such an error occurs.

Tuesday, 15 May 2012

Use PHP with MySQL

The main reason for many web developers to learn a scripting language like PHP is because of the ease with which it can interact with databases. In this post I will show you how to use PHP and the MySQL database to store information on the web and include it into your website. Before you read this tutorial you should have at least a basic knowledge of how to use PHP.

Introduction to AJAX

AJAX stands for Asynchronous JavaScript And XML and is a technique used by web developers to make their web sites fast and dynamic. The advantage of using AJAX is that you can update a part of your webpage without reloading the whole page. That is you can send and receive data to and from a server without refreshing  the page. This enables you to minimize data transfer and hence improve performance. Now in this post, lets see how to start using AJAX on your web application.

Monday, 14 May 2012

Tables in HTML

Tables are one of the most common elements that you see on a web page that are used to organize and display data. Using a table, the data can be represented as rows and columns with suitable heading for each. It quite easy to create a table for your web page as it requires the understanding of only a few tags. So, in this post  lets see how to create a table in html.

Introduction to Image Maps

Image maps helps us to specify areas in an image that can be clicked and works similar to a hyperlink. This can be used to make web pages more interactive and user friendly. A single image can have a number of regions defined each pointing to a different URL. In this post, all required tags along with examples are given to gain a complete understanding of image maps.

Saturday, 12 May 2012

Add Images To Your Web Page

Images are an important part of every page and adding a few of them will really make your page more attractive. It is quite easy to add an image to a web page, but there are several things to keep in mind while adding images to balance the performance and quality. In this post, I have described how to add an image and also the various parameters that goes along with the <img> tag.

Introduction to HTML Links or Hyperlinks

HTML Links or Hyperlinks are letters, words or images that can be clicked to move from one page on the web to another or to navigate within a single page. These links are responsible for linking one web page to another and make internet browsing easier. In HTML, a hyperlink can be created using the <a> tag. A hyperlink can be made to point to a different section in the same page or to a different page in the same domain or to a different page in another domain. It can also be used to send an email to a specific email address. Continue reading this post to know how all these can be done.

Friday, 11 May 2012

How a Mobile Phone Call is Made

For most of us, a mobile phone is a part of the life, and we use it regularly to make or receive a number of calls. Have you ever wondered how a mobile phone establishes a call or receives a call. If you think yes, then read on. In this post I have tried to explain the steps that occur to establish a mobile phone call. Before jumping to the steps, you need to know some basic terms related to mobile phone communication system which is also given. After that, the steps involved in making and receiving a call is also described.

Wednesday, 9 May 2012

Create JSON from MySQL To use with AJAX

Now a days most websites use the power of AJAX to make their website more lively and productive. To transfer large amount of raw data, that JavaScript can process, the best way is to transfer it as a JSON file. It is quite easy for a PHP script to generate a JSON file from raw data. This data can be received using a suitable AJAX call. As JavaScript can easy parse JSON object, the rest of the processing with the received data can be done using JavaScript.

Saturday, 5 May 2012

Photography - Position Your Subject, Cheat AutoFocus

Do you still take a snap with the subject at the centre of the frame..?? Well, keeping the subject at the centre stage is suitable for stage events and is not always pleasing for a photograph. To make your photograph better, it is sometimes required to move the subject to a side of the frame. There are some simple tricks that you can try to achieve this. Remember, this does not require a costly DSLR, it can be done even with an ordinary point to shoot camera.

Thursday, 3 May 2012

Make a case sensitive MySQL Search

You might have noticed that when you search for a string in MySQL using '=' or 'LIKE' keyword, the search is not case sensitive. That is you will receive all records irrespective of the case (Uppercase or Lowercase). This is advantageous in several cases, but there are situations when you want the search to be case sensitive.

Get the details of an image in PHP

Every image file has a header section in it which describes the size of the image, its type and other parameters. This header can be used to retrieve the image details. It can be helpful in a PHP program either to validate the file type or to prepare the image for output. This function can be used to find the actual file type (GIF, JPEG...) eventhough the file extention provided is different or is not provided. This function can be used along with file upload scripts so that the actual file type can be verified.