rule

Recurrence rule definition (RFC2445) question

Hi, I'm using Google's RFC2445 implementation (http://code.google.com/p/google-rfc-2445/) for recurrence rules. If I define a MONTHLY recurrence starting on the 30th of January, months with less than 30 days (i.e., February) will be totally skipped. So the Google API would return 30th Jan, 30th March, 30th April, etc. Not good. I would ...

Writing conditional rule using jQuery validation

Hi I have a simple modal popup which has 3 name fields and 3 e mail fields adjacent to each other. I am new to jQuery so can any one please help me how to write a logic for the following case? The first name field and Email field are mandatory so I kept the class as required fields but the other two name and e-mail fields are optional b...

Rewrite rule cookie problem in apache

Im using a mod_rewrite rewrite rule in apache to get access to a tomcat application. This applications is using session cookies. The application cookies works fine when accessing the tomcat application directly, but if I use the apache url, the cookie will not be sent out by the client browser. I guess this is because there is no match ...

Nginx rewrite rule: check for nonexistant files and folders

I'm trying to set-up nginx rewrite rules as the following: Original structure: domain.com/index.php?site=project Now I tried to mask it using the nginx rewrite engine: if (-f $request_filename) { break; } if (!-f $request_filename) { rewrite ^/(.+)$ /index.php?site=$1 last; break; } How do ...

What does this Rewrite rule mean?

Im installing phpancake, there is a folder there shema like this application/ install/ library/ public/ sql_schema/ install.html install.php What does this rule mean? RewriteEngine On RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRu...

SOAP Message size it greater than allowed limit [SECURITY.MSGSIZE v 1.0]? How?

I'm trying to help a colleague run SOATest (a web services client that makes testing SOAP services easy) on a WCF web service operation, and for "big" responses, we are seeing this error: SOAP Message size it greater than allowed limit [SECURITY.MSGSIZE v 1.0] This is perplexing, as the tool is actually able to get a response from the...

Open Source Rule Engine Written in Java

Hi, I am working on an AI related application. For this application I need to have a rule engine. Jess is a good rule engine completely written in Java. But for my application I can’t use it due to license restrictions. Can somebody tell me an open source rule engine written in Java? ...

Accept a yacc-rule from an action.

Is it possible to accept a bison-rule from the action in combination with the %glr-parser directive active? Something like the following: aRule : 'a' 'b' 'c' { /* Do some calculations and depending on those you allow/disallow this rule and continue the parsing without returning from the yyparse function. */ } ; ...

LaTeX \rule filling the line

Why does the following command not produce a horizontal rule filling the space until the end of the line? Hello \rule[0.5em]{\fill}{1pt} It is my understanding that this should print the text “Hello” followed by a horizontal rule that extends until the end of the line, analogously to the macro \hfill which is effectively equivalent to...

what does an * (star) mean in front of a CSS rule?

I'm new to CSS and am using the Yahoo YUI libraries in a project. I am learning as fast as possible, but apologize in advance if this is too rookie of a question. Can anyone help me understand the following CSS that I came across in the layout manager CSS: I have been unable to figure out what the * (star) does to the rules (styles) in ...

How to implement a Pricing Model in Java EE - via a Rule Engine?

Hi! I'm developing a Java EE 6 application where "providers" should be able to define a price and different discounts on a service for users. There are many different providers. Each one provides the same service, the pricing models can be different. Price Model: - A provider should be able to define the price e.g. per hour, per minute...

JUnit Rule TemporaryFolder

I'm creating a TemporaryFolder using the @Rule annotation in JUnit 4.7. I've tried to create a new folder that is a child of the temp folder using tempFolder.newFolder("someFolder") in the @Before (setup) method of my test. It seems as though the temporary folder gets initialized after the setup method runs, meaning I can't use the tempo...

mod_rewrite rule to work with get method

I'm using this rule: RewriteRule ^(.*)$ public/$1 [L] and in public folder I use: $url = $_GET['url']; when I try to acess something on url using slash or it works fine and I get: /cities/display/45 => Array ( [0] => cities [1] => display [2] => 45) But when I try to submit a form, i'm not able to acces the data: /...

Outlook rule to run VBA script that runs external program

I've set up an Outlook rule that filters for the emails I care about. The action I want to take is to run an external program (python script) to parse each such email. Can someone advise on how to do this? I know of the SHELL function, but I need a way to pass the body of the email to my external program. I have zero experience with ...

Apache Rewrite rule confusion

I'm trying to convert a simple url (below) in to a blog-style url, but not quite sure how to do it, all of my other rules are working fine, but I can't seem to figure this one out. URL I want to convert: http://www.website.com/myblog.php?id=1&title=My+blog+title URL I want it to create: http://www.website.com/1/my-blog-title What ...

Simplifying a four-dimensional rule table in Matlab: addressing rows and columns of each dimension

Hi all. I'm currently trying to automatically generate a set of fuzzy rules for a set of observations which contain four values for each observation, where each observation will correspond to a state (a good example is with Fisher's Iris Data). In Matlab I am creating a four dimensional rule table where a single cell (a,b,c,d) will con...

JUnit @Rule to pass parameter to test

I'd like to create @Rule to be able to do something like this @Test public void testValidationDefault(int i) throws Throwable {..} Where i is parameter passed to the test by @Rule. However I do get java.lang.Exception: Method testValidationDefault should have no parameters is there any way to bypass it and set the i parameter in t...

Custom Rule Editor for .Net

I am working with windows workflow in VS 2008. I need a condition builder to set my rules. The Rule Editor provided by microsoft in WF is good , but we need a simple editor which can be customized. Is there any open source Custom Rule Editor is available for .net ? ...

checkstyle rule for jcip annotations

Hi, I want a rule that checks that fields and classes are properly annotated with the java concurrency in practice annotations provided by: http://mvnrepository.com/artifact/net.jcip/jcip-annotations Fields have to be annotated with @GuardedBy and classes have to be annotated with one of @Immutable, @ThreadSafe or @NotThreadSafe. I h...

URL Rewriting-Page display - rewrite rule in .htaccess

For URL Rewriting, i have got the output for static URL But , for dynamic URL , i am getting partial output only. I have placed the .htaccess file in the root directory only. Here is the code: Options +FollowSymLinks RewriteEngine on RewriteRule ^booking/price/([0-9]+)/?$ booking.php?price=$1 What will be the solution ? ...