Archive for the ‘Technology’ Category

Improve Your Server Performance with CloudLinux

Thursday, August 19th, 2010

CirtexHosting now offers the latest in virtualization technology called CloudLinux to address common issues that cause instability and downtime when hosting multiple websites on a server. With this new operating system you can use to crash proof your servers.

There were always 2 things that made hosting multiple websites on a server a pain. One was leaving vast amounts of idle resources to guard against a single tenant from over-utilizing the shared resources. You always have to prepare for the worst – and leave idle resources sitting and waiting for something that may or may not happen. Very inefficient.

The other pain was keeping one website from causing problems and eating up server resources causing it to slow or worse, shutting down the server. This is common for shared hosting servers and happens for many reasons like:

  • Traffic spikes – a mention on Reddit, Digg or Slashdot or another popular forum can send thousands of visitors to a website in minutes and overwhelm the server causing downtime.
  • Inefficient coding – a single bug in one website’s code can use all CPU resources, no matter how powerful the server, and cause downtime.
  • Denial Of Service attacks – hackers invade an insecure website and hog the server resources.

Those days are over. Now all CirtexHosting packages come with CloudLinux installed and Dedicated Server Hosting customers can also  request to have CloudLinux installed through our HostV brand.

CloudLinux uses Lightweight Virtual Environment (LVE) technology to isolate resources on the server. It prevents individual websites from using too many resources and slowing down other sites, provides better security, and protects servers from issues that drain resources.

cloudlinux

The diagram shows a shared hosting server on the left running a standard OS. If one site or tenant were to experience an unpredictable demand, it will impact the other tenants of the same server. On the right, each tenant is wrapped in a lightweight virtual environment. If one tenant experiences a resource issue, no other site on the server will be impacted.

The technology provides better management of server populations and improves stability and can allow you to host twice as many accounts on one server. Not only that, CloudLinux is easy to deploy and manage since it is:

  • Based on RedHat EL 5.x and interchangeable with CentOS 5.x which means no learning curve
  • Works with all major control panels including cPanel and Plesk
  • Compatible with major hosting technologies like Ksplice and R1Soft Backup
  • Transparent to both the administrator and end user and requires virtually no overhead

If you want to deliver more stability and better uptime to your customers, take a look at CloudLinux today.

Popularity: 1% [?]

Share and Enjoy:
  • E-mail this story to a friend!
  • del.icio.us
  • TwitThis
  • Reddit
  • StumbleUpon
  • Sphinn
  • Facebook
  • MySpace
  • Live
  • Google
  • LinkedIn
  • Technorati
  • Mixx
  • Yahoo! Buzz
  • Propeller
  • NewsVine
  • Slashdot

ClipHouse Lets Users Create the Content That Raises Traffic to Your Website

Saturday, July 24th, 2010

Interactivity is the name of the game when it comes to web sites now. Every site owner knows that static content only has so much pull and that their users really crave the kind of back and forth connection that lets them feel they are making a genuine contribution to the site. This is simple psychology, the users simply want to feel that the site is their own, too. In order to heighten this perception, it is absolutely essential to offer the right kind of features that visitors will care about because that is what will bring them back. The other side of this advantage is that when you allow your own visitors to contribute to the site and make it their own, you are actually allowing them to help you build your site. That means they are bringing their own set of talents and expertise to the table. By doing this, the raise the value of your site. People always have things they would like to contribute to the world, what they need is a way to be able to do this effectively which is where your own site comes in.

With ClipHouse, you can easily install the ability to have videos on your site, just like YouTube. While this is great, it isn’t exactly revolutionary. What is actually unique about this software is that it has a whole range of other features that come right along with it. You can let your users upload their own media or you can grab the videos from other sites so you can easily put together the kind of content your users would like your site to focus on. This is excellent for niche topic sites where the idea is to condense the concept around certain core subjects. By having a collection of videos like that, your site has a huge draw to the specific audience you are seeking to draw. High traffic is great, but how do you afford the bandwidth? ClipHouse has a solution for that, too. The script allows you to insert ads into each video of your site if you want to. You’ll have a host of different media choices to choose from, even jpeg images if you prefer. This allows you to earn a little income from the site, too.

You can make an entire social networking site with ClipHouse. Your users can have profiles, blogs and much more. This means you can establish your site as a premiere community for those interested in its theme. You can even set up a membership site to earn revenue from your members and create a site that absolutely dominates your niche on the web. With ClipHouse your options are really only limited by your creativity. There is so much power in this software that it is almost ridiculous that they allow it to be open source, yet it is. With all the rich array of features, building a site that will pull in visitors day after day and keep them coming back for more is genuinely easy to do.

Popularity: 1% [?]

Share and Enjoy:
  • E-mail this story to a friend!
  • del.icio.us
  • TwitThis
  • Reddit
  • StumbleUpon
  • Sphinn
  • Facebook
  • MySpace
  • Live
  • Google
  • LinkedIn
  • Technorati
  • Mixx
  • Yahoo! Buzz
  • Propeller
  • NewsVine
  • Slashdot

New Affiliate System – More $$$ Hosting Commission!

Friday, June 25th, 2010

Hi,

NEW AFFILIATE SYSTEM URL: https://track.cirtex.com

Please read this email carefully if you’re an existing CIRTEX AFFILIATE as we’re bringing many POSITIVE changes for our affiliates with this major upgrade & Change of our system.

Summary:
——————————————

- Base commission is now $50/referral, max is $150/referral after 20 referrals.

- New affiliate system & URL – more accurate tracking & many new features

- MUST LOGIN & Update Paypal Address in NEW SYSTEM

- New passwords for existing affiliates migrated over to NEW SYSTEM

- New Tracking URLs very flexible

- OLD SYSTEM will remain online until end of this year!

——————————————

*** NOTE – Affiliate tracking URLs have changed ****

NEW Affiliate link: http://www.cirtexhosting.com/#username  or http://www.hostv.com/#username
You may also change it to any pages such as
http://www.cirtexhosting.com/video-hosting.shtml#username
or
http://www.hostv.com/vps-hosting.shtml#username
Just add #username to the end of any PAGE on HostV.com or CirtexHosting.com and it will track your leads, this new system is 100% accurate.

*** NOTE – Affiliate tracking URLs have changed ****

—————————————————————————————————————-

We’re very excited to announce the opening of our new affiliate tracking system.
The new affiliate system is fully integrated into our billing system and tracks commissions with 100% accuracy along with dozens of new features.

********************************************************
Please note you should receive an email from “Cirtex Affiliate Tracker – noreply@track.cirtex.com” with your new password. Your username shall remain the same.
********************************************************
We’ve increased BASE COMMISSION to $50/referral. The new tier will now be $50, $75, $100, $125 and $150 (highest)
If you’re an approved affiliate on $150 tier already, please email payment@cirtex.com and we will have to move you to highest tier manually in the new system.
The commission tier will also stay at $150 for over 1 year once you reach it, and will not reset for that next year. (You can apply to be premium $150 affiliate afterwards)
********************************************************

—————————————————————————————————————-

1) To login to the new system with your new password, please visit: http://track.cirtex.com/affiliates/login.php

****************************************************************************************************************
Please login and update your PAYPAL EMAIL in “My Profile -> Payment Details” as this has been reset and it is very important you update it.
****************************************************************************************************************

—————————————————————————————————————-

2) You may choose to use the banners located in “PROMOTIONS” Promotions as it will create full REPORT on each banner and how they perform.
or You can stay with same banners right now, but you MUST** Change your affiliate URL Link to new format.

*** NOTE – Affiliate tracking URLs have changed ****

General affiliate link: http://www.cirtexhosting.com/#username  or http://www.hostv.com/#username
You may also change it to any pages such as http://www.cirtexhosting.com/video-hosting.shtml#username  or http://www.hostv.com/vps-hosting.shtml#username
Just add #username to the end of any PAGE on HostV.com or CirtexHosting.com and it will track your leads, this new system is 100% accurate.

*** NOTE – Affiliate tracking URLs have changed ****

—————————————————————————————————————-

3) With the new system, you can create CHANNELS in “Promotions -> Ad Channels” and with that, track even better each sale which WEBSITE it came from. Example would be linking with http://www.cirtexhosting.com/#a_aid=username&chan=yourchannelname

—————————————————————————————————————-

4) There is now option for DIRECTLINK Referrals. If you wish to join that, basically any visitors that come from your website even without referral link, just regular www.hostv.com or www.cirtexhosting.com link, they will be counted as commission.
However you’ll have to prove ownership & that the website is under your management. Please submit your link for approval within your affiliate panel Promotions area.

—————————————————————————————————————-

5) We’d like to encourage marketing to both www.hostv.com & www.cirtexhosting.com , please note that we have many landing pages and will be updating our promotions page as well periodically.
If you have any questions, please contact sales@cirtex.com and we’ll answer them asap.

The old affiliate system will remain online until end of this year or when we feel it is no longer used and your commissions in there will be there until all paid out. For now, please switch all links to new system.

Thank you again for your continued support, if you have any questions please let us know!

Be sure to connect with us on FACEBOOK, LINKEDIN & TWITTER!

Link to new affiliate system = https://track.cirtex.com

If you have any questions about password, or the new system, please email sales@cirtex.com

Popularity: 3% [?]

Share and Enjoy:
  • E-mail this story to a friend!
  • del.icio.us
  • TwitThis
  • Reddit
  • StumbleUpon
  • Sphinn
  • Facebook
  • MySpace
  • Live
  • Google
  • LinkedIn
  • Technorati
  • Mixx
  • Yahoo! Buzz
  • Propeller
  • NewsVine
  • Slashdot

Tutorial to Make a White Board Using Red5 and Flash

Thursday, June 24th, 2010

This quick tutorial is going to show you how to make an application that will serve as a white board. The entire application can be put together using a Red5 Server and Flash. Before getting started with the tutorial itself, let’s go over some of the basics that we will use to create the application itself to make sure you are familiar with the terminology.

Shared Object – These are data storage units that will be in place across multiple sessions. They are similar to a cookie in a web browser that stores data for multiple visits to a website and ‘remembers’ the user. A given application is capable of retrieving a Shared Object from either a local machine (your computer) or a remote machine (a web server).

Action Script Drawing API – This is a type of API that can be used to draw objects on the local computer or remotely via a Movie clip.

Java Server Application: This is the application that will run on the Red5 server and serve as the host for the remote Shared Objects.

Now, let’s take a look at the creation of the white board, step by step, beginning with the server.

The Shared Object is going to be created when the Red5 server starts up the application. The Java code needs to be the following:

Public Boolean appStart() {
createSharedObject(Red5.getConnectionLocal().getScope(), “myline_so”, false);
log.debug(”White Board Application Started!”);
return true;
}

There are two parts on the client sidem one is the Moderator (source) and the other is Attendee (destination). Moderator will feed its information to the server and then the server will show the details it received to each Attendee.

To understand this, we need to look at how the source informs the server when a line gets drawn onto the White Board.

A line will begin when a mouse button is pressed on the movie clip and it runs as long as the button is held down and the cursor continues to move. Once the button is released, the line stops.

This means we have to capture different events in the White Board movie clips such as Mouse Press (where the line begins), Mouse Move and Release (which ends the line). To do this, use the action script code show below:

whiteboard.onPress = function(){
myConnectionToServer.call(”onLineDraw”,null, “START-LINE”,this._xmouse, this._ymouse);
}

whiteboard.onMouseMove = function(){
myConnectionToServer.call(”onLineDraw”,null, “DRAW-LINE”,this._xmouse, this._ymouse);
}

whiteboard.onRelease = function(){
myConnectionToServer.call(”onLineDraw”,null, “STOP-LINE”, this._xmouse, this._ymouse);
}

The function myConnectionToServer is a NetConnection object and it holds the connection for the Red5 Server.

The call to the onLineDraw remote server method accepts 3 parameters: “STOP-LINE”, this.ymouse and this._xmouse. Here is that call:

myConnectionToServer.call(”onLineDraw”,null, “STOP-LINE”, this._xmouse, this._ymouse);

That is house the client Moderator transfers data to the server. Here is how the server receives the data and informs the Attendee:

public void onLineDraw(Object[] params){
line_SO = getSharedObject(Red5.getConnectionLocal().getScope(),”myline_so”);
line_SO.setAttribute(params[0].toString()+”~”+params[1].toString()+”~”+params[2].toString());
}

With line_SO we have the variable ISharedObject while retrieves the instance of myline_so, a shared object that got created during startup. The Moderator then sends 3 parameters which will be assigned as attributes to a shared object. The method setAttribute from Moderator invokes the onSync event on the remote Atendee client’s local machines.

Now, let’s take a look at the way the Attendee machines receive the information, keeping in mind that line_SO is a copy of SharedObject stored on Attendee’s local computer the way a browser cookie would be:

line_SO = SharedObject.getRemote(”line_SO”, myConnectionToServer.uri, false);
//Creating instance of remote option
line_SO.connect(myConnectionToServer);
line_SO.onSync = function(infoList)
{
In “change” event:
var dataFromServer = this.data[id];
var todrawData:Array = dataFromServer.split(”~”);
var lineAction = todrawData[0];
var lineX = todrawData[1];
var lineY = todrawData[2];

Using the above parameters you will now be able to draw on your White Board. That is all you need to know to put your very first White Board to work today.

Popularity: 3% [?]

Share and Enjoy:
  • E-mail this story to a friend!
  • del.icio.us
  • TwitThis
  • Reddit
  • StumbleUpon
  • Sphinn
  • Facebook
  • MySpace
  • Live
  • Google
  • LinkedIn
  • Technorati
  • Mixx
  • Yahoo! Buzz
  • Propeller
  • NewsVine
  • Slashdot

Creating an Application with Flash and Red5 is Simple with This Tutorial

Monday, June 21st, 2010

To prove just how easy it is to get a simple application made using the right technologies, this tutorial was built to show how Red5 and Flash help you build something from scratch in a very short amount of time once you have the right code in place. In five quick steps we will show you how to get your first app up and running!

First Step -

You will need a default application template which you can find inside your Red5 directory on your hardrive, usually located here:

C:\Program Files\Red5\doc\templates\myapp

Copy the folder about into this directory:

C:\Program Files\Red5\webapps\

Easy enough. Once that’s taken care of, it’s time to move on to the next step.

Second Step -

Since the default template is in the right place to run the server side application we want, we can now change its configuration to meet that need. All you need to do is change the name of the “myapp” directory to “sample”. The directory’s title is the name of your application. Next, let’s edit the configuration files within this sample directory.

We’ll structure our application so that it has Sample linking with WEB-INF and lib. The WEB-INF will link directly to:

red5.web.properties
red5-web.xml
web.xml
log4j.properties

Now we open red5-web.properties and edit the contextPath to the folder “sample” to look like this:

webapp.contextPath=/sample
webapp.virtualHosts=localhost, 127.0.0.1

Then we open web.xml so we can change the webAppRootKey and display to look like this:

My tutorial application made with Red5

webAppRootKey /sample

Then we are going to open red5-web.xml so we can alter the application names to look like this:

class="org.xyz.Application"
singleton="true" />

In the example above, org.xyz represents the package structure we’re using. You could replace it with the application’s real structure if you wanted to. In this instance, the lib directory will have the application’s jar file inside it.

Third Step -

Now that we’re prepared for the server side configuration of the application we will make the application itself so that it can work with the Flash client.

Using a Java IDE such as Eclipse, you need to create a new Java project. You’ll name this sample and give it a structure where Sample links to:

src (which links to org that in turn links to xyz)
classes
lib

The folder named “src” will hold the application package structure we’ve named org.xyz, our compiled class file will reside within the “classes” folder and the folder “lib” will hold the jar file of our compiled class.

It’s time to create build.xml so we can build this project a tool. Our build file will look like this:









In the “jar” target we’ve made a copy of the jar file we created within the folder where our application is, “webapps” inside the Red5 installation. You can copy and paste it by hand.

Remember, add red5.jar from your Red5 installation in CLASSPATH of Eclipse so it will know where to find the Red5 libraries to compile the application. Otherwise you are bound to receive errors.

Fourth Step -

It is now time to create the source file we need. make a new Java file named Application.java

Now we will create our source file. Create a java file, name it to Application.java

Here is the code that needs to be in the Application.java file:

package org.xyz;

//log4j classes
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

//Red5 classes
import org.red5.server.adapter.ApplicationAdapter;
import org.red5.server.api.IClient;
import org.red5.server.api.IConnection;
import org.red5.server.api.IScope;

/**This is the sample application class */

public class Application extends ApplicationAdapter{
/**Variable used for generating the log*/
private static final Log log = LogFactory.getLog(Application.class);

/**This method will execute when Red5 server will start*/
public boolean appStart(IScope app){
if(super.appStart(app) == false){
return false;
}
log.info(”Application start method of Application called”);
return true;
}

/**This method will execute when first client will connect to Red5 server*/
public boolean roomStart(IScope room){
if(super.roomStart(room) == false){
return false;
}
log.info(”Inside room start of Application”);
return true;
}

/**This method will execute everytime when a client will connect to Red5 server*/
public boolean roomConnect(IConnection conn, Object params[]){
if(super.roomConnect(conn, params) == false){
return false;
}
log.info(”Inside room connect method of Application”);
return true;
}

/**This method will be called when a client disconnect from the room*/
public void roomDisconnect(IConnection conn){
super.roomDisconnect(conn);
log.info(”Inside room disconnect method of Application”);
}

/**This method will be called when a client will be disconnected from application*/
public void appDisconnect(IConnection conn){
log.info(”Inside app disconnect method of Application”);
}

/**This method will be called from the client. This method will show “Hello World!” on *the flash client side .
*/
public String sayHello(Object[] params){
log.info(“I got your name:-”+params[0].toString());
return “Hello World!” + params[0].toString();
}

} ////////End of Application class

That file gives us a feel of what the server side code needs to look like. The documentation that comes with Red5 gives further details on the methods for the ApplicationAdapter class. We defined a method called sayHello and this gets the user name from the Flash client and adds it to the “Hello World!” statement before passing it back to the Flash client.

It’s time to run the jar task of our build.xml file to compile the application class, generate the jar we need, and copy it to the application directory we placed inside the Red5 installation.

Fifth and Final Step -

We’ve now prepared our server side application so we can start on the Flash application in order to connect it with the Red5 server.

Now you need to create a new Flash document, so:

Go to window-components in the library and drag an Alert component out. Open the Action-Frame and inside there you need to write this code:

import mx.controls.Alert;

var nc:NetConnection = new NetConnection();

nc.val = this;
nc.onStatus = function(info){
switch(info.code){

case “NetConnection.Connect.Success”:
Alert.show(”Got connected with application);
this.val.callServer();
break;

case “NetConnection.Connect.Failed”:
Alert.show(info.application);
break;

case “NetConnection.Connect.Rejected”:
Alert.show(info.application);
break;

case “NetConnection.Connect.Closed”:
Alert.show(”Client Disconnected”);
break;
}
};
nc.connect(”rtmp://localhost/sample”);

function callServer(){
var resultObj:Object = new Object();
nc.call(”sayHello”, resultObj,”Your Name”);
resultObj.onResult = function(str){
Alert.show(str); //This will display “Hello World! Your Name”
}
};
}

After the code is in place, save the application with the name sample.fla(user preferred)

Since this code shown above is Action Script 1 code it can also be put into an external .As file which can be referred to from within the application but we aren’t covering that method in this tutorial. Nevertheless, it is a valid option.

At last, you can run the Flash client and it should successfully connect with the Red5 server to show an alert box that reads, “Hello World! Your Name”

It really is that simple and now that you know the basics, expanding upon your knowledge will allow you to get the most from your Red5 experience!

Popularity: 3% [?]

Share and Enjoy:
  • E-mail this story to a friend!
  • del.icio.us
  • TwitThis
  • Reddit
  • StumbleUpon
  • Sphinn
  • Facebook
  • MySpace
  • Live
  • Google
  • LinkedIn
  • Technorati
  • Mixx
  • Yahoo! Buzz
  • Propeller
  • NewsVine
  • Slashdot