How To

Zyxware default image1
| 1 min read
Sometimes we may require updating several rows of data with different queries and make sure every query execute correctly to keep the database consistency. Here is a simple solution to enable such transactions with Mysql and Python. To do this, we can start a transaction and commit the changes to the table. The data will be written to the table only after the commit statement is executed. If there is an error in between, we can rollback, so that all the inconsistencies are cleared.
Zyxware default image4
| 2 min read
Wine helps you to run windows application in Ubuntu. Sometimes even though wine exists on your system, fonts which work perfectly fine on other browsers might be displayed wrongly in Safari. To fix this common font issue found in Safari working under wine on Ubuntu, you need to update the Wine repository on your system.
Zyxware default image1
| 3 min read
Password-protecting drupal development site with .htaccess file There might be few scenarios when we need to protect our site from the general public and make it accessible to a selected group of users. One of the most common scenarios in the development workflow of a Drupal site is when you want to avoid your half-complete drupal site showing up in Google search results.For such needs, it is advisable to go for password-protecting the site using HTTP authentication. If you have cPanel installed on your hosting server, you can use the ‘Password Protect Directories’ option from the ‘Security’ section on the cPanel home page. Click here to read on How to enable HTTP Authentication using cPanel (link to an article for the same on our site) For those without cPanel, here’s how to get Apache work your way:
Zyxware default image1
| 3 min read
Once in a while you will come across a Drupal site where you have to login to the site without having access to the credentials of user 1. You can easily reset the password of user 1 directly in the database or you can create a small work around to login to the site. Here is how you can login to the Drupal 7 site programmatically as user 1 without knowing user 1 credentials.
Zyxware default image2
| 2 min read
If you have a Drupal 6 site where you have access to the ftp account but not to the user 1 credentials here is how you can login programmatially to the site as user 1 without resetting the user 1 password. Now that you know that this is possible, remember to not give ftp access to users who do not have access to user 1 credentials as well.
Zyxware default image3
| 2 min read
A VPS lies somewhere in between shared hosting and dedicated servers in terms of the features it provides. VPS divides the server’s primary resources and gives you certain amount of diskspace, memory, processing speed and bandwidth, with freedom on the OS configuration. In the case of shared hosting its like a common pool from which you consume bandwidth, diskspace, and processing power until it is exhausted. You dont get much control over the OS config.
Zyxware default image3
| 3 min read
md5sum stands for message digest version 5, which is used to check file integrity whether the transferred files are corrupted or not. md5 is a command line utility used in both LINUX or MS-DOS/WINDOWS which generates and verifies message digests using the md5 algorithm. The md5 hash comparison detects changes in files that would cause errors. The possibility of errors is proportional to the size of the file. The possibility of errors will increase with the increase in size of the file.
Zyxware default image4
| 2 min read
We were trying to create a new theme for our Drupal site and we came across an issue. How to create div "left" to be the same height as div "right" which can be smaller or bigger? Is it possible to have the "left" div height adjusts automatically according to the "right" div height? Here is what saved us:
Zyxware default image1
| 4 min read
When a server is managed by more than one admin, it’s always a challenge to keep track of the changes made to the configuration. And when in a multiserver environment managed by more than one admin, this is going to be more complex. It would have been much saner if there was a utility to handle all this. The ones that we found were quite complicated and was made for handling huge numbers. All we wanted was a very simple utility to do just the job, without much bells and whistles. And so, we started out on our own. Here’s what we have now.
Zyxware default image3
| 4 min read
CKEditor Module integrates one of the most popular online editors into the Drupal content management system. This module enables you to have a full-featured and customizable WYSIWYG editor in your Drupal website. In Drupal it is easy to install and configure CKEditor from within the Drupal administration panel. Still having issues with file upload button in ckeditor? Then follow these steps for a perfect CKEditor installation:
Zyxware default image4
| 2 min read
[Ubuntu For Beginners] Have problems installing Skype in Ubuntu 12.04 Precise Pangolin? If yes, the solution to all your problems are here. You might have tried to install skype on your new Ubuntu 12.04 machine by going through the google search results for “install skype in ubuntu 12.04”. I too tried the same but got stuck with quite some errors. I was not able to find any good result on getting skype running on Ubuntu 12.04.
Zyxware default image2
| 2 min read
Nmap is a Free Software tool that can be used for a variety of network network exploration tasks and security auditing. Nmap ("Network Mapper") scans IP packets to determine a lot of different aspects about hosts available on the network and also about services these hosts are offering. It can help you find a lot of information about these hosts including reverse DNS names, operating system guesses, device types, and MAC addresses.
Zyxware default image1
| 1 min read
As a Drupal developer, when we get an error, we may want to know the functions that are called before the system called the function where we get the error. In this case, views_trace() function comes to your help. This function is available if Drupal’s Views module is installed and enabled.
Zyxware default image2
| 2 min read
While developing Drupal sites, sometimes we may wish to see whether our function is getting called or whether we reach a point or not in the execution path. Usually the dpm() or print_r() functions comes handy in the case, but sometimes, we may not be able to see the debug messages printed due to page redirection just after our print.
Zyxware default image3
| 5 min read
We use a VPS server hosted on the web as our shared projects folder to share files between our team members in a safe and secure way. This is set up in such a way that users can mount a folder on the VPS on to their local machines via SSHFS and access contents on the shared folder. The permissions in the folder is managed via a script that is running on the server. The script and its configuration is being managed using an automatic deployment process using git. In the following article we have described how you can set up your own secure shared folder on the web.