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, assuming that my string of 1/0 digits may not be an integer multiple of 8, it may even be an odd number.
How is this number calculated?
I have numbers;
Understanding binary numbers in terms of real world objects [closed]
Closed 9 years ago.
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:
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:
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 platform perhaps for many different architectures? I got some good results compiling source that I downloaded and I wonder whether this was due to compiling it instead of downloading a pre-compiled binary which is often the case with software updates.
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:
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 what it is.
Is there something special about the number 65535?
2¹⁶-1 & 2⁵ = 2⁵ (or? obviously ?)
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 available, we plan to have an advertisement for some payware. The payware would be for functionality that is completely different than the free application. For instance, the freeware would be like a checkbook application, let’s say, but the payware would be a virus remover utility that people try out and then can pay for, and is closed-source, binary.