Windows 7,Eclipse CDT,Juno Service Release 2,交叉编译器.
项目确实编译生成的可执行文件,但Eclipse无法看到它们; 因此'运行'失败.可执行文件放在Debug目录中.双击或命令提示符调用已编译的可执行文件工作没有问题.

我怎么解决这个问题?
我正在尝试根据本手册构建collective.simserver:
http://plone.org/products/collective.simserver
Run Code Online (Sandbox Code Playgroud)
经过一些修改:
instead of: virtualenv --python=bin/python2.7 simserver/
I am using: virtualenv --python=myVirtualEnv/bin/python simserver
Run Code Online (Sandbox Code Playgroud)
(因为如果我按照例子它将无法工作)
我设法达到了这一点:
myVirtualEnv/bin/python bootstrap.py
Run Code Online (Sandbox Code Playgroud)
然后它与这个错误信息分开:
    Mint-AMD64 nenad # myVirtualEnv/bin/python bootstrap.py
While:
  Initializing.
An internal error occurred due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
  File "/tmp/tmpLiHZgo/zc.buildout-1.6.3-py2.6.egg/zc/buildout/buildout.py", line 1851, in main
    command)
  File "/tmp/tmpLiHZgo/zc.buildout-1.6.3-py2.6.egg/zc/buildout/buildout.py", line 203, in __init__
    data['buildout'].copy(), override, set()))
  File "/tmp/tmpLiHZgo/zc.buildout-1.6.3-py2.6.egg/zc/buildout/buildout.py", line 1465, in _open
    parser.readfp(fp)
  File "/usr/lib/python2.6/ConfigParser.py", line 305, in readfp
    self._read(fp, filename)
  File …Run Code Online (Sandbox Code Playgroud) 前一段时间我创建了这篇文章,我的同事和我找到了两个不同的答案(两者都有效):
第一个解决方案是使用
Intent callIntent = new Intent("android.intent.action.CALL_PRIVILEGED");
这将打开一个新的窗口提供呼叫通过所有可能的方式拨打电话 - 在这种特殊情况下,他们是拨号和Viber和Skype(或后来添加的任何其他方法).
第二个解决方案是明确呼叫Viber并拨打电话号码
Intent viberCallIntent = new Intent("com.viber.voip.action.CALL"); viberCallIntent.setType( "vnd.android.cursor.item/vnd.com.viber.voip.call"); viberCallIntent.setData(Uri.parse("tel:"+ dialNumber)); viberCallIntent.putExtra("external_call",true); viberCallIntent.putExtra("contact_id", - 1L); startActivity(viberCallIntent);
自上次Viber更新(我们昨天注意到)以来,这些方法都不起作用.第一个只是使用Skype打电话,甚至不提供拨号器(!?!),但如果没有安装Skype,那么它将回落到拨号器并拨打电话.第二个崩溃声称没有找到处理Intent的Activity?
知道发生了什么以及如何解决这个问题?
错误日志如下:
01-27 17:35:03.794: E/AndroidRuntime(7738): FATAL EXCEPTION: main
01-27 17:35:03.794: E/AndroidRuntime(7738): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=com.viber.voip dat=tel:xxxxxxxxx (has extras) }
01-27 17:35:03.794: E/AndroidRuntime(7738):     at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1628)
01-27 17:35:03.794: E/AndroidRuntime(7738):     at android.app.Instrumentation.execStartActivity(Instrumentation.java:1423)
01-27 17:35:03.794: E/AndroidRuntime(7738):     at android.app.Activity.startActivityForResult(Activity.java:3388)
01-27 17:35:03.794: E/AndroidRuntime(7738):     at android.app.Activity.startActivityForResult(Activity.java:3349)
01-27 17:35:03.794: E/AndroidRuntime(7738):     at android.app.Activity.startActivity(Activity.java:3584)
01-27 17:35:03.794: E/AndroidRuntime(7738): …Run Code Online (Sandbox Code Playgroud) 我检查过这些问题:
我已经按照本教程:
以前我使用过Angular Material,但为此它不会起作用:
compiler.js:1016未捕获错误:模板解析错误:'mat-button-toggle'不是已知元素:1.如果'mat-button-toggle'是Angular组件,则验证它是否是此模块的一部分.
app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { TRANSLATION_PROVIDERS } from './translations';
import { TranslateService } from './services/translator.service';
import { AppComponent } from './app.component';
import { MatButtonModule, MatCheckboxModule, MatFormFieldModule, MatInputModule, MatRippleModule, MatDatepickerModule, MatNativeDateModule } from '@angular/material';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { FormsModule } from '@angular/forms';
import { ReactiveFormsModule } from '@angular/forms';
import …Run Code Online (Sandbox Code Playgroud) 我没有在Eclipse Luna之前遇到过这个问题(我几天前从Kepler更新过).虽然我将.recommenders添加到.gitignore,但它会一直跟踪它.
$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
  (use "git add/rm <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)
        modified:   .recommenders/caches/identified-project-coordinates.json
        deleted:    .recommenders/index/http___download_eclipse_org_recommenders_models_luna_/_3.fdt
        deleted:    .recommenders/index/http___download_eclipse_org_recommenders_models_luna_/_3.fdx
        deleted:    .recommenders/index/http___download_eclipse_org_recommenders_models_luna_/_3.fnm
        deleted:    .recommenders/index/http___download_eclipse_org_recommenders_models_luna_/_3.frq
        deleted:    .recommenders/index/http___download_eclipse_org_recommenders_models_luna_/_3.nrm
        deleted:    .recommenders/index/http___download_eclipse_org_recommenders_models_luna_/_3.prx
        deleted:    .recommenders/index/http___download_eclipse_org_recommenders_models_luna_/_3.tii
        deleted:    .recommenders/index/http___download_eclipse_org_recommenders_models_luna_/_3.tis
        modified:   .recommenders/index/http___download_eclipse_org_recommenders_models_luna_/segments.gen
        deleted:    .recommenders/index/http___download_eclipse_org_recommenders_models_luna_/segments_4
        modified:   .recommenders/repository/http___download_eclipse_org_recommenders_models_luna_/org/ecli
.properties
Untracked files:
  (use "git add <file>..." to include in what will be committed)
        .recommenders/index/http___download_eclipse_org_recommenders_models_luna_/_5.fdt
        .recommenders/index/http___download_eclipse_org_recommenders_models_luna_/_5.fdx …Run Code Online (Sandbox Code Playgroud) 我正在学习 C#,作为书中练习的一部分,我必须将标签放在表单中。表格是否足够大并不重要。我在这里 - 在 stackoverflow - 以及其他一些地方找到了不同的解决方案,我将其缩小到两个。但看起来,尽管这些解决方案非常流行,但它们并没有产生相同的结果。
看起来像那个 方法 1
myLabel.Left = (this.ClientSize.Width - myLabel.Width) / 2;
myLabel.Top = (this.ClientSize.Height - myLabel.Height) / 2;
Run Code Online (Sandbox Code Playgroud)
将产生稍微向左居中并从中心向上偏移的标签,并且该 方法 2
myLabel2.Dock = DockStyle.Fill;
myLabel2.TextAlign = ContentAlignment.MiddleCenter;
Run Code Online (Sandbox Code Playgroud)
将使其在表格中间完美对齐。
现在,我的问题是为什么存在差异,或者换句话说,为什么方法 1 中存在左侧向上偏移?
整个代码如下:
//Exercise 16.1
//-------------------
using System.Drawing;
using System.Windows.Forms;
public class frmApp : Form
{
    public frmApp(string str)
    {
        InitializeComponent(str);
    }
    private void InitializeComponent(string str)
    {
        this.BackColor = Color.LightGray;
        this.Text = str;
        //this.FormBorderStyle = FormBorderStyle.Sizable;
        this.FormBorderStyle = FormBorderStyle.FixedSingle;
        this.StartPosition = FormStartPosition.CenterScreen;
        Label myLabel …Run Code Online (Sandbox Code Playgroud) 我正在开发一个Android应用程序,除了其他功能外,它还必须能够使用Viber进行呼叫.我尝试使用Skype的解决方案,但没有成功.我得到的错误是:
05-08 19:51:51.660: D/AndroidRuntime(29140): Shutting down VM
05-08 19:51:51.660: W/dalvikvm(29140): threadid=1: thread exiting with uncaught exception (group=0x40018578)
05-08 19:51:51.680: E/AndroidRuntime(29140): FATAL EXCEPTION: main
05-08 19:51:51.680: E/AndroidRuntime(29140): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=viber:0692155555 }
05-08 19:51:51.680: E/AndroidRuntime(29140):    at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1409)
05-08 19:51:51.680: E/AndroidRuntime(29140):    at android.app.Instrumentation.execStartActivity(Instrumentation.java:1379)
05-08 19:51:51.680: E/AndroidRuntime(29140):    at android.app.Activity.startActivityForResult(Activity.java:2827)
05-08 19:51:51.680: E/AndroidRuntime(29140):    at android.app.Activity.startActivity(Activity.java:2933)
05-08 19:51:51.680: E/AndroidRuntime(29140):    at rs.stanar.pantaxinovisad.MainActivity.call(MainActivity.java:61)
05-08 19:51:51.680: E/AndroidRuntime(29140):    at rs.stanar.pantaxinovisad.MainActivity.onClick(MainActivity.java:117)
05-08 19:51:51.680: E/AndroidRuntime(29140):    at android.view.View.performClick(View.java:2485)
05-08 19:51:51.680: E/AndroidRuntime(29140):    at android.view.View$PerformClick.run(View.java:9080)
05-08 …Run Code Online (Sandbox Code Playgroud) 在此示例之后,如果用户输入的不是字母数字,但我尝试显示错误,但没有成功。总是显示错误信息。
这是代码片段:
<div class="col-md-4" *ngIf="this.context.risk.contractOrigin === 'Appel_d_offre'">
    <label class="control-label" for="numberTenderInvitation">Numéro d'appel d'offre</label>
    <input class="form-control" id="numberTenderInvitation" name="numberTenderInvitation"
           [(ngModel)]="context.risk.policyId"
           #numberTender="ngModel"
           maxlength="10"
           [pattern]="'^[a-zA-Z \-\']$'"
           required/>
</div>
<small class="errorLabel" [hidden]="!numberTender.errors">
    Le champ comporte une erreur.
</small>
Run Code Online (Sandbox Code Playgroud)
我得到的错误是:
错误TypeError:无法读取未定义的属性“错误”
我哪里做错了?
我正在尝试在我的 Angular 6 项目中使用 jQuery 和 jsGrid,它不会编译,除非我评论有问题的代码部分,然后在编译时我评论并且它可以工作,但无论如何它都会出错。我使用的是 Angular 6 CLI,IDE 是 Visual Studio Code,所有最新版本。VS 突出显示 jQuery 别名 ie $ 符号作为问题
这是 structure.directive.ts(我必须注释整个 ngOnInit 才能启动服务器,然后取消注释):
import { Directive, ElementRef, OnInit } from '@angular/core';
@Directive({
  selector: '[structure]'
})
export class StructureDirective implements OnInit {
  clients = [
    { "Name": "Otto Clay", "Age": 25, "Country": 1, "Address": "Ap #897-1459 Quam Avenue", "Married": false },
    { "Name": "Connor Johnston", "Age": 45, "Country": 2, "Address": "Ap #370-4647 Dis Av.", "Married": true },
    { "Name": "Lacey …Run Code Online (Sandbox Code Playgroud) 今天,按照书中的教程(字面意思),我遇到了一个意想不到的错误:
operator '!=' cannot be applied to operands of type 'char' and 'string'
Run Code Online (Sandbox Code Playgroud)
在这部分代码中:
public void displayFullName()
{
    StringBuilder FullName = new StringBuilder();
    FullName.Append(firstName);
    FullName.Append(" ");
    if (middleName[0] != "") //ERROR occurs here
    {
        FullName.Append(middleName[0]);
        FullName.Append(". ");
    }
    FullName.Append(lastName);
    Console.WriteLine(FullName);
}
Run Code Online (Sandbox Code Playgroud)
当然,middleName声明为:
    class Person
{
    private string firstName;
    private string middleName; //obiously declared as string
    private string lastName;
    private int age;
(...the rest of code...)
Run Code Online (Sandbox Code Playgroud)
那么,问题是你将如何解决这个错误?
我需要修改正则表达式以允许所有标准字符,法语字符,空格和破折号(连字符),但一次只允许一个.
我现在拥有的是:
import java.util.regex.Pattern;
public class FrenchRegEx {
    static final String NAME_PATTERN = "[\u00C0-\u017Fa-zA-Z-' ]+";
    public static void main(String[] args) {
        String name;
        //name = "Jean Luc"; // allowed
        //name = "Jean-Luc"; // allowed
        //name = "Jean-Luc-Marie"; // allowed
        name = "Jean--Luc"; // NOT allowed
        if (!Pattern.matches(NAME_PATTERN, name)) {
            System.out.println("ERROR!");
        } else System.out.println("OK!");
    }
}
Run Code Online (Sandbox Code Playgroud)
它允许'让 - 吕克'作为名称,这是不允许的.
对此有何帮助?谢谢.
在Windows 7 64位,AMD处理器上,我安装了OpenVC 2.4.5,使用eclipse CDT Juno和MinGW,所有内容都进行了最新更新.以前eclipse CDT和MinGW编译了100多个源文件而没有任何问题.他们甚至编译这个小的OpenCV源文件,
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/opencv.hpp>
#include <iostream>
using namespace std;
int main()
{
    IplImage* img1 = cvLoadImage("lenna.png");
    cvShowImage("MyWindow1", img1);
    cv::Mat img2;
    img2 = cv::imread("lenna.png", CV_LOAD_IMAGE_COLOR);
    cv::namedWindow("MyWindow2", CV_WINDOW_AUTOSIZE);
    cv::imshow("MyWindow2", img2);
    cvWaitKey(0);
    return 0;
}
Run Code Online (Sandbox Code Playgroud)
但当我尝试运行它然后它与臭名昭着的刹车
"应用程序无法正确启动(0xc0000005).单击"确定"关闭应用程序."
可能出现什么问题以及解决这个问题的方法是什么?
opencv_calib3d245 opencv_contrib245 opencv_core245 opencv_features2d245 opencv_flann245 opencv_gpu245 opencv_highgui245 opencv_imgproc245 opencv_legacy245 opencv_ml245 opencv_nonfree245 opencv_objdetect245 opencv_photo245 opencv_stitching245 opencv_video245 opencv_videostab245
java ×3
android ×2
angular ×2
c# ×2
eclipse ×2
eclipse-cdt ×2
viber ×2
angular5 ×1
binaries ×1
center ×1
char ×1
eclipse-luna ×1
git ×1
jquery ×1
label ×1
mingw ×1
opencv ×1
operators ×1
phone-call ×1
python ×1
regex ×1
servlets ×1
skype ×1
string ×1
tomcat ×1
virtualenv ×1
windows ×1
winforms ×1