To connect into MySQL database with the help of PHP based web applications we are in need of mysql_connect or by PDO method. Here i have added a common function which will be useful for the php based websites to connect into the database.
Technical Solution
Recently I ran into the problem of mouseovers on touch devices. In short, they doesn't exist. I had just created a layout of four images which listed at the centre of the home page as like our zyxware website. And if you check the site on mouseover the image it will expand and while clicking the image it will go to the link added. But the problem is the mouse over wont work on the touch mobile devices.
cPanel offers a very simple point and click way to create subdomains in your hosting account. Read-on to know how to create subdomain for a site using cpanel.
Authorize.Net ARB is a standard recurring billing system module and gives you the freedom and flexibility to accept recurring payments without the need of a bulky shopping cart system. The users opting ARB payments mode will be charged the first amount of payment the next day after they subscribe on website, then the recurring billing will start after the first membership period.
Paypal too is an online payment gateway but the process is too length for a transactions to complete, fee for multiple transactions, no recurring payment options, cannot make a change in the amount variations on subscriptions.
I need to store some configuration information about my extension in database. Initially I thought of having a new table to store those. Then I found out that CiviCRM gives that feature. Here is its tip:
In one of form that I created it need some client side dynamic behavior. I did that in a javascript and used JQuery. But it did not worked. I thought that JQuery did not work in CiviCRM.
When I was calling CRM_Core_DAO::executeQuery() it gave error. I don't have any idea what went wrong. Not sure whether the SQL statement was correct or not. After searching for some time I found one function, composeQuery() in CRM_Core_DAO. It can be used to verify SQL query.
Elance tracker helps individuals to track the time they have worked and this is automatically populates to work time sheet in elance. And this time sheet is automatically submitted to the client. So if you are working on elance projects some times it is necessary to track time through elance tracker. If incase you came up an error "Error: Dependency is not satisfiable: adobeair (>= 1:2.6.0.0) in Ubuntu 12.04" while installing Elance tracker, you may follow the below steps to resolve it.
Most of us must be familiar with this message. After making the necessary changes to file and after going through the steps like git add, git commit, I tried git pull from server and got the following error message.
The Apache Solr module integrates Drupal with the Apache Solr search platform. Solr search can be used as a replacement for core content search and boasts both extra features and better performance. The apachesolr module requires the external PHP library,"SolrPhpClient". If this is missing in your apachesolr module directory, it will show the following fatal error after installing or updating this module.
The following is the shell script that will shutdown all computers in the network. This script will be really help full for system administrators who need not want to check all systems, whether all the systems in the office has been shutdown properly when the employees leave the office. The script will check all the active ips in the network and write the those ips to a file. It also login to each system and execute the shutdown command. The things that are to be done before running the script is to 'Make sure your public-key has been added in the authorized_keys file in .ssh folder of root'. This allows the script to login to each system by the method of public-key authentication rather than prompting for password. And also the 'StrictHostKeyChecking no' will avoid all prompts during ssh.
Cron is a job scheduler, which helps to set the list of tasks, supposed to be executed periodically. However, if you are a Drupal developer and wondering how to add the drupal cron to the cron tab, here is the way.
When we combine different CSV files using ‘cat’ command, the resulting CSV file contain repeating headers. This usually happens when we combine different CSV files having the same headers. Let us check a simple method to remove the repeating headers in Libre office - Calc document.
In Ubuntu, new applications are usually available as deb packages. Although Ubuntu comes packaged with gui package management tools like synaptic, the command line provides a much faster way. Read on to know how to manage deb packages in Ubuntu from the command line using apt-cache.
This is a small shell script that will help to detect ip conflicts in a network. The notify-send command, used in the script, will enable a popup if any ip conflict is detected. You can run this script in cron. You will get a notification as pop up, if there is any ip conflict in the network.
We had just completed switching our site from Windows IIS MySQL PHP to LAMP environment. As the deployment was via git, we downloaded project files with the ftp credentials and deployed the site via git. However, the 'sites/default/files' folder were of some GBs in size. We only had ftp credentials and was unable to get a compressed copy due to certain reasons. What we did to resolve the problem was use wget command to copy files recursively.
Nmap(Network-mapper) is an open source tool that is pretty useful for networking scanning. This tool provides various options that are useful for carrying out security audits. Nmap is a powerful tool used to check the network inventory, host uptime etc. If you are a GNU/LINUX administrator, you may find the following 10 Nmap commands extremely useful
Some of the useful Nmap commands are as mentioned below:
If you are using GNU/Linux, you are likely to be familiar with the command line, usually Bash, which of course means that you would be working with tar archives (tape archives). The need to extract a single file from a tar archive/file is a common situation faced by bash users. Read on to know how to do it.
One of our Drupal projects required the value of a text field to be changed according to the country selected in a particular select field. This is a common situation encountered by web developers when working on HTML. This can be easily achieved using jQuery. Read on to know more
I was faced with a requirement to convert number to words/string in Indian naming system with lakhs and crores. I had to generate the amount in words for printing it out on a bill. The total amount, provided to the customer, needed to be converted to string. For example, if 1345673 was to be converted to Thirteen lakh Forty Five Thousand Six Hundred and Seventy Three, these functions will have to be followed.