Guys/Gals我有一个真正基本的Team Foundation Server 2010问题.对于那些玩过tfs 2010的人来说,它比tfs2008轻得多吗?我记得在工作中安装TFS 2008一台机器所需的所有部件.我记得安装很痛苦(我知道2010年会更好)我们想要一点点玩,看看它是否符合我们的需求.好吧,它让这台机器戛然而止.我需要一个家庭源控制存储库,我想为什么不只是安装tfs 2010所以我可以熟悉它,也许将来我可以更好地销售给我的组织,最终让他们离开源安全但我担心的是我家里只有一台服务器(我已经安装了SQL Server)并且不想为此目的购买机器.我也想更熟悉CI.
无论如何,如果团队将变得沉重,我将只使用subversion但我想尽可能使用TFS.任何帮助,将不胜感激.
谢谢,
NCAGE
我将长css文件的代码窗口拆分为两部分,上半部分用于查看一个代码区域,底部区域用于查看代码的另一个区域.我通过将代码编辑器右上角的拆分器拖到编辑区域的中间来完成此操作.
什么是击键命令,使光标从下部窗口跳到上部窗口,反之亦然?
我相信热键与sql server相同.
有没有人知道在notepad ++中是否有F#的语法高亮显示?我喜欢使用notepad ++,并希望能够突出显示我的F#脚本!
提前致谢.
如果我有一个线程模型和控制器.
模型和控制器应该是单数还是复数?
我可以显示一个线程,也列出线程.
不知道我应该用什么.
$thread->get_lists(); // doesnt sound good
$threads->show(); // doesnt sound good
Run Code Online (Sandbox Code Playgroud) 有没有办法编写一个通用循环迭代任意枚举?例如:
public static void putItemsInListBox(Enum enum, ListBox listbox){
for(Enum e : enum.values(){
listBox.addItem(e.toString(), String.valueOf(e.ordinal());
}
}
Run Code Online (Sandbox Code Playgroud)
您无法执行上述操作,因为Enum类没有像实现的Enum类那样的名为values()的方法.上面的for循环适用于定义为枚举的类.
我有一个动态填充(由ajax)选择框,其结果选项如下:
<select id="destination" name="destination">
<option value="london-paris">London-Paris</option>
<option value="paris-london">Paris-London</option>
<option value="london-newyork">London-New-York</option>
<option value="newyork-london">New-York-London</option>
<option value="london-berlin">London-Berlin</option>
<option value="berlin-london">Berlin-London</option>
<option value="london-helsinki">London-Helsinki</option>
<option value="helsinki-london">Helsinki-London</option>
Run Code Online (Sandbox Code Playgroud)
......实际上有更多但不是本质
我想要的是在加载列表后使用Javascript(可能使用Jquery或Mootools)对optgroup的每个这两个选项部分进行分组,这样在每个组之前 - 我们添加一个带有我们从第二个选项获得的标签的optgroup标签该组的html(实际上是破折号之前的单词):
<select id="destination" name="destination">
<optgroup label="Paris">
<option value="london-paris">London-Paris</option>
<option value="paris-london">Paris-London</option>
</optgroup>
<optgroup label="New-York">
<option value="london-newyork">London-New-York</option>
<option value="newyork-london">New-York-London</option>
</optgroup>
<optgroup label="Berlin">
<option value="london-berlin">London-Berlin</option>
<option value="berlin-london">Berlin-London</option>
</optgroup>
<optgroup label="Helsinki">
<option value="london-helsinki">London-Helsinki</option>
<option value="helsinki-london">Helsinki-London</option>
</optgroup>
</select>
Run Code Online (Sandbox Code Playgroud)
但是,每组中总有两个目的地.
请提前告知如何实施此建议.
我将以编码器的形式完成我的学徒生涯,并且我有一个很好的j2me项目可以继续工作,但我不得不承认我对数学算法并不如我所希望的那么好.
我的问题是从一组给定的值中创建所有可能的"多米诺骨牌对".例如:可能的值从0到6.现在想象一些具有这些值的多米诺骨牌.输出应该是这样的:
00
01
02
03
04
05
06
11
12
13
...
每对只出现一次,但有两个相等值的对是可能的.
我已经搜索过这个问题了,但是我找不到解决这个问题的方法,或者我真的不明白这些算法是如何工作的.
我真的很感激任何解释和算法.随意发布替代解决方案.我宁愿不只是有一个解决方案,但也要理解它;)
JavaScript的\ jQuery的:
var items = new Array();
var obj { Begin: "444", End: "end" };
items.push(obj);
items.push(obj);
var request = {
DateStart: $("#DateStart").val(),
mass: items
};
$.post("/Home/Index", request, null,
"json");
Run Code Online (Sandbox Code Playgroud)
C#Mvc索引控制器
public class MyClass
{
public string Begin;
public string End;
}
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult Index(
string DateStart,
MyClass []mass)
{
System.Diagnostics.Debug.WriteLine(mass[0].Begin);
}
Run Code Online (Sandbox Code Playgroud)
如何执行此代码?谢谢.
CheckedListBox中的项目是否有标记?或类似的东西?我希望能够存储与我正在显示的项目相关联的ID.
我正在使用boost文件系统获取当前目录的路径,然后检查目录是否存在.
is_directory()exists()没问题,但在相同的路径上失败了,我错过了什么吗?
示例代码(boost 1.35):
#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/path.hpp>
namespace fs = boost::filesystem;
// the path is full path /home/my/somedirectory
fs::path data_dir(fs::current_path());
fs::is_directory(data_dir) // true, directory exists
fs::exists(data_dir) // false
exists(status(data_dir)) // false
Run Code Online (Sandbox Code Playgroud)
编辑:
#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/path.hpp>
namespace fs = boost::filesystem;
fs::path data_dir(fs::current_path());
// data_dir == "/home/myusername/proj/test"
if (fs::is_directory(data_dir)) // true - is directory
if (fs::is_directory(fs::status(data_dir))) // true - it is still a directory
Run Code Online (Sandbox Code Playgroud)
有趣的部分:
if (fs::exists(fs::status(data_dir))) // true - directory exists
if (fs::exists( data_dir )) // true …Run Code Online (Sandbox Code Playgroud)