Insights and perspectives to keep you updated.

Scaldi: Dependency injection library in scala

Scaldi is the lightweight dependency injection library written in scala and it provides scala DSL for binding dependencies and injecting them. Its depends on three concepts. Injector – container for bindings. Module –  where we define bindings and it extends Injector. Injectable – trait which provide DSL for injection. In this blog we will see how can we use it with Akka. 1. First add scaldi Continue Reading

Play with Spark: Building Apache Spark with Play Framework – (Part – 2)

Last week, we saw how to build a Simple Spark Application in Play using Scala. Now in this blog we will see how to add Spark’s Twitter Streaming feature in a Play Scala application. Spark Streaming is a powerful tool of Spark. It runs on top of Spark. It gives the ability to process and analyze real-time streaming data (in batches) along with fault-tolerant characteristics Continue Reading

Integrating Google Drive in Play Scala application with Google+ API

In our earlier blog, i.e., Integrating Google Drive infrastructure in Play Scala application we talked about integrating the Google Drive infrastructure in Play Scala application as like Assembla and some others. In that blog we used OAuth2 in order to communicate with the Google using Access Token and Refresh Token. For getting the Access Token & Refresh Token we used following Scopes of Google API: “https://www.googleapis.com/auth/userinfo.email” “https://www.googleapis.com/auth/userinfo.profile” But Continue Reading

Scala in Business | Knoldus Newsletter – June 2014

We are back again with June 2014, Newsletter. Here is this Scala in Business | Knoldus Newsletter – June 2014 In this newsletter, you will find that how industries are adopting Typesafe Reactive Platform for scaling their applications and getting benefits. So, if you haven’t subscribed to the newsletter yet then make it hurry and click on Subscribe Monthly Scala News Letter

FunHop: Understanding Referential Transparency

In this episode of FunHop, we would try to look at what is Referential Transparency, what is substitution model and how being immutable really helps. Referential transparency means that we can exchange the expression by its value or a value by the expression and nothing changes. Pure functions are referentially transparent. Any function f(a)=b is a pure function if for the same “a” we end Continue Reading

A simple CRUD application in Play! Framework using Kundera and Cassandra as a Database.

playing-kundera-cassandra: This is a classic CRUD application, backed by Play 2.3.0, Kundera & Cassandra. It demonstrates: Accessing a Cassandra database, using Kundera. Achieving, Futures to use more idiomatic error handling. Accessing JS & CSS libraries by WebJars. Bootswatch-United with Twitter Bootstrap 3.1.1 to improve the look and feel of the application Instructions :- The Github code for the project is at : playing-kundera-cassandra Clone the project Continue Reading

Getting started with Lift Web Framework by creating your First Project

In this blog, I will explain that how can we create a lift web project. There are 2 ways to do this. Here, I will explain both ways step by step . 1. Download and Run Lift : To install and run Lift, the only prerequisite is to have Java 1.5 or later installed. Instructions for installing Java can be found here. Once you have Continue Reading

Play with Spark: Building Apache Spark with Play Framework

Nowadays, Play framework is being used a lot, for building Scala Applications. It is easy to use & it is Typesafe. So, in this post, we will see how to build a Spark Application in Play 2.2.x. Although Play also uses sbt to build an application but building a Spark Application in Play is totally different. Before start building this application follow the instructions of building Continue Reading

FunHop : What Are These Side Effects?

FunHop is imagined as a series which allows us to gradually hop into the realms of Functional Programming. Our vehicle for the journey is going to be Scala but the fundamentals are applicable across languages. In this episode we would try to decipher Side Effects. We keep hearing that pure functions are the ones where there are NO side effects. Let us begin with an Continue Reading

Classic CRUD application in Play Framework 2.3.0 with ReactiveMongo, WebJars and Bootswatch-United

Play 2.3.0 application with ReactiveMongo – reactive, asynchronous and non-blocking Scala driver for MongoDB. This is a classic CRUD application, backed by a MongoDB database. It demonstrates: Achieving, Futures to use more idiomatic error handling. Accessing a MongoDB database, using ReactiveMongo. Achieving, table pagination and sorting functionality. Replaced the embedded JS & CSS libraries with WebJars. Play and Scala-based template engine implementation Bootswatch-United with Twitter Continue Reading

Knoldus Pune Careers - Hiring Freshers

Get a head start on your career at Knoldus. Join us!