expression Questions
10
Solved
I have two expressions of type Expression<Func<T, bool>> and I want to take to OR, AND or NOT of these and get a new expression of the same type
Expression<Func<T, bool>> e...
Air asked 19/1, 2009 at 11:29
5
Solved
I'm trying to use regex to check that the first and last characters in a string are alpha characters between a-z.
I know this matches the first character:
/^[a-z]/i
But how do I then check for ...
Laurasia asked 21/6, 2014 at 11:5
3
Some of the expressions in Server Side Include are no longer working after I upgraded the server from version 2.2 to 2.4, giving me a series of errors:
AH01337: Could not parse expr "$SERVER_NAM...
Jelene asked 14/2, 2013 at 15:19
2
Solved
I have a table with 1 column: 'Status'
I want to add in another column named 'Action', its value will be as follow: if Status = 'Yes' Then Action = 'Go', otherwise, Action = 'Stop'. I used this fo...
Mehala asked 11/10, 2013 at 18:38
4
Solved
I'm trying to search for the maximum number in the series A0001, A0002, A1234, A2351, etc... The problem is that the list I'm searching in also has strings such as AG108939, E092357, AL399, 22-3059...
Erdman asked 4/11, 2013 at 21:42
2
Solved
I'm trying to use the @PreAuthorize annotation for access control. I need to check some custom fields in the details of the authentication object. I have a CustomWebAuthenticationDetails class, whi...
Favored asked 9/6, 2012 at 2:56
8
Solved
I have the following simple code :
int speed1 = (int)(6.2f * 10);
float tmp = 6.2f * 10;
int speed2 = (int)tmp;
speed1 and speed2 should have the same value, but in fact, I have :
speed1 = 61
...
Jetport asked 18/1, 2012 at 14:4
3
Solved
Is there a shorthand for this:
bool b = (x > 0) && (x < 5);
Something like:
bool b = 0 < x < 5;
In C#?
Softball asked 9/6, 2016 at 9:18
6
Solved
I'm new to SSIS and I'm trying to convert a GetDate() to string "DD-MM-YYYY". This is the expression I've built so far:
(DT_WSTR, 8) DAY( GETDATE()) + "-" + (DT_WSTR, 8) (MONTH(GETDATE()) - 1) + "...
Eleven asked 23/5, 2013 at 10:19
5
Solved
I need to generate a SQL string using Azure data flow expression builder, but it won't allow me to add a single quote between my string using Concat function
I need to have a SQL string as below
SE...
Zondra asked 12/11, 2019 at 11:18
1
Solved
C# handles both nested and chained expressions, obviously.
If the nesting and/or chaining is linear then it's evident what order the expressions are evaluated in:
Foo(Bar(Baz().Bop())) can only eva...
Dibru asked 22/4, 2022 at 9:59
4
Solved
I have an expression which I want to parse to get a list of all used parameters.
For example: "X + 5 / (Y - 1)" should give me the following result: X,
Y
I already use NCalc in my project; so...
Phonetician asked 11/4, 2014 at 13:9
1
Solved
Given the following pandas DataFrame -
json_path
Reporting Group
Entity/Grouping
Entity ID
Adjusted Value (Today, No Div, USD)
Adjusted TWR (Current Quarter, No Div, USD)
Adjusted TWR (YTD, No ...
Yamamoto asked 6/3, 2022 at 21:18
4
Solved
In a yaml build, is it possible to set the build name using an expression; it would be advantageous if I could match the release pipeline with the actual build id.
Example:
trigger:
- master
va...
Death asked 17/1, 2020 at 17:50
7
Solved
I'm trying to get a regular expression to replace all the links out of a text string for the value of the link.
A link may look like these:
<a href="http://whatever" id="an_id" rel="a_rel">...
Mina asked 6/2, 2012 at 9:56
1
Is there any difference between those 2 expressions when it comes to checking whether or not we come to the end of the string?
while(str[i] != '\0')
And
while (str[i])
Where str has type char* a...
Limann asked 2/2, 2022 at 8:7
11
Solved
I asked this question earlier, and after thinking about the topic some more, I began to wonder where the seemingly fuzzy boundary between the meanings of the terms "statement" and "e...
Bronchia asked 3/10, 2012 at 6:46
2
Solved
What is the difference between a statement and a expression? How can i know each one is?
Why void transform this:
void function() {
}();
into an expression?
And why this works:
something((so...
Defrost asked 3/10, 2016 at 16:19
3
Solved
What is the difference between an expression and a call?
For instance:
func <- expression(2*x*y + x^2)
funcDx <- D(func, 'x')
Then:
> class(func)
[1] "expression"
> class(funcDx)
[...
Woeful asked 3/12, 2013 at 15:47
3
Solved
I want to add a new column based on a given character vector.
For example, in the example below, I want to add column d defined in expr:
library(magrittr)
data <- tibble::tibble(
a = c(1, 2),
...
Augean asked 23/1, 2022 at 11:48
2
Solved
I want to dynamically build a LINQ query so I can do something like
var list = n.Elements().Where(getQuery("a", "b"));
instead of
var list = n.Elements().Where(e => e.Name =...
Portulaca asked 17/12, 2021 at 20:21
3
Solved
The code I already have is for a bot that receives a mathematical expression and calculates it. Right now I have it doing multiply, divide, subtract and add. The problem though is I want to build s...
Hoenack asked 16/3, 2015 at 9:13
9
Solved
Could someone please clarify something for me. In my ASP.NET MVC 2 app, I've got a BaseViewModel class which includes the following method:
public virtual IDictionary<string, object> GetHtm...
Theocritus asked 11/2, 2011 at 13:5
6
Solved
Please help with me writing a JavaScript Validation for currency/money field.
So please provide any regular expressions if u have :)
Also, for my region, don't need any currency symbols like '$' ...
Research asked 9/2, 2010 at 7:6
7
Solved
I'm trying to validate a query string with regex. Note that I'm not trying to match out the values, but validate its syntax. I'm doing this to practice regex, so I'd appreciate help rather than "us...
Hillhouse asked 30/5, 2014 at 16:33
© 2022 - 2024 — McMap. All rights reserved.