If you are a PHP programmer or a Web programmer you would eventually encounter a situation where you need to process XML. Since XML (Xtensible Markup Language) is a widely using format for exchange of information there are libraries to parse an XML file in PHP. Read on to know how to read an XML using DOM.
The easiest way to read a well-formed XML file is to use the Document Object Model (DOM) library. In this section we are going to create an object and then load the well-formed XML file. Below is an example of well-formed XML (sports.xml).
Technical Solution
Sometimes after ubuntu installation we may find certain notification box saying "System program problem detected". This is because the notification is enabled in the apport file in the system. You can enable/disable this notification. All you have to do is to edit the /etc/default/apport file and change the enable value to 0 to disable the notification and if you want enable this change this back.
You can follow the below steps to disable this notification.
I assume most of us are familiar with creating tar, tar.gz and tar.bz2 files. But do you know how to learn what is inside that tar file without extracting it? If your answer is "No" then you have come to the right place.
The following commands can be used to list the contents of a tar, tar.gz, tar.bz2 files. These commands becomes handy when you have multiple tar files and if you are searching for a particular file or folder.
To list the contents of a tar file :
tar -tvf filename.tar To list the contents of a tar.gz file :
If you frequently have to set up git version control system for existing projects then you would very likely run into the problem of having to remove files, which should not have been in git, from git after they were added. Running a git rm will only delete the file from the head and the file would still remain in the repository. This may be alright for small files but this could be troublesome for large files as these would unnecessarily bloat the git repository. But don't worry git being a 'swiss army knife' of version control systems there is a solution to delete files permanently from both your local and remote git repositories.
I am assuming that you have root access on the server without which the following instructions won't work.
First you have to cd to the directory corresponding to your mailing list. All mailing list settings will be kept at
/usr/local/cpanel/3rdparty/mailman/lists/
This is a white paper on guesstimation of per employee revenue in the SME space in the Indian IT industry. This was prepared during the process of evaluation of our billing rates to compare our rates with the market standards.
It appears that losing access to your google analytics account is not an uncommon problem. One of our clients recently came to us with this problem that they do not know the Google account connected to the google analytics id used in their website. Google analytics does not have a direct interface through which you can request a reset password or send reminder email to the connected email address. However there is a solution to the problem.
This is an article which describes how to resize the content of a page (images, texts etc) automatically after changing the window size (especially a pop-up window). There are some third party tools which will let us do the same thing but we will be looking at how this can be done using only jQuery. Read on to know how to resize the content of a page automatically after resizing the browser window using jQuery.
I was trying to get a list of MIDI files play in banshee 2.0 in an old computer. The system had Ubuntu 11.04 and banshee was able to play MIDI files except that it was not able to detect the end of each track and continued playing the same track with silence as the only output and infinitely playing the same track. So whenever there was a long silence I had to manually change to the next track. I did that a few times but then decided to write a small script to solve the problem.
Google drawing is a tool specifically designed to make image, drawing, editing and sharing easy. With this tool, you will be able to create drawings or upload drawings and edit them or let other people edit your drawing. You can even chat, comment or share views with multiple people who are editing your drawings. So in short multiple people can at a time work on a single document to make things easy. In the following article I will be giving you some basic introduction into the world of google drawing.
How to Create google drawing?
On certain servers, there are chances of our IP addresses getting blocked when we accidentally enter the wrong password multiple times or when we unintentionally try to ssh via the wrong port multiple times. The IP will be blocked for a certain period of time. If you have faced the same issue then read on to know how to block blacklisted IP addresses on a WHM based GNU/Linux server.
Suppose you are documenting in LibreOffice Writer and in the middle of it you found that there exists a lot of extra space before every new line. It is a tedious job if you try to remove the extra space manually. Sometimes we encounter the same issue while copy pasting some documents from the web. Here I am going to explain a simple one step procedure to remove the extra space and new line in a LibreOffice document.
@font-face allows designers to specifically embed certain fonts in to their stylesheets. Now a days many sites are providing webfonts. For eg: Fontsquirrel, Webfonts etc. They are providing us with the css too, but it is not correct. This article explain about what they are doing wrong and how to fix this issue.
cURL is a very powerfull system which allows us to transfer data across a wide variety of protocols. cURL is commonly used to send data across websites which includes API interaction. Using a cURL request, we can do the basic HTTP request, the more complex FTP upload or interaction with an authentication enclosed HTTPS site. In this section we will go through how cURL is intialized, how to send cURL request and close the requests.
By default, all HTTP requests made out by cURL are GET requests. It simply fetches the URL and doesn't submit any POST variables. However, if we need to fetch and retrieve URL by the POST method with cURL, you will need the snippet below:
If you want know how to configure Google Analytics for your Drupal site checkout How to check Google Analytics on a Drupal website?. We can also get the analytics info from within a Drupal site. Read on to know how to view the Google Analytics report from within a Drupal site.
One of our Drupal clients had reported that the emails from the Google Apps mail accounts on their Drupal site were going into the spam folder of the recipients inbox. When we analyzed the situation we noticed that the SPF records for the domain were not set correctly. Read on to know how to add a SPF record through WHM to prevent mails from of your domain from going to the spam folder.
Check out how to define the levels of priority in software testing, explanation with examples.
If you use git as the version control system for your software projects be it Drupal or non-Drupal projects then there is a very good chance for you to have tried deleting branches locally. It is not very often that you have to delete branches from the remote repository. However when people delete branches from remote repositories these branches would still show up in local repositories of the developers. Here is how you handle this.
Did you face a situation where you wished that you could edit JavaScript live on the browser to make experimental changes in your code? Have you ever made modifications in JavaScript code without rewriting the file and reloading the web page to see the changes in real-time. Read on to know how to edit JavaScript code in your browser and see the changes in real-time?