Posts

Showing posts from September, 2018

Amazon EMR and Azure HDInsight: A Comparison

Image
By the end of this year, spending on IT infrastructure products to be deployed in cloud environments will be $37.1 billion, International Data Corporation predicts. According to IDC’s Worldwide Quarterly  Cloud IT Infrastructure Tracker , released this month, enterprise spending on  Cloud Services  will increase about 15 percent over last year. Public cloud infrastructure makes up the largest piece of the pie, with spending in that arena expected to be $23.3 billion, a nearly 19 percent increase. One of the main reasons behind the exponential growth of Cloud market is association of Cloud with Hadoop. There have been hot discussions about running Hadoop in Cloud environments, while Amazon’s Elastic MapReduce continued with enhancements with its base platform, Azure too came with HDInsights’ improvizations. Increasing awareness about Hadoop in Cloud also bought some limelight to the projects like Apache Whirr and Netflix’s Genie. Recent announcements at the Hadoo...

Scaling large Size Bitmap in Android

Image
In android we go through a really common problem of Bitmap scaling , As we know android have several devices and we have to decode our image in dynamic so that it wont look stretched or blurred on any of android devices , There are several methods provided by android OS for Bitmap decoding but when we override them directly for large size Bitmap then some time we face Memory Leak issues for smaller devices i.e(Low processing devices) , Source: jlelse.eu To over come this problem We have keep one thing in mind we shouldn’t change the image Aspect ration. Aspect ratio Means– For example If we have set the image using all the width of the device and some specific height , then we have Scaled the Bitmap height Wise , that means the Width constant should be constant and height will vary device to device . Here is the easy way to implement the same —  // Method to Scale the image height wise private Bitmap decodeFile(String FileName) { WindowMan...

How to use Jenkins and AWS Code Deploy as a CI / CD Tool

Image
Continuous Integration is a software development practice  where continuous changes and updates in code base are integrated and verified by an automated build scripts  using various tools. Continuous Deployment is also a software development practice whose role is to automatically deploy the code to the specified server and application folder once the code is been integrated successfully. We will use couple of famous tools to CI and CD my app to any particular environment. Scenario : Suppose we have setup 3 different  environments (Development, Staging and Production) and all the server are architectured on Amazon Web Services. As a part of architecture , Our application was  deployed on 3 tier architecture (Client Tier, Business Logic Tier and Database Tier) and it was featured with AWS Auto Scaling  service which used to help scale our servers depending on the metrics and policies we specified. So, every time a new feature was developed, w...

How to use both Django & NodeJS as backend for your application

Image
Choosing a language for your web/mobile application depends on what you want to achieve from the task. There are many ways and reasons to have your application running on multiple technologies and integrate them. Here I will be talking about two different backend languages that are Django and Node.JS, both are backend technologies and may be you want to use it because NodeJs Development is fast and Django is powerful. For what purpose these types of arrangement should be used and which should be used where: The main reason you want to use NodeJS in addition to a more traditional framework like Django, if there is a real time or multiplayer aspect to your application. Django is useful for sketching your requirement out, once you know what you are building, you can build the real time data retrieval into NodeJS and let Django handle maintenance functionality such as password reset and also lets you build high-performing, elegant web application quickly and focuses on automat...

Sending apple push notification through PHP server

One of the widely used feature in iPhone development platform is to send the push notifications to the individual device relevant to the application installed on to it. This tutorial will go into details of how to configure the apple push notification for the device application as well as how to send the push notification onto apple device using PHP server. Step 1:Configure your iPhone application to receive push notification. Find your application under the App ID’s on apple developer site. Under your application click on configure to enable the APNS(apple push notification server)service.You have to create the push notification for both development as well as production mode of the app. Follow the steps to configure the app for push notification by giving the certificate signing request. To generate the certificate signing request go to keychain access and click on request a certificate from certificate authority. Once you submit the CSR(certificate signing request)yo...

How to get user Latitude, Longitude & current address using HTML5

Image
Geolocation is the creativity of reckoning out where you are in the world & sharing information, for that HTML5 helps in identifying the user’s location, which can be used to provide location specific information or route navigation details to the user. Among many techniques used to identify the location of the user, a desktop browser generally uses WIFI or IP based positioning techniques whereas a mobile browser uses GPS, cell triangulation, WIFI based positioning techniques, etc. The Geolocation API will use any one of these techniques to identify the user’s location. The Geolocation protects the user’s privacy by authorizing that the user permission should be sought and obtained before sending the location information of the user to any website. So the user will be prompted with a request for the user’s permission to share the location information.   Set Geo location lat and long : Bellow example is returning the latitu...

The Levenshtein Algorithm

Image
The Levenshtein distance is a string metric for measuring difference between two sequences. Informally, the Levenshtein distance between two words is the minimum number of single-character edits (i.e. insertions, deletions or substitutions) required to change one word into the other. It is named after  Vladimir Levenshtein , who considered this distance in 1965. Levenshtein distance may also be referred to as  edit distance , although it may also denote a larger family of distance metrics. It is closely related to pairwise string alignments. Definition Mathematically, the Levenshtein distance between two strings a, b (of length |a| and |b| respectively) is given by leva,b(|a|,|b|) where: Levenshtein distance between two strings where 1(ai≠bi) is the indicator function equal to 0 when ai≠bi and equal to 1 otherwise, and leva, b(i,j) is the distance between the first i characters of a and the first j characters of b. Note that the first element in th...