问题列表 - 第12769页

确定可执行文件(或库)是32位还是64位(在Windows上)

我试图找出一个给定的可执行文件(或库)是否从Python编译为32位或64位.我运行Vista 64位,并想确定目录中的某个应用程序是否编译为32位或64位.

有没有一种简单的方法只使用标准的Python库(目前使用2.5.4)?

python windows dll 64-bit executable

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

slideToggle和:可见

使用该sliderToggle方法时,:visible表达式似乎永远不会返回除true之外的任何内容.

如果我手动使用show/ hide:visible表达式一起使用它会很好.

失败的例子:

jQuery(".fileNode .nodeExpander").click(function() {
    var notes = jQuery(this).parent().siblings(".fileNotes");
    notes.slideToggle ("fast");

    var isVisible = notes.is(":visible"); // Always returns true...

    // Do stuff based on visibility...
});
Run Code Online (Sandbox Code Playgroud)

工作范例:

jQuery(".fileNode .nodeExpander").click(function() {
    var notes = jQuery(this).parent().siblings(".fileNotes");
    var isVisible = notes.is(":visible");

    if (isVisible)
        notes.hide("fast");
    else
        notes.show("fast");

    // Do stuff based on visibility...
});
Run Code Online (Sandbox Code Playgroud)

一些html:

<ul>
    <li class="fileNode">
        <img src="<%= Url.Content ("~/Images/Collapse.png") %>" alt="<%= UIResources.CollpaseAltText %>" class="nodeExpander" />
    </li>
    <li class="fileLink"> …
Run Code Online (Sandbox Code Playgroud)

jquery jquery-1.3.2

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

NSURLConnection泄漏?

我已经设置了一个nsurl,它从http中获取数据.当我运行仪器时,它说我有一个泄漏的NSFNetwork对象.

我如何释放theConnection在(无效)ButtonClicked?或者它会在稍后发布?

- (void)ButtonClicked {
    NSURLRequest *theRequest = [NSURLRequest requestWithURL:[NSURL URLWithString:KmlUrl]
                                                cachePolicy:NSURLRequestUseProtocolCachePolicy
                                            timeoutInterval:20.0f];

    NSURLConnection *theConnection = [[NSURLConnection alloc] initWithRequest:theRequest delegate:self];
    if (theConnection) {
        // receivedData is declared as a method instance elsewhere
        NSMutableData *receivedData = [[NSMutableData data] retain];
        [self setKMLdata:receivedData];
    } else {
        // inform the user that the download could not be made
    }
}


- (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data
{
    // append the new data to the receivedData
    // receivedData is declared as a method instance …
Run Code Online (Sandbox Code Playgroud)

memory-leaks memory-management objective-c nsurlconnection nsurlrequest

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

检测到堆栈粉碎

我正在执行我的a.out文件.执行后程序运行一段时间然后退出并显示以下消息:

**** stack smashing detected ***: ./a.out terminated*
*======= Backtrace: =========*
*/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)Aborted*
Run Code Online (Sandbox Code Playgroud)

可能的原因是什么?如何纠正?

c stack exception

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

如何使用DLL?

我知道如果我有一个.a或.so文件和该库的头文件(例如SystemC),我应该1.包含头文件2.链接相应的库.

但我不能只处理.dll文件,因为我也可以链接它,但没有一个听众文件来包含和使用命令.有人解释我是什么样的.dll-s存在以及如何使用它们?是否可以使用任何.dll文件,或者它应该是特定类型的.dll才能集成到我的应用程序中?

c++

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

如何获取服务器IP地址?

是否有一行方法来获取服务器的IP地址?

谢谢

c# asp.net

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

使用mac地址安装网络应用程序

我想知道是否可以通过javascript获取客户端的mac地址,这将是一个安全的网络应用程序的好方法.(例如,限制一个许可证/ Mac地址)

javascript ajax networking licensing

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

在Rails中过滤形式?

我是Rails的新手.我简单地搭建了一个小模型.该模型有一个名为category的字段.现在我想按类别过滤索引页面上的条目.

<% form_for @domain do |f| %>
<p>
 Domain:
 <%= f.select(:Domain,%w{ LifeStyle Automobiles FoodAndBeverage Health IT Telecom EntertainmentAndCelebrity Education BankingInvestmentAndInsurance Travel Sports Parenting ConsumerElectronics RealtyAndLogistics CauseLed})%>


 <%= submit_tag "Filter" %>
</p>
<% end %>

<table border="1">
  <tr>
    <th>Domain</th>
    <th>Category</th>
    <th>Course detail</th>
    <th>Nameofblog</th>
    <th>Descriptionofblog</th>
    <th>Smename</th>
    <th>Smecommuntiy</th>
    <th>Smeifnotorkfac</th>
    <th>Noofmemb</th>
    <th>Discussionforumname</th>
    <th>Discussionforumdescription</th>
    <th>Qnasitesname</th>
    <th>Qnasitesnamedesc</th>
    <th>Newssitename</th>
    <th>Newssitedesc</th>
  </tr>

<% @media_universe_entries.each do |media_universe_entry| %>
  <tr>
    <td><%=h media_universe_entry.Domain %></td>
    <td><%=h media_universe_entry.Category %></td>
    <td><%=h media_universe_entry.CourseDetail %></td>
    <td><%=h media_universe_entry.NameOfBlog %></td>
    <td><%=h media_universe_entry.Descriptionofblog %></td>
    <td><%=h media_universe_entry.SMEname %></td>
    <td><%=h media_universe_entry.SMECommuntiy …
Run Code Online (Sandbox Code Playgroud)

ruby forms filtering ruby-on-rails

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

增值税有效性检查

我必须在网页中构建一些增值税公式.当用户填写增值税号时,我必须检查它是否是正确的有效格式.

对比利时的控制已经完成,但我找不到荷兰,法国和卢森堡的有效性公式......

有人建议吗?

我使用Visual Studio .NET 2008,c#.Visual Basic也很好:)

c#

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

Scala的好处是什么?

我是一名Java开发人员,我想知道如何在Java程序中使用Scala?

java scala

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