URL (Uniform Resource Locator) & Connections

If you're new to creating content for the World Wide Web, there are a few concepts that you should be familiar with. The first is the URL or Uniform Resource Locator.
The URL is the address of a particular item on the Internet. This address can be part of either a domain name or an IP address.
A URL using a domain name would look something like http://www.cpwebhosting.net.com, and the file you seek might be in the directory. You can just as easily use the IP address to get the file you seek.
A complete URL contains a protocol prefix, such as HTTP:// or FTP://, followed by the address and a port number for example,
A server is a machine that contains the content and the associated server software. A client is a machine that is usually not a server, but that connects to the server to retrieve content.
In the case of the World Wide Web, the server is the machine that contains your published Web pages, and the client machines are those of people who are viewing your pages.
  • Bandwidth determines a speed at which you can move an amount of data between devices.
  • Three broad types of bandwidth exist little bandwidth, middle band, and broadband.
  • The Low-bandwidth connections are the analog connections with modems.
  • Analog connections use sounds that must be translated into digital signals before a machine can understand them.
  • A middle band connection might be an ISDN or other digital connection.
  • Digital connections are faster because they require no translation step, and the signal itself is usually cleaner.
  • A Broadband connection might be a T1 connection or a cable modem.
  • Right now, most client machines hook into the Internet in the low-bandwidth connection range. Over the next few years, middleband and broadband connections will become much more common.
Compnay Name Price Visit Now
cpwebhosting "Best Web Hosting"
$2.75 /mo.
Visit Site
a2hosting "Best Shared Hosting"
$3.92/mo.
Visit Site
servermania "Hybrid Smart Servers"
$29 /mo.
Visit Site
liquidweb "Managed WordPress Hosting"
$99 /mo.
Visit Site
247-host "Best Windows VPS Hosting"
$29.99 /mo.
Visit Now
siteground "Best Affordable Hosting"
$3.95 /mo.
Visit Site
uk2.net "Best Business Hosting"
£3.57 /mo.
Visit Site
iPage "Cheapest WebHosting"
$1.99 /mo.
Visit Site

Graphics for Web Development

Graphics in Web pages are what has made the Internet popular. Before the Web and its graphically rich HTML, the Internet was useful mostly for its newsgroups and Gopher database.

Graphics have put a face on the Internet, and the graphics you put into your Web pages should receive careful consideration.

GIF is the world's most popular graphics types on the internet.CompuServe designed the Graphics Interchange Format. It is able to use only 256 colors.

That's why it is usually reserved for certain items on the page, such as logos and icons.
In addition to JPEG and GIF, a new standard file format has been created for the Web: the Portable Graphics Network{PNG} format. PNG was created when questions arose about whether GIF was legally usable in the public domain or whether CompuServe had retained rights to the format.

Even though CompuServe has said that GIF is usable on the Internet, the development and adoption of PNG has gone forward. PNG promises to add JPEG-like compression capabilities to GIF-like files.
Compnay Name Price Visit Now
cpwebhosting "Best Web Hosting"
$2.75 /mo.
Visit Site
a2hosting "Best Shared Hosting"
$3.92/mo.
Visit Site
servermania "Hybrid Smart Servers"
$29 /mo.
Visit Site
liquidweb "Managed WordPress Hosting"
$99 /mo.
Visit Site
247-host "Best Windows VPS Hosting"
$29.99 /mo.
Visit Now
siteground "Best Affordable Hosting"
$3.95 /mo.
Visit Site
uk2.net "Best Business Hosting"
£3.57 /mo.
Visit Site
iPage "Cheapest WebHosting"
$1.99 /mo.
Visit Site

VBScript for Web Development

VBScript is used to control content and objects in HTML pages designed for the World Wide Web and corporate intranets.
VBScript is not about creating applications; it's about creating dynamic HTML. If your pages look and work like apps, that's fine.

VBScript is a member of Microsoft's Visual Basic family of development products. Other members include Visual Basic and Visual Basic for Applications, which is the scripting language for Microsoft Excel.
VBScript is a scripting language for HTML pages on the World Wide Web and corporate intranets.

One of the things you should be interested in is the safety and security of client machines that access your Web site. Microsoft took this consideration into account when creating VBScript.

Potentially dangerous operations that can be done in Visual Basic have been removed from VBScript, including the capability to access dynamic link libraries directly and to access the file system on the client machine.

In most VBScript programs, you'll need to attach the initialization of a program to some sort of action. In the tester.htm page, use the button click event to trigger the action that takes place.

To be able to see what happens, we need to change the property of a control on the page, or we can use a message box. Once we have the skeleton program in place, we can test code in the browser.

The most important thing that you're doing when you're using VBScript in your Web pages is bringing the pages to life.
Dead, static pages on the Web are about as exciting as slides on television. In the future, pages will be designed on the fly, tailored to the profile of the individual user.

The VBScript language enables you to take an object in your HTML page and control it with a subset of the Visual Basic language.
It's a subset of the language because, with HTML documents being loaded dynamically from the Internet, you want to be sure that the page itself isn't capable of any mischief. For example, you wouldn't want the scripting language to be able to format a hard drive, insert a virus, or gather information from your machine without your knowledge.

HTML is a standard that maintained by the World Wide Web Consortium (W3C). W3C is a group of individuals and companies that develop and approve standards for the Web. HTML isn't the only standard maintained by W3C.
W3C also supports transport protocols, graphics formats for the Web, objects for the Web, and of course the implementation of scripting languages such as VBScript.

The LANGUAGE= attribute sets the scripting language in the <SCRIPT> tag.
For VBScript, the language tag is "VBScript." The VBScript code itself closed with the </SCRIPT> tag.
Compnay Name Price Visit Now
cpwebhosting "Best Web Hosting"
$2.75 /mo.
Visit Site
a2hosting "Best Shared Hosting"
$3.92/mo.
Visit Site
servermania "Hybrid Smart Servers"
$29 /mo.
Visit Site
liquidweb "Managed WordPress Hosting"
$99 /mo.
Visit Site
247-host "Best Windows VPS Hosting"
$29.99 /mo.
Visit Now
siteground "Best Affordable Hosting"
$3.95 /mo.
Visit Site
uk2.net "Best Business Hosting"
£3.57 /mo.
Visit Site
iPage "Cheapest WebHosting"
$1.99 /mo.
Visit Site

XML for web development

XML is the Extensible Markup Language. XML uses tags very similar to HTML, instead of describing the structure of the page the tags, XML uses the tags to describe the data. It allows a structured data format extended without breaking previous implementations.
* XML stands for Extensible Markup Language
* XML was designed to describe data
* XML is a markup language much like HTML
* XML tags are not predefined. You must define your tags
* XML uses a Document Type Definition (DTD) or an XML Schema to describe the data
* XML with a DTD or XML Schema is designed to be self-descriptive

Difference Between XML and HTML?

XML was designed to describe data and to focus on what data is, and HTML was designed to display data and to focus on how data looks.

HTML is about displaying information, while XML is about describing information.

In HTML, The tags used to mark up HTML documents, and the structure of HTML documents are predefined, but in XML, XML allows the author to define his tags and his document structure.

XML is becoming a standard way for people to export and import data from different systems. Its simplified markup language makes it easy for different systems to read data in, without knowing the exact structure of the data. If the XML data description correctly created it is possible to add additional information to your XML data files without affecting a system that is already using the information.

If you load XML data into Flash, an object model will create that will allow you to manipulate and extract the data easily. The same object model is available to build XML data and export it to an external system.

XML API, written in Java, is designed to manage H-Sphere services from remote applications via SOAP. It uses the Apache Axis implementation of SOAP and runs under the Apache Tomcat engine.

Remote applications interact with CP services using XML-formatted requests transferred via HTTP (Direct TCP connection can also be set up). Error messages are also processed in XML.

XML schema is based on the SOAP RPC convention.

XML API is helping in communication between remote applications and the Control Panel.

XML API mechanism

First of all, a remote Java application calls CP methods to perform particular actions e.g., to create an account or to return the list of domains.
For this, it invokes its SOAP client to form the corresponding XML request and to HTTP it to the Control Panel.
Then, the CP SOAP server receives this XML request, parses the request and calls a target H-Sphere service.
The target H-Sphere service performs actions according to the received request (for example, creates an account or returns the list of domains), and responds via the SOAP server to the remote application.
If the request is incorrect, the SOAP server returns XML with SOAP fault.

Therefore, though HTTP used for data transfer, H-Sphere XML API services are not called from a Web browser!

XML API Actions

Actions supported by XML API are grouped by services:
  1. Admin Services – basic admin services: adding new accounts, etc.
  2. User Services – basic user services: getting account information
  3. Domain Services – creating/deleting domains and subdomains
  4. Web Services – managing Web options
  5. FTP Services – managing FTP options
  6. User FTP Services – managing user FTP resources: sub users, passwords, etc.
  7. DNS Services – Managing DNS
  8. Mail Services – creating/deleting mailboxes, mailing lists, autoresponders, mail forwards, etc.
  9. MySQL Services – managing MySQL databases and users
  10. PostgreSQL Services – managing PostgreSQL databases and users
  11. MSSQL Services – managing MSSQL databases and users
  12. Support Services – managing trouble tickets (H-Sphere support center)
  13. Migration Services – migrating users and resellers using corresponding XML forms
  14. PGP Services – PGP encryption/decryption in H-Sphere trouble tickets
Web browsers only know how to display one type of XML: XHTML. All other XML opened in a Web browser will display as plain markup code unless you tell the browser how to display that markup. In other words, you could markup a complete XML document and never tell it how to display in a browser or a printout. In fact, most XML has no styles attached to it, because they aren't meant to be viewed in Web browsers. Instead, used as data sources for Web applications like with Ajax.
The simplest way to display XML in a beautiful fashion is to include SHTML tags in the markup. It tells Web browsers how to display the content. You can also use CSS style sheets to style XML and have it display in browsers that way.
Compnay Name Price Visit Now
cpwebhosting "Best Web Hosting"
$2.75 /mo.
Visit Site
a2hosting "Best Shared Hosting"
$3.92/mo.
Visit Site
servermania "Hybrid Smart Servers"
$29 /mo.
Visit Site
liquidweb "Managed WordPress Hosting"
$99 /mo.
Visit Site
247-host "Best Windows VPS Hosting"
$29.99 /mo.
Visit Now
siteground "Best Affordable Hosting"
$3.95 /mo.
Visit Site
uk2.net "Best Business Hosting"
£3.57 /mo.
Visit Site
iPage "Cheapest WebHosting"
$1.99 /mo.
Visit Site

Flash in Web development


ActionScript 2.0, a scripting programming language more suited to the development of Flash applications. Compared to other plug-ins such as Java, Acrobat Reader, QuickTime or Windows Media Player, the Flash Player has a small install size, quick download time, and fast initialization time.

Flash 4 will allow you to set any bitmap (jpegs become bitmaps when imported into Flash 4) color for transparency. This technique is covered in the Flash 4 users manual that works well, but you must first convert the jpeg into a symbol. So you actually set the transparent color range on the symbol and the actual jpeg stays the same as when imported. It is easy and tries it.

You have to make the tween longer and the framerate faster
then it is much smoother. Also mind one thing it is a vector-based graphics program, which allows for such files of small size, but reduces the capabilities of showing real-life images. As a result, jpg image support seems to be a bit lacking.

Publish the Flash movie to an HTML document. Open the HTML document and edit it with notepad. Copy the code that Flash generates (from the first embed tag to the last). Open FrontPage, click the HTML tab so you can see all of the code, and paste the flash generated code into the HTML document that you want the movie to appear on. (In the body tag)

When you go to publish the page, make sure the .swf file is in the same directory as the HTML page that contains the Flash movie.
You may have to play around with frontpage a little to get the positioning of the movie right, but other than that its pretty simple.
Flash files do not depend on an open standard such as SVG.

Shape Morphing

Step 1: Open Flash and size the work area from Modify | Movie choosing 150 x 130 for this example. Choose any contrasting color for the background. This effect is all done with shape tweening on one layer without symbols. The shapes are drawn with Flash.

Step 2: Select frame 1, then using the rectangle tool, draw a square with purple as the fill and white as the stroke color that you will choose and delete later. (You must choose a stroke color on a new object.) Choose the arrow tool and pull in one of the corners of the square to create a triangle. Select frame one again. You can then use 'Modify | Rotate' to put the triangle on its base. Click anywhere on the workspace to deselect the triangle then use the arrow tool to pull the top point out and adjust the shape again if necessary. Reposition the triangle to the center of the workspace.

Step 3: Select and delete each white stroke color to remove it. Choose the object and hit 'Ctrl + B' to break the shape apart.

Step 4: Insert a keyframe on frame 15, hit delete to remove the triangle and draw a circle (white stroke color, yellow fill color) using the oval tool. Using the arrow tool, select the stroke and delete. Select frame 15 and break apart with 'Ctrl + B.'

Step 5: Repeat step 4 on frame 30 using the square tool and green as the fill color. Then copy and paste frame one into frame 46.

Step 6: Open the frame box from 'Window | Panels | Frame,' click on the keyframe 1 and select Tweening: shape, Blend: Angular from the 'frame' panel property box. Repeat for keyframe 15 and 30.

Test your movie. It should look like this example. Go back and adjust the colors and timeline until you get the effect you want.
Compnay Name Price Visit Now
cpwebhosting "Best Web Hosting"
$2.75 /mo.
Visit Site
a2hosting "Best Shared Hosting"
$3.92/mo.
Visit Site
servermania "Hybrid Smart Servers"
$29 /mo.
Visit Site
liquidweb "Managed WordPress Hosting"
$99 /mo.
Visit Site
247-host "Best Windows VPS Hosting"
$29.99 /mo.
Visit Now
siteground "Best Affordable Hosting"
$3.95 /mo.
Visit Site
uk2.net "Best Business Hosting"
£3.57 /mo.
Visit Site
iPage "Cheapest WebHosting"
$1.99 /mo.
Visit Site

My tweets

Continue reading “My tweets”

Using Flash in Website

A Flash animation or Flash cartoon is an animated film which is created using Adobe Flash animation software and often distributed in the .swf file format.
advantages of flash on comparison with gif
On comparison the animated GIFs, the advantages of Flash are that:
  • Flash movies load much faster.
  • Flash movies allow interactivity.
  • Flash movies can use more than 256 colors.
Flash does not require programming skills and is easy to learn. You need to have Flash Player installed to view the Flash animation. Flash Player is a virtual machine used to run, or parse the Flash files. Flash technology is used for adding animation and interactivity to web pages. Flash is commonly used to create animation, advertisements, to integrate video into web pages, and also to develop rich Internet applications. The Flash files have a .swf file extension. Flash player supports for vector and raster graphics, a scripting language called ActionScript and bi-directional streaming of audio and video.
Embed Flash in HTML
After creating a Flash movie you choose File > Save As from the top menu to save your movie. Save the file as
"webhostingsmarts.fla".
To embed the Flash movie you just made into an HTML page, you should go back to your Flash program and do the following steps:
Step 1
Choose File > Open. Open a Flash movie you have created.
Step 2
Choose File > Export Movie.
Step 3
Name the file "webhostingsmarts.swf". Choose the location where the file is to be stored (in your Web folder). Click OK.
Step 4
Open the HTML page where you want to insert your Flash movie. Insert this code:
<object width="550" height="400">
<param name="movie" value="webhostingsmarts.swf">
</embed>
</object>
Step 5
Type in the address of the HTML file in your browser and look at your first Flash movie.
create letters that glow
It's an easy way just follow these steps.
  • Create your letter, than create a symbol and place a copy of your letter into the first frame of your symbol.
  • Select your letter and break it apart. Color your letter red or blue. Add 20 more frames in the symbol.
  • Insert a key frame at the last frame and change the coloring of your letter.
  • Select the first frame and under tweening select=shape.
  • Place the symbol you just created behind your letter and scale it to make it a bit bigger
Compnay Name Price Visit Now
cpwebhosting "Best Web Hosting"
$2.75 /mo.
Visit Site
a2hosting "Best Shared Hosting"
$3.92/mo.
Visit Site
servermania "Hybrid Smart Servers"
$29 /mo.
Visit Site
liquidweb "Managed WordPress Hosting"
$99 /mo.
Visit Site
247-host "Best Windows VPS Hosting"
$29.99 /mo.
Visit Now
siteground "Best Affordable Hosting"
$3.95 /mo.
Visit Site
uk2.net "Best Business Hosting"
£3.57 /mo.
Visit Site
iPage "Cheapest WebHosting"
$1.99 /mo.
Visit Site

Resolve Remote Host Identification Issue


There may be a case, when we constanly get the following trouble ticket: @@@@@@@…WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
This possible cause is that:
  • OpenSSH keys changed.
  • OpenSSH reinstalled.
  • ethernet card reinstalled/changed.
  • network interface changed.
To fix this problem, please do the following:
1. log into the CP server under the cpanel user.
2. remove all the strings which contain the IP indicated in the message (as one that you failed to connect to with SSH) from the following two files:
a) ~cpanel/.ssh/known_hosts
b) ~cpanel/.ssh/known_hosts2
3. execute the following comand:
# ssh -l root IP (the one that RSA host key was changed for)
and agree to "Are you sure you want to continue connecting (yes/no)?"
Then make sure that the cpanel user can log into the server without any passwords and prompts.
c) ~cpanel/.ssh/known_hosts2
4. execute the following comand:
# ssh -l root IP (the one that RSA host key was changed for)
and agree to "Are you sure you want to continue connecting (yes/no)?"
Then make sure that the cpanel user can log into the server without any passwords and prompts.
Compnay Name Price Visit Now
cpwebhosting "Best Web Hosting"
$2.75 /mo.
Visit Site
a2hosting "Best Shared Hosting"
$3.92/mo.
Visit Site
servermania "Hybrid Smart Servers"
$29 /mo.
Visit Site
liquidweb "Managed WordPress Hosting"
$99 /mo.
Visit Site
247-host "Best Windows VPS Hosting"
$29.99 /mo.
Visit Now
siteground "Best Affordable Hosting"
$3.95 /mo.
Visit Site
uk2.net "Best Business Hosting"
£3.57 /mo.
Visit Site
iPage "Cheapest WebHosting"
$1.99 /mo.
Visit Site

Resolve Disk Quota issue

Sometimes, customer complains that his control panel says: "Disk quota Used 90 MB of 120 MB limit", but the actually used disk space is only 55 MB.

To resolve this issue, we first of all need to understand that the Control Panel calculates disk quota usage based on file ownership, not user's home directory content. When an account deleted, its UID is assigned to a new user. This new user becomes the owner of the old user's files if they weren't deleted with the account.

To find out the UID of this user, we need to execute the following commands:

# id unixtest

We will get something similar to the following:
uid=1975(username) gid=1972(username) groups=1972(username)

Then you can get the list of files that belong to this UID:
# find /local/home -uid 1975 -print

You can remove the files that are located outside this user's home directory or chown them to root.
Compnay Name Price Visit Now
cpwebhosting "Best Web Hosting"
$2.75 /mo.
Visit Site
a2hosting "Best Shared Hosting"
$3.92/mo.
Visit Site
servermania "Hybrid Smart Servers"
$29 /mo.
Visit Site
liquidweb "Managed WordPress Hosting"
$99 /mo.
Visit Site
247-host "Best Windows VPS Hosting"
$29.99 /mo.
Visit Now
siteground "Best Affordable Hosting"
$3.95 /mo.
Visit Site
uk2.net "Best Business Hosting"
£3.57 /mo.
Visit Site
iPage "Cheapest WebHosting"
$1.99 /mo.
Visit Site

Resolve Invalid Certificate Problem

Sometimes, we get the error Invalid certificate format, file: server.key
when, try to install a certificate and key on the site.
To deal with such kind of situation, we try to install our certificate and key on our site, and we need to remove encryption and enter it in clear-text format. Encryption can be deleted with the OpenSSL utility of Unix Shell on any Unix server where OpenSSL utility pack installed, for example on the Control Panel box.
  1. We have to Put our encrypted Private Key into a separate file and save it as server_old.key
  2. In Unix Shell, following command has to be executed: openssl rsa -in server_old.key -out server.key
  3. Enter the password when prompted.
  4. A new file (server.key) will be generated. It will contain the Private Key in a plain text format.
Compnay Name Price Visit Now
cpwebhosting "Best Web Hosting"
$2.75 /mo.
Visit Site
a2hosting "Best Shared Hosting"
$3.92/mo.
Visit Site
servermania "Hybrid Smart Servers"
$29 /mo.
Visit Site
liquidweb "Managed WordPress Hosting"
$99 /mo.
Visit Site
247-host "Best Windows VPS Hosting"
$29.99 /mo.
Visit Now
siteground "Best Affordable Hosting"
$3.95 /mo.
Visit Site
uk2.net "Best Business Hosting"
£3.57 /mo.
Visit Site
iPage "Cheapest WebHosting"
$1.99 /mo.
Visit Site