Clojure

Apache Storm: Architecture

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

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

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

Knolx Session: Introduction to Clojure

This presentation is about a brief introduction to clojure basics like data structures, threading operations, parallelism, futures, atoms, refs, agents etc.

Knol Session: Web Application using Clojure

Introduction About Clojure Web Framework and its API. Following Slides show how to create a basic Web application using Clojure Language.

Linkedin sign-in functionality using Clojure

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 https://developer.linkedin.com/documents/quick-start-guide 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

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: https://console.developers.google.com/project. Now Continue Reading

Testing in Clojure (Part-1: Unit testing)

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

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" "http://repository.sonatype.org/content/repositories/central/">http://repository.sonatype.org/content/repositories/central/]] :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

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

In order to provide Facebook sign-in functionality you need to create a new Facebook App from this url: https://developers.facebook.com/docs/facebook-login. 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

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

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

%d bloggers like this: