QuickKnol: Lift Json, ShortTypeHints and Scala Traits

Reading Time: 2 minutes We use the awesome Lift Json library in quite a few our projects. It allows for easy customization and is handy for writing and parsing JSON strings. One of the situations which could possibly push you against the wall is when you have classes extending traits. Let us look at this quick example trait Reducer case class SentimentReducer(name:String, coefficientLevel:Double) extends Reducer case class EmotionReducer(name:String, coefficientLevel:Double) Continue Reading

Configure SSL on jetty server to run it with https

Reading Time: 2 minutes We can run our application with http as well as with https. We use https for secure communication over the computer network. Technically, https is not a protocol in and of itself; rather, it is the result of simply layering the Hypertext Transfer Protocol (HTTP) on top of the SSL/TLS protocol, thus adding the security capabilities of SSL/TLS to standard HTTP communications. In this blog, Continue Reading

Running standalone Scala job on Amazon EC2 Spark cluster

Reading Time: 2 minutes In this blog, I would explain how to run a standalone Scala job on Amazon EC2 Spark cluster from local machine. This is a simple example to process a file, which is stored on Amazon S3. Please follow below steps to run a standalone Scala job on Amazon EC2 Spark cluster: 1) If you have not installed Spark on your machine, please follow instructions from Continue Reading

A simple way to Customize Kryo Serializer for Akka Actors in Scala

Reading Time: 1 minute Kryo is a fastest and efficient way to do serialization. It is more efficient than Java serialization – both in size and speed. I am working on a Scala_Lift_Akka based project, where I have to implement serializer for Akka Actor’s remoting. Since Kryo is fast, efficient and easy to use, so I decided to implement Kryo in my project for serialization. I implemented Romix’s kryo-based Continue Reading

Slides available from Scala Traits presentation

Reading Time: 1 minute I did a presentation on Scala Traits in New Delhi at the event ‘Kick Start Scala and Play’. The topics included in the presentation ranges from basic introduction of Scala to advance topics like case classes and pattern matching. The worksheets from presentation is available here on google drive. Also, embedded here is the slides from Scala Traits presentation. Scala traits training by Sanjeev Kumar Continue Reading

ScalaTraits One Day Kickstart Play and Scala Event, ScalaGeek’s meetup

Reading Time: 2 minutes ScalaTraits, a Scala Users Group initiative run by Knoldus and Typesafe in the New Delhi NCR region ran its third meet-up to a huge success in central Delhi. There were 20+ Scala enthusiasts who spent the day writing Scala and Play code on their laptops and finally deployed it on Heroku. It was a fun-filled event with a superb location and excellent food (Ok, my Continue Reading

Training on Play Framework at Scala Traits Event by Knoldus Software LLP

Reading Time: 1 minute We had a great & successful Scala Traits Event at Hotel Regent Grand on last Saturday. I’ve presented on Play Framework. My Presentation has got three modules from basic Play learning to deploying the application. Now this fruit is here as well. Play framework training by Neelkanth Sachdeva @ Scala traits event , New Delhi by Knoldus Software LLP from Knoldus Software LLP

Bridging the Communication between Lift Comet Actor and Akka Actor in Scala

Reading Time: 2 minutes In this blog, I would explain how to create bridge between Lift Comet Actor and Akka Actor. Since Lift has its own actor model, so a bridge is needed to fill communication gap between LiftComet and Akka Actor, so that Akka actor would be able send message to comet, once comet has been set. This bridging concept would be more useful for those web applications, Continue Reading

A Simple Remote Chat application using Lift Comet and Akka Actor in Scala

Reading Time: 2 minutes If you are running an application and there are lot of chances for a huge traffic to come in future, a single server would not be capable to handle this. In that case you would have two choices: A) Replace existing server with an advance server with better configuration B) Building a global node in the cluster to be used by other nodes. We know Continue Reading

Easiest Way to Recover Akka Actor for Remote Application JVM Failure Scenario in Scala

Reading Time: 2 minutes In this blog, I would explain how easily you can recover Akka actor for Remote Application JVM failure scenario in Scala. I have implemented this in one of my project and it is working fine. Suppose there is a remote application, which is being used by multi JVMs, and JVMs are passing message to each other through Akka actor, then there must be an Akka Continue Reading

ScalaGeek – Test your Geek Quotient on Scala

Reading Time: 3 minutes We at Knoldus are pleased to announce the release of ScalaGeek(Beta). ScalaGeek ScalaGeek is a community driven database of questions and answers on Scala. The idea is to allow people who are learning Scala to validate their learning and master the language. ScalaGeek provide the comprehensive style question which needs to be answered in a time bound environment. As a registered user of ScalaGeek, you Continue Reading

A simple way to implement Retry Support For Akka Future in Scala

Reading Time: 1 minute [Note: This blog has been updated on 22nd August 2013, after the valuable feedback of readers.] In this blog, I have explained a simple way to implement retry support for Akka future in Scala. When Akka actor dies for any reason and we try to receive response from Akka future, this implementation would work. Here is the logic: object RetrySupport { def retry(actorRef: ActorRef, message: Continue Reading

Integrating Google Drive infrastructure in Play Scala application

Reading Time: 3 minutes This blog talks about integrating the Google Drive infrastructure in Play Scala application as like Assembla and some others. We used oauth2 in order to communicate with the Google using Access Token and Refresh Token. Let us see the process step by step. 1. Prepare the browser request URL in order to get the authorization code. val redirectURI = "http://localhost:9000/driveAuth" def authenticateToGoogle = Action { Continue Reading

Knoldus Pune Careers - Hiring Freshers

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