Questions tagged [rules]
This tag is very broad, try being more specific by using tags relevant to your problem. Examples are "rule-engine" for rules engines, "url-rewriting"/"mod-rewrite" for rewrite rules or "form-validation" for validation rules. See the full wiki article for a more complete list.
rules
2,248
questions
0
votes
1
answer
782
views
nftables.conf with set and rules
On Debian bookworm I run successfully nftables from file /etc/nftables.conf. Its skeleton basically looks like:
#!/sbin/nft -f
flush ruleset
counter CNT_WHITE_LISTED_COUNTRIES{}
counter ...
0
votes
0
answers
41
views
keep a rule and be able to update it for a given start date in the database
I am looking to update a rule in a database for a given date. The current rule should not be modified because it is used by the system. However, I must be able to update it for a given date.
The idea ...
1
vote
0
answers
203
views
Rector PHP: What rule can I use to remove a function call?
I have code like this:
$x = (int) trim(fuzzy_logic(floor($x1 / $x2)));
$t = fuzzy_logic([$title,$desc]);
$z = trim(fuzzy_logic($z));
$i = fuzzy_logic($i);
The function fuzzy_logic() have been ...
0
votes
0
answers
94
views
Can Jira Software's built-in automations add the corresponding calendar quarter to issues based on the created date?
My problem: my automation attempt to add values for a custom field based on the issues' created date with a scheduled IF-ELSE component isn't quite good enough yet. It updated far too many issues. (...
0
votes
0
answers
89
views
Predefined variable in include:rules condition matching in GitLab CI is not working
When I try to include files depending on branch the condition is always ignored.
Following Use rules with include by GitLab my include section is as below where I am trying to add .gitlab-$...
0
votes
0
answers
92
views
bash script in udev rule is taking longer time, normal in terminal will run quickly und success
in my case i have no idea what goes wrong.
i have a custom udev.rule
/etc/udev/rules.d/99-printer.rules
ACTION=="add", SUBSYSTEM=="usb", RUN+="/usr/local/bin/reg_printer.sh&...
0
votes
0
answers
48
views
The error "arrays.h: not such file or directory" using Borgelt's Apriori
I'm using the Borgelt's code of Apriori, with the Cgwin toolchain in Eclipse and Windows 11. But when I want to build the project, it returns the following error: "arrays.h: not such file or ...
1
vote
2
answers
229
views
CloudFlare WAF Custom Rule Issue
I am using the CloudFlare WAF Custom Rule:
(ip.geoip.country ne "US")
with action set to Block.
This works great on the first domain I set it up on but doesn't work on any other domain. All ...
0
votes
0
answers
81
views
Azure DevOps Making Work Item Field Required when Iteration is changed
I am looking to setup a condition in Azure DevOps, where if a specific work item type has a change to the iteration after creation, one of the fields in the Details tab is required. Currently I am ...
0
votes
0
answers
152
views
Execution default-build of goal org.kie:kie-maven-plugin:8.44.0.Final:build failed
I'm trying to build my drool project ( 8.44.0.Final and jdk-11.0.18.10-hotspot) its getting failed .When i try to in eclipse its working fine . But When build its throwing error. I have enabled the ...
0
votes
0
answers
21
views
Append remote IP in a rewrite rule
i would like to retrieve in a querystring, the remote ip via a simple rewrite rule, is it possible ?
thanks in advance
here is the sample
RewriteCond Host: www.host.com
RewriteRule (.*)/test.html $1/...
0
votes
0
answers
102
views
REPLAY attack detection/ STATEFUL inspection possible with SNORT?
I want to write SNORT rules which can only be triggered (second rule) after a certain rule (first rule) was triggered previously.
Additionally, the second rule should then start sniffing for ...
0
votes
1
answer
129
views
How to serialize kiebase in drools-engine 8.43.0.Final
Since the SessionsAwareKnowledgeBase implements KieBase which can't be serializable.
Usecase: Need to serialize the kiebase and store into the cache (redis). At runtime i have to deserialize the ...
0
votes
0
answers
24
views
Can I check file existence using PMD rules?
I want to check if files existence using PMD rules, such as (gitignore, version, readme, . . . ) files.
What is the recommended way to do so?
I searched for the java rules and xpath rules in pmd but I ...
0
votes
1
answer
202
views
Inbox Rule "on this computer only" that runs a macro fails periodically
I have an Inbox rule that runs when a message arrives "on this computer only" which executes a macro.
The macro extracts the domain from the sender's email address. It also overrides the ...