Insights and perspectives to keep you updated.

Integrating Google Drive in Play Scala application with Google+ API

Reading Time: < 1 minute 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&#8221; “https://www.googleapis.com/auth/userinfo.profile&#8221; But Continue Reading

Scala in Business | Knoldus Newsletter – June 2014

Reading Time: < 1 minute 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

Reading Time: 3 minutes 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.

Reading Time: < 1 minute 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

Reading Time: 3 minutes 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

Reading Time: < 1 minute 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?

Reading Time: 2 minutes 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

Reading Time: < 1 minute 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

Tutorial: How to build a Tokenizer in Spark and Scala

Reading Time: 2 minutes In our earlier blog A Simple Application in Spark and Scala, we explained how to build Spark and make a simple application using it. In this blog, we will see how to build a fast Tokenizer in Spark & Scala using sbt. Tokenization is the process of breaking a stream of text up into words, phrases, symbols, or other meaningful elements called tokens. The list of tokens Continue Reading

How to do remote profiling, if you have only console access to remote machine

Reading Time: < 1 minute In this blog, I would explain how to do remote profiling on remote machine, if you are not a root user and you have only console access to remote machine. I have used YourKit for profiling, which is one of the best and user friendly tool for profiling. Please follow the steps, mentioned below, to step up yourkit on remote machine:- 1) Download tar.bz2 archive Continue Reading

How to remove video/audio tracks from MediaStream in WebRTC

Reading Time: 2 minutes WebRTC (Web Real-Time Communication) is an API definition drafted by the World Wide Web Consortium (W3C) that supports browser-to-browser applications for voice calling, video chat, and P2P file sharing without plugins. Now in this blog, I am going to explain that if we have a mediastream containing both audio and video and at some point of time we want to remove one of the track Continue Reading

A Simple Application in Spark and Scala

Reading Time: < 1 minute In this blog, we will see how to build a Simple Application in Spark and Scala using sbt. Spark is a Map-Reduce like cluster computing framework, designed to make data analytics fast. In this application we will count the number of lines containing “the”. To build this application we are going to use Spark 0.9.1, Scala 2.10.3 & sbt 0.13.0. Before start building this application follow these Continue Reading

A Non-blocking “Email sending” functionality in Scala

Reading Time: < 1 minute In our last blog “Adding an Email Sending Functionality in Play using Scala” we explained how to include an Email sending functionality in a Play Scala Application. But the way in which we implemented it, made it a Blocking one i.e., application will wait until email has been sent. In this blog we will explain, how to make the Email Sending functionality a Non-blocking one. By making Continue Reading