Top "Bit" questions

A bit is a single binary digit.

How to get a bit value with SqlDataReader and convert it to bool?

I am retrieving user information from a database using a simple query. select * from dbo.[User] u where u.Email = @…

c# boolean bit sqldatareader
What is an XOR sum?

I am not sure of the precise definition of this term. I know that a bitwise XOR operation is going …

c bit-manipulation bit xor
How to get the true/false count from a bit field into two separate columns

I need to create a query that will sum the number of True(1) and False(0) into two separate columns from …

sql-server tsql sql-server-2008 bit
Can't see MySQL BIT field value when using SELECT

my_table contains the enabled field which is defined as: enabled BIT NOT NULL DEFAULT 0. This table has multiple rows …

mysql sql bit
Switch on Enum (with Flags attribute) without declaring every possible combination?

how do i switch on an enum which have the flags attribute set (or more precisely is used for bit …

c# enums switch-statement flags bit
What USEFUL bitwise operator code tricks should a developer know about?

I must say I have never had cause to use bitwise operators, but I am sure there are some operations …

language-agnostic bit-manipulation bit
Iterate through bits in C

I have a big char *str where the first 8 chars (which equals 64 bits if I'm not wrong), represents a bitmap. …

c bit bitarray
Jenkins returned status code 128

I am trying to setup Jenkins with BitBucket GIT repository, but the Jenkins console always gives me this error code: …

jenkins bitbucket bit status
Access individual bits in a char c++

How would i go about accessing the individual bits inside a c++ type, char or any c++ other type for …

c++ bit
Hamming distance between two binary strings not working

I found an interesting algorithm to calculate hamming distance on this site: def hamming2(x,y): """Calculate the Hamming distance …

python binary bit hamming-distance