Skip to main content
Advice
1 vote
6 replies
173 views

This is probably a very basic question but I am having trouble wrapping my head around it. I've been using Brilliant to study software engineering concepts. Here are screenshots of the concept I am ...
devinryback's user avatar
Advice
0 votes
6 replies
79 views

I'm investigating how Bash parsing works. Let's assume that all lower-case letters here represent scripts that always return a successful exit status - 0. The contents of all scripts are identical. ...
elo2cx's user avatar
  • 33
4 votes
2 answers
129 views

I need to model a system of several boolean expressions in 512 variables. Due to the number of variables, I found the expressions are way too large to handle normally, which is why I need a way to ...
Noemi's user avatar
  • 41
1 vote
1 answer
133 views

I'm working with a Pandas DataFrame where I need to track a boolean flag (in_position) that becomes True after an entry_signal and resets to False only after an exit_signal. This must be done ...
Victor Hanukayev's user avatar
5 votes
2 answers
256 views

This statement mimics a ternary operator in the Lua programing language: local result = condition and true_value or false_value But how does it work? Why does it give true_value if the condition is ...
0747's user avatar
  • 55
1 vote
2 answers
125 views

So I am a beginner at javascript and learnt that there are only a limited falsy values: false, 0, -0, BigInt 0n, “”, null, undefined, NaN Yet when I use the == operator with truthy values, this ...
applepie's user avatar
4 votes
2 answers
599 views

How can I check if all values of a polars DataFrame, containing only boolean columns, are True? Example df: df = pl.DataFrame({"a": [True, True, None], "b": [...
mouwsy's user avatar
  • 2,127
0 votes
1 answer
63 views

I am trying to combine OR conditions with AND over multiple columns in my Excel datasheet and would like advice on how to do this. A sample table is shown below. The formula does not calculate the two ...
sjedi's user avatar
  • 97
0 votes
1 answer
46 views

I am trying to set up an Excel conditional formula with both AND and OR criteria. However, the last 2 criteria OR(Table1[Col5]=$J$4,Table1[Col5]=$K$4) and OR(Table1[Col6]=Pivot!$J$5,Table1[Col6]=Pivot!...
sjedi's user avatar
  • 97
1 vote
0 answers
51 views

I'm using fabric JS free drawing mode to generate a bunch of hand-drawn SVGs. I then composite these onto a canvas. I convert them to a bitmap Image for rendering so that I can easily union all of the ...
David Ferris's user avatar
  • 2,365
0 votes
0 answers
66 views

I am developing an Azure DevOps custom task. Part of the setting of the inputs is a VisibleRule which can contain a condition which will determine if the input will be visible, if the condition is ...
CodeMonkey's user avatar
  • 12.7k
9 votes
0 answers
331 views

I am given a Boolean expression of arbitrary depth, like (A or (B and (C or (~D and E) or F) or (G and H))). There can be any number of terms at each level. I want to limit the depth of the ...
Matt Timmermans's user avatar
-2 votes
1 answer
164 views

I'm updating somebody else's code. They did the following : bool a(); bool b(); a() || b() || std::clog << "whine about something" << std::endl; I'm replacing the std::clog bit ...
Gregorio Litenstein's user avatar
0 votes
1 answer
85 views

I am making a Charity App project, and I am struggling to figure out how to have an anonymous button before someone submits their donation. I want the anonymous option to display before someone ...
beansaregood's user avatar
0 votes
1 answer
73 views

I was given a truth table of four variables, let's call them A,B,C,D. I found every instance where the truth table was true and turned it into a function: F = (-A^-B^-C^-D) v (-A^-B^-C^ D) v (-A^-B^ C^...
Scorch's user avatar
  • 29

15 30 50 per page
1
2 3 4 5
129