问题列表 - 第48360页

在sql server上重建索引

我在数据库上进行索引重建.我需要验证它是否已完成.有人可以指导我.我正在使用SQL Server 2008 R2

sql sql-server indexing sql-server-2008-r2

6
推荐指数
2
解决办法
7714
查看次数

Sharepoint 2010中的依赖注入

我正在研究我的第一个sharepoint项目.有没有办法在sharepoint中使用依赖注入(如城堡windsor)?如果是这样,请提供一个samle代码.

谢谢

dependency-injection castle-windsor sharepoint-2010

8
推荐指数
1
解决办法
1287
查看次数

IE6和7有兼容W3C的黑客吗?

IE6和7中是否有有效的黑客兼容W3C?

我相信使用黑客时会出现W3C不兼容问题.例如,使用以下CSS代码(如本文选项2中的建议:http://webdesignerwall.com/tutorials/css-specific-for-internet-explorer?cc = 1):

.box {
    height:200px;
    _height:200px;
}
Run Code Online (Sandbox Code Playgroud)

在W3C CSS验证器中给了我以下错误:

Property _height doesn't exist : 200px 200px
Run Code Online (Sandbox Code Playgroud)

如果我错了请指教.

谢谢.

html css internet-explorer

2
推荐指数
1
解决办法
187
查看次数

如何自动增长(宽度)div

我有一个div

<div id="div1">
</div>
Run Code Online (Sandbox Code Playgroud)

我正在使用jquery将文本插入其中:

$('#div1').html('abcd');
Run Code Online (Sandbox Code Playgroud)

我希望这个div的宽度根据插入的文本的长度扩展调整大小.我试过了 :

   #div1
{
width:auto;
}
Run Code Online (Sandbox Code Playgroud)

但它不起作用.请帮忙.

css jquery

5
推荐指数
1
解决办法
1万
查看次数

C#检查块

有人可以向我解释一下,检查一个未经检查的块究竟是什么?
我什么时候应该使用它们?

c# checked

22
推荐指数
3
解决办法
7149
查看次数

如何使用3DS Max 9.0减少3D模型的多边形数量

我有一个非常沉重的OBJ模型,我想减小模型的大小,模型是非常精细的网格,我想减少多边形的数量..我需要将该模型导入到iphone应用程序中.

3dsmax

6
推荐指数
1
解决办法
4万
查看次数

Android注释在Ui Thread上运行

是否可以注释在UiThread中运行代码的方法?

runOnUiThread(new Runnable() {
public void run() {
//my code
}});
Run Code Online (Sandbox Code Playgroud)

看起来太复杂,经常使用它.

multithreading android

11
推荐指数
1
解决办法
1万
查看次数

带有readObject的Java神秘EOF异常

以下代码生成一个EOFException.这是为什么?

public static Info readInfoDataFromFile(Context context) {
    Info InfoData = null;
    FileInputStream fis = null;
    ObjectInputStream ois = null;
    Object object = null;

    if (context.getFileStreamPath("InfoFile.dat").exists()) {
        try {
            fis = context.openFileInput("InfoFile.dat");
            ois = new ObjectInputStream(fis);
            Object temp;
            try {
                // here it throws EOF exception in while loop 
                while ((temp = ois.readObject()) != null) {
                    object = temp;
                }
            } catch (NullPointerException npe) {
                npe.printStackTrace();
            } catch (EOFException eof) {
                eof.printStackTrace();
            } catch (FileNotFoundException fnfe) {
                fnfe.printStackTrace();
            } …
Run Code Online (Sandbox Code Playgroud)

java serialization exception eofexception

11
推荐指数
3
解决办法
3万
查看次数

拖放Java GUI

我希望用Java创建一个GUI,我将控件或元素放在左窗格上,然后将它们拖到设计器窗格上,类似于在Visio中创建模型.

我正在看的当前是JGraphX,它允许你创建图表等.

有没有其他项目支持这个,或工具等.

java

10
推荐指数
3
解决办法
2万
查看次数

忽略cobertura maven插件中特定类的报告生成

我一直在使用Cobertura插件进行报告生成和检测(使用surefire).这是我面临的问题:

我无法为我的项目中的特定类生成插件忽略报告生成.

PF低于pom.xml的相关摘录,我添加了ignore标记,但这只是忽略了忽略类的检测.

我希望根本不生成特定项目的报告.

首先,由于我对Maven和Conberture的了解有限,我想知道它是否可能,如果是,那么我需要在pom.xml中完成哪些更改.

的pom.xml

<report>
    <!-- other plugins exist but are not important to be listed here I guess -->   
    <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
            <skipTests>false</skipTests>
            <systemProperties>
                <property>
                <name>net.sourceforge.cobertura.datafile</name>
                <value>target/cobertura/cobertura.ser</value>
                </property>
            </systemProperties>
        </configuration>
    </plugin>
    <!-- The following is the plugin for cobertura, which takes care of integration and report generation-->
    <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>cobertura-maven-plugin</artifactId>
        <configuration>
            <check>
                <branchRate>50</branchRate>
                <lineRate>50</lineRate>
                <haltOnFailure>true</haltOnFailure>
                <totalBranchRate>50</totalBranchRate>
                <totalLineRate>50</totalLineRate>
                <packageLineRate>50</packageLineRate>
                <packageBranchRate>50</packageBranchRate>
            </check>
            <instrumentation>
                <ignores>
                  <ignore>deshaw.dportal.alert.*</ignore>
                  <ignore>deshaw.dportal.atc.*</ignore>
                  <ignore>deshaw.dportal.basket.*</ignore>
                  <ignore>deshaw.dportal.fcs.*</ignore>
                  <ignore>deshaw.dportal.event.*</ignore>
                  <ignore>deshaw.dportal.filings.*</ignore>
                  <ignore>deshaw.dportal.glg.*</ignore>
                  <ignore>deshaw.dportal.icp.*</ignore>
                </ignores>
            </instrumentation>
        </configuration>
    </plugin>
</report>
Run Code Online (Sandbox Code Playgroud)

编辑:

这是我的目录结构: …

instrumentation maven-2 code-coverage cobertura maven-plugin

10
推荐指数
1
解决办法
1万
查看次数