Tuesday, 21 May 2013

Introduction to jQuery

JQuery is a JavaScript collection complete of resources prepared to be used - which indicates that it's pre-written JavaScript, prepared for you to put to perform in your own sites. Here, you a get a trip of what creates jQuery so well-known.

jQuery focuses primarily on allowing you to choose components in a web page, and it does that better than any JavaScript collection. You will see how to make covered places of components in jQuery, so you can manage several components simultaneously. You will see how to control covered set of components by modifying their overall look, design, exposure, published text, and even their HTML.

jQuery also comes loaded with super-powerful and awesome application functions, such as functions that let you decide which web browser the customer has and what its abilities are. jQuery provides many application functions and you will get a look at the best ones here.

JQuery is known for its visible results such as slick-looking baby wipes, in which a piece of shade baby wipes over a component and ends, in which a component and its qualifications ends from perspective. Here you will see what you can do with these types of results.

The jQuery collection has taken the front-end growth globe by surprise. It's dead-simple format creates once-complicated projects absolutely trivial-enjoyable, even. Many a designer has been easily enticed by its beauty and quality. If you've begun using the collection, you're already included wealthy, entertaining encounters to your projects. Getting began is simple, but as is the situation with many of the resources we use to make sites, it can take several weeks or even decades to completely appreciate the detail and detail of the jQuery collection. The collection is chock-full of functions you might never have known to wish for. Once you know about them, they can considerably modify how you strategy the issues you're known as upon to fix.

The query icons, which are well-known manages that you can use in your sites like schedules, accordion manages (that let you start their pleats to see extra web pages of contents), slider mobile phones, an eye, and many more. The query icons have a refined, expert looks and jQuery provides them for just about every objective you can think of in any sites.

Finally, of course, comes Ajax. JQuery's functions are structured into a few simple categories: primary performance, choosing, adjusting, spanning, CSS, features, activities, results, Ajax, and resources.

MySQL Cluster For Multiple Dedicated Servers

The main aim to create clusters MySQL is to have redundancy - your hosting server and programs will run efficiently even if one hosting server goes down

Note: For better performance you should have a 3rd hosting server as a control node, but this can be closed down after the group begins. Also observe that closing down the control hosting server is not suggested (see the additional notices at the end of this paper for more information). You cannot run a MySQL Cluster with just two Hosting And have real redundancy.

It is possible to set up the group on two Devoted Web servers you will not get the capability to "kill" one hosting server and for the group to proceed at regular. For this you need a third hosting server operating the control node.

Now below I had given the example for three servers:

mysql1.domain.com -
mysql2.domain.com -
mysql3.domain.com -

Servers 1 and 2 will be the two that end up "clustered". This would be ideal for two servers behind a fill balancer or using circular robin the boy wonder DNS and is an excellent replace duplication. Server 3 needs to have only minimal changes created for it and does NOT need a MySQL set up. It can be a low-end device and can be undertaking other projects.

STAGE 1: Install MySQL on the first two servers:

Complete the following actions on both mysql1 and mysql2:

cd /usr/local/

Grouped mysql
Useradd -g mysql mysql
tar -zxvf mysql-max-4.1.9-pc-linux-gnu-i686.tar.gz
Rm mysql-max-4.1.9-PC-Linux-gnu-i686. tar. gz
Ln -s mysql-max-4.1.9-PC-Linux-gnu-i686 mysql
CD mysql
Scripts/mysql_install_db --user=mysql
Chown -R primary .
Chown -R mysql data
Chgrp -R mysql .
Cup support-files/mysql. server /etc/rc.d/Inuit. d/
Chmod +x /etc/rc.d/Inuit. d/mysql. server
Chkconfig --add mysql. server

Do not begin MySQL yet.

STAGE 2: Install and set up the control server

You need the following details files from the bin/ of the mysql directory: ndb_mgm and ndb_mgmd. Obtain the whole mysql-max table and draw them out from the bin/ listing.

Mkdir /usr/src/mysql-MGM
CD /usr/src/mysql-MGM

tar -zxvf mysql-max-4.1.9-pc-linux-gnu-i686.tar.gz
Rm mysql-max-4.1.9-PC-Linux-gnu-i686. tar. gz
CD mysql-max-4.1.9-PC-Linux-gnu-i686
mv bin/ndb_mgm .
mv bin/ndb_mgmd .
chmod +x ndb_mg*
mv ndb_mg* /usr/bin/
rm -rf /usr/src/mysql-mgm

You now need to set up the config details declare this management:

mkdir /var/lib/mysql-cluster
cd /var/lib/mysql-cluster
vi [or emacs or any other editor] config.ini

Now, place the following (changing the pieces as indicated):

# Management Server
HostName= # the IP of THIS SERVER
# Storage space Engines
HostName= # the IP of the FIRST SERVER
DataDir= /var/lib/mysql-cluster
HostName= # the IP of the SECOND SERVER
# 2 MySQL Clients
# I individually keep this empty to allow fast changes of the mysql clients;
# you can get into the hostnames of the above two servers here. I recommend you don't.

Now, begin the control server:


This is the MySQL control hosting server, not control system. You should therefore not anticipate any outcome (we will begin the system later).

STAGE 3: Configure the storage/SQL servers and begin MySQL

On each of the two storage/SQL servers ( and get into the following (changing the pieces as appropriate):

vi /etc/my.cnf

Enter me to go to place method again and place this on both servers (changing the IP deal with to the IP of the control hosting server that you set up in level 2):

DB-connectstring=192. 168.0.3 # the IP of the MANAGEMENT (THIRD) SERVER
ndb-connectstring= # the IP of the MANAGMENT (THIRD) SERVER

Now, we create the detail listing and begin the storage engine:

mkdir /var/lib/mysql-cluster
cd /var/lib/mysql-cluster
/usr/local/mysql/bin/ndbd --initial
/etc/rc.d/init.d/mysql.server start

If you have done one hosting server now go returning to the begin of level 3 and do it again exactly the same process on the second hosting server.

Note: you should ONLY use --initial if you are either beginning from the beginning or have modified the config.ini details file on the control.

STAGE 4: Examine its working

You can now come back to the control hosting server (mysql3) and get into the control console:


Enter the control SHOW to see what is going on. A example outcome looks like this:

[root@mysql3 mysql-cluster]# /usr/local/mysql/bin/ndb_mgm
-- NDB Cluster -- Management Customer --
ndb_mgm> show
Connected to Management Server at: localhost:1186
Cluster Configuration
[ndbd(NDB)] 2 node(s)
id=2 @ (Version: 4.1.9, Nodegroup: 0, Master)
id=3 @ (Version: 4.1.9, Nodegroup: 0)

[ndb_mgmd(MGM)] 1 node(s)
id=1 @ (Version: 4.1.9)

[mysqld(API)] 2 node(s)
id=4 (Version: 4.1.9)
id=5 (Version: 4.1.9)


If you see

not linked, recognizing link from 192.168.0.[1/2/3]

in the first or last two collections they you have a issue. Please e-mail me with as much details as you can provide and I can try to discover out where you have gone incorrect and modify this HOWTO to fix it.

If you are OK to here it's about a chance to analyze MySQL. On either hosting server mysql1 or mysql2 get into the following commands: Remember that we have no primary security password yet.

use test;
INSERT INTO ctest () VALUES (1);
SELECT * FROM ctest;

You should see 1 row came back (with the value 1).

If this performs,which will probably occur, go to the other hosting server and run the same SELECT and see what you get. Insert from that variety and go returning to variety 1 and see if it performs. If it performs then best wishes.

The last analyze is to destroy one hosting server to see what happens. If you have actual accessibility the device basically remove its system wire and see if the other hosting server keeps on going excellent (try the SELECT query). Fantastic have actual accessibility do the following:

ps aux | grep ndbd

You get an outcome like this:

root 5578 0.0 0.3 6220 1964 ? S 03:14 0:00 ndbd
root 5579 0.0 20.4 492072 102828 ? R 03:14 0:04 ndbd
root 23532 0.0 0.1 3680 684 pts/1 S 07:59 0:00 grep ndbd

In this situation neglect the control "grep ndbd" (the last line) but destroy the first two procedures by giving the control destroy -9 pid pid:

kill -9 5578 5579

Then try the select on the other hosting server. While you are at it run a SHOW control on the control node to see that the hosting server has passed away. To reboot it, just issue


Note: no --initial!
Further notices about setup

I recommend that you study all of this (and preserve this page). It will almost certainly preserve you a lot of looking.
The Management Server

I recommend that you do not quit the control hosting server once it has began. This is for several reasons:

* The hosting server might hardly need and take any hosting server resources

* If a group drops over, you want to be able to just ssh in and kind ndbd to statistic it. You will not want to begin playing around with another server

* You need the control hosting server up If you want to take backups

* The group log is sent to the control hosting server so to evaluate what is going on in the group or has occurred since last this is an essential tool

* All orders from the ndb_mgm client is sent to the control hosting server and thus no control orders without control hosting server.

* The control hosting server is needed in situation of group reconfiguration (crashed hosting server or system split). In the situation that it is not operating, "split-brain" situation will occur. The control hosting server mediation part is needed for this kind of installation to offer better mistake patience.

Monday, 20 May 2013


Practical Uses of PHP

It almost goes without saying that you will want your company website to be powerful, entertaining, and protected. All of these features will create your website more efficient at providing in and keeping clients. But how to go about it in a way that is constant, cost-effective, and simple to manage? One well-known solution is to use the server-side scripting terminology PHP to help you fix those problems.

What is PHP?

Created in 1995, PHP initially was standing for "Personal Home Page", however it is now usually recognized to mean "PHP: Hypertext Preprocessor". It was initially developed to create powerful or more entertaining websites. It is a widely-used, open-source, general-purpose scripting terminology. PHP is a "high-level" terminology, significance that it's usually more human-friendlier (and easier to learn) than other development 'languages' such as C, ASP or ASP.net.

PHP was initially developed for use in Website growth, but quickly turned out to be a much more solid terminology. PHP's main use is as an "embedded" scripting terminology, which indicates that the actual PHP rule is involved in HTML rule. When used in this way, PHP allows your web hosting server to procedure websites before they're shown in the client's web internet browser.

Benefits of PHP

PHP is well-known because it can be involved straight into HTML programming.

PHP can be used for all significant operating-system and is reinforced on most web servers.

PHP's main concentrate is the growth of the web, so it has a quick growth some time to can fix circumstances much faster than some of the other web design 'languages'.

The newest edition of PHP is a very constant and older terminology used for web development much like Coffee and Microsof company C#.

It is 100 % free so it is free!

Database: It is very simple to create simple programs which allow your Website to communicate with a data resource.

Cross-Platform: Both the PHP engine and the PHP rule can be used for almost any system, making it handy.

Development Tools: You only need a written text manager to perform on PHP; you do not need any growth atmosphere or compilers.

What can you do with PHP?

PHP usually operates on a web hosting server, taking PHP rule as its feedback and developing Web webpages as outcome, however you can also use it for command-line scripting and client-side GUI programs. PHP is a handy terminology which allows you to create high-end, constant Web websites with a lot of gadgets. Here are just a few of the things you can do with PHP:

Make HTML Web Forms

Store Information in Databases

Remember Web targeted traffic (cookies and sessions)

Work with Arrays

Work with Information (File Control and downloads)

Parsing and Producing XML (also useful for bulk of products on e-commerce)

Check which internet browser your guest is using

How does PHP Work?

As its name ("PHP: Hypertext Preprocessor") indicates, PHP originates its power by "preprocessing" hypertext on the hosting server part. This usually indicates that when the PHP program (saved as a .php file) operates on your web hosting server, it features the designed activities, and profits HTML rule that will then be sent back to your client's web internet browser. The PHP program itself is not involved in the HTML that is sent to the internet browser, so the PHP rule is unseen and protected to the consumer.

For example, let's consider the following simple PHP declaration. (This example is merely to show the primary format of PHP in action. Any specific conversation of PHP rule is beyond the opportunity of this article.)

<? PHP replicates "<p>Hello World"; ?&gt;

In this declaration,
is the PHP starting tag,
Is the ending tag, and replicate is a PHP training that informs PHP to outcome the writing that follows it as simply HTML rule. The PHP application procedures the PHP declaration and results the following:

<p>Hello World</p>

This is a frequent HTML declaration that is sent to the client's internet browser. The PHP declaration itself is not sent to the internet browser, so the consumer has never recognized any PHP claims.

Using PHP to Enhance Your Web Site.

PHP has many abilities features developed particularly for use in Web websites, such as the following:

1. Obtaining Your Web Site.

PHP can be used to protect your website (or certain areas of your website) so that your customer must get into a real details. This can be used to compensate recommended clients and to develop a unique "membership" part of your company.

2. Working with Web Types.

PHP can show an HTML form and procedure information that the consumer types in. This can be an excellent way to explore your clients by asking them to provide user profile information, and to gather information regarding their specific passions.

3. Connect with Your Directories.

PHP is particularly skilled at getting your databases, and saving information from the consumer or accessing information that is shown to the consumer. PHP manages to link to the data resource and interacting with it, so it's not necessary to know all of the specialized details to get in touch to or trading information with the data resource. You tell PHP the name of the data resource and where it is, and PHP manages information. All significant databases are currently reinforced by PHP.

4. Customer Commitment Functions.

You can also use PHP to create a number of different features on your website that will further help you to develop customer loyalty, such as entertaining surveys, a guestbook, and a forum.

The reputation of PHP is growing quickly because it has many benefits over other specialized alternatives. PHP is fast (because it's involved in the HTML rule, enough a chance to procedure and fill a Web web page is relatively short), PHP is 100 % free (it is open-source software), and PHP is flexible (is operates on a wide range of operating-system, such as Microsoft windows, Mac OS, A linux systemunix, and most Unix variants).

Perhaps most of all, PHP is a very well-established terminology. There are many user-run Internet areas that create very considerable quantities of data (and scripts) available. With so much experience behind it, using PHP for certain powerful features can be a cost-effective and low-hassle way of improving the balance of your website.

Saturday, 18 May 2013

SEO Basics Informaiton Java Script and Search Engines

So, you lastly got the meta tag thing realized out, you have rewritten your material to make sure that your web page is all about your right chosen search phrases and one day, there it is. Lo and look at, Look for engines has listed your website - well at least your web page has been listed. Your web page is even starting to demonstrate guarantee when Look for engines profits it consequently to a keyword and key phrase question. So what if it is at the end of web page 35? It's just a start.

But what about all those other web pages - the ones that actually contain all the information for your products? How Will Martha ever offer that roomful of hand knit footwear and child bonnets? And you went to all that problems to make all those web pages, one for every product. Just look at them all when you simply simply select the Items key and the selection falls down with 10 different categories; and every class has a fly-out selection with 12 exclusive products. And isn't it too lovely how the massive for red footwear changes the key red.

Mouseover result, fall down routing, fly out choices and a variety of other amazing components of design designed with coffee system are very common these days. Java system, coffee applets and coffee development in common have certainly included the liven and impressive sparkle to many a stress HTML website venture. The easy operate of "if this, then that" has no comparative in HTML. And when that easy operate is extended upon even a little bit the performance seems to improve significantly.

Java system is amazing. It is used for everything from easy mouseover results to elegant fade-in-fade-out picture exhibits and many, many other programs. And we all love the "bells and whistles" that this device delivers to the art of web design. Even most of us compulsive-obsessive SEO kinds have to confess it (although privately and in whispers only, of course). We are as satisfying as the next guy with the light-box picture running and the fly out choices. We like to see "View as a glide display."

However - and once again, please don't capture the courier - unfortunately Look for engines and other google stay extremely not satisfied. I know that it is difficult to believe, but even the great Googlebot is really not much more than an easy written text audience software system. And Java system, like display and picture information, are simply un-readable, even with this massive of all google. That's just the way it is.

If you really must integrate coffee system into your website (perhaps Martha really likes it and has not been so satisfied about something for your mom became qualified for that senior's residence and lastly shifted out) - then at least offer a substitute that google can actually study. Simple written text routing to at least your main web pages somewhere on your webpage will go a long way to getting those web pages listed. Also, make an easy html website map with an easy written text weblink to it from your web page. On the website map make a list of all of your web pages with their corresponding hyperlinks. For the anchor-text of those hyperlinks, use an illustrative keyword and key phrase or two. Instead of contacting a web link "page 27," name it "red footwear." Your guests will appreciate the website explanations and Look for engines will affiliate the keyword and key phrase with its focused URL. "Handmade knitted red socks" would be even better.

You might wish to consider a substitute to coffee system choices, which can still offer some fairly results and allows google to study and adhere to the backlinks. The method is known as flowing design linens or CSS. With CSS it is possible to specify the look and feel of any number of components relevant to the material on your website. This contains the website routing. Modify the qualifications shade of the weblink to make it take a position out; put it back once again for the frequented link; choose a new shade for the effective weblink. Add extra shade choices to the weblink written text itself. These are just a few of the staple items you can do with CSS. Decrease choices are no problem, as well. The attractiveness of CSS as a choice to coffee system is that it allows Look for engines and other google to study the writing of the hyperlinks and adhere to them - you get your web pages listed.


The basic knowledge of cascading style sheet (CSS).
Thinking about CSS, but want to learn what you need to know, or need to learn before jumping onto the CSS bandwagon? Let me start out by saying that CSS can reduce your time at the computer. But knowledge do you need to learn and is CSS compatible with the search engines and your browsers? These are some of the questions I'll try to answer, as well as, explain a little about what CSS is all about.
What is CSS?
CSS stands for Cascading Style Sheets. CSS is a set of formatting instructions that controls the looks on a web page or pages. Some of the browsers that support CSS is: (Firefox, IE3 or later, NN4 or later). You may be saying, great this will definitely save me some time. Not so fast, you also need to know that though, the majority of the browsers understands CSS, they do not fully support all of its capabilities.
XHTML - XHTML is an EXtensible HyperText Markup Language. XHTML Is HTML with stricter rules-that adds conformity and, is 100% XML compliant. So you should be familiar with or become more comfortable with HTML, XHTML, and the style properties of CSS.
What can you do with CSS
You can build your layout, adjusting the size and color of your headings or body text, as well as positioning your images. This translates into like pages being programmed once, without the choice of inputting the same coding into each of your web pages manually. Translated, elimination of duplicate formatting.
How to get the Search Engines to See Your Copy
It has been said that the Search Engines still have some problems with understanding CSS. But if you want to use CSS, is there a way to get the search engines to see what you want.
1. Keep your text clean, if you have to much garbage in your web page, than the spiders will have a difficult time in determining what is relevant and what is not. Thus, CSS keeps your web page clean, without the redundant coding needed for each individual element of the code. Here is a good example of how to code a headline; with the CSS code below.
Example: "h1"Title"/h1" (replace beginning and end quotes with )
"CSS code: H1 {font family: Arial size: 18 PX; bold;}" (leave off the inverted commas)
Syntax of CSS
First, CSS can be written within any text editor. But the text file must be saved with a CSS extension.
The syntax of CSS consists of the selector and the declaration. The selector is the identifier within the body of your web page; the declaration is the code that identifies the style that you want to put into place as to property and rule. Let's say you want all your H1 headlines to be green, with the font Arial. The code for CSS would be as follows:
Note: Do not include quotes around the code.
"Selector {property: rule;}"
"H1 {color: green; font-family: Arial;}"
Note: Notice that the property and the rule must be enclosed in {}.
Placement of CSS
There are three places to put your CSS code:
In the Head (Internal), in an external file, or within an individual tag (Inline style).
Internal -is used within a single web page that may have a unique style.
Inline - mixes code with content. Sometimes you may need to use it, but this style does seem to eliminate the need of even using a CSS style sheet.
External - The CSS is separate from the body of the web page and is linked with the web page. Therefore, to link an external file into a web page you will need to use the link tag.
<link rel="stylesheet" type="text/css" href="CSSName.css">
(Goes in the head section after the title tag)
Which way do you go? If you have a large site or a site that will be expanding, an external file would be a better way to quickly and easily manipulate all your web pages at once.
Watch out for Spam
But with anything on the Internet, CSS can be used for the good and the bad. And obviously, if you want to keep your site up and running for a long time, some CSS techniques should be avoided. Why? Because some CSS techniques can be considered spam by the search engines and thus, ban your site if you use the techniques. The blackhat tactics include such things as: 1) using CSS to hide text-from headlines to body from the human eye; 2) hiding and bolding or italicizing copy for search engine spiders benefit only.
To conclude, CSS can and is a viable way to making your web pages easier to maintain-if the majority of your pages follow the same format. If you are not all that familiar with CSS, then take the time to look at w3schools.com tutorial. It's very informative and can get you started with CSS..