SocketException: Address already in use MONGODB

You already have a process running in the port 27017 which is used by mongodb. So either you need to stop the process in that port or try with different port number. Try mongod –port 27018 You can change the port number of your choice. EDIT: You can also just stop all the running instances of mongo server using sudo … Read more

cannot coerce type ‘closure’ to vector of type ‘character’

The call to datasetInput1 and datasetInput2 in the two last lines is the reason of the error. You should instead call datasetInput1() and datasetInput2(). Otherwise R tries to convert the function to char. It should be: The () allows you to get the value of the reactive element rather than interact with the reactive element itself. This … Read more

Categories R

OSError: [Errno 8] Exec format error

I am having hard time parsing the arguments to subprocess.Popen. I am trying to execute a script on my Unix server. The script syntax when running on shell prompt is as follows: /usr/local/bin/script hostname = <hostname> -p LONGLIST. No matter how I try, the script is not running inside subprocess.Popen The space before and after “=” … Read more

pygame.error: video system not initialized

You haven’t called pygame.init() anywhere. See the basic Intro tutorial, or the specific Import and Initialize tutorial, which explains: Before you can do much with pygame, you will need to initialize it. The most common way to do this is just make one call. This will attempt to initialize all the pygame modules for you. Not all pygame modules need … Read more

Assembly code vs Machine code vs Object code?

Machine code is binary (1’s and 0’s) code that can be executed directly by the CPU. If you open a machine code file in a text editor you would see garbage, including unprintable characters (no, not those unprintable characters 😉 ). Object code is a portion of machine code not yet linked into a complete program. It’s the machine … Read more

What do the symbol “=” and “==” mean in python?

When should i use the symbol ‘==’ and when only the symbol ‘=’ is enough? What does the symbol ‘==’ mean in python? I started python coding 2 weeks ago and these two symbols confused me sometimes. Several times when i used ‘=’, i would get an error message. After i changed it to ‘==’, … Read more