Monday, July 18, 2016

How to create own software program

Anyone interested in developing software, such as a program, game, or online service, must start by learning a programming language.There are many different programming languages and creating a new software program requires more training and more time than one page can provide. Therefore, this page is meant as a general overview to help point you in the direction to get started. An important beginning step is to have a plan for what program you want to develop. For instance, a plan would include the purpose of the program, game, or service, and the features you want to include. Be thinking of what your plan is as you continue reading.

Picking the Language

As we noted above, there are many different programming languages. Deciding which language to learn can be a challenge by itself. Creating a program with many features and functions often requires you to be fairly proficient in one or more programming languages.
That being said, basic understanding of the concepts of pretty much any programming language can help to get you started. Our listing of programming languages includes examples of the various types of software each language can create. Here are a few of our recommendations.
Computer Hope Recommendations
Deciding on your programming language depends on what type of program or script you would like to create. For example, Java and Visual Basic are both popular because of their relative ease and because both are a good way to learn programming fundamentals. Other popular languages include C, C++, and C#, which are used to create games, apps, drivers, operating systems, as well as many of the software programs that run on a computer.
If you are interested in developing scripts and programs, like online forums and services, Perl, PHP, and Python are all popular choices, in addition to HTML.

Deciding on an editor

An editor is any program that allows you to write computer code. They range from simple (like any basic text editor) to advanced software, such as Adobe Dreamweaver, Eclipse, JDeveloper, or Microsoft Visual Studio. Fortunately, any program can be written in a text editor, which means you can get started for free. As you get more comfortable with a programming language, using a more advanced editor is recommended, as it can make coding and testing the code more efficient.
Computer Hope Recommendations
For Windows users, we suggest an editor such as Notepad ++ because it is free and supports syntax highlighting. If you're on a Mac, you can use their free editor named TextEdit. Also, it is good to keep in mind that visual programming languages, like Visual Basic, include the editor and compiler in the same tool used to create programs.

Compiler

Most computer programming languages are high-level programming languages, meaning they are easy for you to understand but impossible for a computer to understand. For the computer to "read" your program, it must be compiled or have an interpreter. Your programming language is the deciding factor on whether or not you'll need a third-party program to compile or interpret it.
For example, Eclipse is an interpreter that takes a program written in Java and "translates" it into code that can be run on and understood by a computer. Other languages, like Perl, are interpreted, meaning they do not need to be compiled. These languages only require that they are installed on the computer or the server that is running the script.

Learning the language

After you have decided on a programming language, editor, and compiler, you are ready to program. For most users, the easiest way to start is with the infamous Hello World! program. After you have been able to run your program that prints "Hello World!" to the screen, the next step is to learn the language's syntax. To do so, you need to understand the following concepts:
  • Understand how to declare variables
  • Create conditional statements (e.g. if, elsif, and else)
  • Perform loops (e.g. do, for, foreach, goto, and while)
  • Understand escape sequences
  • How to make comments or temporarily disable parts of the code
  • Understand regular expressions

Sunday, July 17, 2016

How to play chess

History of Chess

The origins of chess are not exactly clear, though most believe it evolved from earlier chess-like games played in India almost two thousand years ago.The game of chess we know today has been around since the 15th century where it became popular in Europe.

The Goal of Chess

Chess is a game played between two opponents on opposite sides of a board containing 64 squares of alternating colors. Each player has 16 pieces: 1 king, 1 queen, 2 rooks, 2 bishops, 2 knights, and 8 pawns. The goal of the game is to checkmate the other king. Checkmate happens when the king is in a position to be captured (in check) and cannot escape from capture.

Starting a Game

At the beginning of the game the chessboard is laid out so that each player has the white (or light) color square in the bottom right-hand side. The chess pieces are then arranged the same way each time. The second row (or rank) is filled with pawns. The rooks go in the corners, then the knights next to them, followed by the bishops, and finally the queen, who always goes on her own matching color (white queen on white, black queen on black), and the king on the remaining square.
The player with the white pieces always moves first. Therefore, players generally decide who will get to be white by chance or luck such as flipping a coin or having one player guess the color of the hidden pawn in the other player's hand. White then makes a move, followed by black, then white again, then black and so on until the end of the game.

How the Pieces Move

Each of the 6 different kinds of pieces moves differently. Pieces cannot move through other pieces (though the knight can jump over other pieces), and can never move onto a square with one of their own pieces. However, they can be moved to take the place of an opponent's piece which is then captured. Pieces are generally moved into positions where they can capture other pieces (by landing on their square and then replacing them), defend their own pieces in case of capture, or control important squares in the game.
The King
The king is the most important piece, but is one of the weakest. The king can only move one square in any direction - up, down, to the sides, and diagonally. Click on the '>' button in the diagram below to see how the king can move around the board. The king may never move himself into check (where he could be captured).

The Queen
The queen is the most powerful piece. She can move in any one straight direction - forward, backward, sideways, or diagonally - as far as possible as long as she does not move through any of her own pieces. And, like with all pieces, if the queen captures an opponent's piece her move is over. Click through the diagram below to see how the queens move. Notice how the white queen captures the black queen and then the black king is forced to move.

The Rook
The rook may move as far as it wants, but only forward, backward, and to the sides. The rooks are particularly powerful pieces when they are protecting each other and working together!

The Bishop
The bishop may move as far as it wants, but only diagonally. Each bishop starts on one color (light or dark) and must always stay on that color. Bishops work well together because they cover up each other’s weaknesses.

En Passant

The last rule about pawns is called “en passant,” which is French for “in passing”. If a pawn moves out two squares on its first move, and by doing so lands to the side of an opponent’s pawn (effectively jumping past the other pawn’s ability to capture it), that other pawn has the option of capturing the first pawn as it passes by. This special move must be done immediately after the first pawn has moved past, otherwise the option to capture it is no longer available. Click through the example below to better understand this odd, but important rule.

The Pawn
Pawns are unusual because they move and capture in different ways: they move forward, but capture diagonally. Pawns can only move forward one square at a time, except for their very first move where they can move forward two squares. Pawns can only capture one square diagonally in front of them. They can never move or capture backwards. If there is another piece directly in front of a pawn he cannot move past or capture that piece.


The Knight
Knights move in a very different way from the other pieces – going two squares in one direction, and then one more move at a 90 degree angle, just like the shape of an “L”. Knights are also the only pieces that can move over other pieces.


Castling

One other special rule is called castling. This move allows you to do two important things all in one move: get your king to safety (hopefully), and get your rook out of the corner and into the game. On a player’s turn he may move his king two squares over to one side and then move the rook from that side’s corner to right next to the king on the opposite side. (See the example below.) However, in order to castle, the following conditions must be met:
  • it must be that king’s very first move
  • it must be that rook’s very first move
  • there cannot be any pieces between the king and rook to move
  • the king may not be in check or pass through check









How to crack jee mains and advance

Start preparing for JEE right after your Class 10 exams. Do not waste your time.

JEE is NOT tough. You Just need to develop a natural interest in Physics, Chemistry and Maths – think in terms of actual scenarios and not just solving problems.

You must spent time on self-preparation apart from School and Coaching classes.

The number of hours you study is more important than how much you actually get done in those hours. Concentration in whichever subject you study is the key.

Build a good timetable and follow it religiously. Systematic study is more important than studying concepts randomly.

Avoid Social Media distractions like Facebook and Mobile distractions like Whatsapp for these two years, but you could Join useful Facebook groups and Google+ communities to keep a tab on what other students are upto – how are they preparing differently.

Take breaks between studies. Play your favorite sports to keep yourself fit and rejuvenated.

Friends can be a distraction. Choose wisely whom you want to be friends with over these 2 years.

On the JEE Exam day, follow your test taking strategy – Sankalp’s strategy was to attempt Chemistry first as it was a tough subject for him (owing to the vast syllabus) and he solved Physics and Maths after Chemistry.

Find a mentor in your close circle. It can be your brother, sister, mother, father, cousin, class teacher – anyone. You need to be motivated throughout these 2 years
Do not lose vision and focus of your Goal!

Share this post with your friends 

Installing Android Studio

Android Studio is the official IDE for Android app development. It provides the core tools needed to start developing Android apps, includ...