Web Design,Programming,Mobile,iOS/Android,GameDev,IT Businness,eCommerce,Social Media

Advertisement

Sunday, 19 May 2013

Binary numbers - Digital Logic explained


If you ever asked yourselves how computers think and logic then what you are asking is Digital Logic. There is an order and logic on how computers do all that stuff for us. If you are a computer science student then you know that in the very end computers only understand binary. 

You may write a very sophisticated software in any high level programming language, but in the very end everything is converted to machine language or binary. But why exactly binary ? What in reality is binary ? It's because electronic chips are made like that. They can only understand two states of behavior. TRUE/FALSE, ON/OFF, ACTIVE INACTIVE, SET/RESET. 

Whatever the situation these are called zeros and ones : 0101010001010101. Whenever there is 1 that means there is some input or value or something is happening, and whenever there is 0 that means its null or nothing. By combining different values of zeros and ones we can achieve interesting statements and chips can behave in a manner that we can command them to do some stuff for us. These zeros and ones are inserted in a digital circuit where they travel, and depending on the design of this circuit these numbers can flow in a way that they do something logical. 


These circuits are inside every electronic chip. Different chips have different circuit designs and a very large amount of zeros and ones travel inside these chips. The CPU has millions of millions of circuits that do different tasks. Billion of data travel inside these circuits. These circuits are designed in a way that they can do some logical operations. 

However we cannot understand digital circuits if we don't know what will live inside them. That is Binary. We must firstly get to know those zeros and ones. In the section below we describe everything about binary. We will learn how to understand binary numbers, convert them and do arithmetic operations just like we do with normal decimal numbers we use in our everyday life.

Binary Numbers

If we think, the numbers we use in everyday life are called decimals. Why like that ? Because they are formed of digits starting from 0 to 9. If we count from 0 to 9 we get 10 digits. Which means the decimals. On the other hand binary numbers consist of two digits, that is : 0 and 1. Every digital machine works on binary numbers. Binary numbers can be used to do operations just like decimals. We just need to follow some rules. For simplicity we will start converting decimals to binary numbers and vice-versa. Then we will do arithmetic operations with binary numbers just like we do with decimals.

The table below shows the corresponding binary combinations for decimal numbers from 0 to 9.

Decimal                  Binary

0                            0000
1                            0001
2                            0010
3                            0011
4                            0100 

5                            0101
6                            0110
7                            0111
8                            1000
9                            1001


We can prove this combination by converting any decimal number to binary or any binary number to decimal. When converting decimals to binary and vice-versa there is a rule we need to follow. For example let us take number 79 and convert to binary.

Decimals to binary

a ) Convert number 79 to binary

To convert any decimal number to binary we need to divide that number with the base of the numeral system we are converting to, in  this case binary which is 2. The base of binary is 2 because this numeral system consist of two digits. The base of decimal is 10 because this numeral system consist of 10 digits. When dividing if we get real number ( number with dot ) we simply avoid numbers after the dot and write only the integer. If the dividend is even the binary remainder will be 0 and if the dividend is odd the remainder is 1.

79 : 2 = 39.5 = 39 remains 1
39 : 2 = 19.5 = 19 remains 1
19 : 2 = 9.5 = 9 remains 1
9 : 2 = 4.5 = 4 remains 1
4 : 2 = 2 remains 0
2 : 2 = 1 remains 0
1 : 2 = 0.5 = 0 remains 1


The division goes till we reach 0. After we finish we write binary numbers in a counter way, like for this example the binary combination of number 79 is 1001111.

b ) Convert number 355 to binary

355 : 2 = 177.5 = 177           remains 1
177 : 2 = 88.5 = 88              remains 1
88 : 2   = 44                       remains 0
44 : 2   = 22                       remains 0
22 : 2   = 11                       remains 0
11 : 2   = 5.5 = 5                 remains 1
5 : 2     = 2.5 = 2                 remains 1
2 : 2     = 1                         remains 0
1 : 2     = 0.5  = 0                remains 1

The corresponding binary combination for decimal number 355 is 101100011.

c ) Convert number 4394 to binary

4394 : 2 = 2197                   remains 0
2197 : 2 = 1098.5 = 1098      remains 1
1098 : 2 = 549                    remains 0
594 : 2 = 274.5 = 274           remains 1
274 : 2 = 137                      remains 0
137 : 2 = 68.5 = 68              remains 1
68 : 2 = 34                         remains 0
34 : 2 = 17                         remains 0
17 : 2 = 8.5 = 8                   remains 1
8 : 2 = 4                            remains 0
4 : 2 = 2                            remains 0
2 : 2 = 1                            remains 0
1 : 2 = 0.5 = 0                    remains 1

The corresponding binary combination for decimal number 4394 is 1000100101010.

Binary to Decimal


To convert binary numbers to decimals we count the digits and power the base 2 with the counter. Then we do addition with the binary digit and result. We continue this for every binary digit and then we multiply the results. The end result is the corresponding decimal number to the binary number we are converting for. Take this formula for example.









The corresponding decimal number for binary 11011 is the number 27. Let us break in detail. As we said we mark the binary digits with counter. Then we power the base 2 with the actual counter. For this example that would be

1 x ( 2 x 2 x 2 x 2 ) = 16 = 1 x 16 = 16
1 x ( 2 x 2 x 2) = 8 = 1 x 8 = 8
0 x ( 2 x 2 ) = 4 = 0 x 4 = 0
1 x 2 = 2
1 x 1
= 16 + 8 + 0 + 2 + 1 = 27


Notice in the end if we power any number with 0 we get 1 that is why we wrote 1 x 1. When multiplying the results we get the final corresponding decimal number for the binary number we are converting for in this case number 11011 to decimal is 27.

Summary

There are different ways to convert numbers from decimal to binary and binary to decimal. We expect from you to explore. Binary numbers can be interesting especially if we know how to apply those values to Digital Circuits. In the next blog post we will explore arithmetical operations with binary numbers, just like we do with decimals. After that we will explore digital circuits, how to draw them and how binary numbers act upon these digital circuits. With that explored, we will have an overall understanding of electronic chips and inner workings of computers brain.

Suggested Article : Binary Numbers - Addition



Tuesday, 14 May 2013

Top 10 Indie Games

Indie Games
Indie Games
We have always had the stereotype and belief that what constitutes a good and playable game is the ones made by big companies and the games with 3D Graphics.

Independent Developers have seen a tremendous rise recently and proved wrong most of stereotypes by reviving the old school gaming or so called retro-gaming. Indie Game Developers have brought a nostalgia among the gamers with their creative and imaginative titles.

Sunday, 12 May 2013

Learn coding at Codecademy

Codecamy
Codecademy
Do you want to learn coding but you find the material on books very hard and not catchy for your brain?

Codecademy which is an online interactive website offers you a great and simply way to start your first steps toward the world of programming with a special interest on the Web.




Wednesday, 8 May 2013

Introduction to CrowdFunding, Kickstarter as a successful example

Crowdfunding
Crowd funding an Idea
Do you have a brilliant and creative idea, or you know other people who have creative ideas, but you/they need funding so the idea can be put into practice? Crowdfunding is a new way which through collective cooperation and the use of Internet as a tool a large number of people raise small amount of money or better say a sum of money depending on their likeness to fund a creative idea.

Momentally, the best known example for Crowdfunding is the awesome website Kickstarter.



Friday, 3 May 2013

Top Free Android Games

Android Games
Android Games
Computer Gaming is one of the biggest industry in the world. A lot of people take their time to try various genres of games. With the improvement of Artificial Intelligence and Computer Graphics Gaming have been taken into an almost revolutionary step with splendid games being thrown into the market.

On the other hand, gaming experience is not restricted only to PCs but it has also boomed into smartphones with the biggest concentration being on Android and iPhone System. In this article i will list some excellent Android games that are available at the Google Play. Most if not all of them are fully Free to Download.


Wednesday, 1 May 2013

CoinKeeper: excellent financial application for Android

CoinKeeper
CoinKeeper
We use our Smartphones for a lot of tasks, ranging from mandatory to simply for entertainment purposes. Android offers wide variety of applications to fulfill the needs and requirements of it's users.

What the Android user base wanted was a decent Financial Application to keep records for their daily life transaction and to give Statistics for the records. The creators of CoinKeeper have responded to this need with their awesome Financial Application. Actually, CoinKeeper was already known to the iPhone users and it was crowned as iOS best Financial Application.

Monday, 29 April 2013

How to get more likes and reputation on your Facebook page - Strategies and examples

Facebook Likes
Facebook Likes
Facebook pages can be very interesting and more importantly profitable. You have a fan page and you want to increase your likes, reputation and reach. If you follow some useful tips and steps you will end up with a very successful fan page that can bring profit.

If you dedicate your time without having in mind what can and cannot bring you profit then that can be a waste of time. And time is important. You don't want to waste your time and in future have none profitable page. So follow the steps given below and keep in mind that consistent work and effort will one day bring you a better life.

Sunday, 28 April 2013

Building an E-Commerce Website

eCommerce
E-Commerce has had a tremendous rise globally. It has challenged and dramatically changed the traditional business models and value propositions of many business organizations.

People now are employing at mass E-Commerce Website to do their business electronically since Internet and the security of transactions through Internet has become mainstream. Your decision for building an E-Commerce Website would be great, and in this article we will try to explain couple of steps and points to take in consideration.


Friday, 26 April 2013

A comparison between iPhone and Android

iPhone vs Android
iPhone vs Android
iPhone and Android are the biggest sharers of smartphone market in the world, and apparently they offer the best and fastest smartphones with the latest technologies being applied into their respective models.

But some question arises, which is better, iPhone or Android? Or, which of the phones suits you better? In this article we will try to make a comparison between these two smartphone giants. iPhone which comes together in package with it's mobile Operating System iOS is made by the giant company Apple. It has a closed source Operating System (which means that no modification to the software is available or allowed) in comparison with the Android which is an open source System made and maintained by Google Inc.

Thursday, 25 April 2013

Ubuntu 13.04 to be released today

Ubuntu 13.04
Ubuntu 13.04
The most famous Linux distro in the World Ubuntu maintained by Canonical is bringing it's new release Ubuntu 13.04.

Ubuntu 13.04 was promised to come in April 2013 with new improvement in design, speed and functionality.The main design for Ubuntu 13.04 will be again Unity but with some improvements like new Window snap animation, new Unity preview animation, new Shutdown dialog, Per-App account Toggles, new sync menu,  Work space item, new Lenses, Window switching methods etc etc.

Wednesday, 24 April 2013

Curiosity - People that changed our lives in the history of information technologies

Technology
We are here, in this modern era with technology and intelligent digital devices all around us. We depend on them, we live with them, and they play very significant role in every society. Ask yourselves what can you do today without the help of any digital device ? Can you run a company without computers ? Can you even get in touch with your employees without phone's or email services ?

The answer is obvious. But again did you ever asked yourselves who did this impact on our lives and who is responsible behind all this rapid technological growth and evolution ? Lets talk about most important peoples that changed our lives and still we depend on their clever thinking and useful minds.


Tuesday, 16 April 2013

Curiosity - World records on Social Networks

Social Networks
Social Networks
Google, Facebook, Youtube and other social networks just make our lives more funny and entertained. Ever wondered what are the best things that live on these websites ?
Discover the mosts and bests that happened on these networks during their experience and lifetime.




Linking C# Applications with MySQL Databases on Visual Studio

c#-mysql
Visual Studio as we know is a very powerful IDE from Microsoft. It has build in languages like C# C++ and Visual Basic. Development with Visual Studio can be pretty fun and successful. Visual Studio also has methods for creating and connecting to Databases like ADO.NET technology.

However for some personal reason you dont want to use ADO.NET technology for your Databases or SQLServer for the simple reason that they are expensive. Perhaps you want your applications data to live forever, and never be gone if your hard drive burns or dies.

Monday, 15 April 2013

Learning programming concepts through a game

Light Bot
Light Bot
Learning programming concepts can be quite abstract and not catching for youngsters and many  people who enter the world of programming. ArmorGames have found a way to express their programming skills through a game.

That's it ! You can now learn some basic programming concepts by playing a very interesting and logical game. Light-Bot is not only a interesting game but also a funny and interactive way of learning the programming concepts. As a main protagonist of the game you have a robot which needs to reach the blue box and switch the light.

 

© 2013 smartnoob . All rights resevered. Designed by Templateism