Posts

Featured post

Why should I learn Go?

Image
What is unique about GO language? Here are some of the advantages of GO programming language:           Code runs fast           Garbage collection           Simpler objects           Efficient concurrency Code runs faster: Before understanding why GO runs faster, let us know the process of software translation. Basically, we have three broad categories of languages:             Machine level language ·        Machine level language is a low-level language where instructions are directly executed on the CPU. Machine level instructions are small steps which are straight forward and simple (Ex: ADD, SUBTRACT, MULTIPLY ) Assembly language ·        Assembly language is similar to machine level language but a bit more specific for humans to understand. For example, 1000...

Runtime Errors

As programmers we come across various types of errors. Some errors can be fixed using the message associated with that error while some of them are not clear. One such type of error is the "RUNTIME ERROR". What is a runtime error? A runtime error means that the program was compiled successfully, but it exited with a runtime error or crashed. You will receive an additional error message, which is most commonly one of the following: 1)  SIGSEGV This is the most common error, i.e., a "segmentation fault". This may be caused e.g. by an out-of-scope array index causing a buffer overflow, an incorrectly initialized pointer, etc. This signal is generated when a program tries to read or write outside the memory that is allocated for it, or to write memory that can only be read. For example, you’re accessing a[-1] in a language which does not support negative indices for an array. 2)  SIGXFSZ "output limit exceeded". Your program has printed...

Introduction to Big Data and Hadoop

Image
What is Big data? Data represents useful information. Over the past decade, data has been significantly increasing.  Generally we store data in traditional relational databases. This is by far the most efficient method to store and retrieve considering small amounts (generally in megabytes or gigabytes) of data.  But what if the data is huge? (By huge I mean really huge.ie, in terms of terabytes or petabytes or exabytes or even zetabytes of data). Such large amount of data is considered as big data. There is no specific meaning for Big Data. It can be defined in many ways. But, if we were to define what big data is, we can define it in the following way: “Big data is the data which cannot be processed on a single machine” So we need some way to store and process data in an efficient manner. This can be achieved using “Hadoop”. What is Hadoop? Hadoop is an open source software framework used for distributed storage and processing of big...

What is context in android ?

Image
  The topic of Context in Android seems to be confusing too many. People just know that Context is needed quite often to do basic things in Android. People sometimes panic because they try to do perform some operation that requires the Context and they don’t know how to “get” the right Context. I’m going to try to demystify the idea of Context in Android. A full treatment of the issue is beyond the scope of this post, but I’ll try to give a general overview so that you have a sense of what Context is and how to use it.   What exactly is Context? Well, the documentation itself provides a rather straightforward explanation: The Context class is an “Interface to global information about an application environment". The Context class itself is declared as abstract class, whose implementation is provided by the Android OS. The documentation further provides that Context “…allows access to application-specific resources and classes, as well as up-calls for ap...

Browser-Refresh : A useful plugin for developers

Image
Best Editor and Plugin for Web Development: As a developer I am very curious about choosing the best editor for my development purposes. Today I am going to show you about the best editor – “SUBLIME TEXT” and also a plugin called “BROWSER-REFRESH” which makes development easy. Sublime Text is a sophisticated text editor for code, markup and prose. You'll love the slick user interface, extraordinary features and amazing performance. It also contains a package manager through which you can install large number of plugins for your development purposes. I have linked the website for you to download sublime text. https://www.sublimetext.com/ Browser-Refresh : It is irritating for every web developer to save the file, then go to the browser and refresh. That is really a tedious work since we write hundreds of lines of code. Instead browser-refresh helps you to sync your code with the browser so that the next time you make changes to your code, the action...

LocationManager vs GoogleApiClient

Image
User Location on Android Getting the user’s location on Android is a little less straightforward than on iOS. To start the confusion, there are two totally different ways you can do it. The first is using Android APIs from  android.location.LocationListener , and the second is using Google Play Services APIs  com.google.android.gms.location.LocationListener . Let’s go through both of them. 1.      Android’s Location API The Android’s location APIs use three different providers to get location - ·         LocationManager.GPS_PROVIDER  — This provider determines location using satellites. Depending on conditions, this provider may take a while to return a location fix. ·         LocationManager.NETWORK_PROVIDER  — This provider determines location based on availability of cell tower and WiFi access points. Results are r...