Open XML – 1, PowerPoint UI – 0

In my very first TechieSimon article, I went on about how great Open XML was. Today Iā€™m going to prove it ā€“ by showing how a month ago, I was able to use Open XML to make an edit to a PowerPoint document that I couldn’t easily do in PowerPoint. Continue reading “Open XML – 1, PowerPoint UI – 0”

Advertisements

A Strange Binary Pattern

While I was writing the Maths for Programmers course, I was constructing some examples to illustrate overflow and noticed a strange pattern. I was working with the number 255, which is the biggest number that can be stored in an unsigned byte, and is represented in binary by 1111 1111. The idea was to use the unsigned byte data type and show the results of calculating 255 + 255 and 255 * 255 ā€“ both of those will cause an overflow.

Now 255 + 255 gives 510. And 255 * 255 gives 65,025. Look at what these numbers look like in binary. Continue reading “A Strange Binary Pattern”