8,202 questions
1
vote
2
answers
80
views
Comparing multiple flags at once
I have a script which checks the value of a series of flags before deciding on an execution pathway. Because of the way the script executes, the flag values are held as script properties, therefore ...
0
votes
3
answers
90
views
How Do Sets and Set Comparisons Work in Python? [duplicate]
I'm learning Python coming from some beginner-level experience with Java. It all makes sense for the most part, but one of the exercises kind of made me wonder what actually happens within Python.
...
0
votes
0
answers
49
views
EXCEL - Comparing multiple dates against a single date value for highlighting
I'm trying to use conditional formatting to compare the date output from multiple cells and columns against one date value.
The condition works but in an undesired state. The condition evaluates ...
0
votes
2
answers
60
views
SQL row-wise comparison within group
I am trying to compute the number of events that take place within 30 minutes of one another (variable n_within_30) on the same date and in the same location.
I have tried to partition and group by ...
3
votes
1
answer
105
views
Is it defined behaviour to compare two null pointers for order
I have implemented begin and end functions for MFC containers. The iterators are pointers to the internal data and may be null pointers for an empty container. What happens if both are null pointers ...
1
vote
0
answers
37
views
max() output depends on order when nan is present [duplicate]
I am puzzled by this behaviour of Python's max() function:
>>> a = 100
>>> n = float("nan")
>>> a
100
>>> n
nan
>>> max(a, n)
100
>>> ...
1
vote
3
answers
72
views
How to filter array of objects with filter with dynamic properties count?
I have an array of objects with some bool and int properties:
let employees = [
{ isSkilled: false, isLeader: false, departmentHeadType: 0 },
{ isSkilled: true, isLeader: false, departmentHeadType:...
0
votes
1
answer
130
views
How to compare table structure between two different environments without using db links and not having central repository in an automated manner
How to compare table/columns/index/constraints structure across two different environments in oracle without using db link and not having central repository where data files can be stored.
We cannot ...
7
votes
1
answer
296
views
Is it possible to define a defaulted comparison operator for a C struct?
I want to use a C struct (termios) in my C++20 program, but I want to be able to compare 2 termios instances.
As there is no default comparison, I tried to define a default comparison operator:
bool ...
-2
votes
2
answers
86
views
PostgreSQL comparisons [duplicate]
I am confused why here the result is TRUE
select 'Clark' in ('Dave', null, 'Clark');
But here it's NULL (instead of evaluating to TRUE)
select 'Ava' not in ('Dave', null, 'Clark');
Can somebody ...
2
votes
2
answers
196
views
C++ double type: is comparison by == valid if comparing against the previously set value
What I mean is: I have a situation that I have two fields in the structure of type double, where both may be set there through some evaluation, but in some situations the second of them can be equal ...
0
votes
1
answer
196
views
Looker - How to Compare today data with last week data but including hours
I need to find out how to compare today data with last week data in lookerstudio.
Example:
Today 01/11/2024 16.00 PM # of order is 2255
Last week 25/10/2024 16.00 PM # of order is 2190
I need to ...
-1
votes
1
answer
210
views
Why my c++ code is slower than python code doing same thing?
I'm new to the programming. I've tried to make 3 scripts in Python, c++ and Matlab that would calculate Voltage over Inductor in RL circuit using matrices and finite difference method.
When i ran ...
0
votes
1
answer
428
views
How I can compare two AWS S3-Buckets, to generate some comparison report
I am having AWS S3 buckets with version enabled.
For each object
Object Key
VersionId , Last Modified , size
Is there any Service available to achieve this report whether data from S3 buckets having ...
0
votes
2
answers
87
views
How do I check if multiple returned class objects have the same value for comparison and edit only one, while keeping both for addition later
I'm currently creating a blackjack card game using OOP and the blessed library. As it stands I create the card objects which return a class object to me:
player_card_data = [<blackjack.card.Card ...
0
votes
0
answers
100
views
Why does my powershell runspace not increase performance?
so basically, i am looking at doing a comparison between accounts we have in Active Directory and a csv which lists all active accounts (~15000 lines). This process would be ran weekly.
The issue that ...
0
votes
1
answer
81
views
(the letter) k is the same as f for some reason [closed]
input is a string and well...when input[0] is 'k', its apparently the same as 'f'? like clearly it should be false and not output "f detected" right? k seems to have a value of 107 and f ...
0
votes
1
answer
54
views
element-wise comparison (-1/0/1) of collections/IEnumerables, not using default element comparison [closed]
Is there some built-in for comparing collections/IEnumerables element-wise with the possibility to choose comparison for the elements (in case one does not want the default comparison)?
I am not ...
0
votes
1
answer
65
views
PySpark DataFrame - Compare multiple Dataframes' Columns with Serial Number Suffix
I am trying to solve a problem but not getting anywhere. Needed help from community.
I can join n number of data frames (all joined dataframes are having same schema). While joining I renamed the ...
1
vote
1
answer
105
views
C# - How to compare multiple nullable values to check if those that have value are equal?
What is the easiest way to check multiple nullable values, to know if those that are not null are equal?
double? a = null
double? b = 2;
double? c = 3.5;
should return false
double? a = 2.5
double? b ...
0
votes
1
answer
72
views
Applescript for batch pairwise comparison of word files
I have a similar situation. I need to perform a large number of pairwise track change comparisons of word files, and the comparison must be done in Word.
I used applescript to perform this, but I'm ...
1
vote
3
answers
56
views
R: Find all variables with non-dominated means and variances FAST
I have a set of many random variables, each with a mean and standard deviation. I want to find all variables that are or are not dominated, i.e., that have the highest mean for their standard ...
0
votes
1
answer
145
views
Beyond Compare - XML Comparison Issue
I created the below script that is triggered by a separate Python script. This will be a text comparison of 2 XML files.
log normal "C:\Temp\XML_Comparisons\XML_Files_Storage\BCLog.txt"
...
-1
votes
2
answers
1k
views
Pandas alignment error during elementwise comparison [duplicate]
When checking element-wise equality of multiple columns of a dataframe against a single column, pandas raises a ValueError: Operands are not aligned. Do 'left, right = left.align(right, axis=1, copy=...
1
vote
2
answers
414
views
Efficiently check for equality of memory blocks in C/C++
I'm interested in the most efficient way to check for equality of memory blocks.
Currently, I use memcmp(...) == 0 to determine if two memory blocks are equal. While this works, memcmp is designed not ...