@RoelvanUden Ok, that makes sense. As I understand it you're saying keep an in-memory cache lookup mapping usernames to my DB user objects, caching them as they get authenticated.
I'd like to avoid the database hit to lookup the user for every request. I don't want to use session/cookies etc. as webapi is supposed to be stateless, so my idea was to get the service to send back a json string (encrypted) that contained the properties of my user object. The calling application would send that same json string back. If the web api found that json string in the request's header it would just use that rather than a DB lookup
If I install windows 8 what version(s) of the .NET framework will be installed before any auto-updating?
What about after applying any automatic updates?
If I install windows 8 what version(s) of the .NET framework will be installed before any auto-updating?
What about after applying any automatic updates?
then we're back up to the orignal call to the function which now has a predicate group with the lower expression on the left converted to a different predicate group and added.
so that recursion is working on only a && b. It chooses left first, sees a simple predicate, a which means it can simply add it to the predicate group, it does the same for the right
In your logic to convert a binaryexpression to a predicate group you would first use that same function to convert the left and the right into a predicate group
In your example you have (a && b) || c with the || at the top. What you want to end up with is each time you have an operator you want to create a predicate group, with the left and right as the list of expressions.
My question then is, why do you want to parse it from right to left? It looks like you're trying to create 2 predicate groups, one for the ands and one for the ors to which should be logically equivilent. While that might work in your example case it won't in the general case. Consider (a && b) || (c && d) What would you do then? I think what should happen is that each and and each or should translate into its own predicate group. See the "Multiple Compound Predicates (Predicate Group)" section of your linked article. You'd simply replace BinaryExpression with a predicate group.
Could you look at the tree structure in my answer and know what output you want, knowing nothing of how the expression is written in the first place? (because the code doesn't see how it's written)
Sorry, I don't really follow the general case here. I understand that in this example you want to group the John/Jack tests with the OR operator but I don't understand the general problem you want to solve, are there different rules of operator precedence in your target language for example? Remember that the lambda expression isn't written down, it's a tree structure (as in my answer here). I think what you want is to produce one where && is at the top and Jack and John are on the right with the ||, but I don't know why you want that, or what else you'd want with different inputs.
I definitely think you should have the sizemode as normal, as anything else will complicate things. When you say 'move the y axis' what do you mean? You should be doing a Matrix.Translate(..., ...., Append).
That is definitely making a difference as it's changing where the picture is drawn, which probably changes the rotation. Try changing the sizemode to Normal.
Hi, i am, however i'm pretty busy at the moment, i'll have to look at this tomorrow. I'll alter my program to use your image file, and always rotate around the center of the form.
Translate it by rc.Width / 2 instead of image.width / 2. The key is what i said in my answer: "The way you can get around this is to first translate the image so the point you want to rotate around is on that origin". You know that without any translation the image rotates around the top left. So, to get it to rotate around where the red cross is, you need to move the image so that the red cross would be on the top left. Then you do the rotation. Of course you've also got to move it back. In my program, try removing all matrix lines, adding them in one by one.
Ok, i understand now. Instead of translating by half the image width/height before and after the rotation, translate by the coordinates of the red cross (i.e. half the map window/radar size).