Relative Content

Tag Archive for binary

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.

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.

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.

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.