小编Cha*_*Mic的帖子

如何在动作脚本中启用双击?

我试着这样做:

panel.addEventListener(MouseEvent.DOUBLE_CLICK,showEditPopup);
Run Code Online (Sandbox Code Playgroud)

但它不起作用.

它工作正常

panel.addEventListener(MouseEvent.CLICK,showEditPopup);
Run Code Online (Sandbox Code Playgroud)

所以,我想我必须首先启用双击.需要帮助.

actionscript-3 mouseevent

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

在select语句Cassandra中where子句之后的OR条件的替代

在Cassandra中是否可以在select语句中的where子句之后使用多个条件联合在一起,就像在任何RDBMS中一样.这是我的代码:

SELECT * from TABLE_NAME WHERE COND1= 'something' OR COND2 = 'something';  
Run Code Online (Sandbox Code Playgroud)

select cql where cassandra

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

使用Crawler4j时线程"main"java.lang.NoClassDefFoundError:org/apache/http/conn/scheme/SchemeSocketFactory中的异常

我正在使用Crawler4j示例代码,但我发现我有一个例外.

这是我的例外:

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/http/conn/scheme/SchemeSocketFactory
    at LocalDataCollectorController.main(LocalDataCollectorController.java:24)
Caused by: java.lang.ClassNotFoundException: org.apache.http.conn.scheme.SchemeSocketFactory 
Run Code Online (Sandbox Code Playgroud)

这是我的代码:

    public static void main(String[] args) throws Exception {

            String root Folder = "D:\\";
            int numberOfCrawlers = 5;
            System.out.println("numberOfCrawlers"+numberOfCrawlers);
            System.out.println(rootFolder);

          CrawlConfig config = new CrawlConfig();
            config.setCrawlStorageFolder(rootFolder);
            config.setMaxPagesToFetch(10);
            config.setPolitenessDelay(1000);

              PageFetcher pageFetcher = new PageFetcher(config);
           RobotstxtConfig robotstxtConfig = new RobotstxtConfig();
            RobotstxtServer robotstxtServer = new RobotstxtServer(robotstxtConfig, pageFetcher);
            CrawlController controller = new CrawlController(config, pageFetcher, robotstxtServer);

            controller.addSeed("http://www.ohloh.net/p/crawler4j");
            controller.start(LocalDataCollectorCrawler.class, numberOfCrawlers);

            List<Object> crawlersLocalData = controller.getCrawlersLocalData();
            long totalLinks = 0;
            long totalTextSize = 0; …
Run Code Online (Sandbox Code Playgroud)

java exception crawler4j

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

count.sh:第13行:意外令牌"完成"附近的语法错误

我要求编写一个shell脚本来计算当前目录中所有".cpp"中的行数.

但是,在运行我的shell脚本时,它说count.sh: line 13: syntax error near unexpected token "done"
我不知道出了什么问题.

有谁能告诉我怎么能解决这个问题?谢谢你的帮助.

#!/bin/bash

summary=0
for i in $(find . -name *.cpp -print) 
do
count=$(wc -l $i)
let summary+=count
if [$count -eq 1]
then 
    echo "$i : $count line"
elif [$count -gt 1]
    echo "$i : $count lines"        
done

if [$summary -eq 1]
then 
echo "TOTAL: $summary   line"

elif [$summary -gt 1]
echo "TOTAL: $summary   lines"
Run Code Online (Sandbox Code Playgroud)

linux shell

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