我需要在Perl中创建一些并发的XML feed请求.什么是最快的做到这一点呢?
我需要为一些短字符串创建唯一的数字id.
some.domain.com -> 32423421
another.domain.com -> 23332423
yet.another.com -> 12131232
Run Code Online (Sandbox Code Playgroud)
是否有Perl CPAN模块可以执行此类操作?
我尝试过使用Digest :: MD5,但结果数字太长了:
some.domain.com -> 296800572457176150356613937260800159845
Run Code Online (Sandbox Code Playgroud) 我有两个Web请求,我需要轮询以查明它们何时返回.理想情况下,我不想继续测试它们.我想释放CPU,以便其他进程可以执行.
我目前正在使用Perl的Time :: HiRes :: sleep(0.100)函数在测试Web请求是否已返回之前释放CPU.
在负载测试期间,我可以看到睡眠持续时间"延伸".理想情况下,我想确保遵守睡眠持续时间,但CPU已被释放.我应该调用不同的功能来实现这一目标吗?
我在Linux 2.6上编写Perl代码.
我有一个应用程序需要区分良好的HTTP GET请求和坏.
For example:
http://somesite.com?passes=dodgy+parameter # BAD
http://anothersite.com?passes=a+good+parameter # GOOD
My system can make a binary decision about whether or not a URL is good or bad - but ideally I would like it to predict whether or not a previously unseen URL is good or bad.
http://some-new-site.com?passes=a+really+dodgy+parameter # BAD
I feel the need for a support vector machine (SVM) ... but I need to learn machine learning. Some questions:
Run Code Online (Sandbox Code Playgroud)
1)SVM是否适合此任务?2)我可以使用原始URL进行训练吗? - 没有明确指定'功能'3)我需要多少个网址来擅长预测?4)我应该使用什么样的SVM内核?5)训练完毕后,如何保持最新状态?6)如何再次测试看不见的URL以确定它是好还是坏?一世
我想想象一下Memcached守护进程的RAM使用情况 - 最好的实用工具是什么?
理想情况下,我想用Perl.
为了速度,我正试图从Moose迁移到Mouse,但遇到了一个showstopper错误.
我在同一范围内构建两个对象:
sub scope {
my $foo = Foo->new();
my $bar = Bar->new();
}
Run Code Online (Sandbox Code Playgroud)
Foo的BUILD方法正在触发,但Bar的BUILD方法却没有.有任何想法吗?Foo和Bar都继承自Baz,后者继承自Mouse :: Object.
perl ×4
concurrency ×1
cpan ×1
hash ×1
md5 ×1
memcached ×1
module ×1
moose ×1
perl-mouse ×1
svm ×1