How to have an auto incrementing version number (Visual Studio)? [duplicate]

If you add an AssemblyInfo class to your project and amend the AssemblyVersion attribute to end with an asterisk, for example: [assembly: AssemblyVersion(“2.10.*”)] Visual studio will increment the final number for you according to these rules (thanks galets, I had that completely wrong!) To reference this version in code, so you can display it to … Read more

How can I force clients to refresh JavaScript files?

As far as I know a common solution is to add a ?<version> to the script’s src link. For instance: <script type=”text/javascript” src=”https://stackoverflow.com/questions/32414/myfile.js?1500″></script> I assume at this point that there isn’t a better way than find-replace to increment these “version numbers” in all of the script tags? You might have a version control system do … Read more

Is there a way to get version from package.json in nodejs code?

I found that the following code fragment worked best for me. Since it uses require to load the package.json, it works regardless of the current working directory. var pjson = require(‘./package.json’); console.log(pjson.version); A warning, courtesy of @Pathogen: Doing this with Browserify has security implications. Be careful not to expose your package.json to the client, as … Read more

Definition of “downstream” and “upstream”

In terms of source control, you’re downstream when you copy (clone, checkout, etc) from a repository. Information flowed “downstream” to you. When you make changes, you usually want to send them back “upstream” so they make it into that repository so that everyone pulling from the same source is working with all the same changes. … Read more

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