versioning

How do you decide when to upgrade a library in your project?

落爺英雄遲暮 提交于 2019-12-07 03:32:26
问题 I work on a project that uses multiple open source Java libraries. When upgrades to those libraries come out, we tend to follow a conservative strategy: if it ain't broke, don't fix it if it doesn't have new features we want, ignore it We follow this strategy because we usually don't have time to put in the new library and thoroughly test the overall application. (Like many software development teams we're always behind schedule on features we promised months ago.) But, I sometimes wonder if

Easy way to embed svn revision number in page in PHP?

南楼画角 提交于 2019-12-07 03:05:41
问题 Notice in the bottom right hand corner of this page it has the SVN revision id? I'm assuming that's dynamic. I'd love to add that to some of my sites, just as a comment in the source to make sure code pushes are going through. NOTE: You can also assume that the working directory of the site in question is an svn checkout of the repo in question. Edit: I'm looking for the global revision number, not the revision number of the file I'm looking at. 回答1: You can use the svnversion CLI utility to

how to upgrade a dependency of a global package in npm

狂风中的少年 提交于 2019-12-06 15:57:12
I have installed globally pouchdb-server and I got this message about graceful-fs : $ npm install -g pouchdb-server npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree. As the message says, the package will failwith node > 7.0 (which I use), so I would like to know how to perform the upgrade. If I execute: $ npm ls graceful-fs -g I

How to version javascript and css files as part of a powershell build process?

人走茶凉 提交于 2019-12-06 13:33:02
I'm using servicestack/bundler to combine and minify my js & css files from within a powershell build script. As a part of this build process I'd like to find the resulting javascript and css files in my _Layout file, and append a querystring version automagically. For example <link type="text/css" rel="stylesheet" href="/Content/app.min.css?v=1")" /> <script type="text/javascript" src="/Content/app.min.js?v=1")"></script> becomes <link type="text/css" rel="stylesheet" href="/Content/app.min.css?v=2")" /> <script type="text/javascript" src="/Content/app.min.js?v=2")"></script> What would be

View current Assembly Version number within VS2008

余生长醉 提交于 2019-12-06 13:25:26
I would like to know if there is a way to see Assembly Version number of the last completed build within the Visual Studio 2008 IDE. I don't want to see the 1.0.* that is in the Assembly Information dialog box or AssemblyInfo file, but rather the full version (with the *'s replaced by real numbers). I also don't want to have to bring up the Properties of the project's executable or assembly. OK, I think I get your question better now, you want to see what the build number is, without actually building... as in, how does Visual Studio know what the next number will be when its setting is at * ?

How do I embed a File Version in an MSI file with Visual Studio?

﹥>﹥吖頭↗ 提交于 2019-12-06 11:30:10
I have a setup project for my C# program, and this setup project has a Version in its properties. I'd like for the MSI file that is generated to have this Version embedded in it, so I can mouse over it in explorer and see what version the file is. I'm using VS2008. How can I do this? Ron Savage If you simply add the "Version: 1.5.0" text into the Description property of the Setup Project, the version number also shows on the MSI file like so: http://screencast.com/t/A499i6jS As far as I know MSI file will never show version. Simple reason is that MSI files are not PE files, they are sort-of

Best way to share custom PHP code amongst projects

旧时模样 提交于 2019-12-06 11:06:52
I'm developing a distributed environment, mostly in PHP. A lot of the projects that I have share some of the same code. For example my logging code (based on log4php but with some custom additions). I can just copy-paste this code in every project, but naturally, if I change anything in it I need to re-paste it everywhere and 'hope' it doesn't change anything. Obviously not a good way. Now, I was wondering: what is the best and simplest way of sharing this code? I'm hoping there is something as easy as making your own private PEAR-like channel? Do people do this for this use case? Or is there

how to use the GetFileVersionInfo function?

六月ゝ 毕业季﹏ 提交于 2019-12-06 10:03:21
问题 I have this code - that is returning the file version (into a struct) I'm using as example the shell32.dll but there are some values that I don't understand their meanings , and would love to get an explanation. here is the code : void GetFileVersion( PCHAR pFilePath ,PVERSION pRetVersion) { DWORD dwSize = 0; BYTE *pVersionInfo = NULL; VS_FIXEDFILEINFO *pFileInfo = NULL; UINT pLenFileInfo = 0; /*getting the file version info size */ dwSize = GetFileVersionInfoSize( pFilePath, NULL ); if (

Revisions: algorithm and data structure

不打扰是莪最后的温柔 提交于 2019-12-06 10:00:45
I need ideas for structuring and processing data with revisions. For example, I have a database of objects (e.g. cars). Each object has a number of properties, which can be arbitrary, so there's no a set schema to describe these objects. These objects are probably saved as key-value pairs. Now I need to change property of an object. I don't want to completely rewrite it - I want to be able to go back and see history of changes to these properties, that's why I want to add new property and keep the old one (so I guess a timestamp would do the job of telling which property is the latest). At the

Ways to version WCF services

…衆ロ難τιáo~ 提交于 2019-12-06 09:56:51
问题 Is there a nice way to version the data types and methods in WCF services? Something like this would be nice to include a method in version 1.0 to version 4.5. [ServiceContract()] interface ITradeTrackingService { [OperationContract()] [Version(1.0, 4.5)] void PublishQuote(Quote quote); } And something simular on datatypes. Then i would like to in my url do like this: server.com/ws/2.3/ And then in my Global.asax BeginRequest do something like this: protected void Application_BeginRequest