Electricity Bill Calculator

Electricity Bill Calculator

Electricity Bill Cost Calculator. Electricity Usage Consumption Calculator.

Select Country:  
Typical Appliance:
Power Consumption:
Hours Of Use Per Day: Hrs/Day
One Unit Cost (1 kWh ):
Electricity Cost Per Day:  
Electricity Cost Per Month:  
Electricity Cost Per Year:  

Note:- 1 Unit = 1 kwh (Kilo Watt Hour)

HTML tutorial


Social Message

Friday, November 24, 2017

Error 404 page not found on Blogger Custom Domain

Error 404 page not found on Blogger Custom Domain

If anybody facing issue blogger below error message. please implement the below steps in your blogger settings.

  • 404 error page not found
  • Error 404 instead of my blogger custom domain
  • domain 404 error issue in Blogger


Settings -> Publishing -> Blog Address -> Edit -> Simply enable checkbox Redirect warje.com to www.warje.com -> Click Save Option.

Friday, November 10, 2017

MySQL Database Purge Binary Logs on any Windows / Linux Platforms

MySQL Database Purge Binary Logs on any Windows / Linux Platforms

The binary log is a set of files that contain information about data modifications made by the MySQL server. The log consists of a set of binary log files.

The PURGE BINARY LOGS statement deletes all the binary log files listed in the log index file prior to the specified log file name or date. BINARY and MASTER are synonyms. Deleted log files also are removed from the list recorded in the index file, so that the given log file becomes the first in the list.

How to Delete Binary Logs and Master Logs on Windows Platforms Steps.

First Open MySQL admin command prompt. Type root id and root user password.

Step -1

Show list of binary logs files on MySQL Server.


Step -2

Display master logs file and Delete master log file using command marked Red color in a screenshot.


Step -3

Delete single binary log file using command marked Red color in a screenshot.

Step -4

Delete all binary log file using command marked Red color in a screenshot. Specify the correct date which dates older files you want to delete.

mysql>PURGE BINARY LOGS BEFORE '2017-10-27 00:00:00';

Step -5

Show list of binary logs files on MySQL Server. Now showing only one, rest all deleted.

Thursday, March 16, 2017

Run Multiple Instances of Google Drive on Windows 7 / 8 /10 to Sync Multiple Accounts

Run Multiple Google Backup and Sync Accounts
Configure on Windows 7 / 8 /10 

Step 1: 

Please Install Google Drive Backup and Sync on your computer. Download available below link.


After installation, Please configure your First Google Drive account.

Step 2: 

For Second Google Drive account; Please create one New folder at any location on your windows 7/8/10 system/laptop.

Create one new mohan.bat or XXXXXX.bat file and open in notepad , add below mention entry.

SET USERNAME=mohan@ gmail.com
MD "%USERPROFILE%\AppData\Roaming">nul
MD "%USERPROFILE%\AppData\Local\Application Data">nul
MD "%USERPROFILE%\Application Data">nul
MD "%USERPROFILE%\Local Settings\Application Data">nul
MD "%USERPROFILE%\My Documents">nul
MD "%USERPROFILE%\Documents">nul
START googledrivesync

Reference Note:-

mohan à Replace with your mail account name [Or] Other name which you like "My mail" or "My Inbox". Remaining scripts Don't change / Don't  Remove any space between letter/words.

Step 3:

Copy googledrivesync.exe file from Existing installed google drive location 
(C:\Program Files (x86)\Google\Drive ) to New folder location which you created. Refer below screen shot.

Step 4:

Simply open mohan.bat (XXXXX.bat)  file. It will open new google drive backup and sync login windows (Reference below screen shot)..You can add another gmail account and configure it.

After configure you can see Two Google Drive icon in task bar.

Step 5:

New Google Drive Account Auto start option. Create shortcut using mohan.bat / XXXXX.bat file and cut, paste shortcut to windows startup location.

Windows 10 windows startup location:

C:\Users\Dell\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

After the reboot of system. Google drive second account will start automatically.

If need more account to be configure. Please follow Step 2 to Step 5.

Saturday, January 14, 2017

Setup External SMTP Server to Send Nagios Notifcation Alerts on CentOS/Linux

Setup External SMTP Server to Send Nagios Notifcation Alerts on Linux

Setup up Nagios to use an external SMTP server.

1. Download the SendEmail setup tar file from below link.

[or ]   Directly use wget command on Linux command prompt.

root#wget http://caspian.dotconf.net/menu/Software/SendEmail/sendEmail-v1.56.tar.gz

2. Extract, and copy sendEmail to /usr/local/bin

root#tar -xvzf sendEmail-v1.56.tar.gz
root#cp sendEmail-v1.56/sendEmail /usr/local/bin

3. SendEmail requires the Net::SSLeay and IO::Socket::SSL perl modules be installed to function, so install these if they're not already:

root#yum install perl-Net-SSLeay
root#yum install perl-IO-Socket-SSL

For Testing run below command on Linux command prompt. You will get Test Mail. If receiving Test mail. Your external mail server installed successfully.

root#/usr/local/bin/sendEmail -f mohan@mohansundaram.com -t mohan@mohansundaram.com -u TestMail -m TestMail -s smtp.mail.com:587 -xu alert@mohansundaram.com -xp help@123 -o tls=yes

Note:- Change below Parameters respectively to your mail config details.

mohan@mohansundaram.com -> From Address
smtp.mail.com -> SMTP Outgoing Server 
587 -> SMTP Server port with TLS
alert@mohansundaram.com -> Mail Server Username
help@123 -> Password

4. Now modify the notify-host-by-email and notify-service-by-email commands in Nagios' commands.cfg file as follows:

root#vi /usr/local/nagios/etc/objects/commands.cfg

define command{
command_name notify-host-by-email
command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /usr/local/bin/sendEmail -f mohan@mohansundaram.com -s smtp.mail.com:587 -xu alert@mohansundaram.com -xp help@123 -o tls=yes -u "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" -t $CONTACTEMAIL$

define command{
command_name notify-service-by-email
command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /usr/local/bin/sendEmail -f mohan@mohansundaram.com -s smtp.mail.com:587 -xu alert@mohansundaram.com -xp help@123 -o tls=yes -u "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" -t $CONTACTEMAIL$

5.Update below entry on contacts.cfg file.

root#vi /usr/local/nagios/etc/objects/contacts.cfg

define contact{
        contact_name                    nagiosadmin             ; Short name of user
        use                             generic-contact         ; Inherit default values from generic-contact template (defined above)
        alias                           Nagios Admin            ; Full name of user

        email                           ITHELPDESK@mohansundaram.com  ; <<***** CHANGE THIS TO YOUR EMAIL ADDRESS *****

service_notification_period             24x7
host_notification_period        24x7
        service_notification_options            w,u,c,r,f,s
        service_notification_commands           notify-service-by-email
        host_notification_period                24x7
        host_notification_options               d,u,r,f,s
        host_notification_commands              notify-host-by-email

define contactgroup{
        contactgroup_name       admins
        alias                   Nagios Administrators
        members                 nagiosadmin

6. Restart your Nagios service.

root# /etc/init.d/nagios restart
Your done. Nagios will now send alert notifcations via your external SMTP server.

How to Change Nagios Default Context Path

Nagios Default Context Path Change Steps

If you want change nasios default /nagios context path to new context path.

**Marked Red color New context path

root#vi /etc/httpd/conf.d/nagios.conf

Alias /mohantool/ /usr/local/nagios/share/
Alias /mohanadmin/ /usr/local/nagios/eznag/php/mmi/

root#vi /usr/local/nagios/etc/cgi.cfg


[root@eznag conf]# /usr/sbin/apachectl stop

[root@eznag conf]# /usr/sbin/apachectl start

After that try below URL on any browser.   --> Nagios Main Page   --> Nagios Admin Page

How To Change Timezone IST on a CentOS 6 and 7

Change Timezone  IST and Update NTP Time 

on a CentOS 6 and 7

Step: 1

First login CentOS Linux putty session.

Step: 2

Run NTP update command using NTP Server or Google Server.

[root@eznag objects]# ntpdate
22 May 11:06:26 ntpdate[7057]: the NTP socket is in use, exiting

Step: 3

You willl see NTP Socket is in use Error. Run below commands.

[root@eznag objects]# service ntpd stop
Shutting down ntpd:                                        [  OK  ]

Step: 4

NTP Command. Time updated successfully.

[root@eznag objects]# ntpdate
22 May 11:07:34 ntpdate[7096]: step time server offset 51.408174 sec


If you want change IST time/date format,Try below commands.

[root@eznag objects]# ln -sf /usr/share/zoneinfo/Asia/Calcutta /etc/localtime
[root@eznag objects]# date
Sun May 22 20:40:29 IST 2016