Wednesday 22 June 2016

How to Use Callback in Node.js

node.js-logo.png

A callback is a function which is highly used in node js. When we want to run any task after the success or completion of a given task then we will use a callback. We will write maximum API in such a way that they will support callback.

when we write localhost:3000/sum/23 on the browser then first it will call to the app.get('/sum/:num', sumCallback); routes. Then it will go to the sum function there we pass callback then we check number exists or not  if the number exists then on the success of the function we will move further else we will display error.

In else case we will call one more function sum there we also write one more callback. If sum function will return any result then inside sum callback will occur and display the result.

Read more about How to Use Callback in Node.js visit Findnerd.

Friday 17 June 2016

Browsernizer gem integration in Ruby Programming

programming-language-ruby-and-the-rails-framework-1-728.jpg


We can use browsernizer gem to restrict an application to open on old version of browsers or we can notify user to upgrade browser. Its works like a middleware in application.

If the browser version is less than config it will be redirected to /browser.html page that is IE 10+, Firefox 40+, Opera 11.1+ and Chrome 45+ are supported and Non listed browsers are considered to be supported regardless of their version.

Read more about Browsernizer gem integration in Ruby Programming visit Findnerd.

Thursday 16 June 2016

Top 8 Project Management Tools an Entrepreneur Should Know

road-sign-1280256_960_720.png

Project Management is a plethora of activities. Project Management indulges in various activities such as Client Communication, Resource Planning, Project Planning, Risk analysis and mitigation, Project co-ordination and so on. In order to smooth the process there are few project management tools which ease the process.

Few of them are mentioned below :

BaseCamp : This is one of the simple and efficient project management tool. The BaseCamp provides wide variety of features with ease. The BaseCamp is widely used by many companies across the globe for ease project management process.

Asana : Just like BaseCamp, Asana is another project management tool which provides ease in project management process. Asana is mainly designed for effective team collaboration,it mainly focuses on project management without using email.

Read more about Top 8 Project Management Tools an Entrepreneur Should Know visit Findnerd.

Wednesday 15 June 2016

List of Software Components in Android Architecture

cetizen_android6_0.jpg

Android Architecture is a bundle of software components. Android is Linux-based software stack that has some software components like operating system, middleware, native applications,  API libraries.

Android Architecture has five sections and four main layers. Each Android Architecture layer has different functionality and different services to Android operation system.

Android Architecture main parts:-
  1. Linux Kernel
  2. Native Libraries
  3. Android Runtime
  4. Application Framework
  5. Applications

Read more about the List of Software Components in Android Architecture visit Findnerd.

Friday 10 June 2016

Cordova Insomnia plugin - Keep the screen awake




This post is about cordova insomnia plugin. Which prevent the mobile screen from turn down and locking while user is not touching the screen.

This feature used in applications when we read a lengthy document or watching a video in application.

To use this feature in the app we need to install following plugin through CLI.

Read more about the Cordova Insomnia plugin - Keep the screen awake visit Findnerd.

Wednesday 1 June 2016

Image Upload using Retrofit

maxrresdefault.jpg

We are assuming you are already familiar with Retrofit. If not then first go to this. We have used multipart request for uploading image on server using Retrofit.
Following are the simple and easy steps for image uploading using Retrofit:-

Step 1: Add required dependency in your module level gradle file for using Retrofit.

Step 2: Create an interface that contain an abstract method with return type Call<ResponseBody>.

Step 3: Create a class that contains following:-
  • Base url of your server.
  • Instance of OkHttpClient.Builder.
  • Instance of Retrofit.Builder.

Read more about the Image Upload using Retrofit visit Findnerd.