Monthly Archive: January 2017

Jan 09

VMware : Could not get vmci driver version


I recently faced one issue.  While starting my VM in VMware workstation 12 in Windows 10, I got the following error :   You can resolve it as follows : -> Go to VM directory, i.e., folder in which you have saved VM disk images. -> Open directory of the VM that you want to …

Continue reading »

Jan 04

Searching a file in linux

To search a file, we can use one of the following utility : which locate find     Using “which” command : We can use “which” command to find and get absolute path of files that are present in directories listed in PATH variable. We generally use “which” command to get absolute path of commands …

Continue reading »

Jan 03

To take multiple variable as input in python

  To take multiple variables as input in a single line, we can use split() function as : totalCities, totalPath = raw_input().split()   To take a integer variable as input, we can use int() function as : T = int(raw_input())   When we take a variable as input using raw_input() function, python stores it as …

Continue reading »

Jan 03

To convert all the elements of a string into integers in python

  In Python 2, we can convert all the elements of a list into integers using “map” function as follows : myListName = map(int, myListName)   in Python 3, map returns a map object which you can convert to a list if you want: numbers = list(map(int, numbers))  

Jan 03

To store all the alphabets in a list in python

  We can store all the alphabets in a list as follows : import  string alpha = [i for i  in string.ascii_lowercase] for i in alpha :     print i,   OUTPUT : $ python a b c d e f g h i j k l m n o p q r s …

Continue reading »

Jan 02

Changing time stamp of a file in linux

Most of us would have thought of changing the  time stamp of a file, well its done using a command that we would have used several time,  but might have never thought of checking its manual. I was surprised when I saw it for the first time, as I have been using this command since …

Continue reading »

Warning: require_once(): open_basedir restriction in effect. File(/home/admin/web/ is not within the allowed path(s): (/home/admin/web/ in /home/admin/web/ on line 20

Warning: require_once(/home/admin/web/ failed to open stream: Operation not permitted in /home/admin/web/ on line 20

Fatal error: require_once(): Failed opening required '/home/admin/web/' (include_path='.:/usr/share/pear:/usr/share/php') in /home/admin/web/ on line 20