Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
66 views

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 ...
Michael's user avatar
  • 223
2 votes
1 answer
72 views

A student was trying to write a simple script to determine if a string possibly constituted an email address. It looked something like this: text = input("Enter a string") if ("@" ...
Zach Kindt's user avatar
0 votes
1 answer
65 views

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 ...
bbz's user avatar
  • 3
1 vote
0 answers
81 views

In writing some error-checking code for an R function, I was adding boolean values and I came across something counterintuitive. I know that when doing arithmetic with booleans, FALSE is treated as 0 ...
Dagremu's user avatar
  • 491
0 votes
1 answer
46 views

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 ...
Barney Joseph's user avatar
1 vote
1 answer
89 views

I'm getting really really inconsistent results, and I can't tell why. Here is the most obvious example: Two queries: select * from my_table where invitation_deleted = true -- returns 118 results ...
matty-d's user avatar
  • 2,669
1 vote
1 answer
98 views

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 ...
Giulia's user avatar
  • 21
-2 votes
4 answers
117 views

My code is something like aList = ['apple', 'banana', 'cherry'] anotherList = ['orange', 'apple', 'blueberry'] adifferentList = ['strawberry', 'pear', 'peach'] aSet = [aList, anotherList, ...
SnazzyPete's user avatar
3 votes
1 answer
101 views

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 =...
burnie's user avatar
  • 339
2 votes
3 answers
94 views

Have a next task Create a function that always returns True/true for every item in a given list. However, if an element is the word 'flick', switch to always returning the opposite boolean value. ...
Follow Magnus's user avatar
0 votes
2 answers
158 views

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 ...
Piotr Siupa's user avatar
  • 5,169
4 votes
1 answer
167 views

May one convert a char with the value not \0 and not \1 into bool using std::bit_cast? And if yes, what will the value of the resulting bool: true or false? For example, #include <bit> ...
Fedor's user avatar
  • 24.7k
5 votes
2 answers
370 views

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 ...
Chuu's user avatar
  • 4,601
-2 votes
1 answer
118 views

I wrote a function that checks if every character on a given string is also present in an arbitrary list. The code works for most cases, but when the input is an empty string, the built-in function ...
Luiz Gabriel's user avatar
0 votes
0 answers
50 views

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 ...
Plaje's user avatar
  • 174
0 votes
1 answer
105 views

I am trying to build an APK in android studio with flutter and gradle. I received the following errors and I am not sure how to resolve them. I got stuck in a loop changing the output formatting, ...
Zaria Rambo's user avatar
2 votes
1 answer
92 views

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 ...
ulrichson's user avatar
0 votes
0 answers
87 views

I am struggling to fix the error called "TypeError: 'bool' object does not support the context manager protocol from button action called action_confirm in newly created module at odoo inventory ...
Dave Max's user avatar
2 votes
3 answers
82 views

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'...
katjacodes's user avatar
-1 votes
2 answers
141 views

This is in the context of a Python API. I have a column where the value can be either True, False or Null, lets call it is_impounded. The Null "value" is when it is unknown whether it is ...
Andrew Lovato's user avatar
0 votes
1 answer
104 views

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 { ...
asiha Shirka's user avatar
1 vote
3 answers
146 views

I have an issue whereby a query called via Invoke-SQLCmd returns a certain set of results. For some columns the value is a 0 or 1 of BIT data type. The results instead come back as False or True in ...
Rami Aboulissane's user avatar
2 votes
2 answers
69 views

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 ...
Emi OB's user avatar
  • 3,395
0 votes
1 answer
40 views

I have a simple class Date with a few functions. One of them is SetMonthAndYear. I export this class with module.export to make it accessible for other classes: class MyDateClass { currentMonth = ...
Quispie's user avatar
  • 1,051
0 votes
0 answers
50 views

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 ...
Just A Clasher's user avatar
0 votes
0 answers
58 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.6k
1 vote
1 answer
424 views

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()) ...
gracenz's user avatar
  • 147
-1 votes
3 answers
131 views

I need help with my mathematical formula in python. I want to fix it because it's returning -1 for some values and it's not properly returning 0 and 1 when n is the right number. All I'm trying to do ...
RuthChris's user avatar
0 votes
1 answer
96 views

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 ...
Philipp's user avatar
  • 52
2 votes
2 answers
83 views

const toBool = [() => true, () => false] The above line is used in this MDN guide to (seemingly) evaluate the output from Node's fs.promises.access method as a boolean. The snippet in question ...
pepperdan's user avatar
1 vote
1 answer
44 views

Let's assume that we have following definition of Equal type: type Equal<X, Y> = (X extends Y ? (Y extends X ? true : false) : false); Using that definition, we can create other types: type ...
proxeld's user avatar
  • 123
0 votes
2 answers
43 views

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... ...
João Pedro Lopes Campos's user avatar
0 votes
0 answers
82 views

Consider the following code: class Solution { public: bool canPartition(vector<int>& nums) { int n = nums.size(); int sum = 0; for (const auto &x: nums) sum +=...
Jalaj Kumar's user avatar
0 votes
1 answer
67 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
82 views

After trying to migrate my database from Oracle to Postgres Liquibase has problems setting the lock because the LOCKED column got converted from NUMBER(1) to int4 and the update statement is using ...
Jonas's user avatar
  • 868
0 votes
0 answers
58 views

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 ...
FlamingTeddy's user avatar
2 votes
3 answers
257 views

I have a comma-delimited list of words in a single spreadsheet cell, such as this: hello, True, Franklin, true, goodbye The SPLIT() function extracts each word into its own cell. Except that it ...
Anton's user avatar
  • 3,399
0 votes
1 answer
104 views

Header file: #include <iostream> #include <string> std::string correctText = "\nCorrect! +"; std::string incorrectText = "False!\n"; std::string answer = "paris&...
Ren's user avatar
  • 53
0 votes
1 answer
56 views

Problem I have valid_data (1D np.array with nonzero values) and mask (boolean 1D np.array), which are not of the same size. The mask contains the wanted positions of the valid_data in a new np.array ...
niconil's user avatar
1 vote
1 answer
99 views

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 ...
V. E.'s user avatar
  • 51
1 vote
1 answer
238 views

I could've sworn df = pd.get_dummies(df, columns=categorical_cols) used to output binary values (0 and 1). It even says it when I hover over get_dummies. Buy why my output Boolean (True/False)? Here ...
Mr Jxtr's user avatar
  • 128
0 votes
2 answers
71 views

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 ...
by2014's user avatar
  • 3
0 votes
0 answers
85 views

i am using knex db with mysql in wappler low code software and i have a column in my table and column name is is_active and it have bit datatype ig it means boolean right ? so when i use select query ...
Kabir Slashash's user avatar
0 votes
1 answer
52 views

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 ...
user2193480's user avatar
0 votes
1 answer
69 views

I'm trying to wrap a C library in Python using ctypes. A function call requires a callback function which I implemented using the programming manual.The problem is that I'm unable get the return value ...
SABARI SARAVANAN M's user avatar
0 votes
1 answer
43 views

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 ...
Toluwalase Mebaanne's user avatar
5 votes
2 answers
331 views

I manage a big complex code with a lot of template classes. I would like to forbid usage of std::vector<bool> in the code (because this is a recurrent and painful cause of compilation problems). ...
Caduchon's user avatar
  • 5,278
0 votes
2 answers
65 views

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 ...
Aris Conrad's user avatar
0 votes
1 answer
752 views

I'm working with a JavaScript object and I'm trying to render a button based on a boolean value, but I'm running into an issue. Here's a snippet of my code: const toy_material = toy.material.allow; // ...
dependent_elk's user avatar
1 vote
2 answers
82 views

I have made a digital version of a pen-and-paper game as my first major python practice project. You can see from the attached picture that the main board consists of buttons. They can be toggled ...
Tom Newing's user avatar

1
2 3 4 5
236