Visual Basic is a third generation event-driven programming language. The Microsoft Corporation released Visual Basic in 1987. It was indeed the first visual development tool from Microsoft. Visual Basic was derived from BASIC and enables rapid application development of graphical user interface applications, access to databases using DAO, RDO, or ADO, and creation of ActiveX controls and objects. The language not only allows Visual Basic programmers to create simple GUI applications, but also helps them develop quite complex applications. Visual Basic allows developers to target Windows, Web, and mobile devices.
Programming in Visual Basic
is a combination of visually arranging components on a form, specifying
attributes and actions of those components. Since the default
attributes and actions ought to be defined for the components, it is
very simple to write a program without the help of a Visual Basic programmer. Forms can be created using drag and drop techniques. Visual Basic
provides many interesting sets of tools to help you in building
exciting and entertaining applications. It provides these tools to make
your life easier, since the entire coding is already written for you.
Moreover, it is a user friendly language which is very effective and
efficient. A tool is used to place controls such as text boxes, buttons,
etc on the form window. Default values will be provided when a control
is created, but it can be changed by the Visual Basic programmer.
Visual Basic is not only a programming language, but it also has a complete graphical development environment. Visual Basic has the ability to develop programs that can be used as a front end application to a database system, and serving as the user interface which collects input from the user and displays formatted output in an attractive format. As the Visual Basic programmer works in the graphical environment, much of the program code is automatically generated by the Visual Basic program. The main object in Visual Basic
is called a form. Once you create forms, you can change the properties
using properties window. Finally, you can add events to your controls.
Events are responses to actions performed on controls.
Using
Visual Basic's tools, you can quickly translate an abstract idea into a
program design which you can actually see on the screen. VB encourages
you to experiment, revise, correct, and network your design until the
project meets your requirements. Visual Basic Programmer use the language in different areas such as Education, Business, Accounting, Marketing and Sales. Visual Basic
supports a number of common programming constructs and language
elements. Once you understand the basics of the language, you can create
powerful applications using Visual Basic.
Visual Basic can
create executables i.e. EXE files, ActiveX controls, but it is primarily
used to develop Windows applications. It is also used to interface web database systems. This generation of Visual Basic continues the tradition of giving you a faster and easier way to create .NET framework-based applications. Visual Basic
also fully integrates the .NET framework and the common language
runtime, which provide language interoperability, garbage collection,
enhanced security, and versioning support.
Sunday, April 29, 2012
Crop Image File Size, Width & Height Using Php Script
Crop Images Contextually
Crop images contextually for faster downloads and higher impact. By cropping maximally and resizing you can convey meaning without slowing down your web pages.
However, we've seen many sites that either use HTML's width and height attributes to resize larger images, or minimally crop and resize images to lose vital information. A better way to create images optimized for the Web is to crop them contextually.
Contextually Cropping
What is cropping contextually? Many times digital images shot for Web use have a border of useless space around the object(s) of interest. Rather than crop to just the film or chip's border, crop contextually down to the minimum dimensions that still convey the meaning or context of your image.
Note how the author is now more recognizable in the cropped version (behind the sunscreen) and the lettering is larger and more legible. Most importantly, the image has more impact, with the subject taking up more of the frame. This cropped image could be shown with a smaller dimension, saving file size.
Resize to a Smaller Thumbnail
Once you've got your image maximally cropped, resize and sharpen it to create a smaller thumbnail image. To give the reader more detail, you can provide a larger version (cropped or uncropped) of the image linked to that thumbnail.
This two-step process of cropping maximally and resizing is what Jakob Nielsen calls "relevance-enhanced image reduction." Nielsen writes that by combining cropping and scaling you can "preserve both content and detail, even at very small sizes." (Nielsen 2000)
Extreme Closeup for a Sneak Preview
Some high fashion sites actually use only the important part of an image as a thumbnail. For example, just the shoulder or neckline of a style - click and you get the full shots with details. This "image tease" technique can add an artistic feel to a site. Let's get up close and personal with our intrepid traveler.
Extreme Cropping through Rearrangement
In extreme cases you could rearrange the target objects and reshoot, or move them closer together in your favorite image editing program. The idea is to use the smallest possible image that still conveys the information you want to display. You may need to bump up font sizes to withstand more extreme image reductions.
JPEG Cropping Caution
Be careful when resaving JPEG images. Reoptimizing an existing JPEG can compound compression artifacts. It is possible to transform JPEGs losslessly, however. Lossless transformations (like 90-degree rotations and flips) require the dimensions of the JPEG to be a multiple of the block size (16x16, 16x8, or 8x8 pixels for color JPEGs). Lossless crops are also possible by cropping to block boundaries with specialized software, like JPEG Wizard.
Crop images contextually for faster downloads and higher impact. By cropping maximally and resizing you can convey meaning without slowing down your web pages.
However, we've seen many sites that either use HTML's width and height attributes to resize larger images, or minimally crop and resize images to lose vital information. A better way to create images optimized for the Web is to crop them contextually.
Contextually Cropping
What is cropping contextually? Many times digital images shot for Web use have a border of useless space around the object(s) of interest. Rather than crop to just the film or chip's border, crop contextually down to the minimum dimensions that still convey the meaning or context of your image.
Note how the author is now more recognizable in the cropped version (behind the sunscreen) and the lettering is larger and more legible. Most importantly, the image has more impact, with the subject taking up more of the frame. This cropped image could be shown with a smaller dimension, saving file size.
Resize to a Smaller Thumbnail
Once you've got your image maximally cropped, resize and sharpen it to create a smaller thumbnail image. To give the reader more detail, you can provide a larger version (cropped or uncropped) of the image linked to that thumbnail.
This two-step process of cropping maximally and resizing is what Jakob Nielsen calls "relevance-enhanced image reduction." Nielsen writes that by combining cropping and scaling you can "preserve both content and detail, even at very small sizes." (Nielsen 2000)
Extreme Closeup for a Sneak Preview
Some high fashion sites actually use only the important part of an image as a thumbnail. For example, just the shoulder or neckline of a style - click and you get the full shots with details. This "image tease" technique can add an artistic feel to a site. Let's get up close and personal with our intrepid traveler.
Extreme Cropping through Rearrangement
In extreme cases you could rearrange the target objects and reshoot, or move them closer together in your favorite image editing program. The idea is to use the smallest possible image that still conveys the information you want to display. You may need to bump up font sizes to withstand more extreme image reductions.
JPEG Cropping Caution
Be careful when resaving JPEG images. Reoptimizing an existing JPEG can compound compression artifacts. It is possible to transform JPEGs losslessly, however. Lossless transformations (like 90-degree rotations and flips) require the dimensions of the JPEG to be a multiple of the block size (16x16, 16x8, or 8x8 pixels for color JPEGs). Lossless crops are also possible by cropping to block boundaries with specialized software, like JPEG Wizard.
New Ajax Star Rating System in Tag Cloud Style using JQuery and PHP
New tutorial in Rating System series is here for you. It is a stylish and animated rating system I created many Ajax based Rating and Voting systems over 99Points.info. You can get
Youtube Style Ratings and Ajax Rating In this rating system i used tag cloud technique, where top times rated star will be show bigger than others. So when you want to give a rate to any image or post, Click on your desired star number from 1-5 and then this star will go to bigger and bigger on each click. This is an awesome and unique rating system. Hope you like. You can get facebook style comment script, facebook style extracting url data, youtube style share button, facebook style profile edit, Ajax search tutorial, Dynamic dropdown using jQuery and Ajax and many others.
New tutorial in Rating System series is here for you. It is a stylish and animated rating system I created many Ajax based Rating and Voting systems over 99Points.info. You can get
Youtube Style Ratings and Ajax Rating In this rating system i used tag cloud technique, where top times rated star will be show bigger than others. So when you want to give a rate to any image or post, Click on your desired star number from 1-5 and then this star will go to bigger and bigger on each click. This is an awesome and unique rating system. Hope you like. You can get facebook style comment script, facebook style extracting url data, youtube style share button, facebook style profile edit, Ajax search tutorial, Dynamic dropdown using jQuery and Ajax and many others.
Youtube Style Ratings and Ajax Rating In this rating system i used tag cloud technique, where top times rated star will be show bigger than others. So when you want to give a rate to any image or post, Click on your desired star number from 1-5 and then this star will go to bigger and bigger on each click. This is an awesome and unique rating system. Hope you like. You can get facebook style comment script, facebook style extracting url data, youtube style share button, facebook style profile edit, Ajax search tutorial, Dynamic dropdown using jQuery and Ajax and many others.
New tutorial in Rating System series is here for you. It is a stylish and animated rating system I created many Ajax based Rating and Voting systems over 99Points.info. You can get
Youtube Style Ratings and Ajax Rating In this rating system i used tag cloud technique, where top times rated star will be show bigger than others. So when you want to give a rate to any image or post, Click on your desired star number from 1-5 and then this star will go to bigger and bigger on each click. This is an awesome and unique rating system. Hope you like. You can get facebook style comment script, facebook style extracting url data, youtube style share button, facebook style profile edit, Ajax search tutorial, Dynamic dropdown using jQuery and Ajax and many others.
How Do I Become a Computer Programmer?
Programming a computer has
always fascinated me. To be able to type a few lines of english into a
machine, and then it does all sorts of things for me, was really
exciting. It still is. If I need to do some task, I just write a
programme to do it for me and I can take the rest of the week off!
If you are a creative or lateral thinking person, computer programming can be very satisfying; especially if you are doing it for yourself or freelance. I've been programming in various languages since about 1987, and I still enjoy doing it.
So how do you become a programmer? Where do you start?
First off, you need to be able to work a computer. How to use the mouse, keyboard, move files, get around explorer and so on. You also need to have a reasonable ability in math. (You can learn it as you go along as well.)
Then you need to decide what type of programmes you would like to write - financial, games, operating systems, machine controllers, etc - because each type of programming has a particular type of programming language that is particularly suited to it. For instance, Delphi is fine tuned for Databases, C++ is good for operating systems, Visual Basic works well in web applications.
Then you need to select the programming language that you would like to use. eg. Delphi, C++, Visual Basic, etc, etc.
You will have to buy yourself a Compiler, the software package that you use to write your programs. (Or use one at your school or library, or borrow a friends computer if he's got it installed. But eventually you will have to buy your own.)
Then you need to either go on a course that offers tuition in this language, or start teaching yourself; in which case you will need books to refer to. Courses are available via correspondence, at technikons or at universities.
Then you need a couple of years (part time) to do all this studying. Maybe after a month or two you will be able to turn out programmes that are kinda useful.
Programming is a bunch of
commands written in a "language" that is normal english words, but a small finite set of them, together with symbols and punctuation that all has a particular function. For example:
Procedure WriteSomething ;
begin
form1.edit1.text := 'Hi there guys" ;
form1.edit1.visible := true ;
Application.Processmessages ;
end ;
This little bit of programming would put the text "Hi there guys" into a little box on the screen; but note: This is only part of a larger programme, and won't work by itself. If you leave out one of the semi-colons or a full stop, the program won't work!
So you have to write this "english" in a particular
format, so that the compiler can "interpret" it, and convert it into machine code so that the computer can "understand" it and execute it.
A
compiler is the software that takes your programme, written in this pseudo english, and converts it into a computer readable and executable form.
If you are a creative or lateral thinking person, computer programming can be very satisfying; especially if you are doing it for yourself or freelance. I've been programming in various languages since about 1987, and I still enjoy doing it.
So how do you become a programmer? Where do you start?
First off, you need to be able to work a computer. How to use the mouse, keyboard, move files, get around explorer and so on. You also need to have a reasonable ability in math. (You can learn it as you go along as well.)
Then you need to decide what type of programmes you would like to write - financial, games, operating systems, machine controllers, etc - because each type of programming has a particular type of programming language that is particularly suited to it. For instance, Delphi is fine tuned for Databases, C++ is good for operating systems, Visual Basic works well in web applications.
Then you need to select the programming language that you would like to use. eg. Delphi, C++, Visual Basic, etc, etc.
You will have to buy yourself a Compiler, the software package that you use to write your programs. (Or use one at your school or library, or borrow a friends computer if he's got it installed. But eventually you will have to buy your own.)
Then you need to either go on a course that offers tuition in this language, or start teaching yourself; in which case you will need books to refer to. Courses are available via correspondence, at technikons or at universities.
Then you need a couple of years (part time) to do all this studying. Maybe after a month or two you will be able to turn out programmes that are kinda useful.
Programming is a bunch of
commands written in a "language" that is normal english words, but a small finite set of them, together with symbols and punctuation that all has a particular function. For example:
Procedure WriteSomething ;
begin
form1.edit1.text := 'Hi there guys" ;
form1.edit1.visible := true ;
Application.Processmessages ;
end ;
This little bit of programming would put the text "Hi there guys" into a little box on the screen; but note: This is only part of a larger programme, and won't work by itself. If you leave out one of the semi-colons or a full stop, the program won't work!
So you have to write this "english" in a particular
format, so that the compiler can "interpret" it, and convert it into machine code so that the computer can "understand" it and execute it.
A
compiler is the software that takes your programme, written in this pseudo english, and converts it into a computer readable and executable form.
What is Flex and Its Advantages
Title:
What is Flex?
Flex is very prominent and familiar with professional developers. Flex is a set of products designed in an effective way based on efficient delivery of high performance.
Flex is a standard-based programming model for high performance rich internet applications. Flex application will take advantage of adobe flash player 9 and this will enable developer to extend the capabilities enables the client with richer applications in real time.
Flex framework represents the presentation tire in multitier architecture applications and will be easy integrated with server-side functionality. If you want to create flex application then, you will start this application on Flex builder, which is IDE with visual layout, debugging, skinning, coder hinting and styling for developing rich Internet applications.
What are various features that make to adopt Flex?
I have started coding with flash since the flash version 4 and get them started coding with flash 4 by the way the only available functions in this version. Later version of flash like Flash 5 until Flash MX 2004, the coding in flash was improved too much with action script 2.0. Therefore, using advanced technology like advanced games advanced application with communication interacting with server, reading data configuration from Xml files.
However, as if now flex changes my way of working with coding writing. I want to get this technology due to it functionalities so I have stated discovering Flex and their programming classes and functions.
I have kept a function in flash to real XML file and parse it to next or previous record and I was passing this function once needed. Now and with Flex, we have predefined http classes that will work after passing URL.
With Flex has predefined functions and classes that enable us to read or synchronize data perfectly. These predefined functions and classes will work for us automatically so that I should focus on animation and interactivity. First, try to use it and see the difference. Personally, I am using Adobe Flex as tool to create RIA (Rich Internet applications).
RIAs developed into adobe Flex is the cross browser and platform compatibility. Rich internet application developed in Flash player.
Implementation of Flex player made the adobe flash player to more and more user's machine.
What is Flex?
Flex is very prominent and familiar with professional developers. Flex is a set of products designed in an effective way based on efficient delivery of high performance.
Flex is a standard-based programming model for high performance rich internet applications. Flex application will take advantage of adobe flash player 9 and this will enable developer to extend the capabilities enables the client with richer applications in real time.
Flex framework represents the presentation tire in multitier architecture applications and will be easy integrated with server-side functionality. If you want to create flex application then, you will start this application on Flex builder, which is IDE with visual layout, debugging, skinning, coder hinting and styling for developing rich Internet applications.
What are various features that make to adopt Flex?
I have started coding with flash since the flash version 4 and get them started coding with flash 4 by the way the only available functions in this version. Later version of flash like Flash 5 until Flash MX 2004, the coding in flash was improved too much with action script 2.0. Therefore, using advanced technology like advanced games advanced application with communication interacting with server, reading data configuration from Xml files.
However, as if now flex changes my way of working with coding writing. I want to get this technology due to it functionalities so I have stated discovering Flex and their programming classes and functions.
I have kept a function in flash to real XML file and parse it to next or previous record and I was passing this function once needed. Now and with Flex, we have predefined http classes that will work after passing URL.
With Flex has predefined functions and classes that enable us to read or synchronize data perfectly. These predefined functions and classes will work for us automatically so that I should focus on animation and interactivity. First, try to use it and see the difference. Personally, I am using Adobe Flex as tool to create RIA (Rich Internet applications).
RIAs developed into adobe Flex is the cross browser and platform compatibility. Rich internet application developed in Flash player.
Implementation of Flex player made the adobe flash player to more and more user's machine.
Facebook Style Wall Posting and Comments System using jQuery PHP and Ajax
Facebook style wall posting and commenting system. Try a new reloaded version of demo which is almost similar to facebook style.
My previous facebook style posting system was not so much like original facebook posting style and also there is no commenting system So I created this tutorial again to complete the commenting system and I tried my best to give my dear users a complete posting script with comments system. Facebook is now a days top social networking site. So I have created some tutorialssimilar to facebook. Youtube style rating is also very popular tutorial on this blog. Hope you like it.
I have used ip check to make user restricted to there posts or comments. They can only there postings.
Two new function missed in source files. One for making links clickable and other for removing tags etc.
My previous facebook style posting system was not so much like original facebook posting style and also there is no commenting system So I created this tutorial again to complete the commenting system and I tried my best to give my dear users a complete posting script with comments system. Facebook is now a days top social networking site. So I have created some tutorials similar to facebook. Youtube style rating is also very popular tutorial on this blog. Hope you like it.
I have used ip check to make user restricted to there posts or comments. They can only there postings.
Two new function missed in source files. One for making links clickable and other for removing tags etc.
There are many awesome tutorials on 99points.info
My previous facebook style posting system was not so much like original facebook posting style and also there is no commenting system So I created this tutorial again to complete the commenting system and I tried my best to give my dear users a complete posting script with comments system. Facebook is now a days top social networking site. So I have created some tutorialssimilar to facebook. Youtube style rating is also very popular tutorial on this blog. Hope you like it.
I have used ip check to make user restricted to there posts or comments. They can only there postings.
Two new function missed in source files. One for making links clickable and other for removing tags etc.
My previous facebook style posting system was not so much like original facebook posting style and also there is no commenting system So I created this tutorial again to complete the commenting system and I tried my best to give my dear users a complete posting script with comments system. Facebook is now a days top social networking site. So I have created some tutorials similar to facebook. Youtube style rating is also very popular tutorial on this blog. Hope you like it.
I have used ip check to make user restricted to there posts or comments. They can only there postings.
Two new function missed in source files. One for making links clickable and other for removing tags etc.
There are many awesome tutorials on 99points.info
Ajax Rating Script - Php & Mysql
Introduction
Frequent visitors of ajax enabled websites, like ajaxian, have all witnessed them already: ajax rating widgets. They are flashy, animated, you can use them to rate the content (usually without refreshing the page) and if you could, you'd present them to your parents and marry them. Compared to the classic rating system, as on IMDb, they incite people to click them, reducing the effective rating process to only one click.
In this tutorial, I want to show you how to create the JavaScript framework to display the animated rating widget and how to connect it to your server backend by using some of the most common Ajax frameworks out there. I clearly separate the page creation from the JavaScript functions and the rating backend, to allow the script to be as flexible as possible and to be easy integrable into your existing website.
This tutorial is not meant to present you with a finished script (even though you could simply copy&paste the end result into your website and make it work without any problems), but rather to explain the design and implementation process that would enable you to create your own widgets if you'd need to. Getting started with the HTML markup
What It Is
This is a rating bar script done with PHP and mySQL that allows users to rate things like can be done all web 2.0-like with no page refresh. It is a major improvement on the previous version because it is now unobtrusive, meaning that if Javascript is off it will still work (although the page will refresh). You can also set the number of rating units you want to use (i.e. 4 stars, 5 stars, or 10 stars) on a rater to rater basis (see samples below or read the docs). A few other changes were made as well see the docs for details. Note that this script isn t tied to any specific system (such as WordPress), so you should be able to adapt it to your situation without too much trouble. What are you waiting for? Check the Ajax Rating demos.
It is most important that there are no line breaks in this code, as this will complicate the DOM tree unnecessarily. If you are uncertain about what I just said, please read the W3Schools HTML DOM Tutorial for further reference, since we are going to access the DOM directly from within our JavaScript.
As you can see, the div container is pretty easy to generate in the server-side scripting language, requiring most of the time only one line:
printf("%s", ratingId, rating);
The "continue" keyword in our JavaScript code, just like in most other programming languages, continues with the next iteration of the loop and prevents the execution of the rest of the code during that iteration. Read the rating value
Now that we have all the rating containers, we can start by reading the rating value written as text inside the div container. To read that value, we access the first child node of the div container, which is a TextNode, and access its nodeValue, which returns the text CDATA in case of text nodes. This is done by the following line:
var rating = ratings[i].firstChild.nodeValue;
There is no graceful way to recover from that error, so I simply decided to continue with the next rating container and prevent that error from happening within the server backend.
Now, we need to loop over the number of stars that are displayed and check what the image graphic will be that is displayed on the star. Using the HTML DOM function createElement(), we initialize a new image and progressively add the respective values to that element. Of course, the first thing we are interested in is the displayed image: we could either test the rating against the current iteration value or we could decrement the rating value during each iteration and test against 1, 0.5 and 0. I decided to decrement the rating during each iteration, which presents me with three simple cases to test: if the rating is greater than or equal than 1, the star is "on", if the rating is exactly 0.5, the star is "half" otherwise, the star is "off". This results in the following code:
for (var j = 0; j < NUMBER_OF_STARS; j++)
{
var star = document.createElement('img');
if (rating >= 1)
{
star.setAttribute('src', './images/stars/rating_on.gif');
rating--;
}
else if(rating == 0.5)
{
star.setAttribute('src', './images/stars/rating_half.gif');
rating = 0;
}
else
{
star.setAttribute('src', './images/stars/rating_off.gif');
}
ratings[i].appendChild(star);
}
Conclusion
Our current JavaScript allows us to transform specially marked div containers into animated rating widgets that we can use in specialized Ajax frameworks to link to our server backend. The HTML markup is completely separated from the JavaScript code, which will leave the user with a not very stylish but still visual display of the current rating in case JavaScript is disabled. I've put together a ZIP file with the current result, containing an HTML file, a CSS file, the JavaScript file and the images. Connect the widget to the server with different frameworks
Please make sure to delete the "window.onload=init_rating;" line in the "script.js" file if you downloaded the .zip file, since we're using the specialized framework onload event.
The examples below are only an illustration of how this given task is achievable with a variety of different JavaScript frameworks. It should not be used as a reference about what framework is superior since not every framework follows the same route and has the same objectives. Before jumping to conclusion, you should read more sources and also hear every site. There are good reasons for dojo not having the $ operator and some interesting points can be found here (in the comments). When you need to decide which framework to chose, base your decision on your specific task and the framework you're most comfortable with. The PHP backend
Frequent visitors of ajax enabled websites, like ajaxian, have all witnessed them already: ajax rating widgets. They are flashy, animated, you can use them to rate the content (usually without refreshing the page) and if you could, you'd present them to your parents and marry them. Compared to the classic rating system, as on IMDb, they incite people to click them, reducing the effective rating process to only one click.
In this tutorial, I want to show you how to create the JavaScript framework to display the animated rating widget and how to connect it to your server backend by using some of the most common Ajax frameworks out there. I clearly separate the page creation from the JavaScript functions and the rating backend, to allow the script to be as flexible as possible and to be easy integrable into your existing website.
This tutorial is not meant to present you with a finished script (even though you could simply copy&paste the end result into your website and make it work without any problems), but rather to explain the design and implementation process that would enable you to create your own widgets if you'd need to. Getting started with the HTML markup
What It Is
This is a rating bar script done with PHP and mySQL that allows users to rate things like can be done all web 2.0-like with no page refresh. It is a major improvement on the previous version because it is now unobtrusive, meaning that if Javascript is off it will still work (although the page will refresh). You can also set the number of rating units you want to use (i.e. 4 stars, 5 stars, or 10 stars) on a rater to rater basis (see samples below or read the docs). A few other changes were made as well see the docs for details. Note that this script isn t tied to any specific system (such as WordPress), so you should be able to adapt it to your situation without too much trouble. What are you waiting for? Check the Ajax Rating demos.
It is most important that there are no line breaks in this code, as this will complicate the DOM tree unnecessarily. If you are uncertain about what I just said, please read the W3Schools HTML DOM Tutorial for further reference, since we are going to access the DOM directly from within our JavaScript.
As you can see, the div container is pretty easy to generate in the server-side scripting language, requiring most of the time only one line:
printf("%s", ratingId, rating);
The "continue" keyword in our JavaScript code, just like in most other programming languages, continues with the next iteration of the loop and prevents the execution of the rest of the code during that iteration. Read the rating value
Now that we have all the rating containers, we can start by reading the rating value written as text inside the div container. To read that value, we access the first child node of the div container, which is a TextNode, and access its nodeValue, which returns the text CDATA in case of text nodes. This is done by the following line:
var rating = ratings[i].firstChild.nodeValue;
There is no graceful way to recover from that error, so I simply decided to continue with the next rating container and prevent that error from happening within the server backend.
Now, we need to loop over the number of stars that are displayed and check what the image graphic will be that is displayed on the star. Using the HTML DOM function createElement(), we initialize a new image and progressively add the respective values to that element. Of course, the first thing we are interested in is the displayed image: we could either test the rating against the current iteration value or we could decrement the rating value during each iteration and test against 1, 0.5 and 0. I decided to decrement the rating during each iteration, which presents me with three simple cases to test: if the rating is greater than or equal than 1, the star is "on", if the rating is exactly 0.5, the star is "half" otherwise, the star is "off". This results in the following code:
for (var j = 0; j < NUMBER_OF_STARS; j++)
{
var star = document.createElement('img');
if (rating >= 1)
{
star.setAttribute('src', './images/stars/rating_on.gif');
rating--;
}
else if(rating == 0.5)
{
star.setAttribute('src', './images/stars/rating_half.gif');
rating = 0;
}
else
{
star.setAttribute('src', './images/stars/rating_off.gif');
}
ratings[i].appendChild(star);
}
Conclusion
Our current JavaScript allows us to transform specially marked div containers into animated rating widgets that we can use in specialized Ajax frameworks to link to our server backend. The HTML markup is completely separated from the JavaScript code, which will leave the user with a not very stylish but still visual display of the current rating in case JavaScript is disabled. I've put together a ZIP file with the current result, containing an HTML file, a CSS file, the JavaScript file and the images. Connect the widget to the server with different frameworks
Please make sure to delete the "window.onload=init_rating;" line in the "script.js" file if you downloaded the .zip file, since we're using the specialized framework onload event.
The examples below are only an illustration of how this given task is achievable with a variety of different JavaScript frameworks. It should not be used as a reference about what framework is superior since not every framework follows the same route and has the same objectives. Before jumping to conclusion, you should read more sources and also hear every site. There are good reasons for dojo not having the $ operator and some interesting points can be found here (in the comments). When you need to decide which framework to chose, base your decision on your specific task and the framework you're most comfortable with. The PHP backend
Ten Most Basic Tags For HTML
HTML is a language used in text and image for formatting by web
browsers to dynamically format web pages. Many of the text elements are
found in the 1988. These HTML are not a programming language they are
markup language. These markup language has a set of markup tags, These
tags are describe web pages in HTML. HTML markup tags are usually called
HTML tags.
These tags are keywords surrounded by angle brackets like . These HTML tags normally come in pairs. The first tag in a pair is the start tag, the second tag is the end tag. The Start and end tags are also called opening tags and closing tags. Using HTML codes that load web pages within web pages may crash your visitors browser. By using an excessive pop up in windows frames by placing scrolling text within the status bar can be very irritating and cause your visitors to leave your web site and never return. The Basic of HTML is Headings. The HTML headings are defined with the
to tags. Example: This is a heading
tag. Example:
This is a paragraph.
HTML links are defined with the tag.These link address is specified in the href attribute. Example:This is a link The HTML images are defined with the tag. HTML Document Example
This is my first paragraph.
Header is the location where you put tittle of your homepage, discription, keywords, and authorIt starts with command and finish with command . Example: The HTML Basic . Title is start with and end with </tittle> for the title of your homepage. Example: <title>Welcome to Home Page. Description Example: Keywords Example: Author The Alignment of Paragraphs as Bold HTML you will see: HTML Italic HTML you will see: HTML Center
HTML We can Use the tag if you want a line break (a new line) without starting a new paragraph: Example
This is a paragraph with line breaks
While HTML code can be written in any text editor, even the most basic one, you cannot build a website in a WYSIWYG editor if you don't have the editor. This may cause a problem in portability for those who don't know HTML because they will need to have the editor installed in the computer they want to use to build, modify or update a web page.
These tags are keywords surrounded by angle brackets like . These HTML tags normally come in pairs. The first tag in a pair is the start tag, the second tag is the end tag. The Start and end tags are also called opening tags and closing tags. Using HTML codes that load web pages within web pages may crash your visitors browser. By using an excessive pop up in windows frames by placing scrolling text within the status bar can be very irritating and cause your visitors to leave your web site and never return. The Basic of HTML is Headings. The HTML headings are defined with the
to tags. Example: This is a heading
This is a heading
This is a heading
The HTML paragraphs are defined with thetag. Example:
This is a paragraph.
HTML links are defined with the tag.These link address is specified in the href attribute. Example:This is a link The HTML images are defined with the tag. HTML Document Example
This is my first paragraph.
Header is the location where you put tittle of your homepage, discription, keywords, and authorIt starts with command and finish with command . Example: The HTML Basic . Title is start with and end with </tittle> for the title of your homepage. Example: <title>Welcome to Home Page. Description Example: Keywords Example: Author The Alignment of Paragraphs as Bold HTML you will see: HTML Italic HTML you will see: HTML Center
HTML We can Use the tag if you want a line break (a new line) without starting a new paragraph: Example
This is a paragraph with line breaks
While HTML code can be written in any text editor, even the most basic one, you cannot build a website in a WYSIWYG editor if you don't have the editor. This may cause a problem in portability for those who don't know HTML because they will need to have the editor installed in the computer they want to use to build, modify or update a web page.
Upload Image Without Refresh Page - Asynchronous Image File Upload Without Ajax
Through concept such as Ajax and scripting languages like PHP, we now
have a much robust set tools with which to deal with imaging. Thorugh
Ajax, we can dynamically load and display images without the rest of the
page having to reload, which speeds up the process considerably. We
also have more control over what the user sees while the screen or
images load. Users are generally understanding
of load times, provided that you let them know what is happening.
Thorugh Ajax and a little PHP magic, we can help the user's experience
be a seamless and enjoyable as possible.
The basic uploading, manipulating and dynamically displaing images using PHP and Ajax.
Uploading Images
I suppose it is neccessary to bring a little bad news to Ajax at this point, it is not possible to process a file upload through the XMLHtrtpRequest Object. The reason of this is that javascript has no access to your computer's file system. While this is somewhat disappointing, there are still ways to perform Ajax-like functionality for this wighout making use of the XMLHttpRequest Object. Clever developeres have discovered that you can use hidden iframes to post a form request, thereby allowing for a image upload wiothout refresh.
I am designing a website with ajax and php. My main target is doing everything without full page refresh. I have done everything completed. I solved it partially using IFRAME.
By setting the iframe's CSS display property to none, the element is persent on the page to be utilized by the upload form, but not visible to the end user. by assiging a name to the iframe tag, you can use the target attribute in the form tag to post the request to the hidden iframe. Once you have the iframe configured, you can perform any uploads you like, and then use Ajax to perform any extra functionality. Consider the following example, which will allow yout to upload an image to a folder of your specification. Consider the code, which will allow you to create application.
An Ajax-enabled file upload system that uses hidden iframes to hide the upload
The code to create form, with a hidden iframe for processing
As you can see, you are using the same functionality and you will now use it to load the recently uploaded image into your
web page dynamically and without a screen refresh. The uploading function will still perform your form submission, but it is now coupled with a function called downloading, which will fire once the process_upload.php script has finished uploading the image (determined by the onload evernt). The doneuploading function takes ther parent frame of the hidden iframe and the fine name as arguments. It then users Ajax to dyanmically load the image the speicified element of ther parent frame.
Im trying to create a page for a picture framing site where users can upload images to see how they would look framed.
Uploading images can be broken down into the three following steps which will be looked at in turn:
* An HTML form with a browse button to allow the client to choose which file to upload
* A script to process the upload, validate the file, name it and place it in the file system
* Lastly a page to advise the client the upload was a success
* Is there a AJAX based solution or PHP based solution to check the filesize a user is trying to upload via a form.
* If the filesize exceeds more than 2 MB we want to give a message to the user that they need to upload a smaller file
size.
You can upload ZIP file of all your images in one shoot. You can upload image using zip file.
* You can create zip file for image, doc file and other file.
* This script find only jpg file uploaded and other file deleted.
* You can set which extension allowed or not allowed using this script uploaded.
The basic uploading, manipulating and dynamically displaing images using PHP and Ajax.
Uploading Images
I suppose it is neccessary to bring a little bad news to Ajax at this point, it is not possible to process a file upload through the XMLHtrtpRequest Object. The reason of this is that javascript has no access to your computer's file system. While this is somewhat disappointing, there are still ways to perform Ajax-like functionality for this wighout making use of the XMLHttpRequest Object. Clever developeres have discovered that you can use hidden iframes to post a form request, thereby allowing for a image upload wiothout refresh.
I am designing a website with ajax and php. My main target is doing everything without full page refresh. I have done everything completed. I solved it partially using IFRAME.
By setting the iframe's CSS display property to none, the element is persent on the page to be utilized by the upload form, but not visible to the end user. by assiging a name to the iframe tag, you can use the target attribute in the form tag to post the request to the hidden iframe. Once you have the iframe configured, you can perform any uploads you like, and then use Ajax to perform any extra functionality. Consider the following example, which will allow yout to upload an image to a folder of your specification. Consider the code, which will allow you to create application.
An Ajax-enabled file upload system that uses hidden iframes to hide the upload
The code to create form, with a hidden iframe for processing
As you can see, you are using the same functionality and you will now use it to load the recently uploaded image into your
web page dynamically and without a screen refresh. The uploading function will still perform your form submission, but it is now coupled with a function called downloading, which will fire once the process_upload.php script has finished uploading the image (determined by the onload evernt). The doneuploading function takes ther parent frame of the hidden iframe and the fine name as arguments. It then users Ajax to dyanmically load the image the speicified element of ther parent frame.
Im trying to create a page for a picture framing site where users can upload images to see how they would look framed.
Uploading images can be broken down into the three following steps which will be looked at in turn:
* An HTML form with a browse button to allow the client to choose which file to upload
* A script to process the upload, validate the file, name it and place it in the file system
* Lastly a page to advise the client the upload was a success
* Is there a AJAX based solution or PHP based solution to check the filesize a user is trying to upload via a form.
* If the filesize exceeds more than 2 MB we want to give a message to the user that they need to upload a smaller file
size.
You can upload ZIP file of all your images in one shoot. You can upload image using zip file.
* You can create zip file for image, doc file and other file.
* This script find only jpg file uploaded and other file deleted.
* You can set which extension allowed or not allowed using this script uploaded.
Super Ajax Polling/Voting System using JQuery, Ajax, PHP and MySQL
Polling system or Voting system is very common in web sites. Voting can be about your site or blog or some other thing just to get the user attention and get your idea about your product.
I always tries to provide the users of 99Points.info some common but useful scripts which makes their effort succeeded. So after some voting system tutorials like
Digg style Voting now I have come to simple ajax based polling system. This is another series of Jquery. Hope You like it and don't forget to subscribe and give your feed back in comments. Thanks !
So after some voting system tutorials like Digg style Voting now I have come to simple ajax based polling system.You can get facebook style comment script, facebook style extracting url data and many more. Visit 99Points.info
Polling system or Voting system is very common in web sites. Voting can be about your site or blog or some other thing just to get the user attention and get your idea about your product.
I always tries to provide the users of 99Points.info some common but useful scripts which makes their effort succeeded.
Polling system or Voting system is very common in web sites. Voting can be about your site or blog or some other thing just to get the user attention and get your idea about your product.
I always tries to provide the users of 99Points.info some common but useful scripts which makes their effort succeeded. thanks you !
I always tries to provide the users of 99Points.info some common but useful scripts which makes their effort succeeded. So after some voting system tutorials like
Digg style Voting now I have come to simple ajax based polling system. This is another series of Jquery. Hope You like it and don't forget to subscribe and give your feed back in comments. Thanks !
So after some voting system tutorials like Digg style Voting now I have come to simple ajax based polling system.You can get facebook style comment script, facebook style extracting url data and many more. Visit 99Points.info
Polling system or Voting system is very common in web sites. Voting can be about your site or blog or some other thing just to get the user attention and get your idea about your product.
I always tries to provide the users of 99Points.info some common but useful scripts which makes their effort succeeded.
Polling system or Voting system is very common in web sites. Voting can be about your site or blog or some other thing just to get the user attention and get your idea about your product.
I always tries to provide the users of 99Points.info some common but useful scripts which makes their effort succeeded. thanks you !
Friday, April 27, 2012
How to Choose From Viewstate, Session, Application, Cache, and Cookies
Problem with Web Applications
Web Applications are natively statesless, means once a web page renders from server to client, nothing remains on server and the next time user submits the page you have to load all values and create the page again.
ASP.NET provides multiple simple solutions to this problems like:
1- Viewstate
Viewstate is a hidden fields in an ASP.NET page, contains state of those controls on a page whose "EnableViewstate" property is "true".
You can also explicitly add values in it, on an ASP.NET page like:
Viewstate.Add( "TotalStudents", "87" );
Viewstate should be used when you want to save a value between diferent roundtrips of a single page as viewstate of a page is not accessible by another page.
Because Viewstate renders with the page, it consumes bandwith, so be careful to use it in applications to be run on low bandwith.
2- Session Variable
Session variables are usually the most commonly used.
When a user visits a site, it's sessions starts and when the user become idle or leave the site, the session ends.
Session variables should be used to save and retrive user specefic information required on multiple pages.
Session variables consumes server memory, so if your may have a huge amount visiters, use session very carefully and instead of put large values in it try to put IDs and references
3- Application variables
Application variables are shared variables among all users of a web application
Application variables behave like static variables and they are substitute of static variables as static variables are stateless in web applications
Only shared values should be persisted in Application variables, and as soon as they are not in use they should be removed explicitly.
4- Cache
Cache is probably the least used state feature of ASP.NET.
Cache is basically a resource specific state persistence feature, means unlike session it stick with resource instead of user, for instance: pages, controls etc.
Cache should be used or frequently used pages, controls, and data structures
Data cache can be used to cache frequently used list of values e.g. list of products
6- Cookies
Cookies are some values saved in browsers by the website to retrivbbe and use afterwards.
Usually cookies are used to help dynamic websites to identify visitors and retrieve their saved preferences.
Cookies are also used to facilitate auto login by persisting user id in a cookie save in user's browser.
Because cookies have been saved at client side, they do not create performance issues but may create security issues as they can be hacked from browser.
Finally remember the following points on your finger-tips:
Web Applications are natively statesless, means once a web page renders from server to client, nothing remains on server and the next time user submits the page you have to load all values and create the page again.
ASP.NET provides multiple simple solutions to this problems like:
- Viewstate
- Session Variables
- Application Variables
- Cache
- Cookies
1- Viewstate
Viewstate is a hidden fields in an ASP.NET page, contains state of those controls on a page whose "EnableViewstate" property is "true".
You can also explicitly add values in it, on an ASP.NET page like:
Viewstate.Add( "TotalStudents", "87" );
Viewstate should be used when you want to save a value between diferent roundtrips of a single page as viewstate of a page is not accessible by another page.
Because Viewstate renders with the page, it consumes bandwith, so be careful to use it in applications to be run on low bandwith.
2- Session Variable
Session variables are usually the most commonly used.
When a user visits a site, it's sessions starts and when the user become idle or leave the site, the session ends.
Session variables should be used to save and retrive user specefic information required on multiple pages.
Session variables consumes server memory, so if your may have a huge amount visiters, use session very carefully and instead of put large values in it try to put IDs and references
3- Application variables
Application variables are shared variables among all users of a web application
Application variables behave like static variables and they are substitute of static variables as static variables are stateless in web applications
Only shared values should be persisted in Application variables, and as soon as they are not in use they should be removed explicitly.
4- Cache
Cache is probably the least used state feature of ASP.NET.
Cache is basically a resource specific state persistence feature, means unlike session it stick with resource instead of user, for instance: pages, controls etc.
Cache should be used or frequently used pages, controls, and data structures
Data cache can be used to cache frequently used list of values e.g. list of products
6- Cookies
Cookies are some values saved in browsers by the website to retrivbbe and use afterwards.
Usually cookies are used to help dynamic websites to identify visitors and retrieve their saved preferences.
Cookies are also used to facilitate auto login by persisting user id in a cookie save in user's browser.
Because cookies have been saved at client side, they do not create performance issues but may create security issues as they can be hacked from browser.
Finally remember the following points on your finger-tips:
- Viewstate is bandwidth hungry
- Session variables are memory hungry as per number of users
- Applications variables are shared
- Cache is memory hungry as per number of resources
- Cookies are the least secure
Statistical View of Data in a Clustered Bar Chart
In this article, I shows us how to go about creating a statistical
view of data, in the form of a clustered bar chart, using PHP and
MySQL. He provides a real-life scenario, along with accompanying code,
to demonstrate how the job can be accomplished.
Statistical view of data in the shape of a clustered bar chart is somewhat similar to having to select between two attributes of a single entity. However, a real-life case scenario is far more complicated. As in most cases, the situation has a lot of entities strongly related with each other through E-R diagrams obeying the normalization rules. Moreover, in such cases, data is not only two-dimensional but, rather, it may be multi-dimensional.
Let's look at the following E-R diagram from which we have to present a statistical view (in the form of a clustered bar chart). How can we do this? This article is an attempt to explain the solution.
Prerequisites
You should have Apache web Server with PHP and MySQL running. A fair amount of knowledge in PHP is also required. I have provided a zip archive of a demo along with this article.
The database consists of four tables.

SQL statements to create these tables are as follows:
Marks Table
CREATE TABLE marks (
id int(11) NOT NULL auto_increment,
student_id int(11) DEFAULT '0' NOT NULL,
program int(11) DEFAULT '0' NOT NULL,
subject int(11) DEFAULT '0' NOT NULL,
marks int(11) DEFAULT '0' NOT NULL,
entry_date date,
PRIMARY KEY (id)
);
Programs Table
CREATE TABLE programs (
id int(11) NOT NULL auto_increment,
program varchar(255),
PRIMARY KEY (id),
UNIQUE program (program)
);
Students Table
CREATE TABLE students (
id int(11) NOT NULL auto_increment,
name varchar(100),
PRIMARY KEY (id)
);
Subjects Table
CREATE TABLE subjects (
id int(11) NOT NULL auto_increment,
subject varchar(255),
PRIMARY KEY (id),
UNIQUE subject (subject)
);
An HTML user interface is used to populate all of the four tables. First fill the programs and subjects tables, then populate the students table and in the final, give records to the marks table.
I shall not go into explaining how these four tables have been populated from the html forms, as I’m under the impression that this would be a trivial task. Rather, I shall focus on how the statistical view is created.
Our input HTML form and related PHP processing code has been written in such a way that it can be enhanced easily. The code snippet for the user input form is composed of three related web controls which pull the data from three tables. Here, these three controls are web control arrays:
<?php
$query = "select s.id , s.name from students as s order by s.name";
$result = mysql_query($query);
php?>
<select name= "sel_id[]" size = "10" multiple style = "background-color: #ffffe8;" >
<?php
while ($row = mysql_fetch_row($result))
echo "<option value=" . $row[0] . ">" . $row[1] . "</option>";
php?>
</select>
The remaining two web controls are also populated in the same fashion:
<?php
$query = "select p.id , p.program from programs as p order by p.program";
$result = mysql_query($query);
php?>
<select name= "sel_program_id[]" size = "5" multiple style = "background-color: #ffffe8;" >
<?php
while ($row = mysql_fetch_row($result))
echo "<option value=" . $row[0] . ">" . $row[1] . "</option>";
php?>
</select>
<?php
$query = "select s.id , s.subject from subjects as s order by s.subject";
$result = mysql_query($query);
php?>
<select name= "sel_subject_id[]" size = "5" multiple style = "background-color: #ffffe8;" >
<?php
while ($row = mysql_fetch_row($result))
echo "<option value=" . $row[0] . ">" . $row[1] . "</option>";
php?>
</select>
Also, the range of a date can be provided as an input from the same page. The code snippet will further explain this; it has been repeated twice, once for Date (From) and again for Date (To).
<?php
$months = array (1=>"January" , "February" , "March" , "April" , "May" , "June" , "July" , "August" , "September" , "October" , "November" , "December");
php?>
<tr><td colspan=2 align=center><table border=0>
<tr><td>Date (From)</td>
<td>
<select name="sel_day_from">
<?php
for ($i = 1; $i < 10 ; $i++)
echo "<option value=0".$i.">" . $i . "</option>";
for ($i = 10; $i < 32; $i++)
echo "<option value=".$i.">" . $i . "</option>";
php?>
</select>
<select name="sel_month_from">
<?php
for ($i = 1; $i < 10 ; $i++)
echo "<option value=0".$i.">" . $months[$i] . "</option>";
for ($i = 10; $i < 13; $i++)
echo "<option value=".$i.">" . $months[$i] . "</option>";
php?>
</select>
<?php $dt_y = intval(date(Y)); php?>
<select name="sel_year_from">
<?php
for ($i = $dt_y; $i > 2000; $i--)
echo "<option value=" . $i . ">" . $i . "</option>";
php?>
</select>
</td></tr>
This is just a simple way in which to offer more options. There is very little you have to do on the processing side. Also, a new dimension will be processed in your bar chart.
So far on our input forms, there are four criteria the user can choose from:
The processing PHP code, which is located in the file statistics_action.php in the support file , consists of a function named Collect_Data(....) and three FOR loops as the inputs are appearing from three multi-select web controls and one date control.
From the three multiple controls more than one choice can be made. The fourth choice would appear from range of date, which is a single choice.
The processing code is organized in such a way that it needs three nested FOR loops. You can increase or decrease them to add/drop a new dimension.
$dt_from = $sel_year_from . $sel_month_from . $sel_day_from;
$dt_to = $sel_year_to . $sel_month_to . $sel_day_to;
$dt_valid = "False";
$back = "<a rel="nofollow" onclick="javascript:_gaq.push(['_trackPageview', '/outgoing/article_exit_link/975024']);" href="" onclick="history.back()">Back</a>";
if ( !(checkdate(intval($sel_month_from) , intval($sel_day_from) ,
$sel_year_from)) )
$msg = "<font color=red>Invalid From Date...</font>";
elseif ( !(checkdate(intval($sel_month_to) , intval($sel_day_to) ,
$sel_year_to)) )
$msg = "<font color=red>Invalid To Date...</font>";
else
{
$msg = formate_date($sel_year_from."-".$sel_month_from."-".$sel_day_from) . " ---- " .
formate_date($sel_year_to."-".$sel_month_to."-".$sel_day_to);
$dt_valid = "True";
}
The block of code above stores the date (from) and date (to) in two global variables (global variables have their visibility accessible inside the user defined funtion).
$dt_valid serves as a flag. If it is true, then processing proceeds; otherwise, display a relevant message. We have used our checkdate() function, which returns true or false if the passing arguments are wrong dates.
If both dates are correct, then range of the date is stored in the $msg variable.
echo "<table><tr><td bgcolor=whitesmoke>" . $msg . "..." . $back . "</td></tr></table>";
Next, we initialize three variable for the upper limits of the three nested FOR loops:
$total_counts_student_id = count($sel_id);
$total_counts_program_id = count($sel_program_id);
$total_counts_subject_id = count($sel_subject_id);
if ( ($total_counts_student_id > 0) && ($total_counts_program_id > 0) && ($total_counts_subject_id > 0) && ($dt_valid == 'True') )
{
echo "<table border=0 cellpadding=0 cellspacing=0 ><caption><h2>Student Marks</h2></caption>";
For each selected Program List from the input form, it will scan each program and subsequent student data:
for ($c=0; $c < $total_counts_program_id; $c++)
{
for ($b=0; $b < $total_counts_subject_id; $b++)
{
// Collection of Data
for ($a=0; $a < $total_counts_student_id; $a++)
{
Collect_Data($sel_id[$a] , $sel_program_id[$c] , $sel_subject_id[$b]);
} // end of the sel_id loop
if ($sum > 0) // if data found ...
{
// Draw Graph
$total_counts = count($student_data);
for ($i=0; $i < $total_counts; $i++)
{
$bar_width = multi_factor * ( (100 * $student_data[$i] ) / $sum );
$bar = ($i % bar_counter)."_bar.gif";
echo "<tr><td><img src='images/$bar' width=$bar_width height='10'> ";
echo number_format($bar_width/multi_factor , 2, '.', '')."% (".$student_name[$i] . " , " . $program[$i] . " , " . $subject[$i] . ")</td></tr>";
}
// Display Data in Tabular Format
echo "<tr><td><table border=1 bordercolor=blue>";
echo "<tr><th>Name</th><th>Program</th><th>Subject</th> <th>Marks</th><th>Date</th></tr>";
for ($i = 0; $i < $total_counts; $i++)
{
echo "<tr><td>" . $student_name[$i] . "</td><td>" . $program[$i] . "</td><td>" . $subject[$i] . "</td>";
if (isset($student_data[$i]) ) echo "<td>" . $student_data[$i] . "</td>";
else echo "<td>Not Taken</td>";
echo "<td>" . formate_date($student_dt[$i]) . "</td></tr>";
}
echo "</table></td></tr>"; $x = 0; $sum = 0; echo "<tr><td><hr></td></tr>";
for ($i=0; $i < $total_counts; $i++) /// purge the array ... better to purge all the arrays.....
{ array_pop($student_data); }
}
} // end of subject_id loop
} // end of program_id loop
} // end of if
The second-last loop consists of a body with three sections:
{
global $student_name;
global $program;
global $subject;
global $student_data;
global $student_dt;
global $sum;
global $x;
global $dt_from;
global $dt_to;
The above variables have been declared global so that their values can be accessed outside this user defined function; otherwise, they would become local variables, thus rendering them out of scope.
$query = "select s.name , p.program , sb.subject , m.marks , m.entry_date
from students as s inner join marks as m on s.id = m.student_id
inner join programs as p on m.program = p.id
inner join subjects as sb on sb.id = m.subject
where s.id = $a_no and p.id = $program_id and sb.id = $subject_id and m.entry_date >= $dt_from and m.entry_date <=$dt_to " ;
$result = mysql_query($query);
while ($row = mysql_fetch_row($result) )
{
$student_name[$x] = $row[0];
$program[$x] = $row[1];
$subject[$x] = $row[2];
$student_data[$x] = $row[3];
$student_dt[$x] = $row[4];
$sum += $row[3];
$x++; // increment the array counter....
}
} // end of the funciton Collect_Data()....
Our query in this function is extracting data from the four tables through inner-joins. You can add more tables as per your requirements. The query extracts five values, which have been stored in five global arrays. Here, $x is acting as a counter. Every call to this function may increase its value if a record is found.
Processing time is calculated based on the following code:
function getmicrotime()
{
list($usec,$sec)=explode(" ",microtime());
return ((float)$usec+(float)$sec);
}
$start_time = getmicrotime();
$time_diff = (float)(getmicrotime() - $start_time);
echo "<tr><td colspan=6><i>Processing Time:- " . number_format($time_diff , 3,'.','') . " Seconds</i></td></tr>";
Plotting the clustered bar chart is really simple, even if we have multi-columned information. The logic is organized in a way that it can be easily customized according to the requirements. I have given an idea how to implement this technique across multiple tables, especially in a tightly normalized database.
Statistical view of data in the shape of a clustered bar chart is somewhat similar to having to select between two attributes of a single entity. However, a real-life case scenario is far more complicated. As in most cases, the situation has a lot of entities strongly related with each other through E-R diagrams obeying the normalization rules. Moreover, in such cases, data is not only two-dimensional but, rather, it may be multi-dimensional.
Let's look at the following E-R diagram from which we have to present a statistical view (in the form of a clustered bar chart). How can we do this? This article is an attempt to explain the solution.
Prerequisites
You should have Apache web Server with PHP and MySQL running. A fair amount of knowledge in PHP is also required. I have provided a zip archive of a demo along with this article.
The database consists of four tables.
- Students
- Programs
- Subjects
- Marks

SQL statements to create these tables are as follows:
Marks Table
CREATE TABLE marks (
id int(11) NOT NULL auto_increment,
student_id int(11) DEFAULT '0' NOT NULL,
program int(11) DEFAULT '0' NOT NULL,
subject int(11) DEFAULT '0' NOT NULL,
marks int(11) DEFAULT '0' NOT NULL,
entry_date date,
PRIMARY KEY (id)
);
Programs Table
CREATE TABLE programs (
id int(11) NOT NULL auto_increment,
program varchar(255),
PRIMARY KEY (id),
UNIQUE program (program)
);
Students Table
CREATE TABLE students (
id int(11) NOT NULL auto_increment,
name varchar(100),
PRIMARY KEY (id)
);
Subjects Table
CREATE TABLE subjects (
id int(11) NOT NULL auto_increment,
subject varchar(255),
PRIMARY KEY (id),
UNIQUE subject (subject)
);
An HTML user interface is used to populate all of the four tables. First fill the programs and subjects tables, then populate the students table and in the final, give records to the marks table.
I shall not go into explaining how these four tables have been populated from the html forms, as I’m under the impression that this would be a trivial task. Rather, I shall focus on how the statistical view is created.
Our input HTML form and related PHP processing code has been written in such a way that it can be enhanced easily. The code snippet for the user input form is composed of three related web controls which pull the data from three tables. Here, these three controls are web control arrays:
<?php
$query = "select s.id , s.name from students as s order by s.name";
$result = mysql_query($query);
php?>
<select name= "sel_id[]" size = "10" multiple style = "background-color: #ffffe8;" >
<?php
while ($row = mysql_fetch_row($result))
echo "<option value=" . $row[0] . ">" . $row[1] . "</option>";
php?>
</select>
The remaining two web controls are also populated in the same fashion:
<?php
$query = "select p.id , p.program from programs as p order by p.program";
$result = mysql_query($query);
php?>
<select name= "sel_program_id[]" size = "5" multiple style = "background-color: #ffffe8;" >
<?php
while ($row = mysql_fetch_row($result))
echo "<option value=" . $row[0] . ">" . $row[1] . "</option>";
php?>
</select>
<?php
$query = "select s.id , s.subject from subjects as s order by s.subject";
$result = mysql_query($query);
php?>
<select name= "sel_subject_id[]" size = "5" multiple style = "background-color: #ffffe8;" >
<?php
while ($row = mysql_fetch_row($result))
echo "<option value=" . $row[0] . ">" . $row[1] . "</option>";
php?>
</select>
Also, the range of a date can be provided as an input from the same page. The code snippet will further explain this; it has been repeated twice, once for Date (From) and again for Date (To).
<?php
$months = array (1=>"January" , "February" , "March" , "April" , "May" , "June" , "July" , "August" , "September" , "October" , "November" , "December");
php?>
<tr><td colspan=2 align=center><table border=0>
<tr><td>Date (From)</td>
<td>
<select name="sel_day_from">
<?php
for ($i = 1; $i < 10 ; $i++)
echo "<option value=0".$i.">" . $i . "</option>";
for ($i = 10; $i < 32; $i++)
echo "<option value=".$i.">" . $i . "</option>";
php?>
</select>
<select name="sel_month_from">
<?php
for ($i = 1; $i < 10 ; $i++)
echo "<option value=0".$i.">" . $months[$i] . "</option>";
for ($i = 10; $i < 13; $i++)
echo "<option value=".$i.">" . $months[$i] . "</option>";
php?>
</select>
<?php $dt_y = intval(date(Y)); php?>
<select name="sel_year_from">
<?php
for ($i = $dt_y; $i > 2000; $i--)
echo "<option value=" . $i . ">" . $i . "</option>";
php?>
</select>
</td></tr>
This is just a simple way in which to offer more options. There is very little you have to do on the processing side. Also, a new dimension will be processed in your bar chart.
So far on our input forms, there are four criteria the user can choose from:
- student name
- subject
- program
- and range of Date
The processing PHP code, which is located in the file statistics_action.php in the support file , consists of a function named Collect_Data(....) and three FOR loops as the inputs are appearing from three multi-select web controls and one date control.
From the three multiple controls more than one choice can be made. The fourth choice would appear from range of date, which is a single choice.
The processing code is organized in such a way that it needs three nested FOR loops. You can increase or decrease them to add/drop a new dimension.
$dt_from = $sel_year_from . $sel_month_from . $sel_day_from;
$dt_to = $sel_year_to . $sel_month_to . $sel_day_to;
$dt_valid = "False";
$back = "<a rel="nofollow" onclick="javascript:_gaq.push(['_trackPageview', '/outgoing/article_exit_link/975024']);" href="" onclick="history.back()">Back</a>";
if ( !(checkdate(intval($sel_month_from) , intval($sel_day_from) ,
$sel_year_from)) )
$msg = "<font color=red>Invalid From Date...</font>";
elseif ( !(checkdate(intval($sel_month_to) , intval($sel_day_to) ,
$sel_year_to)) )
$msg = "<font color=red>Invalid To Date...</font>";
else
{
$msg = formate_date($sel_year_from."-".$sel_month_from."-".$sel_day_from) . " ---- " .
formate_date($sel_year_to."-".$sel_month_to."-".$sel_day_to);
$dt_valid = "True";
}
The block of code above stores the date (from) and date (to) in two global variables (global variables have their visibility accessible inside the user defined funtion).
$dt_valid serves as a flag. If it is true, then processing proceeds; otherwise, display a relevant message. We have used our checkdate() function, which returns true or false if the passing arguments are wrong dates.
If both dates are correct, then range of the date is stored in the $msg variable.
echo "<table><tr><td bgcolor=whitesmoke>" . $msg . "..." . $back . "</td></tr></table>";
Next, we initialize three variable for the upper limits of the three nested FOR loops:
$total_counts_student_id = count($sel_id);
$total_counts_program_id = count($sel_program_id);
$total_counts_subject_id = count($sel_subject_id);
if ( ($total_counts_student_id > 0) && ($total_counts_program_id > 0) && ($total_counts_subject_id > 0) && ($dt_valid == 'True') )
{
echo "<table border=0 cellpadding=0 cellspacing=0 ><caption><h2>Student Marks</h2></caption>";
For each selected Program List from the input form, it will scan each program and subsequent student data:
for ($c=0; $c < $total_counts_program_id; $c++)
{
for ($b=0; $b < $total_counts_subject_id; $b++)
{
// Collection of Data
for ($a=0; $a < $total_counts_student_id; $a++)
{
Collect_Data($sel_id[$a] , $sel_program_id[$c] , $sel_subject_id[$b]);
} // end of the sel_id loop
if ($sum > 0) // if data found ...
{
// Draw Graph
$total_counts = count($student_data);
for ($i=0; $i < $total_counts; $i++)
{
$bar_width = multi_factor * ( (100 * $student_data[$i] ) / $sum );
$bar = ($i % bar_counter)."_bar.gif";
echo "<tr><td><img src='images/$bar' width=$bar_width height='10'> ";
echo number_format($bar_width/multi_factor , 2, '.', '')."% (".$student_name[$i] . " , " . $program[$i] . " , " . $subject[$i] . ")</td></tr>";
}
// Display Data in Tabular Format
echo "<tr><td><table border=1 bordercolor=blue>";
echo "<tr><th>Name</th><th>Program</th><th>Subject</th> <th>Marks</th><th>Date</th></tr>";
for ($i = 0; $i < $total_counts; $i++)
{
echo "<tr><td>" . $student_name[$i] . "</td><td>" . $program[$i] . "</td><td>" . $subject[$i] . "</td>";
if (isset($student_data[$i]) ) echo "<td>" . $student_data[$i] . "</td>";
else echo "<td>Not Taken</td>";
echo "<td>" . formate_date($student_dt[$i]) . "</td></tr>";
}
echo "</table></td></tr>"; $x = 0; $sum = 0; echo "<tr><td><hr></td></tr>";
for ($i=0; $i < $total_counts; $i++) /// purge the array ... better to purge all the arrays.....
{ array_pop($student_data); }
}
} // end of subject_id loop
} // end of program_id loop
} // end of if
The second-last loop consists of a body with three sections:
- The inner-most loop iterates through each student’s name. It calls the function Collect_Data(..) and stores it in five arrays: $student_name[], $program[], $subject[], $student_data[], and $student_dt. It also stores their sum in variable $sum. From dividing $student_data by $sum, we can calculate the percentage. The width of the image is determined according to this percentile. Also, an intelligent code is used to draw a new bar each time. Then, using this data, it draws the bar chart accordingly.
- Display the information in tabular format by iterating and retrieving data from the above five arrays.
- Third part terminates the table.
- This part purges the above five arrays. This is essential in that if array size is smaller in the next iteration, the previous data may be written.
{
global $student_name;
global $program;
global $subject;
global $student_data;
global $student_dt;
global $sum;
global $x;
global $dt_from;
global $dt_to;
The above variables have been declared global so that their values can be accessed outside this user defined function; otherwise, they would become local variables, thus rendering them out of scope.
$query = "select s.name , p.program , sb.subject , m.marks , m.entry_date
from students as s inner join marks as m on s.id = m.student_id
inner join programs as p on m.program = p.id
inner join subjects as sb on sb.id = m.subject
where s.id = $a_no and p.id = $program_id and sb.id = $subject_id and m.entry_date >= $dt_from and m.entry_date <=$dt_to " ;
$result = mysql_query($query);
while ($row = mysql_fetch_row($result) )
{
$student_name[$x] = $row[0];
$program[$x] = $row[1];
$subject[$x] = $row[2];
$student_data[$x] = $row[3];
$student_dt[$x] = $row[4];
$sum += $row[3];
$x++; // increment the array counter....
}
} // end of the funciton Collect_Data()....
Our query in this function is extracting data from the four tables through inner-joins. You can add more tables as per your requirements. The query extracts five values, which have been stored in five global arrays. Here, $x is acting as a counter. Every call to this function may increase its value if a record is found.
Processing time is calculated based on the following code:
function getmicrotime()
{
list($usec,$sec)=explode(" ",microtime());
return ((float)$usec+(float)$sec);
}
$start_time = getmicrotime();
$time_diff = (float)(getmicrotime() - $start_time);
echo "<tr><td colspan=6><i>Processing Time:- " . number_format($time_diff , 3,'.','') . " Seconds</i></td></tr>";
Plotting the clustered bar chart is really simple, even if we have multi-columned information. The logic is organized in a way that it can be easily customized according to the requirements. I have given an idea how to implement this technique across multiple tables, especially in a tightly normalized database.
Thursday, April 26, 2012
Ajax Form Validation and Thread-safe Ajax
This degradable form validation demo verifies the form at the server
side on the classic form submit, and also implements AJAX validation
while the user navigates through the form.
Degradable AJAX Form Validation
Doing a final server-side validation when the form is submitted is always a must. If someone disables JavaScript in the browser settings, AJAX validation on the client side won't work, exposing sensitive data, and thereby allowing an evil-intended visitor to harm important data back on the server (for example, through SQL injection). Always validate user input on the server!
This form validation application validates a registration form, using both AJAX validation (client side) and typical server-side validation:
* AJAX-style (on the client), when each form field loses focus (onblur). The field's value is sent to the server, which validates the data and returns a result (0 for failure, 1 for success). If validation fails, an error message will unobtrusively show up and notify the user about the failed validation.
* PHP-style (on the server), when the entire form is submitted. This is the usual validation you would do on the server, by checking user input against certain rules. If no errors are found and the input data is valid, the browser is redirected to a success page. If validation fails, however, the user is sent back to the form page with the invalid fields highlighted.
Both AJAX validation and PHP validation check the entered data against these rules:
* Username must not already exist in the database
* Name field cannot be empty
* A gender must be selected
* Email address must be written in a valid email format, such as xyz@domain.com
* Phone number must be written in standard US form: +xx xxxxxxxxx
Thread-Safe AJAX
A piece of code is thread-safe if it functions correctly during simultaneous execution by multiple threads. In this exercise, we need to make an asynchronous request to the server to validate the entered data every time the user leaves an input box or changes a selection.
The hidden danger behind this technique is only revealed if the user moves very quickly through the input fields, or the server connection is slow; in these cases, the web application would attempt to make new server requests through an XMLHttpRequest object that is still busy waiting for the response to a previous request (this would generate an error and the application would stop functioning properly).
Depending on the circumstances at hand, the ideal solution to this problem may be:
* Create a new XMLHttpRequest instance for every message you need to send to the server. This method is easy to implement, but it can degrade server's performance if multiple requests are sent at the same time, and it doesn't guarantee for the order in which you receive the responses.
* Record the message in a queue and send it later when the XMLHttpRequest object is able to make new requests. The requests are made in the expected order. Using a queue is particularly important in applications where the order of the messages is important.
* Schedule to automatically retry making the request after a specified amount of time. This method is similar to the one with the queue in that you don't make more than one server request at a time, but it doesn't guarantee for either the order in which the requests are made, or for the order in which the responses are received.
* Ignore the message.
In this form validation exercise, we use a message queue. When the user leaves an input element, a message to validate its value is added to the queue. When the XMLHttpRequest object is clear to make a new request, it takes the first message from the queue.
The queue is a First-In, First-Out (FIFO) structure, which guarantees that the messages are sent in the proper order. To get a feeling about how this works, go to the demo page, and press tab quickly multiple times, and then wait to see how the validation responses show up one by one.
The complete AJAX and PHP tutorial features even more AJAX web development examples.
Downlaod code PHP and Ajax submit form
Degradable AJAX Form Validation
Doing a final server-side validation when the form is submitted is always a must. If someone disables JavaScript in the browser settings, AJAX validation on the client side won't work, exposing sensitive data, and thereby allowing an evil-intended visitor to harm important data back on the server (for example, through SQL injection). Always validate user input on the server!
This form validation application validates a registration form, using both AJAX validation (client side) and typical server-side validation:
* AJAX-style (on the client), when each form field loses focus (onblur). The field's value is sent to the server, which validates the data and returns a result (0 for failure, 1 for success). If validation fails, an error message will unobtrusively show up and notify the user about the failed validation.
* PHP-style (on the server), when the entire form is submitted. This is the usual validation you would do on the server, by checking user input against certain rules. If no errors are found and the input data is valid, the browser is redirected to a success page. If validation fails, however, the user is sent back to the form page with the invalid fields highlighted.
Both AJAX validation and PHP validation check the entered data against these rules:
* Username must not already exist in the database
* Name field cannot be empty
* A gender must be selected
* Email address must be written in a valid email format, such as xyz@domain.com
* Phone number must be written in standard US form: +xx xxxxxxxxx
Thread-Safe AJAX
A piece of code is thread-safe if it functions correctly during simultaneous execution by multiple threads. In this exercise, we need to make an asynchronous request to the server to validate the entered data every time the user leaves an input box or changes a selection.
The hidden danger behind this technique is only revealed if the user moves very quickly through the input fields, or the server connection is slow; in these cases, the web application would attempt to make new server requests through an XMLHttpRequest object that is still busy waiting for the response to a previous request (this would generate an error and the application would stop functioning properly).
Depending on the circumstances at hand, the ideal solution to this problem may be:
* Create a new XMLHttpRequest instance for every message you need to send to the server. This method is easy to implement, but it can degrade server's performance if multiple requests are sent at the same time, and it doesn't guarantee for the order in which you receive the responses.
* Record the message in a queue and send it later when the XMLHttpRequest object is able to make new requests. The requests are made in the expected order. Using a queue is particularly important in applications where the order of the messages is important.
* Schedule to automatically retry making the request after a specified amount of time. This method is similar to the one with the queue in that you don't make more than one server request at a time, but it doesn't guarantee for either the order in which the requests are made, or for the order in which the responses are received.
* Ignore the message.
In this form validation exercise, we use a message queue. When the user leaves an input element, a message to validate its value is added to the queue. When the XMLHttpRequest object is clear to make a new request, it takes the first message from the queue.
The queue is a First-In, First-Out (FIFO) structure, which guarantees that the messages are sent in the proper order. To get a feeling about how this works, go to the demo page, and press tab quickly multiple times, and then wait to see how the validation responses show up one by one.
The complete AJAX and PHP tutorial features even more AJAX web development examples.
Downlaod code PHP and Ajax submit form
Creating Sql Database Connection in Asp.net Web Application Through C#
1: Open visual studio 2005 and from FILE select NEW-> WebSite,
then from pop-menu select asp.net website (Note: Language must be C#) ,
then press OK.
2: Now create three textboxes from the toolbox , to remove ambiguity I am using default name for that textboxes and that should be textbox1,textbox2 & textbox3. And also drag & drop the button to the asp.net application.
3: Meanwhile, Open SQL SERVER Management studio 2005 and open adventureworks(or you can create your own database by the Sql command CREATE DATABASE database_name), but here I am using AdventureWorks database.
4: Then create table by clicking right mouse button and form three column, Name them according to your requirement , for your information only I used EID,name,Address. And click save button, then you'll get a pop up menu where you have to enter the Table Name, for this example I used students.
5: Now Come Back to Visual studio Application and write the following code in the button_click event
protected void Button1_Click(object sender, EventArgs e)
{
SqlConnection myConn = new SqlConnection();
myConn.ConnectionString = "Connection string(See Below for this — )COPY PASTE HERE";
myConn.Open();
string strqry = "Insert into students values (" + TextBox1.Text +
",'" + TextBox2.Text + "‘,'" + TextBox3.Text + "‘)";
SqlCommand myCom = new SqlCommand(strqry, myConn);
int numrow = myCom.ExecuteNonQuery();
myConn.Close();
}
Kindly note down the connectionString Syntax, to obtain this string do the following steps :
Step 1 : Go to toolbox and from data section drag & drop SqlDataSource.
Step 2: Then on left clicking the mouse on SqlDataSource , you will get configureDataSource link, Slect this.
Step 3: NewConnection String -> Provide Server Name then select or write database name , i.e. AdventureWorks.
Step 4: TestConnection and then Press OK.
Step 5 : Now you will again redirect to the page that you actually see in the step 2, but this time click + sign before the connection string and from the drop drown hierarchy you will receive the connection string.
Step 6: Just copy and paste this string to the place of connectionstring.
Now debug & run Your application and check it's effect on the table.
If still you face any problem feel free to ask.
Hope this explanation help you to understand the basics of database connectivity.
2: Now create three textboxes from the toolbox , to remove ambiguity I am using default name for that textboxes and that should be textbox1,textbox2 & textbox3. And also drag & drop the button to the asp.net application.
3: Meanwhile, Open SQL SERVER Management studio 2005 and open adventureworks(or you can create your own database by the Sql command CREATE DATABASE database_name), but here I am using AdventureWorks database.
4: Then create table by clicking right mouse button and form three column, Name them according to your requirement , for your information only I used EID,name,Address. And click save button, then you'll get a pop up menu where you have to enter the Table Name, for this example I used students.
5: Now Come Back to Visual studio Application and write the following code in the button_click event
protected void Button1_Click(object sender, EventArgs e)
{
SqlConnection myConn = new SqlConnection();
myConn.ConnectionString = "Connection string(See Below for this — )COPY PASTE HERE";
myConn.Open();
string strqry = "Insert into students values (" + TextBox1.Text +
",'" + TextBox2.Text + "‘,'" + TextBox3.Text + "‘)";
SqlCommand myCom = new SqlCommand(strqry, myConn);
int numrow = myCom.ExecuteNonQuery();
myConn.Close();
}
Kindly note down the connectionString Syntax, to obtain this string do the following steps :
Step 1 : Go to toolbox and from data section drag & drop SqlDataSource.
Step 2: Then on left clicking the mouse on SqlDataSource , you will get configureDataSource link, Slect this.
Step 3: NewConnection String -> Provide Server Name then select or write database name , i.e. AdventureWorks.
Step 4: TestConnection and then Press OK.
Step 5 : Now you will again redirect to the page that you actually see in the step 2, but this time click + sign before the connection string and from the drop drown hierarchy you will receive the connection string.
Step 6: Just copy and paste this string to the place of connectionstring.
Now debug & run Your application and check it's effect on the table.
If still you face any problem feel free to ask.
Hope this explanation help you to understand the basics of database connectivity.
Website Design: Improve your Navigation
There are billions of different Web pages floating around the Internet,
and unless you have the ability to trawl Google and memorise the URL of
every page of every site, there's no way you'd survive out there without
a little help.
Thankfully, we don't have to wander round the Web feeling our way like a zombie in a maze. Navigation forms the basis of any Web site, and always has done. Despite the fact that it is a necessity of Web design, it has become something of an afterthought for many designers, as they concentrate on trying to get clever with content.
Navigation remains the single most essential aspect of site construction, and the wonders of modern technology mean you can guide your visitors around your site in a range of innovative ways to make their online experiences all the richer and more rewarding.
What's the point of navigation?
For the benefit of anyone arriving on the planet in the last few minutes, the base principle of site navigation is to help your visitors find their way around your Web site, providing links to all its pages. Common sense reasons that it is imperative that your site is easy to navigate or your guests will soon leave the party for pastures new.
The home page of a web site is where visitors form their impressions about the entire design, and its importance far outweighs that of the other pages that make up the site. The same theory applies to the site's navigation mechanism, ie if you manage to convince new visitors to make the step from your home page to one of your sub pages, the chances of them wanting to peruse the other delights on your site increase no end.
Proper site navigation should give the visitor a sense of 'place' within the site. it should help you maintain consistency throughout the site, even establishing something of a brand. It's important that anyone delving through your site knows how to get back to where they started, otherwise they're likely to flee in frustration.
Your navigation system should also encourage the user to explore other areas of the site by suggesting pages of related interest, and challenge their minds by pointing them towards more obscure links elsewhere online that will interest them. Ultimately, your top priority when designing site navigation is to ensure that the user doesn't have to work hard to find everything you're offering.
Traditional navigation
Back in the old days, navigating the Web was a completely different experience from the one you'll see today. We all know that developments in Web design software have made it easy to create prettier pages with flashy graphics and stylish content, but site navigation has also evolved considerably.
In the late Nineties, when the Web was just beginning to take shape, the core device for site navigation was the trusty textual link, and a blue underlined piece of text was your ticket to a world of information. once clicked, the text link would turn purple (or sometimes red) to indicate that this was one corner of the Web that you'd already explored, and this became something that even newcomers to the Net could get their head around right from the off. Of course, these conventions still apply today, albeit in a slightly more 'glam' format.
A few years ago, the closest you'd have got to a graphical interface on a site would be a series of boxed text links across the top of the page of running down the side. Occasionally these would be accompanied by hideous animated G11's or clipart that vaguely represented the part of the site a link pointed to ('borne' would be a house, contact us' a phone, 'buy' would be a stack of coins, etc).
Just because these navigation systems seem a little primitive from this side of the Millennium, it doesn't mean
they weren't effective, and they are still used in some form these days. The Site Map, for instance, was one of the first devices to appear, and still represents probably the quickest way to find your way around large Web sites. On the whole though, exploring a collection of pages in 2003 is a much richer experience than it was seven years ago. The emergence of modern WYSIWYG design applications and advancements in graphic manipulation technology have meant that Web developers can get more imaginative with their navigation bars in order to truly achieve usability.
Navigation musts
If you mosey along to any Web site worth its salt and look carefully at how it was put together, you'll notice that all the big sites follow the same navigation methods a tidy nav bar for effect with a bandwidth friendly set of textual links somewhere on the page. However creative you think you are, or however much you want to hurl saliva in the face of convention, there's no use trying to fight against these methods. They work and they always will work, and users are unlikely to stick around if they don't get what they're expecting.
Textual links, or embedded links, are the most basic form of navigation and represent a clear, instant method of accessing pages within a site. These are generally arranged in the form of a series of underlined words across the top of a page or a list running down the side.
Another key device in the quest for an easy ride online is 'breadcrumb' navigation. By using trails of HTML links, you can show the route from the home page to the current page, helping the visitor to move up and down the menu tree more effectively, especially on large, page heavy sites.
In order to give the user the richest, most diverse surfing experience, it's wise to slap in as many related links, within reason, as you can unearth. The key here is to avoid simply using the obvious links, and to add pointers to more obscure, off the wall sites that are likely to titillate your readers, adding greater value to your site in the process.
It's also important that you position your navigation links in a place where the user will expect them to be, and where they won't intrude into the content of your site. Many Web designers favour the placement of links along the top of a Web page, plus down the left or right hand side, and at the bottom of each page for good measure. Basically, you need to make sure that your visitors are never more than a scroll wheel rotation away from the next page. Make sure you stick to colour conventions too blue is generally recognised as the norm for a text link, with purple or red used to indicate a page that's already been accessed by the browser.
New methods
While these traditional navigation principles should still be foremost in your mind when designing pages, there are a number of trendy new devices kicking around town that are also worth thinking about.
Let's first consider image maps, a navigational tool that has the potential to be something quite special, but which invariably turns into a confusing mess. The key to achieving a workable image map is to choose your picture carefully. Make sure it's something that lends itself to being logically sliced up and split into parts, rather than a generic piece of art with no determinable boundaries within it. if you can afford to do so, buy the image in from a picture agency before slicing it up in Image Ready (or a cheaper alternative such as Paint Shop Pro) and exporting it to your Web editor to apply the rollovers.
If pictures aren't your bag, or if you're keen to avoid bandwidth heavy navigation, you may want to think about exploring the DHTML route or even applying JavaScript pop up menus. While these have been around a few years now, they're still called upon by pro designers as a means of adding dynamic navigation. Adding DHTML menus is far easier today than it ever was, and there's plenty of software around that will do the job for you without you having to lift a brain cell.
However, when it comes down to designing sites 'in the Twenty first Century, you won't find many better tools for the job than Flash. Macromedia's cherished vector graphics application houses all the functionality you need to produce slick, easy to follow, fast loading navigation. The program allows you to create virtually any type of dynamic navigation system you can think of, from stylish icons and Flash buttons to pop up and pull down menus. Flash is also great for generating actions and animation within a navigation bar in order to engage the user and promote interactivity.
Ironically, relying too heavily on these swanky new navigation methods can lead to your site becoming overwhelming to a visitor, and a jamboree of weird and wonderful menus is no use to anyone. If you are intending to use devices such as Flash or JavaScript menus, always make sure this isn't your sole form of navigation, and that there are text links for those without the right plug in. As accessibility is what we should all be striving for these days, you should always be sure to include ALT tags on any images you include in your navigation to cater for anyone using a screen reader and make sure you create a text only version as well.
If you really want to know if your site is truly useable, the best idea is to unleash it on a group of friends and get them to try and navigate it. Come up with a list of things that a user might want to do on the site, then observe your guinea pigs as they try and access the information. You'll soon learn that it pays to keep things simple and not to try anything too elaborate when designing navigation. That's not to say you can't be original, and with advancements in creative applications such as Flash, navigating Web pages can only get more enjoyable.
Thankfully, we don't have to wander round the Web feeling our way like a zombie in a maze. Navigation forms the basis of any Web site, and always has done. Despite the fact that it is a necessity of Web design, it has become something of an afterthought for many designers, as they concentrate on trying to get clever with content.
Navigation remains the single most essential aspect of site construction, and the wonders of modern technology mean you can guide your visitors around your site in a range of innovative ways to make their online experiences all the richer and more rewarding.
What's the point of navigation?
For the benefit of anyone arriving on the planet in the last few minutes, the base principle of site navigation is to help your visitors find their way around your Web site, providing links to all its pages. Common sense reasons that it is imperative that your site is easy to navigate or your guests will soon leave the party for pastures new.
The home page of a web site is where visitors form their impressions about the entire design, and its importance far outweighs that of the other pages that make up the site. The same theory applies to the site's navigation mechanism, ie if you manage to convince new visitors to make the step from your home page to one of your sub pages, the chances of them wanting to peruse the other delights on your site increase no end.
Proper site navigation should give the visitor a sense of 'place' within the site. it should help you maintain consistency throughout the site, even establishing something of a brand. It's important that anyone delving through your site knows how to get back to where they started, otherwise they're likely to flee in frustration.
Your navigation system should also encourage the user to explore other areas of the site by suggesting pages of related interest, and challenge their minds by pointing them towards more obscure links elsewhere online that will interest them. Ultimately, your top priority when designing site navigation is to ensure that the user doesn't have to work hard to find everything you're offering.
Traditional navigation
Back in the old days, navigating the Web was a completely different experience from the one you'll see today. We all know that developments in Web design software have made it easy to create prettier pages with flashy graphics and stylish content, but site navigation has also evolved considerably.
In the late Nineties, when the Web was just beginning to take shape, the core device for site navigation was the trusty textual link, and a blue underlined piece of text was your ticket to a world of information. once clicked, the text link would turn purple (or sometimes red) to indicate that this was one corner of the Web that you'd already explored, and this became something that even newcomers to the Net could get their head around right from the off. Of course, these conventions still apply today, albeit in a slightly more 'glam' format.
A few years ago, the closest you'd have got to a graphical interface on a site would be a series of boxed text links across the top of the page of running down the side. Occasionally these would be accompanied by hideous animated G11's or clipart that vaguely represented the part of the site a link pointed to ('borne' would be a house, contact us' a phone, 'buy' would be a stack of coins, etc).
Just because these navigation systems seem a little primitive from this side of the Millennium, it doesn't mean
they weren't effective, and they are still used in some form these days. The Site Map, for instance, was one of the first devices to appear, and still represents probably the quickest way to find your way around large Web sites. On the whole though, exploring a collection of pages in 2003 is a much richer experience than it was seven years ago. The emergence of modern WYSIWYG design applications and advancements in graphic manipulation technology have meant that Web developers can get more imaginative with their navigation bars in order to truly achieve usability.
Navigation musts
If you mosey along to any Web site worth its salt and look carefully at how it was put together, you'll notice that all the big sites follow the same navigation methods a tidy nav bar for effect with a bandwidth friendly set of textual links somewhere on the page. However creative you think you are, or however much you want to hurl saliva in the face of convention, there's no use trying to fight against these methods. They work and they always will work, and users are unlikely to stick around if they don't get what they're expecting.
Textual links, or embedded links, are the most basic form of navigation and represent a clear, instant method of accessing pages within a site. These are generally arranged in the form of a series of underlined words across the top of a page or a list running down the side.
Another key device in the quest for an easy ride online is 'breadcrumb' navigation. By using trails of HTML links, you can show the route from the home page to the current page, helping the visitor to move up and down the menu tree more effectively, especially on large, page heavy sites.
In order to give the user the richest, most diverse surfing experience, it's wise to slap in as many related links, within reason, as you can unearth. The key here is to avoid simply using the obvious links, and to add pointers to more obscure, off the wall sites that are likely to titillate your readers, adding greater value to your site in the process.
It's also important that you position your navigation links in a place where the user will expect them to be, and where they won't intrude into the content of your site. Many Web designers favour the placement of links along the top of a Web page, plus down the left or right hand side, and at the bottom of each page for good measure. Basically, you need to make sure that your visitors are never more than a scroll wheel rotation away from the next page. Make sure you stick to colour conventions too blue is generally recognised as the norm for a text link, with purple or red used to indicate a page that's already been accessed by the browser.
New methods
While these traditional navigation principles should still be foremost in your mind when designing pages, there are a number of trendy new devices kicking around town that are also worth thinking about.
Let's first consider image maps, a navigational tool that has the potential to be something quite special, but which invariably turns into a confusing mess. The key to achieving a workable image map is to choose your picture carefully. Make sure it's something that lends itself to being logically sliced up and split into parts, rather than a generic piece of art with no determinable boundaries within it. if you can afford to do so, buy the image in from a picture agency before slicing it up in Image Ready (or a cheaper alternative such as Paint Shop Pro) and exporting it to your Web editor to apply the rollovers.
If pictures aren't your bag, or if you're keen to avoid bandwidth heavy navigation, you may want to think about exploring the DHTML route or even applying JavaScript pop up menus. While these have been around a few years now, they're still called upon by pro designers as a means of adding dynamic navigation. Adding DHTML menus is far easier today than it ever was, and there's plenty of software around that will do the job for you without you having to lift a brain cell.
However, when it comes down to designing sites 'in the Twenty first Century, you won't find many better tools for the job than Flash. Macromedia's cherished vector graphics application houses all the functionality you need to produce slick, easy to follow, fast loading navigation. The program allows you to create virtually any type of dynamic navigation system you can think of, from stylish icons and Flash buttons to pop up and pull down menus. Flash is also great for generating actions and animation within a navigation bar in order to engage the user and promote interactivity.
Ironically, relying too heavily on these swanky new navigation methods can lead to your site becoming overwhelming to a visitor, and a jamboree of weird and wonderful menus is no use to anyone. If you are intending to use devices such as Flash or JavaScript menus, always make sure this isn't your sole form of navigation, and that there are text links for those without the right plug in. As accessibility is what we should all be striving for these days, you should always be sure to include ALT tags on any images you include in your navigation to cater for anyone using a screen reader and make sure you create a text only version as well.
If you really want to know if your site is truly useable, the best idea is to unleash it on a group of friends and get them to try and navigate it. Come up with a list of things that a user might want to do on the site, then observe your guinea pigs as they try and access the information. You'll soon learn that it pays to keep things simple and not to try anything too elaborate when designing navigation. That's not to say you can't be original, and with advancements in creative applications such as Flash, navigating Web pages can only get more enjoyable.
Sap - Performance Tuning Using Parallel Cursor
Nested Loops – This is one of the fear factors for all the ABAP developers as this consumes lot of program execution time. If the number
of entries in the internal tables is huge, then the situation would be
too worse. The solution for this is to use parallel cursor method
whenever there is a need for Nested Loop.
Program using Normal Nested Loop:
REPORT ZNORMAL_NESTEDLOOP.
TABLES:
likp,
lips.
Data:
t_likp type table of likp,
t_lips type TABLE OF lips.
data:
W_RUNTIME1 TYPE I,
W_RUNTIME2 TYPE I.
START-OF-SELECTION.
select *
from likp
into table t_likp.
select *
from lips
into table t_lips.
get RUN TIME FIELD w_runtime1.
loop at t_likp into likp.
loop at t_lips into lips where vbeln eq likp-vbeln.
endloop.
endloop.
get RUN TIME FIELD w_runtime2.
w_runtime2 = w_runtime2 - w_runtime1.
write w_runtime2.
Nested Loop using Parallel Cursor:
REPORT zparallel_cursor2.
TABLES:
likp,
lips.
DATA:
t_likp TYPE TABLE OF likp,
t_lips TYPE TABLE OF lips.
DATA:
w_runtime1 TYPE i,
w_runtime2 TYPE i,
w_index LIKE sy-index.
START-OF-SELECTION.
SELECT *
FROM likp
INTO TABLE t_likp.
SELECT *
FROM lips
INTO TABLE t_lips.
GET RUN TIME FIELD w_runtime1.
SORT t_likp BY vbeln.
SORT t_lips BY vbeln.
LOOP AT t_likp INTO likp.
LOOP AT t_lips INTO lips FROM w_index.
IF likp-vbeln NE lips-vbeln.
w_index = sy-tabix.
EXIT.
ENDIF.
ENDLOOP.
ENDLOOP.
GET RUN TIME FIELD w_runtime2.
w_runtime2 = w_runtime2 - w_runtime1.
WRITE w_runtime2.
Analysis report: Runtime in microseconds:
Iteration 1:
Normal Nested Loop: 34,796,147
Using Parallel Cursor: 63,829
Iteration 2:
Normal Nested Loop: 38,534,583
Using Parallel Cursor: 56,894
Iteration 3:
Normal Nested Loop: 34,103,426
Using Parallel Cursor: 50,510
Program using Normal Nested Loop:
REPORT ZNORMAL_NESTEDLOOP.
TABLES:
likp,
lips.
Data:
t_likp type table of likp,
t_lips type TABLE OF lips.
data:
W_RUNTIME1 TYPE I,
W_RUNTIME2 TYPE I.
START-OF-SELECTION.
select *
from likp
into table t_likp.
select *
from lips
into table t_lips.
get RUN TIME FIELD w_runtime1.
loop at t_likp into likp.
loop at t_lips into lips where vbeln eq likp-vbeln.
endloop.
endloop.
get RUN TIME FIELD w_runtime2.
w_runtime2 = w_runtime2 - w_runtime1.
write w_runtime2.
Nested Loop using Parallel Cursor:
REPORT zparallel_cursor2.
TABLES:
likp,
lips.
DATA:
t_likp TYPE TABLE OF likp,
t_lips TYPE TABLE OF lips.
DATA:
w_runtime1 TYPE i,
w_runtime2 TYPE i,
w_index LIKE sy-index.
START-OF-SELECTION.
SELECT *
FROM likp
INTO TABLE t_likp.
SELECT *
FROM lips
INTO TABLE t_lips.
GET RUN TIME FIELD w_runtime1.
SORT t_likp BY vbeln.
SORT t_lips BY vbeln.
LOOP AT t_likp INTO likp.
LOOP AT t_lips INTO lips FROM w_index.
IF likp-vbeln NE lips-vbeln.
w_index = sy-tabix.
EXIT.
ENDIF.
ENDLOOP.
ENDLOOP.
GET RUN TIME FIELD w_runtime2.
w_runtime2 = w_runtime2 - w_runtime1.
WRITE w_runtime2.
Analysis report: Runtime in microseconds:
Iteration 1:
Normal Nested Loop: 34,796,147
Using Parallel Cursor: 63,829
Iteration 2:
Normal Nested Loop: 38,534,583
Using Parallel Cursor: 56,894
Iteration 3:
Normal Nested Loop: 34,103,426
Using Parallel Cursor: 50,510
Step-by Step Guide to Hiring a Offshore Php Programmer
Changing trends in business have ushered in digital economy which
enables businesses to outsource their needs so they can concentrate on
core activities. In fact programming needs can be outsourced too. There
are a number of outsourcing firms which can be contacted to hire
dedicated PHP programmers. A number of established companies are taking
advantage of outsourcing to cut costs and achieve desired business
results.
Companies worldwide are taking advantage of the most powerful business tool of outsourcing to reduce costs and increase time spent on core business activities. Web applications development turns out to be expensive, but hiring freelance PHP programmers is a cost-effective option. PHP is one of the most effective open scripting languages and it is widely used. PHP has resulted in an increasing number of dynamic websites and web applications which are customized for a website.
With increasing demand, PHP programmers charge high prices for their services and most companies cannot bear the brunt of hiring full-time PHP programmers. A number of small, medium and large corporations have begun to contact and hire PHP programmers through software outsourcing companies. Apart from reduced cost of human resources, outsourcing PHP requirements ensures that the companies enjoy round-the-clock services and support.
Step-by Step Guide to hiring a PHP Programmer:
- List your project requirements to explain it to the PHP programmer: Write down all your website related requirements so the PHP programmer has a clear view of tasks. Discuss all project requirements including schedule and deadlines during preliminary discussions itself.
- Take a look at the programmer's previous works and don't agree to work with programmer who is not willing to show their past work. Check the programmer's credentials before hiring one.
- Decide on the programmer's pay before hiring him/her. Although price should not be the decisive factor while hiring a PHP programmers, don't be tempted by a programmer offering a low price who might try to increase the price later
Companies worldwide are taking advantage of the most powerful business tool of outsourcing to reduce costs and increase time spent on core business activities. Web applications development turns out to be expensive, but hiring freelance PHP programmers is a cost-effective option. PHP is one of the most effective open scripting languages and it is widely used. PHP has resulted in an increasing number of dynamic websites and web applications which are customized for a website.
With increasing demand, PHP programmers charge high prices for their services and most companies cannot bear the brunt of hiring full-time PHP programmers. A number of small, medium and large corporations have begun to contact and hire PHP programmers through software outsourcing companies. Apart from reduced cost of human resources, outsourcing PHP requirements ensures that the companies enjoy round-the-clock services and support.
Hire Web Developer and Dedicated Web Developer Online
Hire-Web-Developer.com offers you to access to one or more dedicated
web developers who work for you exclusively on your projects from our
facilities here in India. Hire-Web-Developer.com provides dedicated web
developer services since six years in the industry. Rightway Solution is
an ISO 9001:2000 certified company, Microsoft Certified
Partner and Member of NASSCOM as well. If you want to develop website
by using web scripting languages like PHP, ASP.Net and you are not a
designer or developer, you don't have the time to learn, then you are at
the perfect place to get this particular service.
Hire Dedicated Web Developer service is a unique concept in offshore outsourcing field. You can hire one or more Dedicated Web Programmer, Dedicated Web Developers. We have 70+ well skilled and experienced IT professionals available for HireDedicated Website DeveloperServices. Geographical or time zone boundaries do not affect the progress and implementation.
Hire-Web-Developer.com provides services like Hire Joomla Developer especially for the clients who want to develop their site with Content Management System. By Using Content Management System, you can manage the content of the website by administrator login exclusively. For the Content Management System, we also provide Hire Dedicated Drupal Developer as well.
If you want to develop one of the best e-commerce shopping portals, Hire Web Developer.com provides Hire Dedicated X-Cart Developer and Hire Dedicated Zen Cart Developer as well. Hire-Web-Developer.com is providing the best solution for any kind of e-commerce shopping portals.
Hire-Web-Developer.com provide the perfect services by understand the client's requirements, sharing selected candidate's credentials with the client. Before providing the services, we arrange client online or telephonic interview with the chosen developers and select the best match for the client's job. Client can hire the Developer as per business model selected like Hire full time developer or Hire Dedicated Developer on Hourly basis. As per client's requirement and under the proper guidance, work is assigned to the developers. Developer works on the assigned task and periodically sends the status report to the client.
Rightway Solution India is one of the leading offshore outsourcing companies Trusted by software and technology enabled enterprises to deliver cutting edge technology solution. Hire Web Developer offers Hire Dedicated Web Developer, Hire Joomla Developer, Hire PHP Developer, Hire Dedicated ASP.Net Developer, Hire Drupal Developer, Hire Zen-Cart Developer, and Hire X-Cart Developer.
Hire Dedicated Web Developer service is a unique concept in offshore outsourcing field. You can hire one or more Dedicated Web Programmer, Dedicated Web Developers. We have 70+ well skilled and experienced IT professionals available for HireDedicated Website DeveloperServices. Geographical or time zone boundaries do not affect the progress and implementation.
Hire-Web-Developer.com provides services like Hire Joomla Developer especially for the clients who want to develop their site with Content Management System. By Using Content Management System, you can manage the content of the website by administrator login exclusively. For the Content Management System, we also provide Hire Dedicated Drupal Developer as well.
If you want to develop one of the best e-commerce shopping portals, Hire Web Developer.com provides Hire Dedicated X-Cart Developer and Hire Dedicated Zen Cart Developer as well. Hire-Web-Developer.com is providing the best solution for any kind of e-commerce shopping portals.
Hire-Web-Developer.com provide the perfect services by understand the client's requirements, sharing selected candidate's credentials with the client. Before providing the services, we arrange client online or telephonic interview with the chosen developers and select the best match for the client's job. Client can hire the Developer as per business model selected like Hire full time developer or Hire Dedicated Developer on Hourly basis. As per client's requirement and under the proper guidance, work is assigned to the developers. Developer works on the assigned task and periodically sends the status report to the client.
Rightway Solution India is one of the leading offshore outsourcing companies Trusted by software and technology enabled enterprises to deliver cutting edge technology solution. Hire Web Developer offers Hire Dedicated Web Developer, Hire Joomla Developer, Hire PHP Developer, Hire Dedicated ASP.Net Developer, Hire Drupal Developer, Hire Zen-Cart Developer, and Hire X-Cart Developer.
Dotnetnuke Development
Open Source Approach
DotNetNuke is proven, free, open-source software, licensed under a standard BSD agreement. It allows developers use this application framework for commercial and non-commercial projects.
DotNetNuke supports multiple portals or sites into one installation. DotNetNuke provides to administrators ability to manage any number of sites with their own design and functionality.
DotNetNuke developers are able to use complex content management system (CMS ) with its built-in features. It also allows administrators to work effectively with plug-ins, third party modules, and custom skins. DNN modules and skins are easy to create, find or purchase. Web application customization and functionality are limitless.
DotNetNuke can be installed within some minutes. After download this software just follow the installation instructions. Also, a lot of hosting companies offer free installation of the DotNetNuke application.
DotNetNuke development services for DNN include:
• Product Design and Analysis
• Prototyping
• Incremental Development Approach
• Full Product Testing Cycle
• Customization Services
• Localization Services
• Integration Services
• Product Support
• Documentation
DNN custom module development technology list:
• .Net application development based on Framework 1.1 or 2.0
• MS SQL 2005, MS SQL 2k, MySQL database design
• HTML, XML, JavaScript, AJAX and more
• Security testing by Web Inspector
• Performance testing by LoadRunner or SilkPerformer
• Custom Skin Design by Adobe Photoshop
Please, visit for more information about custom DotNetNuke module development:
http://www.itechart.com/Pages/ProductsServices/DotNetNukeModuleDevelopment.aspx
DotNetNuke is proven, free, open-source software, licensed under a standard BSD agreement. It allows developers use this application framework for commercial and non-commercial projects.
DotNetNuke supports multiple portals or sites into one installation. DotNetNuke provides to administrators ability to manage any number of sites with their own design and functionality.
DotNetNuke developers are able to use complex content management system (CMS ) with its built-in features. It also allows administrators to work effectively with plug-ins, third party modules, and custom skins. DNN modules and skins are easy to create, find or purchase. Web application customization and functionality are limitless.
DotNetNuke can be installed within some minutes. After download this software just follow the installation instructions. Also, a lot of hosting companies offer free installation of the DotNetNuke application.
DotNetNuke development services for DNN include:
• Product Design and Analysis
• Prototyping
• Incremental Development Approach
• Full Product Testing Cycle
• Customization Services
• Localization Services
• Integration Services
• Product Support
• Documentation
DNN custom module development technology list:
• .Net application development based on Framework 1.1 or 2.0
• MS SQL 2005, MS SQL 2k, MySQL database design
• HTML, XML, JavaScript, AJAX and more
• Security testing by Web Inspector
• Performance testing by LoadRunner or SilkPerformer
• Custom Skin Design by Adobe Photoshop
Please, visit for more information about custom DotNetNuke module development:
http://www.itechart.com/Pages/ProductsServices/DotNetNukeModuleDevelopment.aspx
Web Languages: Php Vs. Asp.net
ASP.NET
If you program in ASP.NET you'll typically get too responses from the other side. Either you're rich (or your company is) or you're a Microsoft lover. While the name comes from Microsoft's old ASP technology, they made a huge leap with the .NET Framework, and the CLR allows you to use other languages for back end processing: typically Visual Basic.NET or C#.
ASP.NET's strength lies in object oriented features, and it's flexibility. Because of the CLR you can have C# programmers and VB.NET programmers working on the same project, or switch languages half way through and not have to rewrite all of your old classes. The .NET class library is organized into inheritable classes based around particular tasks, such as working with XML or image manipulation, so a lot of the more common tasks have been already handled for you.
Visual Studio .NET is a massive development IDE that (as long as your computer is fast enough) will shave tons of time of your coding. It has built in debugging along with IntelliSense, which allows for auto-completion of methods and variables so you don't have to memorize everything.
On the down side, ASP.NET is expensive. One it uses tons more resources on the web server so you'll require either better server or more servers in the farm. Windows 2003 and Visual Studio .NET are pretty tough on the pocket book as well. It's extremely rare for an ASP.NET app not to be running on IIS. And if you pay attention to any of the bug reports, you'll notice that Windows and IIS have had a bit of a history with vulnerabilities being exploited.
PHP
PHP works in combination of HTML to display dynamic elements on the page. PHP only parses code within its delimiters, such as . Anything outside its delimiters is sent directly to the output and not parsed by PHP.
PHP strength lies mostly in LAMP. The LAMP architecture has become popular in the Web industry as a way of deploying inexpensive, reliable, scalable, secure web applications. PHP is commonly used as the P in this bundle alongside Linux, Apache and MySQL. PHP can be used with a large number of relational database management systems, runs on all of the most popular web servers and is available for many different operating systems. This flexibility means that PHP has a wide installation base across the Internet; over 18 million Internet domains are currently hosted on servers with PHP installed.
With PHP 5 finally came exception handling and true OOP, but it still lack namespacing to prevent class naming collisions. PHP's type checking is very loose, potentially causing problems. Another drawback is that variables in PHP are not really considered to have a type. Finally, for some reason big corporations feel that if they're not paying for something, then it's not worth buying. If that's you're company's mentality, they just need to wake up and check out all the awesome free software that's out there.
So Which Is Better?
We'll I have my opinions and you may have yours as well. But in general, PHP is cheap, secure, fast, and reliable, while ASP.NET has quicker development time and is easier due to its class library system can probably be maintained more easily. Both are great languages, and it's up to you to make the decision.
If you program in ASP.NET you'll typically get too responses from the other side. Either you're rich (or your company is) or you're a Microsoft lover. While the name comes from Microsoft's old ASP technology, they made a huge leap with the .NET Framework, and the CLR allows you to use other languages for back end processing: typically Visual Basic.NET or C#.
ASP.NET's strength lies in object oriented features, and it's flexibility. Because of the CLR you can have C# programmers and VB.NET programmers working on the same project, or switch languages half way through and not have to rewrite all of your old classes. The .NET class library is organized into inheritable classes based around particular tasks, such as working with XML or image manipulation, so a lot of the more common tasks have been already handled for you.
Visual Studio .NET is a massive development IDE that (as long as your computer is fast enough) will shave tons of time of your coding. It has built in debugging along with IntelliSense, which allows for auto-completion of methods and variables so you don't have to memorize everything.
On the down side, ASP.NET is expensive. One it uses tons more resources on the web server so you'll require either better server or more servers in the farm. Windows 2003 and Visual Studio .NET are pretty tough on the pocket book as well. It's extremely rare for an ASP.NET app not to be running on IIS. And if you pay attention to any of the bug reports, you'll notice that Windows and IIS have had a bit of a history with vulnerabilities being exploited.
PHP
PHP works in combination of HTML to display dynamic elements on the page. PHP only parses code within its delimiters, such as . Anything outside its delimiters is sent directly to the output and not parsed by PHP.
PHP strength lies mostly in LAMP. The LAMP architecture has become popular in the Web industry as a way of deploying inexpensive, reliable, scalable, secure web applications. PHP is commonly used as the P in this bundle alongside Linux, Apache and MySQL. PHP can be used with a large number of relational database management systems, runs on all of the most popular web servers and is available for many different operating systems. This flexibility means that PHP has a wide installation base across the Internet; over 18 million Internet domains are currently hosted on servers with PHP installed.
With PHP 5 finally came exception handling and true OOP, but it still lack namespacing to prevent class naming collisions. PHP's type checking is very loose, potentially causing problems. Another drawback is that variables in PHP are not really considered to have a type. Finally, for some reason big corporations feel that if they're not paying for something, then it's not worth buying. If that's you're company's mentality, they just need to wake up and check out all the awesome free software that's out there.
So Which Is Better?
We'll I have my opinions and you may have yours as well. But in general, PHP is cheap, secure, fast, and reliable, while ASP.NET has quicker development time and is easier due to its class library system can probably be maintained more easily. Both are great languages, and it's up to you to make the decision.
The Most Significant Features of Java Language
Java is an object-oriented programming language developed
by Sun Microsystems in 1990s. Since then, Java has gained enormous
popularity as a computer language. Java was chosen as the programming
language for network computers. It is a universal front end for
enterprise database. Sun Microsystems states that, “Java is a simple,
object-oriented, distributed, secure, architecture, robust, multi
threaded and dynamic language. The program can be written once, and run
anywhere”. One of the most significant advantages of Java is that, it
has the ability to move easily from one computer to another. It also has
the ability to run the same program on many different operating
systems. With such exemplary benefits, Java is a hot favorite among
techies and software professionals.
Java has significant advantages compared to other languages. Java language is easy to use and therefore easy to write, compile, debug. Moreover, it is easier to learn when compared to other programming languages. Since Java is object-oriented, it allows you to create modular programs and reusable codes. Platform-independent, Java is a robust language. The language lays more importance on early checking for errors, since Java compilers can detect many problems during the time of execution of an application. Java is multithreaded, since it has the capability for a program to perform several tasks simultaneously within the same program. Java Development has gained a significant position in the industry with programmers and developers finding it easier and more effective than many other languages.
Java applications are designed to be compiled and then interpreted at runtime, unlike the conventional programming languages, which can either compile source code to native code or interpret the source code. The language itself has borrowed the syntax from C and C++. Java considers security as a part of its design. The Java language, its compiler, interpreter, and runtime environment are all developed with security. Writing network programs in Java is similar to sending and receiving data to and from a file.
The Java programming language was developed and re-designed for use on the Internet. In the internet domain, Java’s popularity has increased tremendously, especially on the server side of the Internet. Nowadays, there are a large number of Java experts who strive for the enhancement and improvement of Java development. For beginners who are interested in learning Java, the numerous Java tutorials available online are good to start with. Java tutorials and Java tips are the best resources for learning and improvising in Java.
Java Development experts are trying to enhance their programming skills for writing secure Java applications. In order to write a secure code in Java you need to be aware of various things such as data handling techniques, user authentication rules, access controls etc. JavaScript is a scripting language which shares a similar name and has the same syntax, but is in no way related to the core Java language. Few steps are crucial for a secure Java application development. They are logical software design, proper validation, well planed application development and standardized security test. Java has become the language of choice world over for providing effective and sure-fire Internet solutions.
Java has significant advantages compared to other languages. Java language is easy to use and therefore easy to write, compile, debug. Moreover, it is easier to learn when compared to other programming languages. Since Java is object-oriented, it allows you to create modular programs and reusable codes. Platform-independent, Java is a robust language. The language lays more importance on early checking for errors, since Java compilers can detect many problems during the time of execution of an application. Java is multithreaded, since it has the capability for a program to perform several tasks simultaneously within the same program. Java Development has gained a significant position in the industry with programmers and developers finding it easier and more effective than many other languages.
Java applications are designed to be compiled and then interpreted at runtime, unlike the conventional programming languages, which can either compile source code to native code or interpret the source code. The language itself has borrowed the syntax from C and C++. Java considers security as a part of its design. The Java language, its compiler, interpreter, and runtime environment are all developed with security. Writing network programs in Java is similar to sending and receiving data to and from a file.
The Java programming language was developed and re-designed for use on the Internet. In the internet domain, Java’s popularity has increased tremendously, especially on the server side of the Internet. Nowadays, there are a large number of Java experts who strive for the enhancement and improvement of Java development. For beginners who are interested in learning Java, the numerous Java tutorials available online are good to start with. Java tutorials and Java tips are the best resources for learning and improvising in Java.
Java Development experts are trying to enhance their programming skills for writing secure Java applications. In order to write a secure code in Java you need to be aware of various things such as data handling techniques, user authentication rules, access controls etc. JavaScript is a scripting language which shares a similar name and has the same syntax, but is in no way related to the core Java language. Few steps are crucial for a secure Java application development. They are logical software design, proper validation, well planed application development and standardized security test. Java has become the language of choice world over for providing effective and sure-fire Internet solutions.
Using Temp Tables in Ssis Package Development
Often while working in a SSIS package you will require to temporary hold
your data in a staging table in one of the Data Flow Tasks and then in
another task you will require to fetch data from the staging table,
perform transformations and load it and delete the staging table.
It means you create a physical table in your production database to stage data. But in a production environment, you may not want to create and destroy objects in the production database and might prefer to use temp tables instead. This seems easy, in fact it is, but it requires a trick and to modify the default properties of the components. Let us see what to do in this regard.
In the figure you have two Execute SQL tasks. The Create Temp Table task executes a SQL command to create a temporary table named #tmpMyData. The Drop Temp Table task executes a SQL command to drop table #tmpMyData.
If you execute this package, you will notice that the drop portion of the package failed. The package progress tab will report the error message that the table doesn't exist. This is because both of these Execute SQL tasks do not share the same connection — even though you have specified the same connection. Each task builds its own connection. So when the first task is finished, temp table is destroyed and the second task creates a new connection.
To fix this in the regular property window of the OLE DB connection there is a property RetainSameConnection that is set to "FALSE" as a default. Changing it to "TRUE" is our trick and will solve the problem.
By changing this property to "TRUE," both Execute SQL tasks will share the same connection and both will be able to use the temp table.
You can use this trick for performance in SSIS packages also in the case you are going to be performing a task requiring a connection within a loop. Otherwise, imagine how many openings and closings are going to occur during that loop.
It means you create a physical table in your production database to stage data. But in a production environment, you may not want to create and destroy objects in the production database and might prefer to use temp tables instead. This seems easy, in fact it is, but it requires a trick and to modify the default properties of the components. Let us see what to do in this regard.
In the figure you have two Execute SQL tasks. The Create Temp Table task executes a SQL command to create a temporary table named #tmpMyData. The Drop Temp Table task executes a SQL command to drop table #tmpMyData.
If you execute this package, you will notice that the drop portion of the package failed. The package progress tab will report the error message that the table doesn't exist. This is because both of these Execute SQL tasks do not share the same connection — even though you have specified the same connection. Each task builds its own connection. So when the first task is finished, temp table is destroyed and the second task creates a new connection.
To fix this in the regular property window of the OLE DB connection there is a property RetainSameConnection that is set to "FALSE" as a default. Changing it to "TRUE" is our trick and will solve the problem.
By changing this property to "TRUE," both Execute SQL tasks will share the same connection and both will be able to use the temp table.
You can use this trick for performance in SSIS packages also in the case you are going to be performing a task requiring a connection within a loop. Otherwise, imagine how many openings and closings are going to occur during that loop.
What Youtube Clone Script Can Do for Your Website!
In this Internet era any information you look for is available
readily at your finger tip. You can catch up with friends, chat, play
games, get to know new people, socialize, bank,
shop, watch videos, and do just about anything online. Thanks to
internet, there has been a substantial growth in the popularity of
blogs, forums, social networking sites, and other similar interactive pages in the last couple of years.
Gone are the days when one had to rely on DVD to share something with friends. Today all thanks to the websites with video sharing feature, you no longer have to worry about having missed out on any important event of your near and dear ones! The video sharing option of many social networking sites like Youtube is its biggest traffic puller feature. Any user can upload videos clips onto these websites that provide video hosting services and the clips can be viewed by anyone with internet access, anywhere in the world.
Thanks to the readymade Youtube clone script available on the Internet, today you don’t need to have broad technical expertise to own a website like Youtube. The providers of these Youtube clone software have made it easy to install and use. All you have to do is buy Youtube clone script, follow the step by step instructions for installation and you can have your own Youtube clone website up and running in no time. Some Youtube clone script providers also offer the provision of showcasing your own clone script. All you need to do is to submit your clone script to the concerned sites and in no time you will see more traffic coming your way.
Apart from uploading and viewing videos, this Youtube clone will bring a whole lot of revenues for your website. The benefits of using Youtube clone scripts are briefly discussed below:
• Members can upload, manage and share their own media files.
• Connect with other members and subscribe to their media channel
• Members can create groups, share their media files, and create a community within your community around their interests. Groups can also be set to private so only friends get access.
• Visit other users’ profiles, leave comments, view their favourite media and make new friends
• Private message friends and/or other members
• Private Media - Ability to create private groups so your uploaded files are only shared with friends
• Video commenting system that will bring your community to life
There are a few tricks which help you increase your website traffic by using Youtube clone.
Try offering users an incentive to upload videos, this will indeed increase participation. Not necessarily monetary prize, it could be in form of offer of being featured on the homepage of your website for a limited period of time. Even if you get two- three more video uploads a week, it’s a success.
Youtube clone allows editing your upload file to allow adding a video to only one channel. The benefit is that search engine won’t pick your content as duplicate since it’s added in a single channel.
Motivate users to write long tail descriptions that are relevant to the videos. Youtube clone script provides upload.tpl file for this purpose. These descriptions help in search engine indexing.
Gone are the days when one had to rely on DVD to share something with friends. Today all thanks to the websites with video sharing feature, you no longer have to worry about having missed out on any important event of your near and dear ones! The video sharing option of many social networking sites like Youtube is its biggest traffic puller feature. Any user can upload videos clips onto these websites that provide video hosting services and the clips can be viewed by anyone with internet access, anywhere in the world.
Thanks to the readymade Youtube clone script available on the Internet, today you don’t need to have broad technical expertise to own a website like Youtube. The providers of these Youtube clone software have made it easy to install and use. All you have to do is buy Youtube clone script, follow the step by step instructions for installation and you can have your own Youtube clone website up and running in no time. Some Youtube clone script providers also offer the provision of showcasing your own clone script. All you need to do is to submit your clone script to the concerned sites and in no time you will see more traffic coming your way.
Apart from uploading and viewing videos, this Youtube clone will bring a whole lot of revenues for your website. The benefits of using Youtube clone scripts are briefly discussed below:
• Members can upload, manage and share their own media files.
• Connect with other members and subscribe to their media channel
• Members can create groups, share their media files, and create a community within your community around their interests. Groups can also be set to private so only friends get access.
• Visit other users’ profiles, leave comments, view their favourite media and make new friends
• Private message friends and/or other members
• Private Media - Ability to create private groups so your uploaded files are only shared with friends
• Video commenting system that will bring your community to life
There are a few tricks which help you increase your website traffic by using Youtube clone.
Try offering users an incentive to upload videos, this will indeed increase participation. Not necessarily monetary prize, it could be in form of offer of being featured on the homepage of your website for a limited period of time. Even if you get two- three more video uploads a week, it’s a success.
Youtube clone allows editing your upload file to allow adding a video to only one channel. The benefit is that search engine won’t pick your content as duplicate since it’s added in a single channel.
Motivate users to write long tail descriptions that are relevant to the videos. Youtube clone script provides upload.tpl file for this purpose. These descriptions help in search engine indexing.
Simple PHP Review
I've tried just about everything there is out there to learn PHP. I
bought a PHP for Dummies book, read w3school's PHP tutorial and browsed
forums for hours on end, but nothing out there really helped me grasp
how to program in PHP until I found a product called Simple PHP.
Simple PHP uses videos to teach users PHP. It was just what I needed to help me learn how to build code for websites. I've now designed a complex user system which allows people to log in and purchase products. Before I started using Simple PHP, my code was very sloppy and had tons of security holes. Once I started watching the video tutorials, my code has become not only much cleaner, but safer and more efficient.
Not only have the videos helped me master this language, but whenever I don't remember something I've learned, all I have to do is open the manual included in the package. It's a great reference tool, and I've never been happier with a product. It starts with the basics and advances you on to very advanced topics with ease.
Since learning PHP, I've gotten a job with a web development company designing back end code for websites. PHP opens many doors for you; it's an invaluble language to learn. I never thought I could be a programmer for a reputable company without a degree, but I have once again proven myself wrong.
I HIGHLY recommend Simple PHP for anyone interested in learning PHP. It's a must know language for anyone interested in web design.
Simple PHP uses videos to teach users PHP. It was just what I needed to help me learn how to build code for websites. I've now designed a complex user system which allows people to log in and purchase products. Before I started using Simple PHP, my code was very sloppy and had tons of security holes. Once I started watching the video tutorials, my code has become not only much cleaner, but safer and more efficient.
Not only have the videos helped me master this language, but whenever I don't remember something I've learned, all I have to do is open the manual included in the package. It's a great reference tool, and I've never been happier with a product. It starts with the basics and advances you on to very advanced topics with ease.
Since learning PHP, I've gotten a job with a web development company designing back end code for websites. PHP opens many doors for you; it's an invaluble language to learn. I never thought I could be a programmer for a reputable company without a degree, but I have once again proven myself wrong.
I HIGHLY recommend Simple PHP for anyone interested in learning PHP. It's a must know language for anyone interested in web design.
Advantages of Php Development
PHP Hypertext Processor is a server-side web programming language that
can be embedded into HTML. PHP uses are widespread, and can include any
kind of server functionality that takes user's input and displays or
manipulates the input. PHP can run on both UNIX and Windows servers,
which makes it more accessible than Windows (ASP). This scripting
language is growing day by day. PHP5 a fully object oriented language
and its platform independence and speed on Linux server helps to build
large and complex web applications.
PHP is a particularly useful programming language because it allows for advanced programming and is easy to integrate with web pages. Another plus of PHP is that the language interfaces very well with MySQL, a popular type of online database. MYSQL is a commercial grade database application that is made available free under the Open Source to anyone. Another plus of PHP is that it is Open Source Code. The actual code that is PHP is available to the public for free, while the source code for products such as ASP is not. So PHP is very cheap. Because PHP is open source, there is a large community of PHP programmers that help each other with code. This means PHP programmers can rely on each other by using reusable pieces of code called functions and classes rather than constantly reinventing the wheel. This can dramatically cut down on production time.
PHP is based on C++ language and the syntax used in PHP is quite similar to C/C++. C/C++ is still considered the best programming language by many programmers and people who love this language would surely feel more comfortable with the syntax of PHP.
PHP and MySQL are excellent choice for webmasters looking to automate their web sites. Now search spiders "see" all the content on a PHP page, the same way it is viewed in a browser. The creation of a php-shopping cart is surprisingly simple and when done with precision it could translate into a highly effective and universally accepted php-shopping cart.
PHP is a particularly useful programming language because it allows for advanced programming and is easy to integrate with web pages. Another plus of PHP is that the language interfaces very well with MySQL, a popular type of online database. MYSQL is a commercial grade database application that is made available free under the Open Source to anyone. Another plus of PHP is that it is Open Source Code. The actual code that is PHP is available to the public for free, while the source code for products such as ASP is not. So PHP is very cheap. Because PHP is open source, there is a large community of PHP programmers that help each other with code. This means PHP programmers can rely on each other by using reusable pieces of code called functions and classes rather than constantly reinventing the wheel. This can dramatically cut down on production time.
PHP is based on C++ language and the syntax used in PHP is quite similar to C/C++. C/C++ is still considered the best programming language by many programmers and people who love this language would surely feel more comfortable with the syntax of PHP.
PHP and MySQL are excellent choice for webmasters looking to automate their web sites. Now search spiders "see" all the content on a PHP page, the same way it is viewed in a browser. The creation of a php-shopping cart is surprisingly simple and when done with precision it could translate into a highly effective and universally accepted php-shopping cart.
Subscribe to:
Posts (Atom)