Top "Flags" questions

Flags are atomic data structures used to identify state in a program.

What is a flag variable?

Recently I came across flag variables, but I have no idea what they do. I am little unsure about when …

javascript variables flags
Android: Intent Flag to destroy activity and start new one

So I have a Login Activity This Activity inflates a login.xml layout which has a USER_NAME and PASSWORD …

android android-intent android-activity flags
Python RegExp global flag

Is there a flag or some special key in python to use pattern multiple times. I used to test http://…

python regex global flags
Flags in a database rows, best practices

I am asking this out of a curiosity. Basically my question is when you have a database which needs a …

sql database flags
How to create global variable in Swift?

I am trying to set a global variable. In my case, just a boolean flag that indicates if a view …

xcode swift global flags viewdidload
SameSite cookie in Java application

Do you know any Java cookie implementation which allows to set a custom flag for cookie, like SameSite=strict? It …

java cookies csrf flags
Material design layout_scrollFlags meanings

I find out that we can use cool flags that scroll both toolbar and even content by using layout_scrollFlags. …

android android-layout scroll material-design flags
Enum flags in JavaScript

I need to emulate enum type in Javascript and approach seems pretty straight forward: var MyEnum = {Left = 1; Right = 2; Top = 4; Bottom = 8} …

javascript enums flags
Checking flag bits java

I have a problem with flag bits. I have an int variable to hold flags. First I set some flags …

java bit-manipulation flags
What is the meaning of the -XX:NewRatio and -XX:OldSize JVM flags?

I am starting my java app with the following command line : java -XX:+PrintCommandLineFlags -verbose:gc -XX:+PrintGCDetails \ -XX:+UseConcMarkSweepGC …

java memory garbage-collection options flags