问题列表 - 第17518页

如何在intel x86 Assembly中找到当前日期?

我需要找到在Windows上找到Intel x86 Assembly的二进制当前日期.我被允许使用Windows程序.

x86 assembly

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

HttpWebResponse返回404错误

如何让Httpwebresponse忽略404错误并继续使用它?它比在输入中查找异常更容易,因为在发生这种情况时非常罕见.

c# httpwebresponse http-status-code-404

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

获取子串 - 在某些char之前的所有内容

我试图弄清楚在字符串中的字符之前获取所有内容的最佳方法.下面是一些示例字符串.之前字符串的长度 - 变化,可以是任何长度

223232-1.jpg
443-2.jpg
34443553-5.jpg
Run Code Online (Sandbox Code Playgroud)

所以我需要从起始索引0到右前的值 - .所以子串会变成223232,443和34443553

c#

109
推荐指数
6
解决办法
25万
查看次数

导致Vista/Win7警告的原因是:"此程序可能没有正确安装"?

导致此警告的原因是什么?我可以做些什么来防止它在我的应用安装时弹出?

可能的原因:

  • 病毒扫描软件(我正在调查)
  • 没有将卸载放在添加/删除程序中(这肯定会导致问题,来自Microsoft的文档(请参阅下面的答案)
  • 将.ocx或.dll文件放在App Directory中?
  • 没有注册库文件(应用程序运行正常,无需重新安装,所以我不认为这是它.

还有其他想法吗?

installer windows-vista

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

Django - 为测试目的填充数据库

我需要用一堆虚拟条目(大约200多个)填充我的数据库,以便我可以测试我制作的管理界面,我想知道是否有更好的方法来做到这一点.昨天我花了大部分时间试图用手填充它(即通过将这样的东西包裹起来my_model(title ="asdfasdf",field2 ="laksdj"......)在一堆"for x in range"中( 0,200):"循环"并放弃,因为它没有像我预期的那样工作.我认为是我需要使用的,但是你不需要在数据库中有(现有的)数据才能使用吗?

python database django

7
推荐指数
2
解决办法
6523
查看次数

int和布尔错误

我有一个生成和错误的方法,预期int,但发现布尔值,但当我切换到布尔值时,它说相同的错误,但反向int和布尔值.这是我的代码:

private void compileDeclaration(boolean isGlobal) {
         if (equals(theToken, "int")) {
            accept("int");
            String ident = theToken;
            if (!isIdent(theToken)) t.error("expected identifier, got " + theToken);
            else if (isGlobal){
                symTable.allocVar(ident, isGlobal);
            }

            if (!isGlobal) cs.emit(Machine.ALLOC, symTable.stackFrameSize());
            //dprint("declaring int " + ident);
            theToken = t.token();
            accept (";");
        } else if (equals (theToken, "final")) {
            accept("final");
            accept("int");
            String ident = theToken;
            if (!isIdent(theToken)) t.error("expected identifier, got " + theToken);
            theToken = t.token();
            accept("=");
            int numvalue = new Integer(theToken).intValue();
            if (!isNumber(theToken)) t.error("expected number, got " + …
Run Code Online (Sandbox Code Playgroud)

java boolean

-1
推荐指数
1
解决办法
1320
查看次数

JTextArea中的行间距

看来我当前的JTextArea实例的行间距约为1或1.5.任何人都可以告诉我如何更改JTextArea实例中的行间距?

java line spacing jtextarea

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

篡改强大的命名程序集有多难?

假设我有一个强大的.NET程序集.只有我可以访问私钥.然后我将程序集分发给某个客户端系统.

客户修改程序集有多难?即:他们需要做些什么才能修改我的装配?

.net c# strongname

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

从链表java中删除元素

HI :)我有一个关于链接列表的程序,我们应该能够删除两个数字,如果它们是相同的...我知道如何从一开始就这样做但如何删除两个数字如果他们在链表的中间?? 所有3个一起运行Heres我的数字计划

import java.util.Scanner;

public class Numbers {

    /**
     * @param args
     */
    public static void main(String[] args) {
        // TODO Auto-generated method stub
        Scanner reader = new Scanner (System.in);
        LinkedList link=new LinkedList();
        LinkedList link2= new LinkedList();
        System.out.println("Enter in 5 numbers to put in your list");
        int num1, num2, num3, num4, num5;
        num1 = reader.nextInt();
        link.addToStart(num1);
        num2 = reader.nextInt();
        link.addToStart(num2);
        num3 = reader.nextInt();
        link.addToStart(num3);
        num4 = reader.nextInt();
        link.addToStart(num4);
        num5 = reader.nextInt();
        link.addToStart(num5);

        link2.addToStart(num5);
        link2.addToStart(num4);
        link2.addToStart(num3);
        link2.addToStart(num2);
        link2.addToStart(num1);

        System.out.println("The size …
Run Code Online (Sandbox Code Playgroud)

java

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

LSUIElement与activateIgnoringOtherApps的行为不一致

具体而言,它在文本字段焦点方面表现不一致.

我有一个LSUIElement弹出一个状态菜单.在该菜单中,有一个包含文本字段的视图.文本字段需要是可选择的 - 默认情况下不一定是选中,而是以任何方式选择.

单击状态项时,将触发

[NSApp activateIgnoringOtherApps:YES];
Run Code Online (Sandbox Code Playgroud)

它的工作时间大约是一半时间.*状态菜单的另一半似乎是"在后台",并且不会让我把焦点放在文本字段上,即使点击它也是如此.(我知道状态项单击触发器正在触发b/c上有一个NSLog.)

这是Apple处理这些状态项的方式中的错误,还是我错误处理activateIgnoringOtherApps?

*事实上,它似乎只是在另一个应用程序被激活后第一次失败.之后它工作正常.

完整代码段:

-(void)statusItemClicked:(id)sender {
    //show the popup menu associated with the status item.
    [statusItem popUpStatusItemMenu:statusMenu];

    //activate *after* showing the popup menu to obtain focus for the text field.
    [NSApp activateIgnoringOtherApps:YES];

}
Run Code Online (Sandbox Code Playgroud)

cocoa statusbar nsstatusitem

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