Play Framework has lost its relevance. Or has it?

Reading Time: 3 minutes The last few weeks, rather months have been very interesting for Play Framework at least at Knoldus. We end up working and custom developing large sophisticated products and very niche reactive products. Over the last few months there has been a healthy (the part where people starting pulling each others hair is omitted on purpose) on whether we should be using the Play Framework at Continue Reading

How to run an application on Standalone cluster in Spark?

Reading Time: 3 minutes In this blog, we will run an application on a standalone cluster in spark. Steps 1. Launch the cluster. 2. Create a package of the application. 3. Run command to launch Step-1: To run an application on standalone cluster, we need to run a cluster on our standalone machine. for that refer this blog. Click Here Your Master and slaves, all should be alive. In Continue Reading

Setup a Apache Spark cluster in your single standalone machine

Reading Time: 2 minutes If we want to make a cluster in standalone machine we need to setup some configuration. We will be using the launch scripts that are provided by Spark, but first of all there are a couple of configurations we need to set first of all setup a spark environment so open the following file or create if its not available with the help of template Continue Reading

Is scala pure object-oriented programming language??

Reading Time: 2 minutes Most of the people have question “Is scala pure object oriented programming language??” if yes then what about functions and primitives. yes scala is pure object oriented language and functions and primitives are also objects in scala. Functions as an object. Internally function is nothing its a trait with apply function. Let see a Function1 trait with apply function as follows trait Function1[A,B]{ def apply(x:A):B Continue Reading

Google reCAPTCHA: Basic example to integrate Google reCAPTCHA in Play Application with the help of play-recaptcha module

Reading Time: 2 minutes Playing with Google reCAPTCHA Basic example to integrate Google reCAPTCHA in Play Application with the help of play-recaptcha module Play reCAPTCHA Module This is a Play Framework module, for Scala and Play 2.x, to provide integration with Google reCAPTCHA (version 1 or 2) in a reactive (non-blocking) manner. Used Play reCAPTCHA module to integrate Google reCAPTCHA API Embedded JS & CSS libraries with WebJars. Integrating Continue Reading

Meetup: Introduction to Spark with Scala

Reading Time: < 1 minute Knoldus organized a Meetup on Wednesday, 1 April 2015. In this Meetup, we gave a brief Introduction to Spark with Scala. Apache Spark is a fast and general engine for large-scale data processing. A wide range of organizations are using it to process large datasets. Many Spark and Scala enthusiasts attended this session and got an insight of Apache Spark. Examples shown in above slides can be downloaded from Continue Reading

Tutorial #2: Using WebJars, jQuery, Bootstrap & Bootswatch with Play application

Reading Time: 2 minutes We have already discussed about the Play development environment in Tutorial #1. So, In this blog we would set up the WebJars, jQuery, Bootstrap & Bootswatch with Play Framework which would drive us through rest of the tutorial series. We would be running this blog as a series and we would be looking at various aspects of play with this blog. In this tutorial we Continue Reading

CRUD operations with PostgreSQL using SLICK with LOGBACK EMAIL functionality.

Reading Time: < 1 minute This article is about to show how to send logging email using logback-test.xml, the backend is postgresql and the queries format is in slick, language used is scala. The code is well commented so, files to be noticed are: KnolRepo.scala KnolRepoTest.scala logback-test.xml Download the source code to check the functionality. GitHub

Playing MultipartFormData: A basic example to handle and test MultipartFormData request in Play Framework 2.3.8

Reading Time: 2 minutes Playing MultipartFormData The following blog and attached code represent an example to upload file using MultipartFormData request and Testing it into Play Application. A basic example to handle and test MultipartFormData request in Play Framework 2.3.8 The standard way to upload files in a web application is to use a form with a special multipart/form-data encoding, which lets you mix standard form data with file attachment Continue Reading

Play i18n Messages: Playing with i18n messages of Play Framework on client-side

Reading Time: < 1 minute Playing JsMessages The following blog and attached code represent an example to compute localized messages of Play Application on client side. Basically, Play JsMessages library takes the i18n messages of our Play application, sends them to the client-side as a JSON object and defines a JavaScript function returning a message value from a given language and the message key and arguments. Used Play JsMessages library Continue Reading

Play with Reactive Slick: A Simple CRUD application in Play! framework using Slick 3.0

Reading Time: 2 minutes Recently Typesafe released Slick 3.0.0-RC1, the first release candidate for “Reactive Slick”. Reactive Slick has many new features like Support for Reactive Streams API, a new API for composing and executing database actions and many more. Before moving forward, we recommended you to go through the Slick 3.0.0-RC1 Upgrade guide. So, that you can get a hint of major changes in Slick 3.0. In this post, we will see Continue Reading