Ruby Unless: How is it Different from the If Statement

Ruby UnlessRuby, like most other programming languages, utilizes a number of statements. These are the while loop, until, for and unless. All these statements have their own specific applications and utilize a particular syntax. Of the statements just listed, in this article we are going to discuss the unless statement in detail and will try to find out how this statement is different from the similar looking if statement in ruby. The unless statement, in its most basic form, is just the opposite of the if statement. In an unless statement, the code is executed when the condition is false, unlike in if where the code is executed when the condition is true. This is the basic difference between these two.

Here we are going to discuss the syntax and working of the unless statement and the if statement in detail and will try and understand their functioning. Before we begin our study, it would be a good idea to go through some of the basics of the programing in Ruby. This will help you to brush up the basics and in case of beginners, would help in building some kind of a base for further study of the more advanced tools. This course here on the basics of programming in ruby will be the perfect place to start. [Read more…]

The Ruby While Loop: Introduction and Syntax

Ruby WhileRuby is a rich programming language in that it has a large collection of very simple and useful programming tools which make programming in Ruby a very simple and enjoyable task. One such family of these simple and useful tools in Ruby is the Ruby loops. The loops in Ruby are the statements that help in the execution of a certain code repeatedly over a particular number of times. There are a number of loops in Ruby and one such loop is the while loop. The while loop executes a block of code repeatedly a certain number of times till the condition which has been specified remains true. As soon as the condition ceases to be true, the loop breaks and the execution of the code stops.

Here we are going to discuss the syntax and working of the while loop in detail and will try and understand its functioning through some suitable examples. Before we begin our study of the while loop, it would be a good idea to go through some of the basics of the programing in Ruby. This will help you to brush up the basics and in case of beginners, would help in building some kind of a base for further study of the more advanced tools. This course here on the basics of programming in Ruby will be a good place to start. [Read more…]

Ruby Loop: Introduction and the Various Types

ruby loopRuby is an open source programming language which has been gaining in popularity lately due to its simplicity and the focus and emphasis it lays on productivity. This programming language uses a very user-friendly syntax which is easy to read and write and hence provides ease of usability. The loops in ruby are the programming tools which help the programmer in executing the same block of code repeatedly a certain number of times. This saves time and effort as the same code need not be written again and again and the programming becomes more efficient. There are a number of loops in Ruby and we are going to discuss each of these here in detail. All the different loops have their specific usage and certain properties related to their applications separate them from each other.

[Read more…]

Equation of Hyperbola: Mathematical Representation

equation of hyperbolaThe equation we’ll be covering today is a mathematical representation of the geometrical figure called the hyperbola. The hyperbola is a part of the family of geometrical figures called the conical sections, and it closely resembles the letter x in its graphical representation. For the study of hyperbola or any geometrical figure for that matter, a basic understanding of the concepts of geometry is a must. Having a basic understanding of these concepts will enable you to understand the terminology and concepts being discussed here quickly and in a more efficient manner. Here is a great beginner’s course about the basic concepts of geometry which will give you a good quick review about the basics and will prepare you in a better way for the concepts which are going to be discussed here.

There are two methods to write the equation of a hyperbola depending upon the orientation of the transverse axis. First of all we are going to discuss these two methods.

[Read more…]

Statement of Purpose for MBA Applicants

statement-of-purpose-for-mbaA statement of purpose for MBA applicants basically represents you to the selection committee of a particular business school and your statement of purpose should clearly focus on the key areas like why you want to do an MBA, why you are the right choice for the selection committee, and how are you better than the rest of the candidates. What separates you from the rest? A statement of purpose is basically an opportunity for you to market yourself in front of the selection committee and a good statement of purpose can give you a significant upper hand in the selection procedure.

For writing an effective statement of purpose it is very important to be completely aware about the complete admission process for the top B schools. The admission policies can sometimes be specific to the particular B schools but the basic criteria remain the same. Here is a great course about the basics of the MBA admission process which will give you a complete insight about all the important aspects related to the admission procedure and will be of great help for writing a good statement of purpose. [Read more…]

Change SSH Port in Four Simple Steps

changesshportSSH is the Secure Shell protocol which uses the port 22 as the default value. The main purpose of using this protocol is to provide security over a network of two or more connected computers. Changing the SSH port from the default value of 22 to some other user defined value is a method used to make the network more secure. One thing should be kept in mind here: using the default value for the network does not make it insecure but the added benefit of using a user defined value is the improved protection against automated cyber-attacks. As the port number is not known automatically (as would have been the case if the default value would have been used) this decreases the chances of such an automated attack being successful to a great extent.

Here we are going to discuss the steps to change the SSH port in a Linux based system and before we move towards these steps, it is very important for you have a basic understanding of how a Linux system works. Here is a great course about the basics of a Linux system and this course will equip you with all the basic knowledge required to understand the steps being discussed here.  [Read more…]