versioning

Serialization and versioning

半城伤御伤魂 提交于 2019-12-09 13:32:10
问题 I need to serialize some data to string. The string is then stored in DB in a special column SerializeData. I have created special classes that are used for serialization. [Serializable] public class SerializableContingentOrder { public Guid SomeGuidData { get; set; } public decimal SomeDecimalData { get; set; } public MyEnumerationType1 EnumData1 { get; set; } } Serialization: protected override string Serialize() { SerializableContingentOrder sco = new SerializableContingentOrder(this);

Efficient storage of binary files in a git repository

非 Y 不嫁゛ 提交于 2019-12-09 10:46:37
问题 I would like to have a git repository that consists mainly of binary files. I need to keep track of the changed, added and removed files to the repository, but I don't want for git to version the content of the files themselves. In other words, I just need for git to keep track of changes (change log), but not the content. Is this even possible with git? Should I be using something else for this? 回答1: git is a content tracker, so if you don't want to track content it sounds like it's the

What's the best practice to for Thrift file (api) versioning?

若如初见. 提交于 2019-12-09 07:12:30
问题 I have an API written in thrift. Example: service Api { void invoke() } It does something. I want to change the behavior to do something else but still keep the old behavior for clients that expect the old behavior. What's the best practice to handle a new API version? 回答1: Soft versioning Thrift supports soft versioning, so it is perfectly valid to do a version 2 of your service which looks like this: service Api { void invoke(1: string optional_arg1, 2: i32 optional_arg2) throws (1: MyError

What's the Swift equivalent of Objective-C's “#ifdef __IPHONE_11_0”?

孤者浪人 提交于 2019-12-09 05:07:19
问题 I want to use Xcode 9 to add iOS 11 code to my project while keeping the option to compile the project with Xcode 8 which only supports iOS 10. In Objective-C I can do this by using a preprocessor directive to check if __IPHONE_11_0 is defined. Which will hide the code if I'm compiling with a Base SDK earlier than iOS 11. Like this: #ifdef __IPHONE_11_0 if (@available(iOS 11.0, *)) { self.navigationController.navigationBar.prefersLargeTitles = YES; } #endif Is there a way to do that in Swift?

How do you do version numbering in an agile project? [closed]

倖福魔咒の 提交于 2019-12-09 04:48:32
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 2 years ago . Currently, we're using the following version numbering scheme for our C# winforms project: "Major Release"."Minor Release"."Iteration Number"."Build Number within that Iteration" We wanted to be able to identify the iteration number and the build number within that iteration

Loading assemblies and versioning

本秂侑毒 提交于 2019-12-09 00:50:25
问题 I'm contemplating adding some extensibility into an existing app by providing a few predefined interfaces that can be implemented by "plugins" dropped at a specific location and picked up by the app. The core of the application rarely gets updated while the plugins are updated and deployed more frequently. So basically, having a setup like this: // in core assembly (core.dll) public interface IReportProvider{ string GenerateReport(); } // in other assembly(plugin.dll) public class

CDH4: Version conflict: Found interface org.apache.hadoop.mapreduce.Counter, but class was expected

寵の児 提交于 2019-12-08 20:05:57
I'm trying to upgrade from CDH3 to CDH4 and am getting a version conflict from compile to run time. I'm getting this error: Exception in thread "main" java.lang.IncompatibleClassChangeError: Found interface org.apache.hadoop.mapreduce.Counter, but class was expected From googling it seems that my code is being compiled against Hadoop 1.x and is running on Hadoop 2.0. I'm compiling and running the app on the same Hadoop client, so it should all be Hadoop 2.0. Here's what I get from running "hadoop version" on the client or any of the other nodes in this test cluster: Hadoop 2.0.0-cdh4.4.0

Docker image versioning and lifecycle management

白昼怎懂夜的黑 提交于 2019-12-08 19:53:13
问题 I am getting into Docker and am trying to better understand how it works out there in the "real world". It occurs to me that, in practice: You need a way to version Docker images You need a way to tell the Docker engine (running on a VM) to stop/start/restart a particular container You need a way to tell the Docker engine which version of a image to run Does Docker ship with built-in commands for handling each of these? If not what tools/strategies are used for accomplishing them? Also, when

Get revision number of a tagged file in WinCvs

我与影子孤独终老i 提交于 2019-12-08 17:24:48
问题 This seems like it should be so simple, but I can't find any solution that appears to work... I need a CVS command that given the name of a tag that you have applied to a file, it will give you the revision number. CVS Tree structure: (filename) | +--> 1.1-----(branch) | | | 1.1.1.1---(tag1) | | | 1.1.1.2---(tag2) | | | 1.1.1.3---(tag3) | | | : 1.2 | | : For example: Using a CVS command, given the tag name "tag2", how can I get CVS to give me the revision number "1.1.1.2"? The closest thing I

How to replace a branch in subversion?

人盡茶涼 提交于 2019-12-08 05:52:26
问题 I'v never used branching till yesterday so I didn't knew that I should make the branch our of the trunk. So I branched a subfolder and this caused some side effects like accidental switching the trunk to branch ... this resulted in overwriting the trunk with the subfolder and deleting everything else inside the trunk = destroying my working copy ;/ Now I'm in the situation that I want to override this problematic branch with my working copy. How can this be performed? I'm using Tortoise SVN.