Archive for Computer Technical Support

How to create events / handle signals with PHP-GTK

When trying to create an event (or what’s called handle a signal), you may get the following error:

PHP Fatal error: Call to a member function remove() on a non-object in /home/user/Desktop/application.php on line 12

This error may come from the following code:wordpress hosting

<?php
$window=new GtkWindow();
$button=new GtkButton("Click here");
$button->connect_simple('clicked','clicked_function');
$window->add($button);
$window->show_all();
$window->connect_simple('destroy',array('gtk','main_quit'));
Gtk::main();
function clicked_function() {
$window->remove($button);
}
?>

What’s wrong with the code, you may say? Well, let’s first understand what is happening.

  • $button->connect_simple('clicked','clicked_function') – we connect a signal callback to the clicked signal. The signal is emitted from the relevant GtkButton object when the end user clicks the relevant button. There is both a connect and connect_simple method for the GtkButton object. The difference between the two is connect returns the object it was called from (i.e. GtkButton for instance).
  • We make the signal callback to clicked_function function. We then try and remove the button from GtkWindow.

The problem? Scope. Because Gtk::main continues the application in a loop (which means it subsequently keeps looking out for events to occur – like this one), it means you can’t call an object from within a function (as it is technically not available), so we have to pass it through the optional parameters of connect_simple in order to use the GtkWindow remove method to remove the GtkButton object. In theory, we actually have two options.

  • We make the two objects (GtkWindow and GtkButton) global in scope (remember we declare scope within the function or where ever it usually isn’t available).
  • As I said, we pass the objects as optional parameters.

Let’s show you both methods:

<?php
$window=new GtkWindow();
$button=new GtkButton("Click here");
$button->connect_simple('clicked','clicked_function');
$window->add($button);
$window->show_all();
$window->connect_simple('destroy',array('gtk','main_quit'));
Gtk::main();
function clicked_function() {
global $window;
global $button;
$window->remove($button); // now works
}
?>

<?php
$window=new GtkWindow();
$button=new GtkButton("Click here");
$button->connect_simple('clicked','clicked_function',$window,$button);
$window->add($button);
$window->show_all();
$window->connect_simple('destroy',array('gtk','main_quit'));
Gtk::main();
function clicked_function($window,$button) {
$window->remove($button);
}
?>

And there you have it. That’s how you handle events in PHP-GTK!

728x90 new

Related Posts:

  • No Related Posts

HOWTO: Remove GRUB Loader and Restore Windows 7 and Vista Bootloader

You’ll need to get your Windows 7 or Windows Vista retail disc or download the free recovery media from NeoSmart.net

Note: If you don’t have a retail disc with your computer, and instead you had to make a recovery media with your PC, don’t worry – you can download a Windows 7/Vista recovery disc that allows you to do the same thing with a retail disc – except reinstall Windows of course: see http://neosmart.net/blog/2009/windows-7-system-repair-discs/ for Windows 7 and http://neosmart.net/blog/2008/windows-vista-recovery-disc-download/ for Windows Vista.
It’s in ISO format that you can easily burn to a disc.

Put the disc in, then as it comes up to the installation section (for retail discs), click “Repair my computer” then go and select your Windows installation, and from there select Command Prompt. For the recovery media discs you downloaded from NeoSmart – we’re not sure what the steps are, but it’s probably similar.

Then you need to type:

Note: execute one command at a time

bootrec.exe /FixBoot
bootrec.exe /FixMbr

It takes less than a second. Reboot and it’ll boot into Windows automatically. Then go to Start menu, right click Computer and select Manage. Go to Disk Management from here, and delete the partitions related to Ubuntu. Once you’ve done this, extend the volume size of your Windows partition to take the remaining free space. To delete/extend volume size of a partition, you right click.

782x50

References if you want to read them quickly:
Microsoft Support Site – How to use the Bootrec.exe tool in the Windows Recovery Environment

Related Posts:

  • No Related Posts

Web Hosting Customer Service

What Is Good Web Hosting Customer Service?

Good web hosting customer service plays the biggest part in retaining the customers and also increasing sales. Giving prompt attention to the customer’s problems and resolving all their website related issues in the most professional and friendly way will ensure customer’s renewal of trust, increased faith, and complete satisfaction in your web hosting service. It will mean viral sales as they will be more than happy to recommend your web hosting service on their websites, forums, and to their friends and relatives. What other promotional methods can work such wonders to your advertisement and sales campaigns?

banner1

To become the best web hosting customer service on the internet where attitude matters more than any thing else, first, you definitely need to stay in touch with your customers. You can offer them some free subscription and ask them to ask for your support services anytime they need even for the smallest help. This builds prompt relations between your customers and your hosting service.

Also, you need to have at least the e-mail address or the contact number of some of the important customers. So, that in case of emergency or any problems with the web server, you can contact them and let them know about the problem that your hosting service is facing with the web server or the internet connection. This will put them at ease as they will be ready to face the problem to their website because of some back-end problems. An early intimation given to your customers about any server-related problems will definitely get you many thanks for giving them advanced notice and awareness.

Only when the customers face sudden problems, they get irritated by them as these webmasters cannot inform their faithful readers and visitors of the problems. When they know that a problem could be taking place they would take precautionary steps and also inform their own clients and readers in advance that their site is going down for maintenance.

Then, you need to have a F.A.Q. Page on your website, and you should see that all the possible queries are answered in that F.A.Q. Page. This will help your customers in a positive way such that whenever they are in any kind of difficulty, they can easily refer to the F.A.Q. Page and try and solve their problems. In case of any unseen or unreported problems, they should be guided to your 24-hours customer care and technical support section with the help of a link on the F.A.Q. Page.

There is no web server on the internet which has not experience frequent server break-downs. Sometimes it just takes a couple of minutes for the web server to start work again. However, sometimes for many hours, the web server faces this problem and at that time your website will not be accessible for the online visitors. At such times, you can e-mail your customers about how much or little down-time they can expect. This again can pacify them and they will be thankful to you if your website gives the following service:

There are many customers present on a single web server. When the web server goes down, the entire communication is cut-off. So, they need to contact their web host service provider to know when the server will work again and what is going on with their website. Some web hosts provide emergency support through toll-free telephone.

euk 728x90 2

If the customers have that telephone number, then they can call that number for support.

You need to have the high-quality staff to attend these customers’ needs and queries, and make the web server operational again in as little time as possible. If your staff is unable to solve your customers’ queries, it creates a bad impression on the customers and they will feel neglected and probably leave your web hosting service.

If you have a very busy web hosting business, then you can leave an automated voice message stating what the problem with the web server is, and approximately how much time it will take to make that web server operational again. This will make your website visitors get the message without taking to the live agents. This will save your time and you will not have to talk to every customer to tell them what the issue is. You can update your customers every 15 to 30 minutes or so if you expect the problem to last for a longer time.

However, if they do not have that number, then they will be fed up with the customer service that your company provides. So, have another customer relations website on a different server and keep your customers posted through that website. You can mirror this website on every server that you may have so the customer support service can be always online.

To avoid these types of problems, make it as easy as possible for the customers to contact you or your department at the time of any difficulty. You need to provide them with as many contact methods as possible. For example, you can offer them your e-mail address, your contact phone number, fax number, or use another website on a different web server, etc.

Your technical staff needs to know the solution for every kind of problems. For this you should always check that all the necessary help materials and manuals to solve the problems are provided to your staff. Make sure that they are well trained and know all the possible problems that may occur. Every customer may have different difficulty. So, your support staff needs to be professional and equally have a friendly approach with every customer to provide instant support and solve your customer’s queries.

You need to keep your customers happy! Provide them every necessary detail and future plans of your company. You can even send them greetings and even bonuses as a gratitude to at least some of the customers who are happy with your hosting service.

banner1

Now, you can also use these additional tips to help you create a really very responsive, friendly, and a thoroughly professional support staff for your web hosting company: You will listen to all the problems that your customer wishes to convey to your company. Do not interrupt them while they are talking, and then very politely give them assurance of prompt solutions. Always thank them for talking to you and assure them professionally with a very friendly attitude.

Your confidence in finding quick solutions should be conveyed through calm yet assured tone. Arguments and angry voices can only make matters worse. Calmness and confidence produces solutions. If promises are given about restoration of service or problem, fulfill the promise and record how quickly the promise was fulfilled. If the solution is unknown or if it may take a lot of time, then do not promise, but assure them never-the-less that a speedy effort will be initiated. Then keep them informed about the progress. Get the customer’s feedback after every solution and thank them for giving you the opportunity to help them. Request feedback’s and convey to them that their feedback helps your company in providing better future service.

There are many such things that you can initiate to make your web hosting customer service far better than your competitor’s!

Related Posts:

Colocation

Colocation is a type of hosting where customers pay to have their own servers hosted within a data centre; colocation services are available via some web hosts through the use of their private cages, or you can pay a data centre directly to have your server located in a cage which is run by the datacentre itself. Other equipment such as networking equipment and storage equipment can also be colocated within server racks. Colocation is seen as a more enterprise level alternative to dedicated server hosting since the equipment hosted is owned by the person or business that is paying the lease. More and more businesses are starting to realize the benefits of colocation hosting; the main reason for this being that with regular dedicated server hosting you don’t receive the level of support or technical know how that you do with colocation hosting. Colocation hosting has many advantages above ordinary dedicated hosting server, such as the fact that most data centres provide a ‘remote hands’ service if your server needs a task doing such as an OS reinstall which can only be done from the console; also, the connectivity that your equipment receives will probably be better than that you would receive on a dedicated server, the reason being that your equipment is surrounded by your own equipment meaning that you don’t have any other customers around you that could be a burden on your connection speed. Colocation is often abbreviated as ‘colo’; the colocation centres themselves are often referred to as ‘carrier hotels’ because of the number of internet carries that the host, as well as the number of businesses which have their servers located within a colocation centre.

Standard Features of a Colocation Centre

Colocation centres are often built in a certain way for the maximum benefit of the servers and equipment which they host. Colocation centres are more or less ordinary data centres, and so always have some sort of fire suppression system that makes use of pipes to ensure that the fluid used to put fires out can spread across the building rapidly to ensure that the fire doesn’t damage too much of the building – that is if the fire can be controlled. Regular internet equipment is around 19 inches wide – the same can be said for an ordinary server, this means that both colocation and data centres have a large collection of 19 inch wide data racks to cope with customer demand; most also carry a collection of 23 inch wide data cabinets which is used to hold any telecoms equipment that customers may wish to have hosted at the location concerned. Most 19 and 23 inch wide data cabinets are lockable to ensure the safety and security of the equipment that is contained within; this is perfect for large corporations or business’s whose servers contain highly sensitive information since they are able to leave their equipment there with peace of mind. Because of the nature of both colocation and data centres, they both contain alot of cables (both data and power) to ensure that the equipment that they host is able to be powered and connected to the internet; it is because of this that you will always find overhead cable racks in both to ensure that more cables for more equipment can be easily set out. One thing that you might also come across is the fact that the power for the equipment is contained in another rack – sometimes referred to as the power distribution rack; this is done to ensure that the most can be made from the space contained within both data and telecoms racks. One main feature of either a colocation or a data centre is air conditioning to ensure that the hosted equipment is kept at a cool temperature; the air conditioning within both types of centre is normally pushed through the raised floors that both contain and then released from under the cabinets that hold the equipment to ensure that every piece of equipment receives cool air to keep its temperature down. The amount of cooling that is available in both a colocation and data centre and restrict the amount of servers or how much equipment can be hosted within the facility; this is because if there isn’t enough cooling available then a fire hazard can be created – some think that it is the floor space (sometimes referred to as square footage since it is measure in square foot) that determines how much equipment can be hosted within a facility. Another idea used to ensure that the temperature of equipment is kept to a minimum is to ensure that the data floors used contain little or no windows; this helps since sunlight cannot reach the equipment or floor itself which can help keep the temperature down, especially on hot summer days.

Security

Because of the nature of the equipment that is hosted within both a colocation and data centre, both require that a member of staff escort a customer across the data floor to the cage in which their equipment is hosted; in this case the member of staff is also required to stay with the customer whilst they do what they need to do to their equipment. This is done because in most cases the equipment of other customers is normally contained within the same rack; if a customer has their own rack or cabinet within the colocation or data centre then they are normally provided with some type of access card which they can use to gain access to the data floor, and then use their own set of keys to unlock the cabinet in which their equipment located. Some colocation and data centres used the biometrics of clients as a pass key, as that ensures that person entering the data floor is the customer that they have on file. Both types of centre also contain many CCTV cameras and staff to monitor them to ensure that no unauthorised personnel manage to gain access to the data floor. In terms of technical security, the use of equipment such as firewalls is down to your own specification, since you are more or less hosting your own equipment; in some colocation and data centres where you are sharing a rack with other customers, the host company will in most cases provide the rack with some sort of security device or firewall to ensure the safety of all hosted equipment. However, if you do have your own rack then you will most likely have to provide the firewall or a device of similar standards yourself.

Power

Power sources within a modern day colocation or data centre are normally redundant, meaning that if some power supply gives way then there is another source available to keep the hosted equipment running. The method used by most facilities is to deploy diesel generators to supply the power to the servers and other equipment that may be hosted in the event of a mains power black out; some facilities employ UPS (uninteruptable power supply) between the event of a blackout and the diesel generators – a UPS in a simple context is a backup battery which stores power which can be used in the event of a blackout, which can then be recharged when the power is restored. In some cases, large corporations with their own equipment racks or cages deploy their own UPS amongst their equipment to compliment those power services of the hosting facility as well as to ensure the best redundancy for their equipment can be achieved in the event of a blackout. For additional redundancy, most colocation and data centres have multiple connections to different locations within the local power grid to ensure that if one feed does go down, there is at least one other available to power the equipment; this method is good since it means that the diesel generators or UPS supply banks don’t have to be relied on.

Connections

Most colocation and data centres have multiple feeds to different bandwidth carriers to ensure the best redundancy; this means that if one connection was to fail then there would be at least one other connection to the internet or service provider, to ensure that the hosted equipment was still connected and online. Some facilities contain rooms known as ‘meet me rooms’; this is because most peer points are contained with in data centres and colocation facilities to ensure that corporate customers are able to achieve the best possible connections. The idea of a ‘meet me room’ is to enable all carriers at the data or colocation centre to efficiently transfer data. In some cases, there may be a large internet exchange hosted within the facility where customers are able to link up for peering.

Related Posts:

  • No Related Posts

PHP vs. ASP.NET

PHP and ASP.NET are the two main scripting languages used by web developers. PHP is a multi-platform open-source language whilst ASP.NET is a single platform language built and owned by Microsoft. Both of these languages are packed full of features and add-ons for both are available so that you are able to extend their framework to build feature rich applications. Although PHP is open source, it has a large active community which is there to support users of the language; ASP.NET is a product of Microsoft meaning that there is a large amount of online documentation and other community forums where you can get support.

PHP

PHP is a language which has been around since 1984 and powers many of the world’s websites. It is free and is known as ‘open source’ software meaning that its source code is available for download, at no cost. It widely used in conjunction with the MySQL database engine, but can be used with others such as Oracle and SQLite. PHP is generally easier to code in than ASP.NET, since it has more functions built in than its rival; however, ASP.NET has built-in AJAX functions which is something that PHP lacks. Since PHP is open source, there is a number of applications that are available for free based on it, most of these applications are commonly used and are very powerful; also, there is a greater number of community forums and blogs where you are able to find information regarding PHP since it is open source.

PHP is a dynamic language since there are several different types of database that you are able to connect to, including: MySQL, Oracle, PostgreSQL and in some cases, Microsoft SQL Server. You are also able to edit the source of the language if you wish to speed it up or install custom modifications so that it is able to run as per your requirements; again, this is because it is open source – although ASP.NET is a free language, it isn’t open source meaning that you are unable to edit its source.

ASP.NET 

ASP.NET is a language based on classic ASP – both languages are owned and were created by Microsoft. Although it is a free language, it isn’t open source meaning that you are unable to view or edit the source code of it. Also, it is very limited in what database types you can use with it – Microsoft only invented it to work with Microsoft Access and Microsoft SQL Server databases, although developers can use it with MySQL databases with the help of third party components. Classic ASP, ASP.NET’s forefather, was created back in the mid-1990s and is the base which ASP.NET has been built on. One thing which annoys many ASP.NET developers is the fact that Microsoft is forever releasing updates to the system, and in its course, changing things along the way meaning that in some cases, developers have to keep on learning the changes as well as the new components and functions which are being added.

Related Posts:

  • No Related Posts
« Previous entries Next Page » Next Page »