问题列表 - 第9714页

此RPC请求中提供的参数太多.最高为2100.?

搜索查询返回此错误.我有一种感觉,因为当我试图对另一个对象进行ORM时,in子句在下属对象上是巨大的.

显然,在子句中不应该一次构建1个参数.谢谢ibatis.

.net c# sql-server ibatis.net

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

如何从长字符串中获取电子邮件地址

在PHP中,我有一个这样的字符串:

$string = "user@domain.com MIME-Version: bla bla bla";
Run Code Online (Sandbox Code Playgroud)

我如何才能获得电子邮件地址?有没有简单的方法来获得价值?

php string email

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

Eclipse RCP缺少约束/捆绑错误

当我尝试从Eclipse中执行我的RCP应用程序时,我收到以下错误消息:

com.bah.gs.arts.jekyll.plugins.VideoLog
    Missing Constraint: Required Bundle: com.bah.gs.arts.jekyll.plugins.JVLC_Runtime; bundle-version="0.9.1"

谁能告诉我我是如何解决这个问题的

eclipse-plugin eclipse-rcp

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

GMaven插件出错

每当我执行gmaven插件时,我都会遇到以下问题

org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the plugin manager executing goal 'org.codehaus.groovy.maven:gmaven-plugin:1.0-rc-5:generateStubs': Mojo execution failed.

我的POM的相关部分如下.有什么想法?

<plugin>
    <groupId>org.codehaus.groovy.maven</groupId>
    <artifactId>gmaven-plugin</artifactId>
    <version>1.0-rc-5</version>
    <executions>
        <execution>
            <goals>
                <goal>generateStubs</goal>
                <goal>compile</goal>
                <goal>generateTestStubs</goal>
                <goal>testCompile</goal>
            </goals>
            <configuration>
                <sources>
                    <fileset>
                        <directory>${project.build.sourceDirectory}</directory>
                        <includes>
                            <include>**/*.groovy</include>
                        </includes>
                        <directory>${project.build.testDirectory}</directory>
                        <includes>
                            <include>**/*.groovy</include>
                        </includes>
                    </fileset>
                </sources>
            </configuration>
        </execution>
    </executions>
</plugin>
Run Code Online (Sandbox Code Playgroud)

eclipse groovy maven-2 maven-plugin gmaven-plugin

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

Maven Eclipse卷标语法错误

当我在Eclipse中的maven项目上清理所有内容时,它总会返回以下错误:

文件名,目录名或卷标语法不正确

我启用了maven builder和java bulider.有谁知道这个错误意味着什么?

谢谢,

杰夫

eclipse maven-2

7
推荐指数
1
解决办法
6938
查看次数

LINQ:如何将内部列表中的项目放入一个列表中?

拥有以下课程(高度简化):

public class Child
{
    public string Label;
    public int CategoryNumber;
    public int StorageId;
}

public class Parent
{
    public string Label;
    public List<Child> Children = new List<Child>();
}
Run Code Online (Sandbox Code Playgroud)

并拥有以下数据:

var parents = new List<Parent>();

var parent = new Parent() {Label="P1"};
parent.Children.Add(new Child() {Label="C1", CategoryNumber=1, StorageId=10});
parent.Children.Add(new Child() {Label="C2", CategoryNumber=2, StorageId=20});
parents.Add(parent);

parent = new Parent() {Label="P2"};
parent.Children.Add(new Child() {Label="C3", CategoryNumber=1, StorageId=10});
parent.Children.Add(new Child() {Label="C4", CategoryNumber=2, StorageId=30});
parents.Add(parent);

parent = new Parent() {Label="P3"};
parent.Children.Add(new Child() {Label="C5", CategoryNumber=3, StorageId=10});
parent.Children.Add(new Child() …
Run Code Online (Sandbox Code Playgroud)

c# linq list

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

停止执行使用execfile调用的脚本

是否可以在不使用if/else语句的情况下中断使用execfile函数调用的Python脚本的执行?我试过了exit(),但它不允许main.py完成.

# main.py
print "Main starting"
execfile("script.py")
print "This should print"

# script.py
print "Script starting"
a = False

if a == False:
    # Sanity checks. Script should break here
    # <insert magic command>    

# I'd prefer not to put an "else" here and have to indent the rest of the code
print "this should not print"
# lots of lines below
Run Code Online (Sandbox Code Playgroud)

python flow-control execfile

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

Django ORM:按对象列表过滤

我有以下代码将我的所有用户从multichoice字段放入列表

USERS = []
for user in User.objects.filter(groups__name='accountexec'):
    USERS.append((user.id,user))
Run Code Online (Sandbox Code Playgroud)

我需要使用Log.objects.filter()来获取USERS列表中用户=的所有日志

django orm filter

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

使用PHP将separte URL插入页面

PHP中是否有一个函数可以转到单独的URL并插入返回到页面的内容?include()函数只适用于本地文件吗?我是否必须在客户端使用javascript来完成此操作?谢谢,Brian

php

0
推荐指数
1
解决办法
302
查看次数

CGAL:错误的Delaunay结果?

我的Delaunay三角测量在1000个均匀随机点上的结果看起来并不正确(见图).有些点似乎属于异常高数量的三角形......有什么想法吗?

替代文字

细节:CGAL 3.4,Windows XP

这是我使用的类型:

typedef CGAL::Exact_predicates_inexact_constructions_kernel K; 
typedef CGAL::Triangulation_2<K>         Triangulation; 
typedef Triangulation::Point             Point; 
Run Code Online (Sandbox Code Playgroud)

显示如下:

delaunay_c::Triangulation::Edge_iterator eit = T.edges_begin(); 
delaunay_c::Triangulation::Edge_iterator end = T.edges_end(); 
for(;eit != end; ++eit) 
{ 
    delaunay_c::Triangulation::Segment s = T.segment(eit); 
    line.m_a = delaunay_c::convert(s.source()); 
    line.m_b = delaunay_c::convert(s.target()); 
    line.draw(); 
} 
Run Code Online (Sandbox Code Playgroud)

函数转换只是从CGAL Point转换为另一种点格式

编辑:按照选择的答案,我只是将三角测量改为delaunay_triangulation:

typedef CGAL::Delaunay_triangulation_2<K>         Triangulation;
Run Code Online (Sandbox Code Playgroud)

它给了: 替代文字

c++ cgal

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