Adding and Subtracting Hexadecimal

In a previous blog, I talked about hexadecimal and the symbols used to represent numbers in it. Today, I will be explaining how to add and subtract hexadecimal numbers or hex for short. I will be only be dealing with positive numbers as negatives numbers are very complicated in both binary and hexadecimal. Now lets get started!

Adding in hex is very similar to binary. First, you set it up like you are adding base ten numbers in math class. Then, you add the right most digits. If those two digits add up to more than 16, subtract 16 from that number and add one to the digit to the left. Repeat until the number is added out. I have shown an example below:

Add B4 and FO in base 16

B4      (180 in base 10)                                                                                                             +FO     (240 in base 10)                                                                                                                  1A4      (420 in base 10)                 As you can see (B+F is 26. 26-16 is 10 or A)


Subtraction in hex is also very similar to subtraction in binary. First you set the equation up like above, but you use a subtraction sign instead of addition. Then you subtract the right-most digits. If the digit being subtracted is larger than the one above, you “borrow” one from the digit to the left which increases the value that you found by 16.

Subtract 1F from 7A in base 16

7A       (122 in base 10)                                                                                                                -1F      (31 in base 10)                                                                                                                     5B       (91 base 10)


If you want to check your answers, convert all numbers to base 10 and add or subtract them. If you need more practice, here are some more questions below. Answers are posted under the Youtube video.

  1. Add 8F and F9
  2. Add ABC and 159
  3. Add 123, 456, and 789
  4. Subtract 5D from 8A
  5. Subtract 5DC from 7FA
  6. Subtract ABC and 598 from 1F0D


If you are still confused, please watch this Youtube video. Ignore the part where he put 8+B = 13.

  1. 188
  2. C15
  3. D02
  4. 2D
  5. 21E
  6. 4B9

Converting Between Hexadecimal and Binary

As said before in an earlier post, numbers are calculated in different bases. The most used types are base two (also known as binary), base 10 (which we use mainly in mathematics), and hexadecimal, which is what we will be learning about today. As you know, there are no symbols to represent numbers that are 10 or up. So here are the following shortcuts that are used in hexadecimal.

  • For numbers 0-9, use the regular 0-9
  • For the number 10 – use the symbol A
  • For the number 11 – use the symbol B
  • For the number 12 – use the symbol C
  • For the number 13 – use the symbol D
  • For the number 14 – use the symbol E
  • For the number 15 – use the symbol F

For example, numbers can look like 17F, 7B9, ABC, and much much more.


So why is hexadecimal used?                                                                                                   Hexadecimal is used as a simplification of binary. For example:

  • In binary, 289 is represented as 0001 0010 0001
  • In hexadecimal, 289 is represented as 121

As you can see, it is much easier to use hexadecimal than to use binary.


Now lets talk about the relation between binary and hexadecimal. As you know, each binary digit is known as a bit (0101 has 4 bits).  Eight of these is known as a byte (0100 0111). Lastly, a nibble is four bits (0101), which hexadecimal uses. Converting from binary to hexadecimal, every nibble is one digit in hexadecimal. Here is one example shown:

Convert 1011100 to Hexadecimal:

0101  1100                  First, split the binary number into different nibbles

5         12                      Convert these nibbles into base 10 numbers

5C                                Convert the base 10 numbers to hexadecimal


Here are some practice problems. Answers to these are under the Youtube video.

  1. Convert 0010 1010 1010 from binary to hexadecimal
  2. Convert 0010 1011 from binary to hexadecimal
  3. Convert 1010100 from binary to hexadecimal
  4. Convert 111001011 from binary to hexadecimal
  5. Convert 50 base ten to hexadecimal (Convert to binary first)
  6. Convert 829 base ten to hexadecimal


If your are still having trouble understanding this, please use this Khan Academy video that explains the concept pretty well.

  1. 2AA
  2. 2B
  3. 54
  4. 1CB
  5. 32
  6. 33D



History of the internet Pt. 3 – The Modern Day Internet

After the .com crash, many people were a lot more reluctant to invest into some .com websites that they had previously invested in. But then, in 2004, the call to Web 2.0 was suggested and from then on, the internet would grow even faster. Hard drives would gradually replace slower floppy disks, going from megabytes to gigabytes. High speed internet was more affordable and therefore more widespread. Social media platforms like Twitter and Facebook were created.

Then, around 2007-2008, the mobile revolution happened. Now, people could take what was essentially a mini computer everywhere. They could communicate, they could take photos and take videos. People could use mobile data like 4G and WiFi, location-based sources became a lot more common, and many people started using the internet. On mobile, the term app emerged which actually stands for application program or just program. Withthe mobile revolution, the internet grew to the internet that we know today, a fast, reliable platform where you can browse and basically do whatever you want. After this, we would go on to have the internet in space when an astronaut updated his Twitter while in orbit in 2010 and also accomplish some other things. But the internet we know today basically ends around 2010 and the late 2000s.

History of the Internet Part 2 – Moving Towards the Modern Day Internet

In part one of the history of the internet, I talked about what the early internet was like. I covered the ARPANET, the NSFNET, and the evolution towards the modern day internet that most of us know today. Today, I will be covering the remaining of the history of the internet into the 21st century and the modern day internet that everyone knows. After the NSFNET, many people started to recognize the usefulness of the internet and began to start using it. The catch was that in some areas, many people still didn’t use it while in others, many people used it. Also, a lot of people were using a lot of different networks. So, to transition to a more advanced internet, everyone had to move to one very big network or at least a few big networks.

Up until this point, the common citizen didn’t really use the internet. The internet was mainly reserved for government purposes only. But then, ISP’s (Internet Service Providers) started forming. They were mainly formed because people were beginning to understand the usefulness of the internet. Therefore, many people wanted to use the internet for commercial purposes and then, ISP’s were formed. After the Science and Advanced Technology Act was passed by the U.S. Congress, the NSF was allowed to intercommunicate the private research and education networks with the commercial based networks allowing them to research about the same topics and communicate with each other. By the 1900s, the ARPANET was no longer needed as it’s goals had been fulfilled. Also, the NSFNET was no longer the driving factor behind growing the internet. There were many other networks that were also able to carry out the same tasks that the NSFNET could. So on April 30, 1995, the NSF ended its sponsorship to the NSFNET. This meant that there were not really anymore government networks stopping commercial networks. Therefore, the commercial basically had free reign over the internet.

Let’s quickly talk about www. www actually stands for World Wide Web. It is a space where all the URL’s correspond to a website or document. These URL’s are interlinked by hypertext and can be accessed using a web browser or web-based applications. In 1993, Marc Andreessen released the NCSA Mosaic which would trigger a spike in the amount of internet users. This was because the program was easy to use and install, and could be accessed on a home computer. This browser was also one of the earliest browsers that could put text and image on the same page. Then in 1994, Marc Andreessen released Netscape which was an improved version of the NCSA Mosaic. This resulted in one of the earliest browser wars and Marc Andreessen and his Netscape would ultimately lose to the Microsoft Internet Explorer. This resulted in the Windows operating system and the Internet Explorer that we all know and love today.

Let’s move back to the late 1900s. As of right now, the smartphones that almost everyone has now-a-days, almost no one had back then as they were a luxury and only used for business. There was no Social Media like Instagram or Snapchat. Back then, many people still did not have computers in their houses. Computers could not process videos, only DVDs and eventually, CDs. The computer back then was mainly used for eCommerce, email, and forums or bulletin boards. But then, some people started to recognize how much value eCommerce had in it. So people started putting their stock money into eCommerce businesses like Amazon and eBay. These companies were shot to very overpriced valuations and people started selling their stocks which resulted in a market crash known as the .com bubble. This mainly affected companies using the .com level domain.

The History of the Internet Pt. 1

Ever since inventions like the telephone and the telegraph, the internet has begun to evolve. Unlike inventions like the airplane and the light bulb, the internet was created as a group effort and wasn’t really created by one person. Instead, it has evolved over time starting with the NPL Network and the Arpanet. Both of these networks used packet switching. Packet switching is when you send a message, you break the message up into individual parts and then send them all. Then when they get to the destination, they automatically reassemble themselves. Then, they tested the Arpanet. The teams set up labs at UCLA and Stanford and tried to type letters to each other. The receiving team received just two letters before the system crashed, but nevertheless, a new era had begun.

Now, let’s fast forwards a bit. Now, the year is 1973. Although there are many little networks, there isn;t a large a large network encompassing a large enough area to be useful. So now, the little networks had to combine to make one big network. After the Arpanet was up and working, people began to realize that this small networks wasn’t big enough. Then in 1981, the NSF took a liking into the Arpanet network. So the government started giving some of it’s money into the Arpanet. The Arpanet would then eventually be renamed into the NSFNET. The NSFNET first had a network speed of 56kbit/s speed. This was too slow and the system would eventually get overloaded. So the system was upgraded to 1.5Mbit/s. Finally, the NSFNET was upgraded to 45MBit/s. The NSFNET had the ability to connect university and college campus networks to a regional network.

In conclusion, during the mid to late 1900s, many new discoveries were made to contribute to the evolution of technology like the Arpanet and the NSFNET. In the next part, we will progress more to the 21st century and how the internet in the 1990s really evolved into the internet that we know today.

Multiplication and Division With Binary Numbers.

Yesterday, I explained how the computer works and calculates numbers. I showed you how to do addition and subtraction with binary numbers. Today, I will show you how to multiply and divide binary numbers. If you didn’t look at the post I did yesterday, I highly recommend you check that one out first because with multiplication and division, would will need to know addition and subtraction, and in the post from yesterday, I explained how to do addition and subtraction.

First, let’s start with multiplication. When multiplying binary numbers, you would set to the problem like a normal long multiplication problem. Now, you would start doing the multiplication like you would a normal multiplication problem. If you are doing 0*0, you put down a zero. if you are doing 1*0 or 0*1, you put down a zero. But if you are doing 1*1, you put down a one. There is no carrying when multiplying binary numbers. Then, like in normal multiplication, you would place the 0 as a place holder and continue on like a normal multiplication problem. Then at the end. Finally, you would add like in normal multiplication but using binary addition taught yesterday.

Sample Problem:

Now, let’s do division. Division is pretty much the same thing as long division in base 10. You find the multiple of the number below the greater number that is closest. But in binary, you can only use ones and zeros. So you would just put either a one or a zero depending on what there was. Then, you would put that multiple and subtract like in normal long division. You keep on repeating the process until you are finished the problem.

In conclusion, you now should be at least somewhat familiar with binary numbers, how to convert, and addition, subtraction, multiplication, and division. Hopefully, you should be able to do some basic problems using binary numbers and decimal numbers (base ten numbers.) If you are still a little confused about one of the operations, I’ll recommend a few great sites that really explain the content well. sites. One, And two, Hope you enjoyed this post. Be sure to stay tuned for posts in the future a lot like this one!

How Computers Calculate.

Computers turn every number into a binary number. As humans, we count in base ten. Without knowing it, everyone using normal numbers is using base ten. But computers, they make all these numbers binary or base two. This is because computers are easier to design is they only have two values (one and zero) than if they have ten different values (zero, one, two, three, four, five, six, seven, eight, nine.)

As mentioned before, binary numbers only consist of the numbers one and zero. For example, a binary number could look like this: 0100. 0100 represents the number four. But first, let me explain how the binary counting system works. In binary, two ones equal a two, two twos equal a four, two fours equal an eight, and so on. The first place value where we put the “ones” is still the ones in binary. The tens in base ten is twos in binary. The hundreds in base ten is fours in binary. And so on. So four equals 0100 because in the number four, there is one four.

Computers can also do basic addition and subtraction using binary numbers. For example, if you wanted to do 5+4 in binary, the binary equation would be 0101+0100. If you don’t get how I did this, refer to the second paragraph. In the ones place, we have 1+0. Here, we store the bigger number which is one. Next, we look at the twos place. The twos place is 0+0. So here, we just keep the 0. Now, we look at the fours place. There, it is 1+1. We have to keep a zero and then carry a one. Finally, in the eights place, we have that one we carried from the fours place. So in the end, 0101+0100=1001.

Subtraction is very different compared to addition. Say we wanted to do 5-4. Here, the binary equation would be 0101-0100. Now for subtraction, we actually add the negative of the second number. So technically, we are doing 0101+1011. We do this because we want to add the negative to still be able to use addition. And to make a binary number negative, you just switch all the ones in the number to zeroes and all of the zeroes in the equation into ones. So 0100 or 4 in base ten would turn into 1011. Now,we can do the addition of 0101+1001. We would get 10000. You night be thinking to yourself, self, this doesn’t look right. Shouldn’t the one be on the other side of the number in the ones spot? You are right! We have to move the number at the very left of the number all the way to the very right of the number.

So in conclusion, computers use binary numbers to preform many numerical equations. Binary numbers only contain ones and zeros because it is easier to make a computer with only two values compared to the ten values that us humans use. Also, I taught you how to do addition and subtraction with binary numbers. I will be posting about how to do multiplication and division tomorrow so stay tuned for that.

Fonts and CSS

Fonts are a crucial element in creating an appealing website. In order to understand how to use fonts in CSS, we need to understand the different generic and font families.

Generic families group fonts by their appearance. CSS accepts the existence of 3 families, two of which are serif and sans-serif.  Fonts that belong to the serif familiy willIn order to understand the difference between the two, keep in mind that “sans” essentially means “without”. Here’s a simple guide to show the difference between the two. Continue reading “Fonts and CSS”

The 3 No-Nos In Website Design

Designing a website is sometimes difficult when it comes to thinking about what is visually appealing and what will attract more visitors. It can be hard to guess what your audience would prefer and dislike. So, here are a few of the biggest No-Nos in website design to get you started.

1. Graphics instead of text.

Never use pictures in replacement for text. Most of the time, text should outnumber pictures by at least 2. Think about it: When someone puts a string of text into a search engine, that search engine, let’s say Google, will scan the web for a website containing matching text. But if your site has no text, then Google will never show your site as a search result! Thus, your website will never be viewed. Pictures are great for visual aid or entertainment, but only in controlled quantities.

2. Automatic music

Setting your website to play music as soon as someone enters is a bad idea. Not only is it annoying, but most viewers will exit the site to escape the sudden noise, and continue browsing other websites. The likelihood that they’ll return is slim.

3. GIF backgrounds

GIF backgrounds may seem like a cool, creative idea, but it’s not to your audience. Moving backgrounds are distracting. And in some cases, even dizzying. It will make it hard to find information and repel more visitors than it attracts.

With these 3 No-Nos of Website Design, you now probably have an idea of how to proceed with your website. Or, at least how not to proceed. Just stay away from the listed things, and you’ll have a wonderfully made website in no time.

Best of luck!