Format for writing a JSON log file?

You’re not going to write a single JSON object per FILE, you’re going to write a JSON object per LINE. Each line can then be parsed individually. You don’t need to worry about trailing commas and have the whole set of objects enclosed by brackets, etc. See http://blog.nodejs.org/2012/03/28/service-logging-in-json-with-bunyan/ for a more detailed explanation of what … Read more

Semicolon on a function parameters

It is a seldom-used feature from C99 GNU extension (GCC documentation) that is used to forward-declare parameters used in VLA declarators. matrix_* matrix_insert_values(int n; double a[][n], int m, int n); Do you see how int n appears twice? The first int n; is just a forward declaration of the actual int n, which is at … Read more

What does the Call keyword do in VB6?

From the MSDN: You are not required to use the Call keyword when calling a procedure. However, if you use the Call keyword to call a procedure that requires arguments, argumentlist must be enclosed in parentheses. If you omit the Call keyword, you also must omit the parentheses around argumentlist. If you use either Call … Read more

Is .( ever legal in C# or VB.Net?

The only places that . appears in the grammar are: real-literal: decimal-digits . decimal-digits … . decimal-digits … namespace-or-type-name: namespace-or-type-name . identifier … member-access: primary-expression . identifier … predefined-type . identifier … qualified-alias-member . identifier … base-access: base . identifier unbound-type-name: unbound-type-name . identifier qualified-identifier: qualified-identifier . identifier member-name: interface-type . identifier indexer-declarator: type interface-type … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)