[
https://issues.apache.org/roller/browse/ROL-1747?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14528#action_14528
]
Vaclav Pech commented on ROL-1747:
----------------------------------
I'm also very frustrated with the spam filter. For recent 10 posts I've had
about 15 valid comments rejected, while none real spam comment. So a great deal
of my comments are now the type of "Hey my comment gets rejected by the spam
filter!" comment.
Is there a way to turn the spam filter off altogether? So far it hasn't give me
any good, but delayed a number of great comments and possibly turned some
people away from my blog.
Here are some examples of rejected comments:
"while i can't say i've had a whole lot of love for groovy, i do have
to say that i'm very glad it, and things like it, exist and that smart
people are doing interesting things with it, so we can all try to learn and
advance. so many thanks for thinking groovy thoughts."
"Very interesting metaprogramming use of a callback concept.
It's basically achieving the same as putting both the asynchronous
functionality and the callback together in a single Thread.start, though,
right?
Thread.start{
def result = 'my very long string with very slow
methods'.toUpperCase()
println 'The result, reported asynchronously, is: ' + result
}
On the executor framework, you can make your own special thread type that
internally uses the executor's pooling. Not completely related to the post
but something I wanted to try for kicks:
import java.util.concurrent.*
class PoolThread{
def static executor = Executors.newFixedThreadPool(5)
def static start(Closure c){
executor.execute(c)
}
}
(1..10).each{i->
PoolThread.start{
def result = 'my very long string with very slow
methods'.toUpperCase()
println "$i ${Thread.currentThread().name} The result, reported
async, is: $result"
}
}
Fun post. Thanks."
> Why do my post often get rejected as spam
> -----------------------------------------
>
> Key: ROL-1747
> URL: https://issues.apache.org/roller/browse/ROL-1747
> Project: Roller
> Issue Type: Bug
> Components: Antispam
> Reporter: Peter Lawrey
> Assignee: Roller Unassigned
>
> For example, I have following comment, why does it think it is pam and how
> could I "improve" it?
> {code}
> You can also try
> Thread.currentThread().stop(new CheckedException())
> and
> Unsafe.getUnsafe().throwException(new CheckedException())
> but a agree, the generics version is the ugliest. :)
> If you want scary have a look at the other methods of Unsafe. 8-)
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.