1,484 questions
0
votes
2
answers
700
views
Problems with isdigit()
To start off, I am very new to coding, and there is probably a lot I could have done better with my code. My main problem is that whenever I make the first element of my list a non-digit, my while ...
1
vote
1
answer
264
views
Automatically append ssh flags for gcloud cli
I am working on a project with multiple envs on gcloud
2 of the envs have a central 'bastion' server so when logging into the central filesystem I have to ssh twice
A colleague discovered that in ...
2
votes
2
answers
4k
views
ffmpeg movflags what is the difference between plus and minus signs before the flag?
It can sound basic, but I see in many forums
-movflags +faststart
-movflags -faststart
-movflags faststart
What is the difference between plus + and minus - or just no sign before the flag ?
What does ...
0
votes
1
answer
425
views
Discord JS , Node JS and Reaction Flags
I have been scratching my head trying to figure this out and I cannot find a solution for it.
Basically I am trying to use the flags to chose a user's language.
I cannot figure out how to react with ...
0
votes
0
answers
149
views
Override flags specified by MPICH wrapper compiler
I'm trying to debug an MPI application written in fortran compiled with MPICH wrapper compiler. It compiles and runs, but at some point NaNs start poping out and it proved rather challenging to ...
3
votes
2
answers
1k
views
bitwise operations for flags?
I've seen some pieces of code which use bitwise operations in order to create options/flags.
For example, consider the following examples from the ssl library:
# bitwise AND and NOT
ctx = ssl....
0
votes
1
answer
850
views
"Option does not exist" with bash case statement
I'm trying to do the following to add a simple switch to a bash command. The flag is for turning on an option to do some file backup tasks with another program called 'terminus'.
However, when I run ...
-1
votes
1
answer
440
views
Succinctly split BASH command string into arguments and flags
My BASH command string ($@) looks like this: cmd -arg1 foo bar --flag1 --flag2
Flags come after args, and I don't have any awkward gotchas in the args (I am building an internal tool for my own use).
...
0
votes
5
answers
1k
views
how to iterate struct in C++?
I have many bool variables in struct Flags as:
struct Flags
{
bool isATrue;
bool isBTrue;
bool isCTrue;
...
}
then in the other function I have calculate the bool result value of ...
2
votes
1
answer
2k
views
Storing Flag Values in Variables in 8086 - Assembly Language
I wanted to ask that is there any explicit and easy way to store the values of flags such as(carry flag, auxiliary flag, parity flag, zero flag, overflow flag, signed flag etc.) in variables such as;
....
0
votes
0
answers
531
views
Vue.js which is the right way to send props as flags to v-show?
For example, I have two async services. Let's assume that both services are available in the moment of app loading and signal that by returning true. I have two properties ('servconn' and 'netconn') ...
0
votes
3
answers
1k
views
how to determine if overflow flag is turned on/off for mixed sign binary addition?
I'm still don't completely understand overflow flags but from what I've gathered if the two most significant bits are both positive and result in a negative and vice versa, the overflow flag would ...
1
vote
1
answer
53
views
Identify instances where data NOT entered for t > n days [python]
I'm looking for a method to identify instances where data has not been entered for a number of days. In my case I would like to flag when no data has been entered for > 5 days.
An example of the ...
1
vote
1
answer
503
views
how can i implement the flag -l and -a to my own ls function
#include<stdio.h>
#include<stdlib.h>
#include <sys/types.h>
#include <dirent.h>
int main(void)
{
char *curr_dir = NULL;
DIR *dp = NULL;
struct ...
2
votes
3
answers
75
views
Display a column when a desired value is missing while grouping in Pandas dataframe
Good day, I have a dataframe with region, customer and some deliveries. There is this column used as type of purchase and the first and last purchase are marked as 'first' and 'last' and sometimes we ...
1
vote
1
answer
914
views
Pass option to compiler but not to the linker in cmake
With cmake one can pass compiler options with CMAKE_CXX_FLAGS and CMAKE_CXX_LINK_FLAGS to the linker.
But as far as I can see CMAKE_CXX_FLAGS are passed to the linker as well.
Is there a way to pass ...
0
votes
0
answers
398
views
How to store multiple atomic variables?
I am writing a C++ program and am currently having an issue where I need atomics, preferably std::atomic_flag, to have thread safe flags. The issue is that I need multiple different atomic flags and ...
0
votes
3
answers
336
views
How to handle flags smartly to avoid warning "This expression always evaluates to true"
I can´t understand why the following method is giving me a warning in java eclipse, I agree it looks kind of silly but cannot figure a way of handling it smartly.
Especifically I am getting the ...
5
votes
1
answer
3k
views
Running tests with flags from chrome cypress
I have some test cases that use webcam and our test enviroment needs for using webcam to have set flag in chrome --unsafely-treat-insecure-origin-as-secure
How can I for some test sets have this set ...
0
votes
2
answers
766
views
compile C code with no flag other than -o
Im doing an assignment and the requirement instruction say "Your code should compile correctly (no warnings and errors) with no flags other -o. you should compile your code to a debug-able ...
0
votes
0
answers
197
views
When is the overflow flag used? [duplicate]
I think I've come to learn the use cases on when the overflow flag is set: when the signed bit changes on signed arithmetic. For example, the following three cases:
# For example, with overflow:
...
-3
votes
1
answer
265
views
How do I look for nonzero values
How do I look for a non-zero value in “things” within python and create flags.
If there not is a non-zero value then I have to create a timeout flag.
If there is a Non-zero then I need to clear the ...
1
vote
1
answer
301
views
Link a foreign C library with Haskell
The tutorials online that talk about Haskell's FFI all make simple examples with a locally defined C file which is then compiled and linked with the Haskell binary. How would I do something more ...
0
votes
1
answer
1k
views
Using O_CREAT O_WRONLY : How to get current position in the file and append data at the end?
I would like to read data from a socket into a FILE. If the FILE doesnt exist, create a file ONLY ONCE and any subsequent data from the client, find the current location of the FILE POINTER and append ...
0
votes
1
answer
183
views
remake all flag variables true
I'm trying to sort the matrix A in ascending order. After the determination of the next minimum element, I delete the corresponding indices with flag[jj]=false. But after k loop, I want to remake all ...