Apache Storm: Architecture

Reading Time: 5 minutes Apache Storm is a distributed realtime computation system. Similar to how Hadoop provides a set of general primitives for doing batch processing, Storm provides a set of general primitives for doing the realtime computation. Storm is simple, can be used with any programming language, is used by many companies, and is a lot of fun to use! Components of a Storm cluster Apache Storm cluster Continue Reading

Scala in Business | Knoldus Christmas Newsletter – December 2014

Reading Time: < 1 minute Hello Folks We are back again with December 2014, Newsletter. Here is this Scala in Business | Knoldus Newsletter – December 2014 In this news letter, you will see that how fast organisations are adopting Typesafe Reactive Platform to get best solution, how functional programming is getting into mainstream and how functional programming is becoming popular choice among the developers. So, if you haven’t subscribed Continue Reading

Scala in Business | Knoldus Newsletter – November 2014

Reading Time: < 1 minute Hello Folks We are back again with November 2014, Newsletter. Here is this Scala in Business | Knoldus Newsletter – November 2014 In this newsletter, you will get to know the popularity of Spark in big data. Spark is getting more attention in all over the world for fast data processing. People are getting much faster data processing speed with Spark. You will get to Continue Reading

Linkedin sign-in functionality using Clojure

Reading Time: 2 minutes This blog will show you how to add Linkedin sign in functionality in your clojure web application. First Create an application on Linkedin by following the link Fill all the information and provide the Redirect URI which you use in your application .Once you create the application you will get the API Key and Secret Key. Let’s reference the [noir.response :as resp] [cheshire.core :as Continue Reading

Google Sign-In using Clojure

Reading Time: 2 minutes Last time I wrote an article for providing Facebook Sign-In using Clojure. This article will guide you to add Google Sign-In functionality in your web application using clojure. We’ll use compojure.core for routing, clj-http.client for http requests, cheshire.core for parsing json and noir.response for redirections. First, make a new google project to get your project’s Client ID and Client Secret Key from this URL: Now Continue Reading

Testing in Clojure (Part-1: Unit testing)

Reading Time: 3 minutes Testing a web application in Clojure is as important as testing in any other language. Clojure testing has been made simpler with its built in unit tests. This blog explains about how to do unit testing(testing each module independently) of Clojure methods with some very basic syntax. For Clojure testing we would be using a clojure.test testing namespace to load testing framework for placing the Continue Reading

Password Recovery in Clojure

Reading Time: 2 minutes This Blog post will help you to add the password recovery functionalities in your clojure web application. Firstly, create html file containing textbox for getting email address, on which a new passowrd will be sent. Next, add this in your project.clj File :repositories [["central-proxy" "">]] :dependencies [[org.apache.commons/commons-email "1.2"]] Now follow the given steps to add password recovery functionality: Let’s define a forgot-password.clj namespace and import Continue Reading

Validity Checks using Clojure

Reading Time: 2 minutes For putting Validation checks using Clojure code, clojure noir library checks are used. One needs to first create a form page using basic html for placing the checks.As an Example here, I am using a registration page text boxes to put the validation checks over the required fields. <label for="id"> {% if id-error %} <div>{{id-error}}</div> {% endif %} <input id="id" name="id" placeholder="User Name" type="text" value={{id}}></input> Continue Reading

Facebook Sign-in using Clojure

Reading Time: 2 minutes In order to provide Facebook sign-in functionality you need to create a new Facebook App from this url: Provide the redirection URI that you’ll use for the App. After setting up the app you’ll get an App ID and App Secret key. We’ll use “clj-oauth2.client” to redirect a user to the authentication page, “clj-http.client” for HTTP requests, “cheshire.core” to parse Json string in order Continue Reading

Maintaing Database in Clojure for New registered User

Reading Time: < 1 minute Clojure is the most popular Lisp dialect today for starting new development. The Clojure web stack is based on the Ring and Compojure libraries. Ring is the base HTTP library, while Compojure provides routing on top of it. Clojure makes a number of powerful libraries available, and we can put these libraries together in a way that makes sense for our particular project. The below Continue Reading

Parallelism in Clojure, Part I

Reading Time: 4 minutes An axiom of microprocessor development stating that the number of transistors on integrated circuits doubles approximately every two years is analogous to the fact the processing power doubles during the same period, relative to the cost or size. This has lead to the need of parallelism in programming languages and Clojure is one such language which provides a variety of functions for your multi-threaded code. Continue Reading