Technical Solution

Zyxware default image4
| 1 min read
You might have come across a situation where you need to set the title of the content as the filename for an uploaded image or where you might need to replace the spaces and special characters from the filename of an uploaded file. In such conditions you can use preg_replace. I will show you some example code where the output string will be nice and clean and can be used for setting file names.
Zyxware default image2
| 4 min read
The command "setfacl" refers to Set File Access Control Lists and "getfacl" refers to Get File Access Control List. Each file and directory in a Linux filesystem is created with a specific set of file permissions for its access. Each user can have different set of file access permissions. The permissions can be set using the setfacl utility. In order to know the access permissions of a file or directory we use getfacl. The getfacl command displays the access permissions of files and directories with file name, owner, group and the ACL's(Access Control List). When we create a directory it is created with a default set of access permissions and by using getfacl we will be able to see the access rights.
Zyxware default image1
| 5 min read
One of the best resources for Drupal developers is the official website of Drupal itself followed by blogs created by Drupal users and Drupal based companies. There are also a number of books written by battle hardened veterans of Drupal for other Drupal developers. Any Drupal Developer who wishes to get their hands dirty with Drupal should try out these Top 3 Drupal books for Drupal Developers. If instead you don’t want to get your hands dirty you can always hire us to get your Drupal work done. We can provide a number of Drupal Services from Drupal migration and Drupal SEO to providing a Drupal security audit to help build your Drupal site as quickly and securely as possible.
Zyxware default image4
| 6 min read
There are a few common performance mistake that are commonly found in most Drupal sites. Here are the list of the Top 10 Performance Mistakes in Drupal that can easily be addressed by a simple change in settings or the addition of a module. The easiest way to solve performance problems in Drupal would be to prevent them in the first place. Contact us for a free consultation on how to build your Drupal website right.
Zyxware default image2
| 3 min read
Cross browser compatibility is one of the most important concerns of an HTML/CSS developer. Here’s how you can easily add shadow effect to your div blocks with cross-browser compatible CSS. Simply add the below code to the div to which the effect is to be added. You can change the size, strength and direction of the shadow in all browsers, except for IE, in which you can change only the strength and direction of the shadow.
Zyxware default image3
| 3 min read
APC or Alternative PHP Cache (APC) is a free and open opcode cache for PHP. APC allows for caching of opcode generated during PHP script parsing and execution by the Zend engine. If you are using APC 3.1.9 and you are using the default configuration you might run into the error where most PHP requests will return a warning message "PHP Warning: Unknown: Unable to allocate memory for pool. in Unknown on line 0"
Zyxware default image3
| 2 min read
”rsync” is an open source utility in Linux/Unix primarily used for synchronising files/directories over the networks. You can also use it to backup/copy folders between machines. It is particularly made use of to while administering servers connected to the internet. The term “rsync” itself refers to “remote-synchronise”.
Zyxware default image3
| 3 min read
If you own a VPS or a dedicated server or a hosting server which allows you to have shell access then you can easily set up your own git server with as many users and as many repositories as can be stored in the space on your server. All you need to do this is a bit of system administration skills and a hosting server that allows you shell access. Read on to see how you can set up your own git server.
Zyxware default image3
| 2 min read
On a WHM/cpanel VPS server the httpd.conf is automatically generated from cpanel scripts based on templates and you are not supposed to change this file directly. Any changes that you make in the httpd.conf file will be lost when cpanel re-generates the file or when cpanel is updated. This is an inconvenience especially when your application requires you to make virtualhost modifications in the configuration. However cpanel provides an alternative way to edit the httpd.conf file.
Zyxware default image1
| 1 min read
When you untar large tar files even as the root user on your VPS you might run into the error "Cannot change ownership to uid NNN, gid NNN: Disk quota exceeded". This is because the extracted files from the tar archive is being attempted to be created with the original UID and GID as on the system where the tar archive was created. Now if the UID is not already present on the new VPS or if the UID corresponds to a user without a lot of disc quota available the above error will be triggered preventing extraction of the tar.gz archive.
Zyxware default image3
| 2 min read
Most of us must be familiar with the names 'dig' and 'whois'. If not, these are two commands used to find the details of domains. You just have to type in dig domainname or whois domainname to get a comprehensive set of info on the domain. What if you have not just one or two domains to check about. How about a 1000 domains and you want to know the details of each?
Zyxware default image1
| 2 min read
Redmine is one of the most popular Ruby on Rails applications which has made quite a name for itself in the world of Project Management. It offers a lot of flexibility. One of its main advantages is that it can recognize your files repository and can work along with your source control system to keep track of all changes through the tracker itself. Here is one error that we came across when we tried to integrate our filesystem and source control management system with Redmine - Error: The entry or revision was not found in the repository
Zyxware default image3
| 2 min read
Some times we wish to exclude some files and directories when we try to take backup of a website. With tar it is possible. Use the --exclude option. For example, if you want to exclude .git folder and the imagecache directory inside the files folder, use the command: tar -zcvf abc.com.tar.gz --exclude ".git/*" --exclude ".git" --exclude "sites/default/files/imagecache/*" --exclude "sites/default/files/imagecache" public_html
Zyxware default image2
| 6 min read
OpenOffice Calc is surprisingly an excellent tool for creating wireframes. Wireframes can be created very easily in OpenOffice Calc using the standard shapes available from the drawing toolbar and also by merging cells in the sheet. Each sheet can be used to define a single wireframe and then a single spreadsheet document can contain all the wireframes for a given project. OpenOffice Calc also allows you to export the full set of wireframes as a pdf document with one page corresponding to each sheet in the document. Here are some tips to create good wireframes using OpenOffice Calc.
Zyxware default image3
| 1 min read
Some of the latest Laptops especially Dell Inspiron 5420 and Lenovo G580 series comes with Atheros Network driver which has some problem with Ubuntu 12.04. The problem is that it will not detect the wired network connection(eth0) even though wireless connection is working fine. We can solve this issue by installing the proper network driver.
Zyxware default image4
| 4 min read
XHTML Validation serves the purpose of rechecking our site to see if it follows the W3C standards. It not only ensures quality, but also teaches us good coding practices and thereby eases maintenance. Validating one's code before taking it live serves as a sign of good professionalism in a coder's career. Common errors found during XHTML validation are listed below: 1. Not closing empty tags. Empty tags are tags that do not contain any content.