问题列表 - 第34615页

在Perl中,如何检查导入给定函数的模块?

我有一个调用该函数的代码.但我不知道这个功能属于哪个模块.我需要它来修改这个功能.

我怎么检查呢?

perl module function subroutine

20
推荐指数
3
解决办法
3318
查看次数

c#和asp.net 2需要支持多长时间?

我刚刚被问到微软在支持我们在某些系统中使用的.net框架方面的承诺是什么.

特别是c#2和asp.net 2,任何人都可以指向我提供此信息的文档.(如果它包括3.5将是有用的.)

c# asp.net

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

How to emit dbus signal from command line

Is there a way to emit dbus signal from command line using dbus-send or something else ?

linux dbus

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

Git - How to fix "corrupted" interactive rebase?

I managed to create a little mess in my local git repository. I was trying to fix a broken commit by using the following instructions. Before running the "git commit --amend" (and after the git rebase --interactive) I decided that my changes were incorrect and so I executed "git reset HEAD --hard". Not a good idea, I tell you.

现在,交互式基础似乎被"卡住了".Git将当前分支显示为(| REBASE-m).我的存储库中的每个命令(cd ..,ls,git rebase ...)都会出现以下错误:

cat:.git/rebase-merge/head-name:没有这样的文件或目录

以下是git rebase --abort的样子:

$ git rebase --abort
cat: c:/_work/project/src/git/.git/rebase-merge/quiet: No such file or directory …
Run Code Online (Sandbox Code Playgroud)

git msysgit git-rebase

124
推荐指数
8
解决办法
7万
查看次数

检查布尔值是否为真?

bool foo = true;

// Do this?
if (foo)
{
}

// Or this?
if (foo == true)
{
}
Run Code Online (Sandbox Code Playgroud)

我喜欢他们中的一个和另一个我的同事.结果是一样的,但是(更)正确的是什么?

c#

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

如何将属性插入数组?

每个元素$(some_selector)都有属性my_attr(这是一个数字).

I would like insert all these attributes to array.

What would be the easiest way to do this using jQuery ?

javascript jquery attributes

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

erlang mnesia - illegal record info

I am trying to have a function that ensures the table I need is already created and if not to create it. Here's the sample:

ensure_table_exists(Table, MnesiaTables, Nodes) ->
case lists:member(Table, MnesiaTables) of
    true ->
        throw({error, db_might_have_already_been_created});
    false ->
        mnesia:create_table(Table, [{disc_copies, Nodes},
                {attributes, record_info(fields, Table)}]), 
        ok  
end.
Run Code Online (Sandbox Code Playgroud)

The issue is that when compiling I get the error: illegal record info. It might have to do that record_info is resolved at compile time or that the second argument to record …

erlang mnesia record

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

在jQuery中选择具有非null id的所有元素

我想使用jQuery 1.4.2将.draggable类实现到我的文档中的所有元素,并使用现有的id

<div id="blabla">asdsda</div> -> OK
<div>dsds</div> -> NOT OK
Run Code Online (Sandbox Code Playgroud)

这可能吗 ?

我试过了$("*[id!=null]")但是我不行:s

jquery jquery-selectors

9
推荐指数
2
解决办法
8208
查看次数

使用正则表达式检查变量

我即将为我的网站创建一个注册表单.我需要检查变量,并仅在包含字母,数字,_或 - 时接受它.

如何用正则表达式做到这一点?我曾与他们合作preg_replace(),但我认为情况并非如此.另外,我知道"ereg"功能已经死了.有解决方案吗

php regex

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

试图安装MySQL-python-1.2.3,但是我收到了一个错误

这是我在尝试安装MySQL-python-1.2.3时遇到的错误.有任何想法吗?

Traceback (most recent call last):
  File "C:\Documents and Settings\Desktop\MySQL-python-1.2.3\setup.py", line 15, in <module>
metadata, options = get_config()
  File "C:\Documents and Settings\Desktop\MySQL-python-1.2.3\setup_windows.py", line 7, in get_config
serverKey = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, options['registry_key'])
WindowsError: [Error 2] The system cannot find the file specified
Run Code Online (Sandbox Code Playgroud)

试图在Windows XP机器上的Python 2.7上安装它

python mysql

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