The flags tag has no wiki summary.
-1
votes
0answers
19 views
Drupal Like / Dislike Button [closed]
I need to like AND to dislike contenttyps, but the total likes should be displayed as Likes - Dislikes. I tried to use the "flag" module and created two different flags (one for likes, one for ...
1
vote
0answers
31 views
Remove default flags on cmake
The following CMakeLists.txt
SET(CMAKE_CXX_FLAGS "/DWIN32")
SET(CMAKE_C_FLAGS ${CMAKE_CXX_FLAGS})
add_executable(hello hello.cpp)
ends up running
C:\Program Files (x86)\Microsoft Visual Studio ...
0
votes
2answers
49 views
c++ linking and compiling flags
I may have a stupid question but as no question is stupid i'll ask it... let's imagine i have the files matrix.hpp and matrix.cpp. In those files i use assert(...) to make sure that some condition is ...
0
votes
1answer
29 views
Android notification Resume Activity
I'm trying to make a notification when users pause my app. So to make it easier, users can go quickly to the application using notificaction. This is the code i'm using. It works for all versions ...
2
votes
2answers
39 views
Why is the initial state of the interrupt flag of the 6502 a 1?
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 ...
0
votes
1answer
47 views
Determining carry and overflow flag in 6502 emulation in Java?
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 ...
0
votes
1answer
72 views
how to create flags enum from int values and disable controls
I have a small problem. This is a simplified version of my problem.
I have a class that has a list of buttons with its names (New,Edit,Delete) as well a object of type "Type"
class test
{
...
0
votes
2answers
44 views
Launching app from widget: no effect of FLAG_ACTIVITY_BROUGHT_TO_FRONT
I just want to use my application widget as a shortcut to the app and I do not want to open a new task.
So I used the FLAG_ACTIVITY_BROUGHT_TO_FRONT flag like this:
Intent configIntent = new ...
1
vote
1answer
41 views
How do I specify optional flags?
I have to specify these flags/arguments. If an argument is missing, use the specified default values for the flag. If an argument cannot be converted into a numeric value, then use the default value ...
1
vote
1answer
44 views
how to deal with files whose names are flags
I was wondering how to deal with files whose names are flags, like '-a', '-f' etc. I can't pass them as arguments to programs like rm or ls, because they are interpreted as flags, and doing rm * or ls ...
0
votes
0answers
16 views
Unable to use flags in opencv Python?
Im unable to use flags in Opencv
for example
COde:
import cv2
image = cv2.imread('k.jpg',cv2.CV_LOAD_IMAGE_GRAYSCALE)
cv2.namedWindow('Pic',cv2.CV_WINDOW_NORMAL)
cv2.imshow('Pic', image)
...
1
vote
2answers
53 views
Haxe - sending enum as flags to a function
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 ...
0
votes
1answer
37 views
check if input number is within range of unsigned 16 bits number
hi I have this code in assembly x86
L1:
mov edx, OFFSET prompt1
call writeString
call readHex
JO L1
I'm trying to check if the unsigned hexadecimal number that I input is larger ...
0
votes
0answers
21 views
Bitwise Binary operations on attribute flags in XML files
In XML files, on some attributes you can combine flag values by OR operator, example:
<item name="openingDays" value="monday|wednesday|friday"/>
assuming the flags for "monday", "tuesday", ...
1
vote
1answer
28 views
System.out.printf with specific flags not returning the expected number
I'm just starting out using Java. And I came across this issue :
This is my code :
import java.util.Scanner;
public class FormatageValeurNumerique {
/**
* @param args
*/
public ...