From:   http://preshing.com/20120710/memory-barriers-are-like-source-control-operations/ If you use source control, you’re on your way towards understanding memory ordering, an important consideration when writing lock-free code in C, C++ and other l…
A framework is provided for automatic inference of memory fences in concurrent programs. A method is provided for generating a set of ordering constraints that prevent executions of a program violating a specification. One or more incoming avoidable…
  A few days ago, I've been facing a strange behavior with Visual Studio 2013.   No matter what solution I was opening, Visual Studio kept switching the source control plugin to Git. I was sure all my solutions were bound to TFS.   I didn't understan…
打了SharePoint 2010 最新的SP 2的补丁,但是使用SharePoint Designer 2010 定义任何一个列表的“插入视图”时,总是出现标题那样的错误: 数据源控件未能执行插入命令 用英文GOOGLE了一圈,终于有了解决方案,data source control failed to execute the insert command. 这个问题其实是微软的BUG,SPD在自动生成代码时生成错了,我们使用SPD打开源代码视图, 以关键词检索:<SharePoint:SPD…
  Why is applicationhost.config still being added to source control even thought it's in gitignore git rm .vs/config/applicationhost.config…
百度云同步 百度云同步,会将本地的某个文件目录和云端进行同步.如果在本地将这个同步的目录设置为Git的中心服务器,那么本地push到中心服务器的内容也会被同步到云端.其他开发者只要也进行相同的设置,就能够进行合作开发. 下面使用一个远程和本机来模拟两个开发者,先是安装云同步. Git远程仓库命令 新建中心服务器 先在同步目录中创建一个MyTest的项目文件夹. 然后使用“git init --bare”来建立中心仓库,中心仓库会自动同步到云端.到这里一个空的中心服务器就建好了. clone一个仓…
外国老用的语言就是谨慎,连场景都限定好了,其实我们经常下载到有用NuGet引用包包然而却没法编译的情况,上谷歌百度搜又没法使用准确的关键字,最多能用到的就是nuget跟packages.config,但搜到的都不是自己想要的结果,中文理解应该是“根据packages.config下载包包”,但....搜索引擎不懂我们说的话,这一问题好蛋疼...结果只能抱着试一试的想法上了NuGet官网,进了他的说明文档里乱找一通还是没找到,最后几近放弃的时候在搜索栏里输入“packages.config”,出来…
TFS: 1. 打开Option -> Source Control -> Visual Studio TFS -> Configure User Tools; 2. 添加 .*, Compare, C:\Program Files (x86)\SourceGear\DiffMerge\DiffMerge.exe, /title1=%6 /title2=%7 %1 %2; 3. 添加 .*, Merge, C:\Program Files (x86)\SourceGear\DiffMer…
在VS中使用Git进行项目source control的过程中,有些文件不在source control之下,右键点击时,也找不到Undo, Commit命令 无法把他们签入进Source Control中 解决方法: 右键该文件,选择"Exclude From Project ", 然后再次选择 "Include From Project" 这个时候,就出现Undo,Commit命令了…
原文网址:http://it.zhaozhao.info/archives/60469 有一次笔者在开心项目准备尝试新的练习的时候,赫然注意到在选择档案存放位置的时候,下面有个Source Control 可以勾选,那么究竟这是什么东西,一瞬间就勾起了许多的好奇心.经过一番研究之后,原来还有"版本控制"这个概念.其实这个概念以笔者目前的理解,就是把每个阶段的构想完成之后,储存起来并留下批注与版本编号,假如日后有不同的想法,可以从某个合适的版本从新开始,省去许多麻烦.本篇文章只先针对简单…