Meaning of objects being masked by the global environment

It means that you have objects (functions, usually) present in your global environment with the same name as (exported) things in your package. Type search() to see the order in which R resolves names. The solution is to either, don’t create objects with those names in your global environment rename the objects in your package … Read more

Categories R

MySQL INSERT INTO table VALUES.. vs INSERT INTO table SET

As far as I can tell, both syntaxes are equivalent. The first is SQL standard, the second is MySQL’s extension. So they should be exactly equivalent performance wise. http://dev.mysql.com/doc/refman/5.6/en/insert.html says: INSERT inserts new rows into an existing table. The INSERT … VALUES and INSERT … SET forms of the statement insert rows based on explicitly … Read more

Running shell command and capturing the output

In all officially maintained versions of Python, the simplest approach is to use the subprocess.check_output function: check_output runs a single program that takes only arguments as input.1 It returns the result exactly as printed to stdout. If you need to write input to stdin, skip ahead to the run or Popen sections. If you want … Read more

How to send data to COM PORT using JAVA?

This question has been asked and answered many times: Read file from serial port using Java Reading serial port in Java Reading file from serial port in Java Is there Java library or framework for accessing Serial ports? Java Serial Communication on Windows to reference a few. Personally I recommend SerialPort from http://serialio.com – it’s … Read more

PHP – syntax error, unexpected T_CONSTANT_ENCAPSED_STRING

When you’re working with strings in PHP you’ll need to pay special attention to the formation, using ” or ‘ Both of these are valid, the following is not: You must also note that ‘ inside of a literal started with ” will not end the string, and vice versa. So when you have a … Read more