The binary tag has no wiki summary.
3
votes
2answers
171 views
How should I structure a C# application that reads & writes binary data?
I have to read and write binary "chunks" of approximately 1Mb each. The data can come in the form of a stream or a in-memory byte[].
Normally I would use a Struct with a fixed layout, but there are ...
-1
votes
3answers
154 views
Choosing a suitable language and framework [closed]
I'm writing a small webpage that will allow the user to download small tools to run locally, I'm thinking what might be a suitable choice of language for the small tools.
There will be a rather large ...
3
votes
1answer
155 views
Can we create a GPL application that has a payware advertisement on it?
We've been thinking of using GPL components to make a GPL application, and freely give it away. We then want to use that as a loss-leader. In that free application, where even the source code is ...
0
votes
3answers
843 views
Is there something special about the number 65535?
2¹⁶-1 & 2⁵ = 2⁵ (or? obviously ?)
A developer asked me today what is bitwise 65535 & 32 i.e. 2¹⁶-1 & 2⁵ = ?
I thought at first spontaneously 32 but it seemed to easy whereupon I thought ...
3
votes
1answer
196 views
Extracting color profile information from JPEG files
I'm trying to look up info about reading JPEG's color profile info and to my surprise there's very little open specific how-to information on that regard, but rather lots of general explanation on ...
2
votes
2answers
168 views
Which numeral systems are useful in computer science?
I am wondering which numeral system different programmers are using, or would use if their language has support for them. As an example, in C++ we can use:
Octal by prefixing with 0 (e.g. 0377)
...
4
votes
4answers
435 views
How much is modern programming still tied to underyling digital logic? [closed]
First of all: I've got no academic background. I'm working primarily with Java and Spring and I'm also fond of web programming and relational databases. I hope I'm using the right terms and I hope ...
3
votes
3answers
196 views
Compiling vs using pre-built binaries performance?
Will performance be better (quicker) if I manually compile the source for a software component for the actual machine that it will be used on, compared to if the source was compiled on another ...
4
votes
1answer
108 views
What does “windowed streaming” stand for?
So I was asking around the Mercurial development mailing list about binary diffing and patch handling and I got the following examples:
whole file approaches (classic diff, bsdiff, Mercurial's ...
7
votes
9answers
1k views
Is it any good to use binary arithmetic in a C++ code like “C style”?
I like the fact that the C language lets you use binary arithmetic in an explicit way in your code, sometimes the use of the binary arithmetic can also give you a little edge in terms of performance; ...
1
vote
1answer
95 views
What does it mean “you can pick K to be whatever you want” in Excess-N notation?
I prefer providing an example to explain the following paragraph:
However, since excess K representation using N bits has two parameters, K and N, you can pick K to be whatever you want. You can ...
2
votes
3answers
466 views
Understanding binary numbers in terms of real world objects
When I represent a number in the decimal system, I have an intuitive knowledge of what it amounts to. For example take the number '10': I understand that it means 10 apples or 10 people... i.e I can ...
1
vote
1answer
390 views
How is this number calculated?
I have numbers;
A == 0x20000000
B == 18
C == (B/10)
D == 0x20000004 == (A + C)
A and D are in hex, but I'm not sure what the assumed numeric bases of the others are (although I'd assume base 10 ...
-2
votes
2answers
640 views
Flipping the desired bit of an integer number
Suppose you were given an integer number in decimal notation. This when represented in binary will be a series of 0's and 1's. This sequence varies in length with the magnitude of the number. Now ...
2
votes
2answers
757 views
binary representation in Python and keeping leading zeros
I wanted to use the base64 Python library to encode a sequence of binary digits into base 64. Would it be possible to do it without converting to a string? If not, what is the best way to do it, ...