Syntax for documenting JSON structure

In theory JSON Schema could serve this purpose, but in practice I am not sure it does. Worth mentioning I hope. Other than this, my personal opinion is that since JSON is predominantly used for transferring objects, documenting equivalent objects in language client uses (Java, C#, various scripting languages) may make most sense — after … Read more

What’s the difference between Git ignoring directory and directory/*?

There’re differences among www, www/ and www/*. Basically from the documentation and my own tests, www find a match with a file or a directory, www/ only matches a directory, while www/* matches directories and files inside www. I’ll only discuss on the differences between www/ and www/* here, since the differences between www and … Read more

What does %w(array) mean?

%w(foo bar) is a shortcut for [“foo”, “bar”]. Meaning it’s a notation to write an array of strings separated by spaces instead of commas and without quotes around them. You can find a list of ways of writing literals in zenspider’s quickref.

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