Step to delete a File or Folder in Python

Sometime we have to delete a file or folder/directory in python. Either its empty or contain anything, please find the following steps,

Step to delete a File or Folder in Python

To remove a file:
os.remove()

To remove an empty directory/folder:
os.rmdir()

To remove a directory and all its contents:
shutil.rmtree()

Posted in General, Python | Leave a comment

[INSTALL_FAILED_ALREADY_EXISTS] Error when install or update APK-package

When you are going to install or re-install or update your APK-Package with your old data keep, please do the following things,

Just use -r flag for that.

For example,

adb install -r myapp.apk

Extra

1) you may use this '-r' flag, even a new APK install.

2) Don’t want to keep or override data of existing apk means, then don’t use this flag.

Posted in Android, Android Application, Update | Leave a comment

cURL error 60: SSL certificate: unable to get local issuer certificate

In Wamp server you will get following error by lot of times (like charge a credit card).

cURL error 60: SSL certificate: unable to get local issuer certificate
cURL error 60: SSL certificate: unable to get local issuer certificate - steptoinstall.com
You may try like restarting the Server, ssl_module enabled, php_curl enabled,.. but sill you get the same cURL problem, Please do following simple things,

Step 1: Download

You can download the cacert.pem file from here.
After download, extract that and get the clean format file.

Step 2. Place the cacert.pem

Please put that cacert.pem file in correct place.

D:\xampp\php\extras\ssl\cacert.pem

Step 3. Edit php.ini file

Open your php.ini file from following location
D:\xampp\php\php.ini
And add line like following,

curl.cainfo = “C:\xampp\php\extras\ssl\cacert.pem”

Step 4. Start Server

Then Start/Restart your webserver.

Now you solved the cURL error 60: SSL certificate: unable to get local issuer certificate Problem.

cURL error 60: SSL certificate: unable to get local issuer certificate

Posted in cURL, Error, local server, Wamp | Leave a comment

Perl module Error: Can’t locate Foo.pm(module) in @INC

When you are going to Install Perl’s module like Foo.pm, datetime.pm, expect.pm, etc., you may get following error,
Can't locate (module) in @INC
Perl module Error Can't locate Foo.pm(module) in @INC - Steptoinstall.com

For this Error,
If you are using CPAN, For new installing module use like following code,

perl -MCPAN -e 'install Chocolate::Belgian'

For UNIX

If you are using ActivePerl, the Perl Package Manager(PPM) is enough. It’s same like CPAN.

Posted in Wamp | Leave a comment

How to Recover files from Pendrive from Shortcut Virus

Some time, some anonymous virus are change your all files and folders as Shortcut files in your storage devices. That storage devices are may be PenDrive , Memory Card, Mobile Phone, HardDrive or PC. It’s a common malware. Here you can’t open the file or folder. You may think you lost the things. No, It’s there only.

How to Recover files from pendrive from shortcut virus and Delete Shortcut Virus

We’ll give simple solution to recover your lost files/folders from Pendrive(Storage Deivce) from Shortcut Virus. Not only recovering, will delete that Shortcut Virus too.

Step 1:

Open the Command Prompt (CMD). To open CMD please go to this link -> How to Open Command Prompt (CMD) or MS-DOS prompt in Windows

Step 2:

There type following line,
attrib -h -r -s /s /d e:*.*
attrib -h -r -s /s /d e:*.*
and click Enter Key.
How to Recover files from pendrive from shortcut virus and Delete Shortcut Virus in CMD
That’s all. Cool.

Now you are deleted the Shortcut Virus and recovered your lost files/folders.

Recover files from PenDrive from Shortcut Virus using cmd

Posted in Command Prompt, Error, Virus | Leave a comment