Posts

Showing posts from December, 2014

Filtering Of URL : Make Text url-safe

URL filtering is important: everyone from marketers to search engines loves nice, text-rich URLs. If we want to create keyword-rich URLs based on our dynamic content then we will need to clean and filter the source text first. Here is a handy function that will generate text very much. We can use this pretty much anywhere like in tagging systems, and in code that creates permalinks based on post titles or taxonomy terms. function filter($value, $force_lower_case = true) { if ($force_lower_case) { $value = strtolower($value); } // remove everything except A-Z, a-z, 0-9, hyphens, and whitespace $value = preg_replace( "/[^a-zA-Z0-9-\s]/", '', $value ); // convert whitespaces to hyphens $value = preg_replace( "/\s/", '-', $value ); // replace multiple hyphens with a single hyphen $value = preg_replace( "/[-]+/", '-', $value ); return $value; } Note: This is a secure appro

The advantages of using a Ticketing System

How many times have you come in on a Monday morning, checked your email, and then instantly wanted to go crawl back in bed after seeing tons and tons of unanswered emails? How many times has someone emailed you and then emailed you again and again, thus adding to your clutter? How many times have you needed to find something in your email and taken forever to do so? If any of the above are applicable to you and your business—you need a ticket system. So, what exactly is a ticket system? It is an email management tool that takes those inbox-cluttering emails and organizes them in such way that your head won’t explode. Here’s what happens. Say you don’t have chat (if you don’t, you should consider adding live chat to your site) or you’re unavailable, and a customer needs to ask you a question. They are directed to a simple, fully customizable web form where they can send you an email. You can then tag emails, filter them, assign them to various employees, and keep y

Benefits of using Colocation Hosting

Colocation is an option of hosting for small scaled  businesses who demand the features of a vast IT department without much costs. Many of large corporate sectors have the net infrastructure to host web servers and have a group of IT professionals for managing and designing the site which small companies do not. Options are available in a wide range from typical hosting up to the running of their own Web servers in a dedicated link. One of such options is Colocation. It is a type of web hosting service that allows the companies for buying rack spaces in the data centers. There users can store and manage their server equipment. These Data Centers eases the built for Colocation services of hosting and following it companies can do have their own working servers without putting them on their campus. Colocation provides the associated Companies with much better defined flexibility of installing the operating systems as well as other important tools according to their r

CakePHP for buidling your web app = great choice!

CakePHP is a PHP framework that simplifies the way you do programming. What do I mean by “framework”? This concept is best explained by making a comparison with traditional application scripts: a typical PHP script starts at the top and proceeds to the bottom while utilizing included classes to create objects and processes the intended logic. An error in your syntax ruins everything, and you need to manually code database connections and other activities not native to the language. MVC Pattern Model support data handling, with model class you can insert, update, delete or read the data from the database. View support data rendering on the screen. Controller process and responds to events and can modify data before it interact with the model (database). With this pattern it’s very easy to separate the logic from the presentation, which is very useful for large applications and sites. Faster development CakePHP shaves a lot of time off your typical coding assignme

How to post a ticket in kayako using rest api from a cakephp application?

Nowadays REST API (web services) development based on RESTful architecture  is accepted across the Web as a simpler alternative to SOAP – and Web Services Description Language (WSDL)-based Web services. Key evidence of this shift is the adoption of REST by web 2.0 service providers, including Yahoo, Google, and Facebook, who have shifted their SOAP and WSDL-based web services to RESTFul API. RESTful development has become the standard way of creating a web application. How to post a ticket using rest api? To post a ticket using rest api we have to post the data using an http post request. That can be done by using curl, but cakephp has Http Socket which makes http post easier than the curl. You can post ticket as a staff or a client user, the difference lies only in a single field that we post. To create ticket as staff we have to pass “staffid” and to create ticket as a client we have to pass “userid” in post. Example : $apiUrl = $api_url.”e=/Tickets/Ticket”;

Access control List(ACL) in CakePHP

An Access control list or ACL is used to make access control for each of the logins and handle security of the app. For example, ACL handles menu level permission access and function or module level access permission. When a subject requests an operation on an object in an ACL-based security model the operating system first checks the ACL for an applicable entry to decide whether the requested operation is authorized. A key issue in the definition of any ACL-based security model is determining how access control lists are edited, namely which users and processes are granted ACL-modification access. ACL models may be applied to collections of objects as well as to individual entities within the system’s hierarchy. ACL basically handles 2 things: ARO(Access Request Object): Aros are of usergroups and users. Each of the users are mapped to aros to know the group he belongs to. ACO(Access Control Object): Aros are of menus and modules. Where every usergroup will h

Web Hosting trends to follow

The web hosting industry is a constantly morphing entity and in order to survive as well as maintain its profitability, the companies offering these services have to adapt accordingly. There are several latest trends in web hosting services. Most of the web hosting companies are trying to provide the best services in the market. Customers always want to have the best web hosting services to manage their websites. The latest web hosting trends to follow are as follows- Speedy Deployment Cloud technology allows companies and organizations to access processing power and storage capacity online as fast as they need it, and be up and running in record times. Just as cloud hosting has largely done away with the idea of the physical server, new rapid deployment technologies may be able to do away with data centers, at least as we are largely familiar with them. Growing Power Saving Needs There’s a growing consensus that, as important as power is today to datacenters and hosts, it is

Understanding Cloud Computing

Cloud computing offers more benefits to companies of all sizes, especially to smaller and newer companies, than the standard objections raised for cloud computing, compared to Infrastucture IT Services . And the cloud’s economies of scale naturally make a bigger difference to savings and capabilities on its own for the conpanies. Economies of scale. It’s cheaper for bigger cloud computing folks to make efficiency improvements because they can spread the costs over a larger server base and can afford to have more dedicated folks focused on efficiency improvements. Small companies, have more limited resources. Anything that can give them access to scale in purchasing and pricing can be considered advantage. There’s also a substantial advantage to having “in house” expertise devoted to efficiency, instead of having staff split between different jobs. Technology changes so rapidly that it’s hard for people not devoted to efficiency to keep up as well as those that are. Diversity

The importance of Portal Management

Customer on boarding is a delicate process.  Your objective should be to make this process as smooth as possible for the customer. 1.  Avoid long, complicated sign-up forms This is a major detractor for prospective customers. Most of the customers prefer instant, hassle-free sign ups. If you set a 24 hour window for account verification, they are most likely to say good bye and take their business elsewhere. Automating sign ups with simple lucid forms, and account verification done in a matter of minutes, gives a customer a feeling that they have signed up with a sophisticated hosting provider. 2.  Avoid asking redundant information for account verification on the portal How likely is a person at this age and time owning a fax machine and pager? Root out these formalities. Don’t make it difficult for them. 3.  Prolonged time for account verification on portal It is true that there are a lot of fake credit card, online fund transactions taking place. But this is not an e

“502 bad gateway” Gitlab error in nginx server

Before describing the diagnosis and troubleshooting methods that I used to solve this problem, allow me to give you a little rundown on what this is all about. GitHub : It is a wonderful tool that make managing and administering lots of Git repositories and their associated permissions on a centralized server quite easy. What if you want to do something like this on your own servers where your developers can store their projects and network?  GitLab  gives you complete control over your repositories and allows you to decide whether they are public, private or free. It’s a github clone to be more specific running on your own hardware. To learn more about the minimum requirements to run your own gitlab service  click here . Hunting down the errors with GitLab: One of our gitlab servers started throwing up “”502 bad gateway” error one fine day.  We  have a Ubuntu server with nginx+gitlab+ISPconfig (ISPconfig is a free hosting control panel) to server as a gitlab server. Troubl

How to create an All-star team? Tips on Staff Management

So you’ve just got a new job as a manager. Congratulations! Or, maybe you’ve just been given the task of pulling a new team together. What a challenge! Either way, whether your team exists already or it’s your responsibility to create it, what do you do next? This article looks at some of the key things that team managers need to do if their team is to thrive and succeed. These range from choosing the right people and deciding who does what, to communicating with, developing and motivating people. It also covers some of the most common pitfalls to be avoided. It also will inform you how HostGems can take care of all aspects of Staff Management. Efficient staff management can get a company to deliver to their potential. It will contribute to the success in business and also cement the foundations of the organization for further growth. It’s better to choose right then to be sorry Every employee is skilled at a particular field. Why wait for the employee to cele

All about Cloud Computing

Cloud computing is the use of computing resources (hardware and software) that are delivered as a service over a network (typically the Internet). The name comes from the use of a cloud-shaped symbol as an abstraction for the complex infrastructure it contains in system diagrams. Cloud computing entrusts remote services with a user’s data, software and computation. There are currently 3 classifications for cloud computing: 1)IaaS (Infrastructure as a Service) – Amazon EC2, Microsoft Azure etc 2)PaaS (Platform as a Service) – Google App Engine, VMWare CloudFoundry, Microsoft Azure etc 3)SaaS (Software as a Service) – Salesforce Force.com, Google Docs etcUsing software as a service, users also rent application software and databases. The cloud providers manage the infrastructure and platforms on which the applications run. Types of cloud Public cloud Public cloud applications, storage, and other resources are made available to the general public by a serv

cPanel Updates – November 2014

Image
We have new updates from cpanel. 1) Notice: 11.40 Now EOL, 11.42 to EOL in 3 Months cPanel & WHM software version 11.40 has now reached End of Life . In accordance with our EOL policy [http://go.cpanel.net/longtermsupport], 11.40 will continue functioning on servers.  The last release of cPanel & WHM 11.40, 11.40.1.22, will remain on our mirrors indefinitely.  However, no further updates, such as security fixes and installations, will be provided for 11.40. Older releases of cPanel & WHM 11.40 will be removed from our mirrors. cPanel & WHM 11.42 is set to reach End of Life at the end of January 2015. We recommend that all customers migrate any existing installations of cPanel & WHM 11.42 to a newer version (either 11.44 or 11.46). If your server setup complicates the process of migrating to a newer version of cPanel & WHM (an upgrade blocker list is available at http://go.cpanel.net/blockers) , then cPanel is here to hel

How to set up a forwarder for outgoing emails?

Image
Issue :  How can emails going out from a particular domain be copied to a common email address ? Solution :  In order to set up a forwarder for outgoing emails from a particular domain to another email address, use the following steps : First, open the file /etc/cpanel_exim_system_filter using any of your favorite editors. Add the following content to it : if ( $received_protocol is “local” or $received_protocol is “esmtpa” or $received_protocol is “smtp” ) and ( $header_from contains “@domainname.com” ) then unseen deliver username@domainname.com endif Now, if you DO NOT want to forward outgoing emails from a particular email address on that domain, you can add the following code in the /etc/cpanel_exim_system_filter file : if ( $received_protocol is “local” or $received_protocol is “esmtpa” or $received_protocol is “smtp” ) and ( $sender_address is not ” username_escape@domainname.com and ( $header_from contains “@domainname.com” ) then unseen