HOWTO
Speed up Your Net Connection
Who does not like to have an Internet Connection with a good speed? Hmm……Probably, No One……
- Ronak Agrawal's blog
- Add new comment
- Read more
- 38 reads
Pidgin: Run Different Clients from One Application
Most of you may be wondering what is so special in this messenger .Well…..
- Ronak Agrawal's blog
- 2 comments
- Read more
- 105 reads
How to Check the Server Status?
Guys,
- Ronak Agrawal's blog
- Add new comment
- Read more
- 72 reads
Setting up a Internet connection in ubuntu for a static IP address.
This is a Tutorial for one to set up a internet connection FOR STATIC IP ADDRESS
- puneeth's blog
- Add new comment
- Read more
- 244 reads
Convert HTML or Web Pages to PDF & Postscript
Hi, are you looking for an application which can convert to HTML (or online web pages) to PDF or PS ? Yes, you have that! Its available under GNU General Public License (GNU GPL) and also under commercial license. Though the version available under GNU GPL has some limitations... but its enough for an home user...
The software's name is HTMLDOC. You can download its GNU GPL version at www.htmldoc.org
Its highly efficient. I converted a single html file of PHP manual to PDF of 11 MB with "Best" mode compression in less than 5 minutes. The PDF version contains 4261 pages!!! Imagine! That too on a P3 500 Mhz with 384 MB RAM.. If you have a better CPU then it might do it even much more faster! ;
Here's a sample screenshot -

- Nilesh's blog
- Add new comment
- 520 reads
Adding your META tags on to a drupal page
Most blogging systems OR CMSes don't have the option to add the META KEYWORDS and META DESCRIPTION tags which are the key to search engine success to some extent.
Yes, I know you can add them in theme files... but if you change theme ? You have to re-add them. So we need a persistent solution which doesn't change while changing themes.
Below is a simple procedure where you can add your META tags to a drupal (taking 5.x here) system (without editing any of the theme files!).
Open common.inc in your favourite editor. common.inc is found in <drupal-install-path>/includes
Scroll down to Line Number 116 (or search for drupal_get_html_head).
After the first function line, you will see a line like this -
$output = "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n";
You then append these lines RIGHT AFTER the above line (else its not going to work).
$output .= '<meta name="keywords" content="keywrd1,keywrd2,..." />'."\n"; $output .= '<meta name="description" content="A small description here" />'."\n";
Save the file. Make a backup of the older file and place this new common.inc overriding the old one.
The above method has been tested and was found to work. So, if you have any problems just comment down here!
Have a nice day!
- Nilesh's blog
- Add new comment
- 262 reads
Remove your site titles from content pages in Drupal
In Drupal (considering v5.x here), the content page titles i.e. the text which is generated and put between <TITLE> HTML tag comes like this -
Content-Name | Site Name
Right ?
This doesn't look nice and it is not possible to remove this by editing a theme's file.
So here's a simple code change about how to remove this title internally so that whenever it is generated, it gets generated as
Content-Name
We're considering the default template engine - PHPTemplate which comes with Drupal.
You need to edit the file called phptemplate.engine file in /themes/engines/phptemplate directory.
Open the file your favourite editor.
Jump to Line 185 (As of Drupal 5.x)
$head_title = array(strip_tags(drupal_get_title()), variable_get('site_name', 'Drupal'));
Change the above line so that it looks like this -
$head_title = array(strip_tags(drupal_get_title()));
Save the file.
And copy this new file to /themes/engines/phptemplate/phptemplate.engine while backing up the older file.
And voila! you are done!
- Nilesh's blog
- 1 comment
- 177 reads
Recent comments
2 days 47 min ago
2 days 56 min ago
4 days 11 hours ago
4 days 11 hours ago
4 days 13 hours ago
2 weeks 2 days ago
3 weeks 4 days ago
4 weeks 5 days ago
5 weeks 3 days ago
5 weeks 4 days ago