Wednesday, February 26, 2014

Monday, February 17, 2014

How can i run multiple skype in windows without any another installation

If you are using one or more skype account then no need to add another software or no need to install any more.

Just use one command and have a fun with multiple accounts.

Open run from Start > Run or press windows button and then R then it will open run shell.

Then type this line inside it and it will open new windows for skype!!!

If you are using 32-bits windows then use this:
"C:\Program Files\Skype\Phone\Skype.exe" /secondary
And if you are using 64-bits then use this command:
"C:\Program Files (x86)\Skype\Phone\Skype.exe" /secondary

Tuesday, February 11, 2014

PG::ObjectInUse: ERROR: source database "template1" is being accessed by other users

Error:
PG::ObjectInUse: ERROR:  source database "template1" is being accessed by other users
DETAIL:  There are 1 other session(s) using the database.

Solution:
Database template1 exists only to use structure to create another empty database. You should never login to template1, otherwise you will have problems for login or create database.

Most likely easiest solution for you is to restart PostgreSQL server process, and logon again. 

For restart PostgreSQL server use this command:
sudo service postgresql restart
If restarting is not working then you can use another template database: template0.

For this log in with username and password in postgresql with this command:
sudo -u postgres psql template1
          Enter password if you used password for user "postgres"

Then change template with database_name 

By default, database create for template1 with this statement and this statement:
CREATE DATABASE database_name;
is equivalent to:
CREATE DATABASE database_name TEMPLATE template1;
If template1 is not available or corrupted, you can use template0 as last resort:
CREATE DATABASE database_name TEMPLATE template0;
You can read more about template databases here.

Peer authentication failed for user "postgres" by Sachin Gevariya

ERROR: Peer authentication failed for user "postgres"

Solution:

The problem is in your pg_hba file. 

You can locate it inside /etc/postgresql/9.1/main.

If you are not able to look at inside it then search location with this command. This will help you a lot!!

            locate pg_hba

Then open this file with this command and press i for insert.

            vi pg_hba.conf

If it will give alert like read only file then change permission with this command:

          sudo chmod 666 pg_hba.conf

Then again open file with 

            vi pg_hba.conf

And change this line :

# Database administrative login by Unix domain socket
local   all             postgres                                peer

with this line:

# Database administrative login by Unix domain socket
local   all             postgres                                md5




If this not work then use this for trust:

# Database administrative login by Unix domain socket
local   all             postgres                                trust
 
then restart postgresql with this command:

sudo service postgresql restart


And its working fine!!! Have a fun!!!

Sunday, February 09, 2014

SSL error while executing gems

Error:

ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
    SSL_connect SYSCALL returned=5 errno=0 state=SSLv3 read server session ticket A (https://api.rubygems.org/gems/thor-0.18.1.gem)


Solution:

This error indicates that you are not connect to any server without having ssh key. So i need to create my ssh key. 

See  here for generate ssh key.

Skype not display in unity panel in ubuntu 12.04

I am using Ubuntu 12.04 64-bits and when i installed skype on my system then it was not displaying in unity panel.



Solution:

Then i added skype into unity panel with this command and its working!!!

you can find unity panel from here.

gsettings set com.canonical.Unity.Panel systray-whitelist "['JavaEmbeddedFrame', 'Wine', 'Update-notifier', 'Skype']"





Saturday, February 01, 2014

Remove virus from Pendrive

If your Pen Drive is infected with any of the following viruses:

* Autorun.inf
* new folder.exe
* Iexplorer.vbs
* Bha.vbs
* nfo.exe
* New_Folder.exe
* ravmon.exe
* RVHost.exe or any other files with extension.

Actually this viruses are hidden and can't be seen even after
you enable show hidden folders.
Following simple dos command will change the attributes of
these files ,there after you can remove it by pressing delete
key.
Follow these steps:
Step1.:Type cmd in Run
Step2.: Switch to the drive on which pen drive is connected
(like C:\> h: enter)
Step3.: type exactly as attrib -h -r -s /s /d g:\*.* and hit enter
(don't forget spaces and 'g' is pendrive Drive letter)