OOP (Object Oriented Programming) in my Style


Download : 

Sample Code

1. Class :

         It is a template definition of the methods and variables (properties) in a particular kind of object

         1.1 Methods :

                 It is similar to function attached to specific classes.

         1.2  Variables

                A symbol of a name that stands for value.


Prevent Browser to take more memory from system


We all know our all browsers are memory eaters especially Chrome, Firefox. So when we open the more no of tabs and using more no of time everyting slows down and sometimes its crashes the browser, The worst part of this is it would affect the performance of the system as the tabs continue to run background processes and feed on your system's memory.

Chrome have a great tool to solve the issue without any headache,

Drupal Tricks - 1


I needed a way to check the currect user has permission to view the currect/particular page, Searched lot finally got the exact way, going to show the tricks to you in this blog.

Drupal has an api called " drupal_valid_path " , Normally it used to test the url is valid or not. but the trick is that, It also check the user has permission to view the currect/particular page.

String Quotes in YAML File



We all know YAML is "a human friendly data serialization standard for all programming languages". In Drupal 8, the old .INFO files are now gone and have been replaced by YAML files - pronounced “yamel” (rhymes with camel). The following will show the tricks on strings,

Strings : Strings in YAML can be wrapped both in single and double quotes. In some cases, they can also be unquoted:

A string in YAML

'A singled-quoted string in YAML'

"A double-quoted string in YAML"


Install Drupal Using Drush


Most of the times developers don't like the GUI, It makes feel lazy. Drupal has a tool (Drush) to do some management work from command line.

And also the installing the drupal site makes very lazy while doing with browser, The Drush has an option to install the full site with a single command.

The Following command will install the drupal in standard method,

drush site-install standard --account-name=admin --account-pass=[useruser_pass] --db-url=mysql://[db_user]:[db_pass]@localhost/[db_name]

Best Way to Install Python in Linux Mint


In this blog, I am going to share the best way to install python in linux mint.

First, We have to install some depedencies,

sudo apt-get install build-essential checkinstall
sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev

Then Download the python source for the linux environment by the following commands.

cd ~/Downloads/

Extract and goto the libraries,

Read, Write MS-Excel files in PHP


MS-Excel Stream Handler is a PHP Class, This class implements a stream handler interface to read and write Microsoft Excel spreadsheet files in the XLS format.

XLS files may be read and written using PHP fopen, fread or fwrite, or any other PHP functions that can access to streams. The file name has the format xlsfile://path/to/spreadsheet.xls where /path/to/spreadsheet.xls is the path of the actual spreadsheet file to be read or written.

How to rsync particular extension files ?


The rsync command is the greatest tool to syncronize data from the source, The rsync has lot of option to simplify the work. I am going to explain the amazing feature from the same. 

Sometimes we need to syncronize some particular extenstion from the source, The rsync has the simple and coolest solutions for that. The following command will syncronize the particular extenstions from the source.

rsync -rv --include '*' --include '*.jpg' --exclude '*' --prune-empty-dirs /source-path /destination-path

Dual Boot : Linux not showing in Windows boot loader (Recovering Linux)


Recently, I had faced a problem in my system. I am using Dual boot option with Linux and Windows 8, Its all going smoothly But I have decided to re-install the windows 8 So I re-installed the windows 8 After successfully completed the re-install process. The Linux option not showing in the Windows boot loader searched more in google and finally get the simple and effective solution to fix the issue.

EasyBCD :

How to change php.ini settings in Godaddy shared hostings


The Godaddy shared hosting's php execution time and memory limit is very low, So some large site's request would break for large process.

But the Godaddy doesn't allow to change the php.ini file directly, we could do that with some tricky First find your server's php.ini file with the following commands

php -i | grep php.ini

it will return the path of the php.ini file, it would be something like this /usr/path-to/php.ini Then copy the php.ini file into your public_html directory with the following commands.