问题标签 [analyzer]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
3 回答
1396 浏览

iphone - iphone version compatibility scanner

Ok I've been developing iphone-apps for over a year now, but there's this one thing which still really sucks.

Let's say I want to make my app compatible with iOS 3.0 I set my sdk to the newest version available and set my deployment target to 3.0

But what happens, if you by accident call a function available only in ... 3.1.x or later? Right, it simply crashes.

There are no warnings or indicators telling you, that a function is only available in later iOS-Version. And since the Emulator doesn't support versions < 4.0 it's impossible to test if the application really works. You can't even buy a new device since they already have a newer iOS installed. And even if you have an older device it's sometimes almost impossible to check each and every part of your code.

And I really need to support older versions since I know that my customers (around 2/3) still use 3.x versions.

Isn't there ANY code-analyzer or something that scans the availability of all functions called within the app?

In one case the app crashed because I called

which i a convenience method of alloc +

(Plus it's autoreleased) But sortDescriptorWithKey is only avaible in 4.0 @_@

0 投票
1 回答
931 浏览

debugging - 调试视频编码错误(流分析器)

我通过 FFMPEG 的 API 以编程方式创建视频。生成的文件存在播放不连贯、闪烁等问题。

是否有任何工具可以分析音频/视频的编码错误?或者至少,转储每个帧的信息(即 PTS、帧类型等)。

非常感谢有关故障排除的任何其他建议!

0 投票
1 回答
882 浏览

lucene - Lucene Query 和 Analyzer 组合

我有一个快速的问题。说,我有一个字符串"this string has some text in it"。我希望 lucene 能够使用以下搜索找到它:

我应该为此使用 Analyzer 和 Query 的哪种组合?Lucene 3.0.3。

0 投票
1 回答
288 浏览

lucene - Lucene - 如何在索引中丢弃数字项?


使用StandardAnalyzer,我的 Lucene 也包含数字项(即“200”)。所以我的索引中的术语数太大了。
有谁知道是否存在丢弃数字术语的分析器或标记器?
如果没有,有什么简单的方法可以得到吗?

0 投票
2 回答
1494 浏览

logging - 通用日志分析器...!

是否存在“通用日志分析器”之类的东西?

我的意思是 Universal Log Anlyzer 可以分析大多数由 Java/.Net/etc 生成的日志文件。写的软件。

我的意图不是将它用于每种日志文件。我实际上在寻找这样的软件,只需要配置日志分析器的某些部分(例如提供一些表达式或模式语法)并基于它可以为我生成一些分析。我在这个主题上搜索了很多,但没有找到太多的解决方案。

需要有关付费和免费软件的信息。

谢谢,曼尼什帕蒂尔。

0 投票
3 回答
4647 浏览

lucene - 在 Lucene 中组合分析器的最佳实践是什么?

我有一种情况,我在 Lucene 中使用 StandardAnalyzer 来索引文本字符串,如下所示:

效果很好,但我也想将它与使用 SnowballAnalyzer 的词干结合起来。

这个类还有两个实例变量,显示在下面的构造函数中:

谁能告诉我如何使用上面的代码最好地实现这一目标?

谢谢

摩根先生。

0 投票
1 回答
1683 浏览

perl - 如何开始在 Perl 中编写 Web 日志分析器?

从以这种格式输入后输出条目的文件中获取信息:IPAddress xx [date:time -x] "method url httpversion" statuscode bytes "referer" "useragent"

您将如何将该文件作为命令行参数访问并存储该信息,以便您可以按 IP 地址的字母顺序排列它,同时将所有信息放在一起?我假设我需要以某种方式使用哈希和数组。

理论上,您可以拥有任意数量的文本文件作为命令行参数,但到目前为止,我还没有让这部分工作,我只有:

然后在代码中,假设所有未指定的变量都被声明为标量

肯定有更好的方法来做到这一点,因为我的编译器说我有全局符号错误,例如:

在 ./logprocess.pl 第 51 行 (#2) (W ambiguous)(S) 将 % 的歧义使用解析为运算符 % 您所说的内容可能无法按照您的想法进行解释。通常,通过提供缺少的引号、运算符、括号对或声明很容易消除歧义。

它不会执行。我不能使用任何模块。

0 投票
2 回答
560 浏览

networking - 分析未知网络协议时从哪里开始

抱歉这里的问题含糊不清,但有人可以指出一些体面的资源来学习如何捕获网络流和分析未知协议吗?我正在尝试从端口 4321 上的实时 Formula1.com 计时服务器捕获流,以便对其进行分析。流是完全未知的(即我不知道它包含什么信息等),所以我真的不知道从哪里开始对它进行逆向工程。

我知道已经有一些 linux 应用程序可以执行此操作,但我想制作我自己的版本,作为练习,因此我可以确保我可以保持最新,以防协议发生变化,因为这些代码库中的很多似乎没有定期维护。

通过查看linux f1 计时应用程序,该流似乎是二进制流,您需要 ping 服务器以从中获取任何类型的数据。建议是否使用wireshark或其他某种网络分析器,如果是这样,我执行捕获,我将如何解码/开始对比特流进行有意义的处理?

0 投票
3 回答
1301 浏览

functional-programming - 函数式编程语言的静态分析器,例如Scheme

我很少看到函数式编程语言的静态分析器,比如 Racket/Scheme,我什至怀疑是否有。我想为功能语言编写一个静态分析器,比如 Scheme/Racket。我应该怎么做?

0 投票
2 回答
43849 浏览

lucene - Comparison of Lucene Analyzers

Can someone please explain the difference between the different analyzers within Lucene? I am getting a maxClauseCount exception and I understand that I can avoid this by using a KeywordAnalyzer but I don't want to change from the StandardAnalyzer without understanding the issues surrounding analyzers. Thanks very much.