flags Questions

7

Solved

I have a set of bit flags that are used in a program I am porting from C to C++. To begin... The flags in my program were previously defined as: /* Define feature flags for this DCD file */ #def...
Pharynx asked 30/9, 2010 at 19:58

2

Solved

I'm emulating the 6502 processor, and I'm nearly finished (in the testing phase right now) and I'm using some NES test from the nesdev site, and it's telling me that both the interrupt flag and the...
Virilism asked 4/6, 2013 at 8:47

1

Solved

I'm making a 6502 emulator and I'm stuck (or I think I am at least) already at the beginning (implementing the ADC operation). The problem is that I have to determine if there's a carry or an overf...
Hardtop asked 30/5, 2013 at 21:9

2

Solved

I'm just trying to convert my code from C# to Haxe NME. I use enums as flags. [Flags] enum State { StateOne = 1, StateTwo = 2, StateThree = 4 } And use it if (someObj.HasState(State.StateOne...
Hileman asked 16/5, 2013 at 6:10

2

Solved

I am trying to detect when Dropbox is busy updating a file in a user's Dropbox in Mac OS X. By running stat(1) or stat(2) on a file, I see that the user defined flags for file (st_flags) are normal...
Flugelhorn asked 11/5, 2013 at 15:0

7

Solved

Why are people always using enum values like 0, 1, 2, 4, 8 and not 0, 1, 2, 3, 4? Has this something to do with bit operations, etc.? I would really appreciate a small sample snippet on how this ...
Theretofore asked 21/3, 2012 at 19:0

3

Solved

I have the following enum flags: [Flags] private enum MemoryProtection: uint { None = 0x000, NoAccess = 0x001, ReadOnly = 0x002, ReadWrite = 0x004, WriteCopy = 0x008, Execute = 0x010, Execu...
Conduit asked 25/4, 2013 at 0:32

1

Solved

I'm writing a Batch script that will run on a directory. I want to be able to add a flag (such as -r or /r or something like that) that will make the script run the folder tree instead of the singl...
Hildebrandt asked 28/2, 2013 at 18:46

1

Solved

Is there a list of all flags that can be put into the Other Linker Flags field of the Xcode Build Settings? I've searched the developer documentation without results.
Springclean asked 24/1, 2013 at 9:26

2

Solved

I have a PowerShell function which changes the registry key values. Code: param( [Parameter()] [switch]$CreateNewChild, [Parameter(Mandatory=$true)] [string]$PropertyType ) It has a parameter,...
Aniline asked 23/11, 2012 at 17:49

5

Solved

I have created an extension method as such.. public static bool AllFlagsSet<T>(this T input, params T[] values) where T : struct, IConvertible { bool allSet = true; int enumVal = input.ToI...
Bihar asked 19/11, 2012 at 2:25

1

Are there any assembly instructions to let us directly "set" or "clear" the "OF" and "TF" flags in Intel's 8086 16-bit Flags register ? If not, what pseudo code should we use?
Puree asked 17/11, 2012 at 8:36

0

I need to store some flags for user records in a MySQL table (I'm using InnoDB): --------------------------- | UserId | Mask | | ------------------------- | 1 | 00000...001 | | 2 | 00000...010 | -...
Koral asked 15/10, 2012 at 1:12

1

I'm using jVectormap plugin for country highlighting on world map. Now As my question suggests i want to show country's flag when specific country is hovered over. I don't want to do image mapping...
Ramey asked 7/4, 2012 at 7:6

5

Solved

I have a question of "good design practices" in C++. I am writing a numerical library in C++11 and I use at lot of metaprogramming and template-based technique. But I have a very basic question : ...
Ammonic asked 3/10, 2012 at 19:17

3

Solved

In my program I've some threads running. Each thread gets a pointer to some object (in my program - vector). And each thread modifies the vector. And sometimes my program fails with a segm-fault. I...

1

Solved

I use SimpleCursorAdapter to send data which I read from database to ListView. SimpleCursorAdapter has 2 flags and one of them is deprecated. Should I always use FLAG_CONTENT_OBSERVER? Or is i...
Heflin asked 31/7, 2012 at 12:44

3

Solved

Currently I'm starting a new Activity and calling finish on a current one. Is there any flag that can be passed to Intent that enables finishing current Activity without a need to call finis...
Brasilein asked 3/7, 2012 at 9:37

1

Solved

I am studying sort_flags at this page on PHP Manual. And I don't understand what difference each of these flags represents. There are only 6 flags, can someone please help me to understand the di...
Veronicaveronika asked 23/6, 2012 at 9:50

2

Solved

In the Android docs for a PopupWindow, the method setIgnoreCheekPress() is mentioned. It says that this method "Sets the flag on popup to ignore cheek press event; by default this flag is set to fa...
Rudderhead asked 31/5, 2012 at 20:35

3

Solved

Which datatype should I use for a flag (in MySQL)? I just want to check if a user is online at the moment. I thought about a TINYINT or SET which both could be 0 or 1.
Larcener asked 28/4, 2012 at 22:18

2

Solved

I am looking at a CFLAGS of - CFLAGS=-g -w -D LINUX -O3 -fpermissive in a Makefile. What does the -D flag do? I see on the man page that -D name Predefine name as a macro, with definition 1....
Olivenite asked 26/4, 2012 at 16:9

1

Solved

I have a script which can get tens of arguments/flags using Getopt::Long. Certain flags are not allowed to be mixed, such as: --linux --unix are not allowed to be supplied together. I know I can ch...
Aniseikonia asked 24/4, 2012 at 13:34

2

Solved

Instead of splitting each permission into individual columns or sql server table we are rethinking of using Flag attribute to Enum for use with bit wise operations. Our application defines end poin...
Silicify asked 23/4, 2012 at 4:47

2

Solved

I noticed that some functions in PHP use flags as arguments. What makes them unique instead of plain string arguments? I'm asking since I want to use them on my own custom functions but am curious ...
Veranda asked 9/3, 2012 at 14:3

© 2022 - 2024 — McMap. All rights reserved.