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

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 ...
Nelco's user avatar
  • 3
1 vote
1 answer
264 views

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 ...
Scott Anderson's user avatar
2 votes
2 answers
4k views

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 ...
Jintor's user avatar
  • 667
0 votes
1 answer
425 views

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 ...
Sponge Bob's user avatar
0 votes
0 answers
149 views

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 ...
This-name-will-do-nicely's user avatar
3 votes
2 answers
1k views

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

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 ...
user3169905's user avatar
-1 votes
1 answer
440 views

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). ...
P i's user avatar
  • 31.3k
0 votes
5 answers
1k views

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 ...
Ron's user avatar
  • 46
2 votes
1 answer
2k views

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; ....
Hammad's user avatar
  • 33
0 votes
0 answers
531 views

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') ...
Vlad K.'s user avatar
  • 409
0 votes
3 answers
1k views

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 ...
kriloots's user avatar
1 vote
1 answer
53 views

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 ...
John Conor's user avatar
1 vote
1 answer
503 views

#include<stdio.h> #include<stdlib.h> #include <sys/types.h> #include <dirent.h> int main(void) { char *curr_dir = NULL; DIR *dp = NULL; struct ...
Esteban Daniel Archbold Salced's user avatar
2 votes
3 answers
75 views

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 ...
Mauro Del Nook's user avatar
1 vote
1 answer
914 views

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 ...
alfC's user avatar
  • 16.8k
0 votes
0 answers
398 views

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 ...
Custos's user avatar
  • 68
0 votes
3 answers
336 views

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 ...
Adrian Jimenez's user avatar
5 votes
1 answer
3k views

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 ...
Lumca's user avatar
  • 193
0 votes
2 answers
766 views

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 ...
Boba's user avatar
  • 101
0 votes
0 answers
197 views

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: ...
carl.hiass's user avatar
  • 1,814
-3 votes
1 answer
265 views

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 ...
Brett Martin's user avatar
1 vote
1 answer
301 views

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 ...
Robert's user avatar
  • 187
0 votes
1 answer
1k views

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 ...
Ace.McCloud's user avatar
0 votes
1 answer
183 views

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 ...
ecp20's user avatar
  • 1

1
3 4
5
6 7
30