7,707 questions
6
votes
1
answer
191
views
Difference between Expression.Return and Expression.Goto in C# Expression Trees
I'm experimenting with C# Expression Trees and trying to understand the difference between Expression.Return and Expression.Goto. I can’t create an example where Return and Goto behave differently ...
1
vote
3
answers
117
views
execute a set of different commands specified in a list
I have a repeated task that demands executing slightly different sub-parts of commands in each task.
Each task starts the same, but then I have to go into direction A, B, C, D... for each task.
My ...
-2
votes
1
answer
103
views
Expression compiler for .NET [closed]
We have a system with many logic expressions, they're implemented as series of boolean functions operating on variables and the rules are stored as XML. As the XML files are compiled into the assembly ...
0
votes
0
answers
36
views
Android mXparser miscalculation
I'm converting an Xcode app to Android.
Part of the app takes a string mathematical expression and using NSExpression (Xcode) connects and calculates a result.
In Android I've used mXparser, but ...
-1
votes
1
answer
99
views
How do I filter data based on text expressions? [closed]
Now I can read data from a database and can map the data to a case class using a ORM the case class is like following
case class Example(a: Double, b: Double)
And I have a text file and this file ...
1
vote
1
answer
149
views
May compiler infer a function is constexpr? [duplicate]
In the following example, is the compiler allowed to treat foo as constexpr even though it's not explicitly marked with constexpr?
int foo() {
return 42;
}
int main() {
return foo();
}
Note ...
-1
votes
1
answer
63
views
SSIS: Connection may not be configured correctly or you may not have the right permissions on this connection
I have following problem:
I use a variable:
Server=DESKTOP-156DAO6\FILEWATCHERSER;Database=testDb;User ID=florian;Password=test123321;TrustServerCertificate=true;Trusted_Connection=False
for ...
0
votes
0
answers
85
views
How to convert a Func to an expression? [duplicate]
I have the following:
public Func<MyObj, bool> GetFilter(Status status) => status switch
{
Status.Active => x => x.Status == Status.Active && x.ValidFrom <= DateTime....
5
votes
1
answer
133
views
What is the difference between bar.int and bar.getInt() in Spring Expression Language (SpEL)?
I'm working with Spring Expression Language (SpEL) and noticed that expressions like @bar.int and @bar.getInt() both seem to access values from a Spring bean.
What is the actual difference between ...
0
votes
1
answer
74
views
Azure Data Factory how to conditionally update cell based on condition of another cell in ADF (something like 'if(cell>x, cell*y, cell'?)
I am relatively new to the ADF, I am trying to achieve following:
Have csv file:
price
new price
102
91
1145
I need to apply to both "new price" cells following function:
if(A2>1000, A2*1....
0
votes
2
answers
26
views
Multiple IIF statements for the value
I'm working on a report for attendance and building a report for administration that shows students at Risk based on percentage.Want to change the percentage color based on the value for quicker ...
1
vote
1
answer
119
views
Since Kotlin is a statically typed language, why can I implement an if/else returning different types to a variable?
This question arose while I was experimenting with Kotlin's static typing feature. The scenario is as follows: I wrote a piece of code containing an if/else expression that returns a value to a ...
0
votes
1
answer
76
views
Logic App Boolean Expression True not true
I have a Logic App expression that evaluates the condition correctly, but outputs True instead of true.
A subsequent POST HTTP action fails as the JSON payload that contains this value cannot parse ...
0
votes
0
answers
55
views
Spotfire - How to Use Custom Expression to Pull Prior Quarter Data
I have a Spotfire analysis built that was working for 2024 data, but is no longer working now that it is 2025.
Here is an example - this expression was built to pull volumes for both the previous 3 ...
1
vote
0
answers
43
views
Syntax terminology for a chain of identifiers separated by dots, like in namespace a.b.c
I've been working on designing my own (C#-like) strongly typed programming language and writing a bootstrapping compiler for it, but I'm struggling with an issue of terminology. I've got BNF ...
2
votes
2
answers
66
views
What's going on with the chaining in Python's string membership tests? [duplicate]
I just realized I had a typo in my membership test and was worried this bug had been causing issues for a while. However, the code had behaved just as expected. Example:
"test" in "...
1
vote
0
answers
165
views
Implementing a dynamic $search using OData in ASP.net
I am trying to implement search algorhytm using OData. Ideally I want to take the user query, compare it to every string or GUID and give each entry a score, then sort the results and return them. (...
0
votes
1
answer
244
views
Discarded-value expression and odr-used in C++20
Consider the following example:
#include <iostream>
using namespace std;
int main() {
int n=1;
[]()
{
n;// (1): error
}...
0
votes
2
answers
121
views
Why does the expression 'x != 0 || x != 1' with x = 0 evaluates as if x != 0? [duplicate]
I was trying to reproduce the logic NOT gate in c as a practice, but ran into an issue I do not understand.
To make sure to have only 0 or 1 as intake, I evaluate the value of an int variable called '...
0
votes
1
answer
63
views
extracting clustered genes from heatmap [closed]
It might be a stupid question. But is there any way to extract set of genes clustered together in each group? I have expression data file but I want to do gene ontology separately for each disease ...
3
votes
0
answers
64
views
Latex formulas common parts detector
I have a task to make an anti-plagiarism of formulas. It is necessary for it to highlight similar places in two formulas (example in the photo). But there is a problem, after I found these similar ...
0
votes
1
answer
59
views
Extract a strongly typed expression from a function expression body
I'm trying to write a "relaxed" comparison method which operates on Expressions and is used in Entity Framework. It consists of a chain of Replace() calls and ToLower() to perform an inexact ...
1
vote
2
answers
104
views
How to Display LaTeX-style Expressions in R Plot Titles Using expression()
I am working on a simulation study in R where I am plotting bias and variance curves for different estimators. I want the titles of the subplots to include properly formatted mathematical expressions, ...
1
vote
1
answer
117
views
Side effects and undefined behaviour when references are used in a function
We all know that the expression i++ + i++ is undefined behavior. But is it also UB, if the side effects happen on a reference in the function body? For example :
int f(int& i) { // pass by ...
1
vote
1
answer
91
views
F = 56 - X / (Y * 17) in Assembly Emu8086
I'm trying to solve this expression
F = 56 - X / (Y * 17)
in Assembly (Emu8086)
X, Y are variables.
I'm a complete beginner and I have done this (but probably not correct):
Mov bx, 56 ; BХ = 56 ...