versioning

Loading multiple shared libraries with different versions

断了今生、忘了曾经 提交于 2019-11-27 00:47:17
问题 I have an executable on Linux that loads libfoo.so.1 (that's a SONAME ) as one of its dependencies (via another shared library). It also links to another system library, which, in turn, links to a system version, libfoo.so.2 . As a result, both libfoo.so.1 and libfoo.so.2 are loaded during execution, and code that was supposed to call functions from library with version 1 ends up calling (binary-incompatible) functions from a newer system library with version 2, because some symbols stay the

Best practices for versioning your services with WCF?

拈花ヽ惹草 提交于 2019-11-27 00:22:41
问题 I'm starting to work with my model almost exclusively in WCF and wanted to get some practical approaches to versioning these services over time. Can anyone point me in the right direction? 回答1: There is a good writeup on Craig McMurtry's WebLog. Its from 2006, but most of it is still relevant. As well as a decision tree to walk through the choices, he shows how to implement those changes using Windows Communication Foundation 回答2: See "Versioning WCF Services: Part I" and "Versioning WCF

Gradle script to autoversion and include the commit hash in Android

主宰稳场 提交于 2019-11-27 00:13:45
问题 I need to write a gradle script to auto version my application on every commit. I need to also include the commit hash as a reference in the application for testers. I am confused how auto versioning usually work. Can someone explain the autoversioning process? 回答1: I encountered a similar problem, but did not want to modify the versionName to include the git hash. We wanted to keep that as something like 1.2.2, but still have the possibility of displaying the git hash in the UI. I modified

Temporarily put away uncommitted changes in Subversion (a la “git-stash”)

青春壹個敷衍的年華 提交于 2019-11-26 23:15:28
While programming software stored in a Subversion repo, I often modify some files, then notice that I'd like to do some preparatory change for my main work. E.g. while implementing new functionality, I notice some refactoring which might help me. In order not to mix two unrelated changes, in these cases I'd like to "stow away" my changes, i.e. revert to the repository version, do some other changes, commit these, then "fetch back" my changes. git-stash allows to do just that. Is there some way to do this with Subversion, either directly or with some plugin or script. Eclipse plugins would also

A regex for version number parsing

折月煮酒 提交于 2019-11-26 22:36:58
问题 I have a version number of the following form: version.release.modification where version, release and modification are either a set of digits or the '*' wildcard character. Additionally, any of these numbers (and any preceding .) may be missing. So the following are valid and parse as: 1.23.456 = version 1, release 23, modification 456 1.23 = version 1, release 23, any modification 1.23.* = version 1, release 23, any modification 1.* = version 1, any release, any modification 1 = version 1,

Automatically update version number

≯℡__Kan透↙ 提交于 2019-11-26 21:26:24
I would like the version property of my application to be incremented for each build but I'm not sure on how to enable this functionality in Visual Studio (2005/2008). I have tried to specify the AssemblyVersion as 1.0.* but it doesn't get me exactly what I want. I'm also using a settings file and in earlier attempts when the assembly version changed my settings got reset to the default since the application looked for the settings file in another directory. I would like to be able to display a version number in the form of 1.1.38 so when a user finds a problem I can log the version they are

How do you version your database schema?

你说的曾经没有我的故事 提交于 2019-11-26 21:09:50
How do you prepare your SQL deltas? do you manually save each schema-changing SQL to a delta folder, or do you have some kind of an automated diffing process? I am interested in conventions for versioning database schema along with the source code. Perhaps a pre-commit hook that diffs the schema? Also, what options for diffing deltas exist aside from DbDeploy ? EDIT: seeing the answers I would like to clarify that I am familiar with the standard scheme for running a database migration using deltas. My question is about creating the deltas themselves, preferably automatically. Also, the

What are the best practices for versioning XML schemas?

浪尽此生 提交于 2019-11-26 19:36:45
I often have to design XML schemas for different XML-bases import routines. It is clear that XML schemas will evolve over time or they could contain bugs to be fixed, so it is important to capture the schema's version and to have some mechanism to bind against a specific version. Currently I have two scenarios: The bug is found within the schema and all schema instances must comply with the fixed version. The schema upgraded and should be considered as preferable but an old one should be also supported. Finally I came up with storing version information within the namespace of schema:

ASP.NET - show application build date/info at the bottom of the screen

僤鯓⒐⒋嵵緔 提交于 2019-11-26 19:24:21
问题 I have a asp.net web application which has a number of versions deployed on different customer servers inside their networks. One practice that we have is to have clients email screenshots when they have issues. In the old asp.net 1.1 days, we could grab details of the build DLL, using reflection, and show info about the build date and numbering on the screen in a subtle location. With .NET 2.0 and higher, the build model changed, and this mechanism no longer works. I have heard of different

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

﹥>﹥吖頭↗ 提交于 2019-11-26 19:16:00
Is there a way to get the version set in package.json in a nodejs app? I would want something like this var port = process.env.PORT || 3000 app.listen port console.log "Express server listening on port %d in %s mode %s", app.address().port, app.settings.env, app.VERSION Mark Wallace I found that the following code fragment worked best for me. Since it uses require to load the package.json , it works regardless 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.