R memory management / cannot allocate vector of size n Mb

Consider whether you really need all this data explicitly, or can the matrix be sparse? There is good support in R (see Matrix package for e.g.) for sparse matrices. Keep all other processes and objects in R to a minimum when you need to make objects of this size. Use gc() to clear now unused memory, or, better only create … Read more

Cygwin – Makefile-error: recipe for target `main.o’ failed

You see the two empty -D entries in the g++ command line? They’re causing the problem. You must have values in the -D items e.g. -DWIN32 if you’re insistent on using something like -D$(SYSTEM) -D$(ENVIRONMENT) then you can use something like: in the makefile which gives them default values. Your output looks to be missing the all important output: just to clarify, what actually … Read more

Error compiling CUDA from Command Prompt

You will need to add the folder containing the “cl.exe” file to your path environment variable. For example: Edit: Ok, go to My Computer -> Properties -> Advanced System Settings -> Environment Variables. Here look for “PATH” in the list, and add the path above (or whatever is the location of your cl.exe).

XML Parsing Error: not well-formed

If you get this error message try view the page source by pressing Ctrl+U Usually there is a ” symbol in wrong place. And check your html syntax.

In Python how should I test if a variable is None, True or False

keep it simple and explicit. You can of course pre-define a dictionary. If you plan on modifying your simulate function to include more return codes, maintaining this code might become a bit of an issue. The simulate might also raise an exception on the parsing error, in which case you’d either would catch it here or let it propagate … Read more