Insights and perspectives to keep you updated.

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: Now Continue Reading

How to use Cookies in Play framework

Play framework is being used by every Scala developer now a days. In this post we’ll learn about using Cookies in Play framework. Play has a stateless architecture so in order to keep the data across multiple HTTP request we can use Session & Flash. But both Session & Flash loose data as soon as browser is closed. So, to retain data even after closing the browser, we Continue Reading

Employee-Self-Service – Building Reactive Play application with Anorm SQL data access – (Part-2)

Last week, We have created a simple Employee-Self-Service  application using Play Framework and Anorm SQL data access , which has CRUD facility. Now we have added more features, i.e. Handling asynchronous results with time-outs facility thus application is now reactive (Async + Non-Blocking) Play and Scala-based template engine implementation. Bootswatch-Yeti with Twitter Bootstrap 3.1.1 to improve the look and feel of the application Application screens: 1. Continue Reading

Create, Upload & Delete Google Docs using Play Scala application

This blog talks about creating, uploading & deleting Google Docs using a Play Scala application. We have used oauth2 in order to communicate with the Google Drive to perform various Google Doc operations. Let us see the process step by step. 1.First integrate Google Drive infrastructure in your Play Scala Application. You can read about it from here to know how to do it. 2. Then in order to Continue Reading

How to integrate typesafe console with akka-scala based application

We are working on a akka-scala based project. We needed to monitor the akka actors related activities and their profile so we integrated typesafe console with our application. So i am going to tell here how to integrate it with your akka-scala application. First we need to add a atmos dependency in our project build.sbt as below. "com.typesafe.atmos" %% "atmos-trace" % "1.3.0" Add below setting Continue Reading

Running with Implicits – Extending Functionality

We had an interesting case of enhancing the functionality of a logging library with our own case to feed data into DataDog. That brought us back to the quick discussion on implicits in Scala. Implicits in a quick sense is Magic! Too much of it and you get lost. In the right balance it is quite useful. One of the favorite examples that I use Continue Reading

Monthly Scala News Letter – March 2014

We are back again with April 2014, Newsletter. Here is this Monthly Scala News letter – March 2014 In this news letter, you will find some new organizations which are adopting Scala, Akka in their daily project, some new books to become expert of Scala, Akka and a new way to convince your boss to use typesafe platform. So, if you haven’t subscribed to the Continue Reading

Connection pooling in Scala

In this blog I am going to describe connection pooling in scala. Before going into the details I want to explain why and when connection pooling should be used. Why connection pooling ?? For efficient use of database connection we need to care about following two things. 1. Creating a connection is an expensive operation. It is not senseful to create new connection each and Continue Reading

Employee-Self-Service – Building Reactive Play application with Anorm SQL data access – (Part-1)

This is a classic CRUD application, backed by a JDBC database. It demonstrates: Accessing a JDBC database, using Anorm. Integrating with a CSS framework (Twitter Bootstrap 3.1.1). Twitter Bootstrap requires a different form layout to the default one that the Play form helper generates, so this application also provides an example of integrating a custom form input constructor. Check the application and the code base 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

Sign-Up with Facebook, Twitter and Google using Node.js and MongoDB

Last week, we created a simple login application, which has sign up and login facility after successfully registration. Now we have added one more feature, i.e. Sign-up with Facebook, Twitter and Google. You can login with your facebook, twitter and google account. We’ll be adding some more features in this application very soon such as birthday reminder functionality. We have used Passport[authentication middleware for Node.js] Continue Reading

Knoldus Pune Careers - Hiring Freshers

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