Wednesday, 29 April 2015

Chapter 25 - Web Hosting E-Commerce

If you are selling a product or a service, e-commerce might be a smart way to do business.

Internet E-Commerce

E-Commerce is about selling products or services over the Internet.

E-Commerce Systems

It is not a very good idea to build your own e-commerce system. Building an e-commerce system is a complicated process, with the potential for a lot of errors.
You might buy a ready-to-use system and run it on your own server. Many systems are available on the market today, and most of them will cover your basic needs for order management and processing. But again, if you are not familiar with hosting your own web site, starting with an e-commerce site is not the right thing.
The best solution, in our opinion, is to find an ISP that offers an e-commerce solution.

E-Commerce and Hosting Providers

E-commerce covers a huge range of products. With different ISPs you will find anything from very simple to very complex solutions.
Most ISPs offer a simple and inexpensive solution, that allow you to run a "virtual store".

Your Checklist

  • How does it handle customers?
  • How does it handle product catalogs?
  • How does it handle orders?
  • How does it handle inventory?
  • How does it handle back orders?
  • How does it handle shipment?
  • How does it handle accounts?
  • How does it handle billing?
  • How does it handle payment?
  • How does it handle foreign currency?
  • How does it handle credit cards?
  • How does it handle taxes?
  • How does it handle security?
  • How does it handle integrity (encryption)?
Also check if the most time-consuming tasks are automated. Look for automated billing, invoice handling, accounting, and report generation.
Before you sign up with an ISP, surf some other e-commerce sites on their servers. Find out how it works. Try some shopping, and see if you get a good feeling. Also compare the other sites against yours, to see if it looks like you have the same needs. Contacting some of the other customers is also a valuable option.

Tax Issues

Taxes is a complex issue for on-line stores. Especially VAT (Value Added Tax).
If you are selling on-line, you will most likely be in the export business.
Exporting goods may not be the subject of VAT in your country, but often your customers will have to pay their local VAT when they pick up the goods.
In addition, there will be the issue of income tax for your shop, depending on how you report your income from sales.
Before starting an on-line store, be sure to consult a tax adviser.

Need help? Try KimmyJusTips! 

Tuesday, 28 April 2015

Chapter 24 - Web Hosting Types

Hosting can be FREE, SHARED or DEDICATED.

Free Hosting

Some ISPs offer free web hosting.
Free web hosting is best suited for small sites with low traffic, like personal sites. It is not recommended for high traffic or for real business. Technical support is often limited, and technical options are few.
Very often you cannot use your own domain name at a free site. You have to use a name provided by your host like http://www.freesite.com/users/~yoursite.htm. This is hard to type, hard to remember, and not very professional.
Good:Bad:
 It's free.No domain names.
Good for family, hobby or personal sites.Few, limited, or no software options.
Free email is often an option.Limited security options.
Limited or no database support.
Limited technical support.

Shared (Virtual) Hosting

Shared hosting is very cost effective.
With shared hosting, your web site gets its own domain name, and is hosted on a powerful server along with maybe 100 other web sites.
Shared solutions often offer multiple software solutions like e-mail, database, and different editing options. Technical support tends to be good.
Good:Bad:
Low cost. Cost is shared with others.Reduced security due to many sites on one server.
Good for small business and average traffic.Restrictions on traffic volume.
Multiple software options.Restricted database support.
Own domain name.Restricted software support.
Good support

Dedicated Hosting

With dedicated hosting, your web site is hosted on a dedicated server.
Dedicated hosting is the most expensive option. This option is best suited for large web sites with high traffic, and web sites that use special software.
You should expect dedicated hosting to be very powerful and secure, with almost unlimited software solutions.
Good:Bad:
Good for large business.Expensive.
Good for high traffic.Requires higher skills.
Multiple domain names.
Powerful email solutions.
Powerful database support.
Strong (unlimited) software support.

Collocated Hosting

Collocation means "co-location". Collocated hosting lets you place your own web server on the premises (locations) of a service provider.
This is pretty much the same as running your own server in your own office, only that it is located at a place better designed for it.
Most likely an ISP will have dedicated resources like high-security against fire and vandalism, regulated backup power, dedicated Internet connections and more.
Good:Bad:
High bandwidth.Expensive.
High up-time.Requires higher skills.
High security.Harder to configure and debug.
Unlimited software options.

Your Checklist

Before you choose your web host, make sure that:
  • The hosting type suits your needs
  • The hosting type is cost effective
  • Upgrading to a better server is possible
  • If needed, upgrading to a dedicated server is possible
Before you sign up with an ISP, surf some other web sites on their servers, and try to get a good feeling about their network speed. Also compare the other sites against yours, to see if it looks like you have the same needs. Contacting some of the other customers is also a valuable option.

Need help? Try KimmyJusTips! 

Monday, 27 April 2015

Chapter 23 - Web Hosting Database Technologies

MS SQL Server or Oracle for high traffic database-driven web sites.
MySQL for low-cost database-access.
MS Access for low traffic web sites.

Web Databases

If your web site needs to update large quantities of information via the web, you will need a database to store your information.
There are many different database systems available for web hosting. The most common are MySQL, SQL Server, Oracle, and MS Access.

Using the SQL Language

SQL is the language for accessing databases.
If you want your web site to be able to store and retrieve data from a database, your web server should have access to a database-system that uses the SQL language.
If you want to learn more about SQL, please visit our SQL tutorial.

SQL Server

Microsoft's SQL Server is a popular database software for database-driven web sites with high traffic.
SQL Server is a very powerful, robust and full featured SQL database system.

Oracle

Oracle is also a popular database software for database-driven web sites with high traffic.
Oracle is a very powerful, robust and full featured SQL database system.

MySQL

MySQL is also a popular database software for web sites.
MySQL is a very powerful, robust and full featured SQL database system.
MySQL is an inexpensive alternative to the expensive Microsoft and Oracle solutions.

Access

When a web site requires only a simple database, Microsoft Access can be a solution.
Access is not well suited for very high-traffic, and not as powerful as MySQL, SQL Server, or Oracle.

Need help? Try KimmyJusTips! 

Sunday, 26 April 2015

Chapter 22 - Web Hosting Technologies

This section describes some of the most common hosting technologies.

Windows Hosting

Windows hosting means hosting of web services that runs on the Windows operating system.
You should choose Windows hosting if you plan to use ASP (Active Server Pages) as server scripting, or if you plan to use a database like Microsoft Access or Microsoft SQL Server. Windows hosting is also the best choice if you plan to develop your web site using Microsoft Expression Web.

Unix Hosting

Unix hosting means hosting of web services that runs on the Unix operating system.
Unix was the first (original) web server operating system, and it is known for being reliable and stable. Often less expensive than Windows.

Linux Hosting

Linux hosting means hosting of web services that runs on the Linux operating system.

CGI

CGI scripts are executables that will execute on the server to produce dynamic and interactive web pages.
Most ISPs offer some kind of CGI capabilities. ISPs often offer preinstalled, ready to run, guest-books, page-counters, and chat-forums solutions in CGI.
CGI is most common on Unix or Linux servers.

ASP - Active Server Pages

ASP is a server-side scripting technology developed by Microsoft.
With ASP you can create dynamic web pages by putting script code inside your HTML pages. The code is executed by the web server before the page is returned to the browser. Both VBScript and JavaScript can be used.
ASP is a standard component in Windows 95,98, 2000, and XP. It can be activated on all computers running Windows.
If you want to learn more about ASP, please visit our ASP tutorial.

PHP

PHP is the widely-used, free, and efficient alternative to competitors such as Microsoft's ASP.
PHP is perfectly suited for Web development, and can be embedded directly into the HTML code.
The PHP syntax is very similar to Perl and C.
PHP is often used together with Apache (web server) on various operating systems. It also supports ISAPI and can be used with Microsoft's IIS on Windows.
PHP supports many databases, such as MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL, Generic ODBC, etc.
If you want to learn more about PHP, please visit our PHP tutorial.

JSP

JSP is a server-side technology much like ASP, developed by Sun.
With JSP you can create dynamic web pages by putting Java code inside your HTML pages. The code is executed by the web server before the page is returned to the browser.
Since JSP uses Java, the technology is not restricted to any server-specific platform.

ColdFusion

ColdFusion is another server-side scripting language used to develop dynamic web pages.
ColdFusion is developed by Adobe.

Chili!Soft ASP

Microsoft's ASP technology runs only on Windows platforms.
However, Chili!Soft ASP is a software product that allows ASP to run on UNIX and some other platforms.

Microsoft Expression Web

Expression Web is a website design tool developed by Microsoft.
Expression Web allows users to develop a web site without any deep knowledge of web development.
If you plan to use Expression Web, you should look for a Windows hosting solution.

Adobe Dreamweaver

Dreamweaver is a website design tool owned by Adobe Systems.
Dreamweaver allow users to develop a web site without any deep knowledge of web development.
Dreamweaver has support for web technologies such as CSS, JavaScript, ASP.NET, ColdFusion, JavaServer Pages, and PHP.
Dreamweaver is available for both Mac and Windows operating systems.

Secure Server

A secure server can transmit data encrypted.
If you plan to do online creditcard transactions, or other types of web communication that needs to be protected against unauthorized access, your ISP must provide a secure server.

Need help? Try KimmyJusTips! 

Saturday, 25 April 2015

Chapter 21 - Web Hosting E-mail Services

Hosting services should include e-mail accounts and e-mail services.

E-mail Accounts

Hosting solutions should include e-mail accounts for each person in your company.
E-mail addresses should appear something like this:
john@mycompany.com
john.doe@mycompany.com
jdoe@mycompany.com

POP E-mail

POP stands for Post Office Protocol. POP is a standard client/server protocol for sending and receiving e-mail.
The e-mails are received and held on your internet server until you pick it up with a client e-mail program, like Microsoft Outlook or Mozilla Thunderbird.

IMAP Email

IMAP stands for Internet Message Access Protocol. IMAP is another standard protocol for sending and receiving e-mail.
The e-mails are received, and held on your internet server, until you pick it up with a client e-mail program, like Microsoft Outlook or Mozilla Thunderbird.
IMAP represents an improvement over POP because e-mail stored on an IMAP server can be manipulated from several computers (a computer at home, a workstation at the office, etc.), without having to transfer messages back and forth between computers. POP was designed to support e-mail access on one single computer.

Web-based E-mail

Web-based e-mail services enable you to access your e-mail via a web browser. You log into your e-mail account via the Web to send and retrieve e-mail. Being able to access your e-mail from any browser anywhere in the world is a very attractive option.
Examples of web-based e-mail services are Gmail and Hotmail.

E-mail Forwarding

E-mail forwarding allows you to have multiple e-mail personalities.
With e-mail forwarding, you can setup aliases for other e-mail accounts like:
postmaster@mycompany.com should be forwarded to peter@mycompany.com
sales@mycompany.com should be forwarded to mary@mycompany.com

Mailing Lists

Some service providers offer mailing list capabilities. This is valuable if you plan to send out e-mails to a large number of users.

Need help? Try KimmyJusTips! 

Friday, 24 April 2015

Chapter 20 - Web Hosting Capacities

Make sure you get the disk space and the traffic volume you need.

How Much Disk Space?

A small or medium web site will need between 10 and 100MB of disk space.
If you look at the size of HTML pages, you will see that the average size is very small. But if you look at the size of the images used inside these pages, you will often find the images larger than the page.
Expect each HTML page to take up between 5 and 50KB of disk space on your web server, depending on the use of images or other space-consuming elements.
If you use a lot of images or graphic elements (or sound files or movies), you might need much more disk space.
Make sure you know your needs, before choosing a web host.

Monthly Traffic

A small or medium web site will consume between 1GB and 5GB of data transfer per month.
Calculate the following: average page size * expected page views per month
Example: If your average page size is 30KB and you expect 50,000 page views per month, you will need 0.03MB * 50,000 = 1.5GB.
Larger, commercial sites often consume more than 100GB of monthly traffic.
Before you sign up with a host provider, make sure to check this:
  • What are the restrictions on monthly transfer?
  • Will the web site be closed if it exceeds the volume?
  • Will you be billed a fortune if the web site exceeds the volume?
  • Is upgrading a simple task?

Connection Speed

In the early days of the Internet a T1 connection was considered a fast connection. Today connection speeds are much faster.
1 byte equals to 8 bits (and that's the number of bits used to transport one character). Low-speed modems can transport from about 14 000 to 56 000 bits per second (14 to 56 kilobits per second). That is somewhere between 2000 and 7000 characters per second, or about 1 to 5 pages of written text.
One kilobit (Kb) is 1024 bits. One megabit (Mb) is 1024 kilobits. One gigabit (Gb) is 1024 megabits.
These are connection speeds used on the Internet today:
Name Connection Speed per second
Modem Analog 14.4-56Kb
D0 Digital (ISDN) 64Kb
T1 Digital 1.55Mb
T3 Digital 43Mb
OC-1 Optical Carrier 52Mb
OC-3 Optical Carrier 156Mb
OC-12 Optical Carrier 622Mb
OC-24 Optical Carrier 1.244Gb
OC-48 Optical Carrier 2.488Gb
Before you sign up with a host provider, surf some other web sites on their servers, and try to get a good feeling about their network speed. Also compare the other sites against yours, to see if it looks like you have the same needs. Contacting some of the other customers is also a valuable option.

Need help? Try KimmyJusTips! 

Thursday, 23 April 2015

Chapter 19 - Web Hosting Domain Names

A domain name is a unique name for your web site.
Choosing a hosting solution should include domain name registration.
Your domain name should be easy to remember and easy to type.

What is a Domain Name?

A domain name is a unique name for a web site, like w3schools.com.
Domain names must be registered. When domain names are registered, they are added to a large domain name register. In addition, information about the web site, including the IP address, is stored on a DNS server.
DNS stands for Domain Name System. A DNS server is responsible for informing all other computers on the Internet about the domain name and the web site address.

Registering a Domain

Domains can be registered from domain name registration companies.
These companies provide interfaces to search for available domain names, and they offer a variety of domain name extensions that can be registered at the same time.

Choosing a Domain Name

Choosing a domain name is a major step for any individual or organization.
New domain name extensions and creative thinking still offer thousands of excellent domain names!
When choosing a name, it is important to consider the purpose of a domain name, which is to provide an easy way to reach your web site.
The best domains have the following characteristics:
Short - People don't like to type long domain names! A short domain name is easier to type, read, and remember.
Meaningful - A short domain is nothing without meaning, 34i4nh.com is not easy to enter or to remember. Select a domain that relates to your site in a way that people will understand.
Clear - Clarity is important when selecting a domain name. Avoid a name that is difficult to spell or pronounce.
Exposure - Names that are short and easy to remember are an asset. In addition to visitors, also consider search engines. Search engines index your site and rank it for relevance against terms people search for. In order to maximize your sites exposure, consider including a relevant search term in your domain. Of course, only consider this if it still maintains a short, clear and meaningful domain name.

Sub Domains

Most people are unaware that they use sub domains daily. The famous "www" of the World Wide Web is an example of a sub domain. Sub domains can be created on a DNS server, and they don't need to be registered with a domain name registrar, of course, the original domain name needs to be registered before a sub domain could be created.
Examples of sub domains used on the internet are http://store.apple.com and http://support.microsoft.com.
Sub domains can be requested from your web hosting provider.

False Domain Names - Directory Listings

Some providers will offer you a name under their own name, like:  www.theircompany.com/yourcompany/
This is not a real domain name, it is a directory - and you should try to avoid it.
Directory domains are not desirable, especially for companies.
Typically, directory domains are used for personal web sites and free web sites provided by an ISP, you may have seen www.theircompany.com/~username as an address.
Competition in domain name registration has resulted in a dramatic decrease in pricing, so domain sharing is not common, since it is possible to register a domain name for only $15 per year.

Expired Domains

Another source for domain registrations is expired domains.
When you register a domain, think of it as a rental, assuming there are no legal or trademark issues with the domain name, you are free to use it as long as you continue to pay the yearly fee (you can now register in advance as many as 10 years). Some people register domains as speculators, hoping that they can later sell them, while others may have planned to use a domain and never had the time. The result is that domains that were previously registered, become available again.

Use Your Domain Name

After you have chosen and registered your own domain name, make sure you use it on all your web pages, and on all your correspondence, like e-mail and traditional mail.
It is important to let other people be aware of your domain name, and to inform your partners and customers about your web site.

Need help? Try KimmyJusTips! 

Wednesday, 22 April 2015

Chapter 18 - Web Hosting Providers

To make your web site visible to the world, you'll have to store it on a web server.

Hosting your own Web site

Hosting your web site on your own server is always an option. Here are some points to consider:

Hardware Expenses

To run a "real" web site, you will have to buy some powerful server hardware. Don't expect that a low cost PC will do the job. You will also need a permanent (24 hours a day ) high-speed connection.

Software Expenses

Remember that server-licenses often are higher than client-licenses. Also note that server-licenses might have limits on number of users.

Labor Expenses

Don't expect low labor expenses. You have to install your own hardware and software. You also have to deal with bugs and viruses, and keep your server constantly running in an environment where "everything could happen".

Using an Internet Service Provider

Renting a server from an Internet Service Provider (ISP) is a common option.
Most small companies store their web site on a server provided by an ISP. Here are some advantages:

Connection Speed

Most ISPs have very fast connections to the Internet.

Powerful Hardware

ISPs often have powerful web servers that can be shared by several companies. You can also expect them to have an effective load balancing, and necessary backup servers.

Security and Stability

ISPs are specialists on web hosting. Expect their servers to have more than 99% up time, the latest software patches, and the best virus protection.

Things to Consider with an ISP

24-hour support

Make sure your ISP offers 24-hours support. Don't put yourself in a situation where you cannot fix critical problems without having to wait until the next working day. Toll-free phone could be vital if you don't want to pay for long distance calls.

Daily Backup

Make sure your ISP runs a daily backup routine, otherwise you may lose some valuable data.

Traffic Volume

Study the ISP's traffic volume restrictions. Make sure that you don't have to pay a fortune for unexpected high traffic if your web site becomes popular.

Bandwidth or Content Restrictions

Study the ISP's bandwidth and content restrictions. If you plan to publish pictures or broadcast video or sound, make sure that you can.

E-mail Capabilities

Make sure your ISP supports the e-mail capabilities you need.

Front Page Extensions

If you use FrontPage to develop your web site, make sure your ISP supports FrontPage server extensions.

Database Access

If you plan to use data from databases on your web site, make sure your ISP supports the database access you need.

Need help? Try KimmyJusTips! 

Tuesday, 21 April 2015

Chapter 17 - Web Hosting Introduction

How does the Internet work? How can I have my own Web Site?
What is a Web Host? What is an Internet Service Provider?

What is the World Wide Web?

  • The Web is a network of computers all over the world
  • All the computers in the Web can communicate with each other
  • All the computers use a communication protocol called HTTP

How does the WWW work?

  • Web information is stored in documents called web pages
  • Web pages are files stored on computers called web servers
  • Computers reading the web pages are called web clients
  • Web clients view the pages with a program called a web browser
  • Popular browsers are Google Chrome, Firefox, and Internet Explorer

How does a Browser Fetch a Web Page?

  • A browser fetches a page from a web server by a request
  • A request is a standard HTTP request containing a page address
  • An address may look like this: http://www.example.com/default.htm

How does a Browser Display a Web Page?

  • All web pages contain instructions for display
  • The browser displays the page by reading these instructions
  • The most common display instructions are called HTML tags
  • HTML tags look like this <p>This is a paragraph.</p>
If you want to learn more about HTML, please visit our HTML tutorial.

What is a Web Server?

  • The collection of all your web pages is called your web site
  • To let others view your web pages, you must publish your web site
  • To publish your work, you must copy your site to a web server
  • Your own PC can act as a web server if it is connected to a network
  • Most common is to use an Internet Service Provider (ISP)

What is an Internet Service Provider?

  • ISP stands for Internet Service Provider
  • An ISP provides Internet Services
  • A common Internet service is web hosting
  • Web hosting means storing your web site on a public server
  • Web hosting normally includes email services
  • Web hosting often includes domain name registration

Summary

If you want other people to view your web site, you must copy your site to a public server.
Even if you can use your own PC as a web server, it is more common to let an Internet Service Provider (ISP) host your site.
Included in a Web hosting solution you can expect to find domain name registration and standard email services.
You can read more about domain name registration, email and other services in the next chapters of this tutorial.

Need help? Try KimmyJusTips! 

Monday, 20 April 2015

Chapter 16 - Web TCP/IP

TCP/IP is a family of protocols for communication between computers.

What is TCP/IP?

TCP/IP stands for Transmission Control Protocol / Internet Protocol. It defines how electronic devices (like computers) should be connected over the Internet, and how data should be transmitted between them.
TCP - Transmission Control Protocol
TCP is responsible for breaking data down into small packets before they can be set over a network, and for assembling the packets again when they arrive.
IP - Internet Protocol
IP takes care of the communication between computers. It is responsible for addressing, sending and receiving the data packets over the Internet.

TCP/IP Protocols For the Web

Web browsers and servers use TCP/IP protocols to connect to the Internet. Common TCP/IP protocols are:
HTTP - Hyper Text Transfer Protocol
HTTP takes care of the communication between a web server and a web browser. HTTP is used for sending requests from a web client (a browser) to a web server, returning web content (web pages) from the server back to the client.
HTTPS - Secure HTTP
HTTPS takes care of secure communication between a web server and a web browser. HTTPS typically handles credit card transactions and other sensitive data.
FTP - File Transfer Protocol
FTP takes care of transmission of files between computers.

IP is Connection-Less

IP is a "connection-less" communication protocol.
IP does not occupy the communication line between two computers. This reduces the need for network lines. Each line can be used for communication between many different computers at the same time.
With IP, messages (or other data) are broken up into small independent "packets" and sent between computers via the Internet. IP is responsible for "routing" each packet to the correct destination.

IP Routers

When an IP packet is sent from a computer, it arrives at an IP router.
The IP router is responsible for "routing" the packet to the correct destination, directly or via another router.
The path the packet will follow might be different from other packets of the same communication. The router is responsible for the right addressing, depending on traffic volume, errors in the network, or other parameters.
Analogi: Communicating via IP is like sending a long letter as a large number of small postcards, each finding its own (often different) way to the receiver.

IP Addresses

IP uses 32 bits, or four numbers between 0 and 255, to address a computer.
IP addresses are normally written as four numbers separated by a period, like this: 192.168.1.50.
Each computer must have an unique IP address before it can connect to the Internet.
Each IP packet must have an address before it can be sent to another computer.
This is an IP address: 192.68.20.50. This might be the same address:  www.w3schools.com
This is your IP address: 108.161.252.139
In computer terms, TCP/IP uses 32 bits addressing. It uses 4 bytes. One byte is 8 bits. One byte can contain 256 different values:
00000000, 00000001, 00000010, 00000011, 00000100, 00000101, 00000110, 00000111, 00001000 .......and all the way up to 11111111.

Domain Names

A name is much easier to remember than a 12 digit number.
Names used for TCP/IP addresses are called domain names.
w3schools.com is a domain name.
When you address a web site, like http://www.w3schools.com, the name is translated to a number by a Domain Name Server (DNS).
All over the world, DNS servers are connected to the Internet. DNS servers are responsible for translating domain names into TCP/IP addresses.
When a new domain name is registered together with a TCP/IP address, DNS servers all over the world are updated with this information.

TCP/IP Protocols for Email

E-mail programs use TCP/IP for sending and receiving e-mails. The TCP/IP protocols for email are:
SMTP - Simple Mail Transfer Protocol
SMTP takes care of sending emails. Often emails are sent to an email server (SMTP server), then to other servers, and finally to its destination. SMTP can only transmit pure text. It cannot transmit binary data like pictures, sounds or movies.
MIME - Multi-purpose Internet Mail Extensions
The MIME protocol lets SMTP transmit multimedia files including voice, audio, and binary data across TCP/IP networks. The MIME protocol converts binary data to pure text, before it is sent.
POP - Post Office Protocol
The POP protocol is used by email programs to retrieve emails from an email server. If your email program uses POP, all your emails are downloaded to your email program (also called email client), each time it connects to your email server.
IMAP - Internet Message Access Protocol
The IMAP protocol works much like the POP protocol. The main difference is that the IMAP protocol will not automatically download all your emails each time your email program connects to your email server.
The IMAP protocol allows you to look through your email messages at the email server before you download them. With IMAP you can choose to download your messages or just delete them. This way IMAP is perfect if you need to connect to your email server from different locations, but only want to download your messages when you are back in your office.

Other TCP/IP Protocols

ARP - Address Resolution Protocol
ARP is used by IP to find the hardware address of a computer network card based on the IP address.
BOOTP - Boot Protocol
BOOTP is used for booting (starting) computers from the network.
DHCP - Dynamic Host Configuration Protocol
DHCP is used for allocation of dynamic IP addresses to computers in a network.
ICMP - Internet Control Message Protocol
ICMP takes care of error-handling in the network.
LDAP - Lightweight Directory Access Protocol
LDAP is used for collecting information about users and e-mail addresses from the internet.
NTP - Network Time Protocol
NTP is used to synchronize the time (the clock) between computers.
PPTP - Point to Point Tunneling Protocol
PPTP is used for setting up a connection (tunnel) between private networks.
RARP - Reverse Address Resolution Protocol
RARP is used by IP to find the IP address based on the hardware address of a computer network card.
SNMP - Simple Network Management Protocol
SNMP is used for administration of computer networks.
SSL - Secure Sockets Layer
The SSL protocol is used to encrypt data for secure data transmission.
TLS - Transport Layer Security
The TLS protocol is a newer and more secure version of SSL.

Need help? Try KimmyJusTips! 

Sunday, 19 April 2015

Chapter 15 - WEB - SEO

Have you ever used a search engine? Do you wonder how to get listed?
This page will help you to get listed in the most popular search engines.

SEO - Search Engine Optimization

Search engine optimization (SEO) is the process of improving the ranking (visibility) of a website in search engines. The higher (or more frequently) a web site is displayed in a search engine list (like Google), the more visitors it is expected to receive.
SEO considers how search engines work, what people search for, and which search terms (words) are typed. Optimizing a website may involve editing the content to increase its relevance to specific keywords. Promoting a site to increase the number of links, is another SEO tactic.

Effective search engine optimization may require changes to the HTML source code of a site and to the site content. SEO tactics should be incorporated into the website development and especially into the menus and navigation structure.

Another class of techniques, known as black hat SEO or spamdexing, uses methods such as link farms, keyword stuffing and article spinning that degrade both the relevance of search results and the quality of user-experience with search engines. Search engines look for sites that employ these techniques in order to remove them from their indices.

Submit Your Site to Search Engines

Web search engines (like Google) automatically add new web sites to their search index every time they crawl the web.
If your web site is new and unknown, it may take some time before your site is "discovered".
Luckily most search engines invites you to submit your site: *
Google: http://www.google.com/addurl.html
Yahoo: http://search.yahoo.com/info/submit.html
Bing: http://www.bing.com/webmaster/SubmitSitePage.aspx
Open Directory: http://www.dmoz.org/help/submit.html
Normally you will have to enter the full URL of your site (including the http:// prefix).
When you submit your site to a search engine, you only need to specify the top-level (home) page. You do not need to submit each page. The search engine will find the rest based on your links (keep your navigation menus tidy).
Sometimes you can also add keywords that describe the page, but don't expect these to affect how your site is ranked or listed.
* Not all submitted URLs will be added, and you cannot predict or guarantee when or if your site will appear in a search result.

Need help? Try KimmyJusTips!

Saturday, 18 April 2015

Chapter 14 - Web Validation

Web Page Validator

A validator is a software program that can check your web pages against the web standards.
When using a validator to check HTML, XHTML or CSS documents, the validator returns a list of errors found, according to your chosen standard.
Make sure you make it a habit to validate all your web pages before publishing.

Need help? Try KimmyJusTips!



Friday, 17 April 2015

Chapter 13 - Web Quality

Using the newest web standards improves the quality of your web site.

Use HTML 5

Writing your pages to the latest HTML5 standard, brings you as close as possible to perfection.
All HTML pages should contain a <!DOCTYPE> element to define which HTML version it conforms to.
The DOCTYPE gives important information to your browser so it can render your page faster and more consistently.
The DOCTYPE declaration also allows validating software to check the syntax of your page:
<!DOCTYPE html>

Use Separate CSS Files

Using Cascading Style Sheets (CSS) is the preferred way of separating content from style, in quality web pages.
Using CSS improves the quality of web sites and increases the readability for many different browsers.
Styles (sizes, fonts, colors, and more) should be set outside web pages, in separate CSS files. Using a separate CSS file will also greatly reduce your web site development costs.
With a separate CSS file you can change the style of HTML elements by rewriting one line of code. If you have used CSS inside your pages, you will have to edit all these pages.

Web Validation

A validator is a software program that can check your web pages against the web standards.
When using a validator to check HTML and CSS documents, the validator returns a list of errors found, according to your chosen standard.
Make sure you make it a habit to validate all your web pages before publishing.

The Title Element

The <title> element is one of the most important HTML elements. Its main function is to describe the content of a web page.
Even if the title is not a visible part of your web page, it is important to the quality of your web site because:
  • It will be visible in search engine lists
  • It is visible in the browser's title bar
  • It will be displayed in the user's bookmark
The title should be as short and descriptive as possible.
Make sure the title matches the content the user is looking for. Then it is more likely the user will click on the link to visit your web site.
Good title examples:
<title>HTML Tutorial</title>
<title>XML Introduction</title>
Bad title examples:
<title>Introduction</title>
<title>Chapter 1</title>
<title>W3Schools has a collection of award winning, well organized, and easy to understand HTML, CSS, JavaScript, XML, and SQL tutorials with lots of working examples and source code. </title>

Heading Elements

The <h1> element is used to describe the main heading of a web page.
Because some web browsers display the <h1> element in a very large font by default, some web developers will use the <h2> element instead of the <h1> element for main headings. This will confuse most search engines and other software that will try to "understand" the structure of the web page.
Use <h1> for main headings, and <h2> and <h3> for lower level headings.
Try to structure your headings after this template:

Main heading

Some initial text

Level 2 heading

This is some text. This is some text. This is some text.

Level 3 heading

This is some text. This is some text. This is some text.
If you don't like the default size for headers, use CSS to change it.

Character Sets

All W3C standards (since 1996) defines an internal character set called Unicode (ISO 10646).
All modern web browsers are using this character set internally. Most documents transmitted over the Internet do not use the Unicode character set.
Because of this, browsers and servers must have a way to agree about the character set used in the communication between them.
Labeling each document with the proper character set, is important for the quality of your web site.
For your HTML pages, always use the following meta element inside the <head> element:
<meta charset="x">
Replace x with the character set you would like to use, like ISO-8859-1, UTF-8, or UTF-16.

Date Formats

Don't use dates like "04-03-02".
The date above could mean the 2nd of March, 2004. It could also mean the 4th of March, 2002. Or even the 3rd of April, 2002.
The International Standard Organization (ISO) has defined an international format for dates as "yyyy-mm-dd", where yyyy is the year, mm is the month, and dd is the day.
When you use this ISO format, you can expect most visitors to understand your dates.

Need help? Try KimmyJusTips!

Thursday, 16 April 2015

Chapter 12 - Creating a Web Site

WebMatrix

WebMatrix is a free web development tool that provides the easiest way to build websites.
WebMatrix contains:
  • Web examples and templates
  • Support for many different web languages
  • A web server (IIS Express)
  • A database server (SQL Server Compact)
With WebMatrix you can start with an empty web site and a blank home page, or you can build on templates using PHP, ASP, Umbraco, DotNetNuke, Drupal, Joomla, WordPress and more.
WebMatrix also has built-in tools for databases, security, search engine optimization, and web publishing.
To install WebMatrix, follow this link: http://www.microsoft.com/web/gallery/install.aspx?appid=WebMatrix

Create an Empty Web Site

Follow the three simple steps below to create an empty web site with WebMatrix:
  • Select a Template
  • Edit the Home Page
  • Run the Web Site
The 3 steps below, creates an empty HTML web site. If you want to create an PHP Site, an ASP site, or a Node.js site, look at the bottom of this page.

Step 1: Select a Template

Start WebMatrix, select New.

From the template gallery, select Empty Site from HTML templates.
Name the site demoweb (or anything you like)and click Next:

WebMatrix creates a new web site and displays a workspace window.
In the left pane, select the Files workspace:

Step 2: Edit the Home Page

To edit your home page, double-click the file index.html.
Put the following content into the file:

index.html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>Web Page Demo</title>
</head>
<body>
    <h1>My First Web Page</h1>
</body>
</html>

Step 3: Run Your Web Site

In WebMatrix, click Run:
WebMatrix starts a web server and runs the page in your default browser:

WebMatrix selects a random port number for your local web server.
In the example above it is displayed as: http://localhost:4670.

Create an Empty ASP Classic Web Site

Rename the home page from index.html to default.asp.

Create an Empty PHP Site

In step 1 select Empty Site from the PHP templates.

Create an Empty ASP.NET Web Pages Site

In step 1 select Empty Site from the ASP.NET templates.

Create an Empty Node.js Site

In step 1 select Empty Site from the Node.js templates.

Need help? Try KimmyJusTips!

Wednesday, 15 April 2015

Chapter 11 - Adding a Database

Displaying Data from Database

In a web page, you can easily display data from a database.
You can connect to an existing database, or you can create a new database.

Create a New Database

In this chapter we will demonstrate how to create a new database using WebMatrix:
  • Create a database
  • Add data to the database

Creating a Database

WebMatrix includes an SQL Database design tool.
Follow the instructions below to create an SQL database called "SmallBakery".
Open the Databases workspace and click New Database or Add a database.
WebMatrix will create a database with the same name as your site: "Demo.sdf":

Rename the database to "SmallBakery.sdf".
Click New Table.
Name the new table "Product".
In the new table, create 4 columns named "Id", "Name", "Description", and "Price".
For all columns, set Allows Null to "No".
For the "Id" column, Set Data Type to "bigint", Is Primary Key to "Yes", and Is Identity to "Yes".
For the "Name" and "Description" columns, set Data Type to "nvarchar(50)".
For the "Price" column, set Data Type to "money".
When you are finished, your table design will look like this:

Allow Nulls=No, specifies that the column cannot be blank (empty).
Is Primary Key?, tells the database that this will be the table's primary key.
Is Identity?, tells the database to automatically assign a new Id number for every new record (starting at 1).
Data Type=nvarchar(50), specifies a variable length (max 50) character string data type.
(The n in nvarchar indicates that the character variable can hold international Unicode characters)

Need help? Try KimmyJusTips!

 Adding Data to the Database

Follow the instructions below to add some data to your database:
Open the Products table (In the left pane, double-click SmallBakery.sdf, double-click Tables, and double-click Products).
Enter the following records:
Name Description Price
Bread Baked fresh every day 2.99
Strawberry Cake Made with organic strawberries 9.99
Apple Pie Second only to your mom's pie 12.99
Pecan Pie If you like pecans, this is for you 10.99
Lemon Pie Made with the best lemons in the world 11.99
Cupcakes Your kids will love these 7.99

 

Tuesday, 14 April 2015

JavaScript Objects

JavaScript Objects

Real Life Objects, Properties, and Methods

In real life, a car is an object.
A car has properties like weight and color, and methods like start and stop:
Object Properties Methods

car.name = Fiat

car.model = 500

car.weight = 850kg

car.color = white

car.start()

car.drive()

car.brake()

car.stop()
All cars have the same properties, but the property values differ from car to car.
All cars have the same methods, but the methods are performed at different times.

JavaScript Objects

You have already learned that JavaScript variables are containers for data values.
This code assigns a simple value (Fiat) to a variable named car:
var car = "Fiat"; 
 
Objects are variables too. But objects can contain many values.
This code assigns many values (Fiat, 500, white) to a variable named car:
var car = {type:"Fiat", model:500, color:"white"}; 
 
The values are written as name:value pairs (name and value separated by a colon).
Note JavaScript objects are containers for named values.

Object Properties

The name:values pairs (in JavaScript objects) are called properties.
var person = {firstName:"John", lastName:"Doe", age:50, eyeColor:"blue"};

Property Property Value
firstName John
lastName Doe
age 50
eyeColor blue

Object Methods

Methods are actions that can be performed on objects.
Methods are stored in properties as function definitions.
Property Property Value
firstName John
lastName Doe
age 50
eyeColor blue
fullName function() {return this.firstName + " " + this.lastName;}
Note JavaScript objects are containers for named values, called properties and methods.

Object Definition

You define (and create) a JavaScript object with an object literal:

Example

var person = {firstName:"John", lastName:"Doe", age:50, eyeColor:"blue"};
 
Spaces and line breaks are not important. An object definition can span multiple lines:

Example

var person = {
    firstName:"John",
    lastName:"Doe",
    age:50,
    eyeColor:"blue"
}; 
 

Accessing Object Properties

You can access object properties in two ways:
objectName.propertyName
or
objectName[propertyName]

Example1

person.lastName; 
 

Example2

person["lastName"]; 
 

Accessing Object Methods

You access an object method with the following syntax:
objectName.methodName()

Example

name = person.fullName();
 
If you access the fullName property, without (), it will return the function definition:

Example

name = person.fullName;
 

Do Not Declare Strings, Numbers, and Booleans as Objects!

When a JavaScript variable is declared with the keyword "new", the variable is created as an object:
var x = new String();        // Declares x as a String object var y = new Number();        // Declares y as a Number object var z = new Boolean();       // Declares z as a Boolean object
Avoid String, Number, and Boolean objects. They complicate your code and slow down execution speed.
Note You will learn more about objects later in this tutorial.
 
 
 
 
 
 
 

 

JavaScript Data Types

JavaScript Data Types

String, Number, Boolean, Array, Object.

JavaScript Data Types

JavaScript variables can hold many data types: numbers, strings, arrays, objects and more:
var length = 16;                               // Number var lastName = "Johnson";                      // String var cars = ["Saab", "Volvo", "BMW"];           // Arrayvar x = {firstName:"John", lastName:"Doe"};    // Object

The Concept of Data Types

In programming, data types is an important concept.
To be able to operate on variables, it is important to know something about the type.
Without data types, a computer cannot safely solve this:
var x = 16 + "Volvo";
Does it make any sense to add "Volvo" to sixteen? Will produce a result? Will it produce an error?
JavaScript will treat the example above as:
var x = "16" + "Volvo";
Note If the second operand is a string, JavaScript will also treat the first operand as a string. 

Example:

var x = 16 + "Volvo";
 
JavaScript evaluates expressions from left to right. Different sequences can produce different results:

JavaScript:

var x = 16 + 4 + "Volvo";

Result:

20Volvo
  

JavaScript:

var x = "Volvo" + 16 + 4;

Result:

Volvo164 
 
In the first example, JavaScript treats 16 and 4 as numbers, until it reaches "Volvo".
In the second example, since the first operand is a string, all operands are treated as strings.

JavaScript Has Dynamic Types

JavaScript has dynamic types. This means that the same variable can be used as different types:

Example

var x;               // Now x is undefinedvar x = 5;           // Now x is a Number var x = "John";      // Now x is a String

JavaScript Strings

A string (or a text string) is a series of characters like "John Doe".
Strings are written with quotes. You can use single or double quotes:

Example

var carName = "Volvo XC60";   // Using double quotes var carName = 'Volvo XC60';   // Using single quotes
You can use quotes inside a string, as long as they don't match the quotes surrounding the string:

Example

var answer = "It's alright";             // Single quote inside double quotes var answer = "He is called 'Johnny'";    // Single quotes inside double quotes var answer = 'He is called "Johnny"';    // Double quotes inside single quotes 
 
You will learn more about strings later in this tutorial.

JavaScript Numbers

JavaScript has only one type of numbers.
Numbers can be written with, or without decimals:

Example

var x1 = 34.00;     // Written with decimals var x2 = 34;        // Written without decimals
Extra large or extra small numbers can be written with scientific (exponential) notation:

Example

var y = 123e5;      // 12300000 var z = 123e-5;     // 0.00123
 
You will learn more about numbers later in this tutorial.

JavaScript Booleans

Booleans can only have two values: true or false.

Example

var x = true;
var y = false;
Booleans are often used in conditional testing.
You will learn more about conditional testing later in this tutorial.

JavaScript Arrays

JavaScript arrays are written with square brackets.
Array items are separated by commas.
The following code declares (creates) an array called cars, containing three items (car names):

Example

var cars = ["Saab", "Volvo", "BMW"];
  


Array indexes are zero-based, which means the first item is [0], second is [1], and so on.
You will learn more about arrays later in this tutorial.

JavaScript Objects

JavaScript objects are written with curly braces.
Object properties are written as name:value pairs, separated by commas.

Example

var person = {firstName:"John", lastName:"Doe", age:50, eyeColor:"blue"};
 
 
The object (person) in the example above has 4 properties: firstName, lastName, age, and eyeColor.
You will learn more about objects later in this tutorial.

The typeof Operator

You can use the JavaScript typeof operator to find the type of a JavaScript variable:

Example

typeof "John"                // Returns string typeof 3.14                  // Returns number typeof false                 // Returns boolean typeof [1,2,3,4]             // Returns object typeof {name:'John', age:34} // Returns object 
 

Undefined

In JavaScript, a variable without a value, has the value undefined. The typeof is also undefined.

Example

var person;                  // Value is undefined, type is undefined
  


Any variable can be emptied, by setting the value to undefined. The type will also be undefined.

Example

person = undefined;          // Value is undefined, type is undefined
 

Empty Values

An empty value has nothing to do with undefined.
An empty string variable has both a value and a type.

Example

var car = "";                // The value is "", the typeof is string
 

Null

In JavaScript null is "nothing". It is supposed to be something that doesn't exist.
Unfortunately, in JavaScript, the data type of null is an object.
Note You can consider it a bug in JavaScript that typeof null is an object. It should be null.
You can empty an object by setting it to null:

Example

var person = null;           // Value is null, but type is still an object
 
You can also empty an object by setting it to undefined:

Example

var person = undefined;     // Value is undefined, type is undefined
 

Difference Between Undefined and Null

typeof undefined             // undefinedtypeof null                  // objectnull === undefined           // falsenull == undefined            // true