Valid characters for URI schemes?

According to RFC 2396, Appendix A: scheme = alpha *( alpha | digit | “+” | “-” | “.” ) Meaning: The scheme should start with a letter (upper or lower case), and can contains letters (still upper and lower case), number, “+”, “-” and “.”. Note: in the case of paparazzi:http:[//<host>[:[<port>][<transport>]]/ the scheme is … Read more

How do I check for illegal characters in a path?

InvalidPathChars is deprecated. Use GetInvalidPathChars() instead: public static bool FilePathHasInvalidChars(string path) { return (!string.IsNullOrEmpty(path) && path.IndexOfAny(System.IO.Path.GetInvalidPathChars()) >= 0); } Edit: Slightly longer, but handles path vs file invalid chars in one function: // WARNING: Not tested public static bool FilePathHasInvalidChars(string path) { bool ret = false; if(!string.IsNullOrEmpty(path)) { try { // Careful! // Path.GetDirectoryName(“C:\Directory\SubDirectory”) // … Read more

Why am I getting X. in my column names when reading a data frame?

read.csv() is a wrapper around the more general read.table() function. That latter function has argument check.names which is documented as: check.names: logical. If ‘TRUE’ then the names of the variables in the data frame are checked to ensure that they are syntactically valid variable names. If necessary they are adjusted (by ‘make.names’) so that they … Read more

No visible cause for “Unexpected token ILLEGAL”

The error When code is parsed by the JavaScript interpreter, it gets broken into pieces called “tokens”. When a token cannot be classified into one of the four basic token types, it gets labelled “ILLEGAL” on most implementations, and this error is thrown. The same error is raised if, for example, you try to run … Read more

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