11,781 questions
0
votes
0
answers
65
views
Apache HOP PostgreSQL Bulk Loader Boolean Bug?
I am experimenting with Apache HOP to become the successor of the (dead end) SSIS ETL platform. I am very impressed with the quality and the performance of Apache HOP so far.
I am trying to load data ...
0
votes
1
answer
64
views
Error in OPENMODELICA: INTEGER_ATTRIBUTE' has no member named 'nominal'
I have created a modelica package with dymola with opensource libraries. the models in the package are compiled and simulated in Dymola perfectly but when I try to simulate them in openmodelica, the ...
0
votes
1
answer
46
views
How to set up a hook in Wix data for a column that has been set to Boolean using Velo?
I am trying to help my church set up a lending library. I have a wix dataset that shows the "Book Name" and the "Author". These are text fields. I have column that I would like to ...
1
vote
1
answer
98
views
Error in passing by reference a 1D array of booleans in c++
I am trying to create a program that is capable of randomly generating a grapgh (matrix representation) and then understand if it is connected or not. To do so, I need to pass to the is_connected ...
3
votes
1
answer
99
views
Best practice to validate a boolean array in PowerShell
I wanted to know what would be the best practice and quickest way to validate a boolean array in PowerShell to see if it's all true respectively all false.
My own approach looks like this:
$boolArray =...
0
votes
2
answers
158
views
How to check if literal pathspecs are set in git?
Is there any reliable way to check if Git literal pathspecs are enabled in a shell script?
This option can be set either by assigning a boolean value to the variable GIT_LITERAL_PATHSPECS or by ...
5
votes
2
answers
367
views
Is static_cast<bool> guaranteed to send a value to 0 or 1?
I am trying to investigate an issue where a database driver expect a certain uint8_t member in a struct to contain 0 or 1.
In the code, this value is assigned via static_cast<bool>(...). I ...
0
votes
0
answers
50
views
Why is PropertyInfo returning this weird type name (nullable boolean within a class)? [duplicate]
I ran the following code:
String s = String.Empty;
bool abool = false;
bool? nbool = false;
BoolsClass bc = new BoolsClass();
bc.classbool = false;
bc.classnbool = false;
s += $"The type of ...
2
votes
1
answer
92
views
google sheets array formula for boolean logic based on duplicate numbers per cell
I have a column A that looks like:
11
11 11
5 6
5 5
5 6 6 5
11 11 11 11
6 7 8
3
3 2 3
and seeking for an alternative-smarter way how to output TRUE/FALSE as shown here:
desired result
11
TRUE
FALSE
...
2
votes
3
answers
82
views
boolean indexing using .isin simply returns the series it is indexing, not the values it's supposed to
here's the dataset and the problem I'm working with
import numpy as np
import pandas as pd
couples = pd.DataFrame({
'man': [
['fishing', 'biking', 'reading'],
['hunting', 'mudding'...
0
votes
1
answer
104
views
How can I assign a varible to an output in java? [closed]
Im rather new to java and I love Boolean logic, so I've been trying to make a functional AND gate with the output tied to a variable and am completely lost. This is what I have.
public class Main {
...
2
votes
2
answers
69
views
Pandas convert string column to bool but convert typos to false
I have an application that takes an input spreadsheet filled in by the user. I'm trying to bug fix, and I've just noticed that in one True/False column, they've written FLASE instead of FALSE. I'm ...
0
votes
0
answers
50
views
my C# code to create new password isn't working [duplicate]
I'm trying to make a code that create a password that's longer than 8 and contains at least one symbol, but when I run that code It keep looping in the symbols condition even if the password contains ...
1
vote
1
answer
410
views
bool and boolean Dtype in Pandas
What is the rationale between bool and boolean Dtype in Pandas?
import pandas as pd
import numpy as np
df1 = pd.DataFrame({'col1': [True, False, False]}, dtype='bool')
print(df1)
print(df1.info())
...
0
votes
1
answer
95
views
Why can the $state rune not handle a boolean condition ($effect needed)
I am a bit confused as to why the $state rune cannot handle a boolean condition. Why is that something that requires a separate rune, in this case $effect? In the Svelte documentation, they put an ...
0
votes
0
answers
92
views
Using 2x4 active decoder and a NOR gate design a XOR gate
I am trying to create a a XOR gate. only from 2x4 and NOR Gates. however I am stuck. Please draw the diagram or give image of this.
0
votes
2
answers
43
views
Global matrix doesn't return the right value when read
I'm trying to make a game of life in java using a matrix of booleans, but when i try to read all the neighboors of one one point the return of the position nearby is always false for some reason... ...
0
votes
1
answer
67
views
How do i make an onTap toggle Icon to switch between two 'username' and 'Anonymous on Flutter?
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 ...
0
votes
0
answers
55
views
Referencing another function and weird booleans in javascript for rpgmaker MZ
I'm learning Javascript by using it in the context I want it for, rpg maker MZ, to slightly override it's error handling. It would essentially tell the engine to more or less skip playing the missing ...
0
votes
1
answer
104
views
How to change a bool from true to false using an if statement that has user input as its condition?
Header file:
#include <iostream>
#include <string>
std::string correctText = "\nCorrect! +";
std::string incorrectText = "False!\n";
std::string answer = "paris&...
1
vote
1
answer
99
views
why is (2>3 == False) False and ((2>3) == False) True [duplicate]
I tried
print (2>3 == False)
with result
False
and
print ((2>3) == False)
with result
True
precedence is equal. so evaluate from left to right , assignment from right to left.
maybe it's a ...
0
votes
2
answers
71
views
VBA Triggering IF-Statement containing Left()
I'm trying to dynamically concat 2 cells together under particular circumstances and I'm having trouble getting any of my formula changes to trigger. If column A reads "Yes" and the ...
0
votes
1
answer
52
views
jq select condition with nested field
I have the following json string below which I would like to select the proxied field.
I've used:
.result[] | select(.proxied=="false") but that results in "no output"
It seems to ...
0
votes
1
answer
43
views
Python -I am adding to list as long as sum of list is less than 17. the while loop works except when sum is between 12 & 16. I dont know why
I am writing a simple version of the Black Jack app. Everything works to the point where I check if computer/dealer has <=16. Here is an image of it working:
enter image description here
Once the ...
0
votes
2
answers
64
views
How can I use a button name to change a boolean value in the script?
Little disclaimer: I haven't posted on here before so please let me know if I'm missing any vital information
I'm making an order taking system for a game in Unity. This system has several size ...