Skip to main content

Posts

Ruby on Rails Tutorial

Ruby on Rails Introduction  Hi all I,m here with a new article actually It's trending laguage for you all .Invented in Japan. That means it's very active language. Also it's  need some theory parts to understand these things very well so i will go through by explaining them simply. What is Ruby? Before we Ride on Rails , let us recapitulate a few points of ruby, which is the base of Rails. Ruby is the successful combination of Smalltalk's conceptual elegance python's ease of use and learning and perl's pragmatism Ruby is   A high level programming language. Interpreted like Perl, Python , Tcl/Tk. Object oriented like Smalltalk, Eiffel, Ada ,Java Why Ruby? Ruby originated in japan and now it is gaining popularity in US and Europe  as well. The following factors contribute towards  its popularity. Easy to learn Open source(very liberal license) rich libraries very easy to extend  Truly Object Oriented Less coding with f...
Recent posts

Quick Tutorial with Pedometer

For a better start i'm gonna go through some points Arduino uno(with connecting cable) Accelerometer Jumper Cables Bouth & Pb (since i,m a chemistry student)                                                               Ok here we go!  I hope you all familiar with what above mention with the points. If not quickly follow me whatever the social media i mentioned in my blog i'm willing to help you. First of all i would like to introduce Arduino Uno here. This is a simple picture of it. as i mention in the picture arduino uno consists with digital pins & power pins. Accelerometer is the sensor what we going to work with now.It will look like this.     in this picture it's just a sensor with holes. to fill with that up you gonna need headers(male/female). Probably now you need your bo...

Data Compression- Run Length Encoding

Hello Again!! This article is beyond from the programming. FYI as a programmer you should have a knowledge about these things. If not you will ended up with a mess. It's RLE What is it?  Run Length Encoding is a very simple form of loosless data compression in which runs of data are stored as a single data value and count, rather than as the original run. Understood? I bet you wont !! Let me go it with my way right after this article you will a have sufficient knowledge about RLE for sure. Let's Dive in ! Let's try an encoding image drawn using three colors on a 5x5 grid. First we will use simple method We have assigned a letter to each of the colors, Y for Yellow, G for Green, and B for Blue. As a result of transforming the rows into Ys,Gs nad Bs one line at a time starting from the upper left, we were able to encode the figure into a line of 25 letters. Next, using run legth encoding on the image, let's try expressing it in less than 25 le...

Euclidian Algorithm(Math)

Hi all ! I,m here again with some interesting article. It's not about programming or databases this time. It's algorithm. Actually It's Math. We all know it as Euclidian Algorithm(Euclid in Math). Let's start this then !!! The "Euclidian algorithm" is an algorithm that finds the greatest common divisor of 2 numbers.Discovered by Euclid in the mid 4th century BC, it's referred to as the world's oldest algorithm. As an example, let's consider the largest common divisor of 1112 and 695. With the usual method, we factorize the 2 numbers into prime numbers. and the greatest common divisor(GCD) from the prime numbers they share. Now we know that the greatest common divisor for 1112 and 695 is 139. However, with this method, the larger the 2 numbers get, the more difficult prime factorization becomes.With Euclidian Algorithm, we can find greatest common divisors more efficiently. Before we Enter an expla...