Insights and perspectives to keep you updated.

Meetup: Reactive Programming using scala and akka

Reading Time: < 1 minute In this meetup which was a part of our ongoing knolx session, i talked about reactive programming using scala and akka. Reactive programming is all about developing responsive applications built on the top of event-driven, resilient and scalable architecture. Below are the knolx slides. I have also shown some examples regarding brief introduction to scala and akka. Please find the github repository here.

SBT console to debug application

Reading Time: 2 minutes In this blog post, We will know how to debug application via sbt console. Suppose we want to do some initialization process before debugging the application. For example, database connection, importing packages etc. sbt configuration provide a nice way to make debug process easier. There are some steps to debug Liftweb application via sbt console. First we have to initialize the database connection or initialize Continue Reading

How to flatten nested tuples in scala

Reading Time: 2 minutes In a project which I’ve been working on, I encountered a situation to flatten a nested tuple but couldn’t come up with a way to do so, hence out of curiosity I started googling about it and came to the following conclusion. As for an example I had a structure something similar to the one mentioned below, though not identical: val structureToOperateOn = List(List(“a1″,”a2″,”a3”), List(“b1″,”b2″,”b3”) Continue Reading

Liftweb: Implement cache

Reading Time: < 1 minute In this blog post, I will explain how to integrate cache on server. Liftweb Framework provide nice way to implement cache to store data(objects) on server so all user can access that data. Lift uses the LRU Cache wrapping org.apache.commons.collections.map.LRUMap Create Object for handling cache operations like create,get,update and delete the data from in-memory cache. LRUinMemoryCache.scala import net.liftweb.util.{ LRU, Props } import net.liftweb.common._ /** * Continue Reading

Remote profiling using SSH Port Forwarding (SSH Tunneling) on Linux

Reading Time: < 1 minute In this blog post I’ll lay out few steps that are needed for remote profiling using SSH Port Forwarding (SSH Tunneling) using Yourkit profiler.   Steps to be followed on remote machine: 1) Download Yourkit profiler from official Yourkit website. 2) Extract the downloaded file anywhere. 3) What we need to do now is find the file named libyjpagent.so in the extracted folder corresponding to Continue Reading

Scala in Business | Knoldus Newsletter – July 2014

Reading Time: < 1 minute We are back again with July 2014, Newsletter. Here is this Scala in Business | Knoldus Newsletter – July 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

Play with Spark: Building Spark MLLib in a Play Spark Application

Reading Time: 2 minutes In our last post of Play with Spark! series, we saw how to integrate Spark SQL in a Play Scala application. Now in this blog we will see how to add Spark MLLib feature in a Play Scala application. Spark MLLib is a new component under active development. It was first released with Spark 0.8.0. It contains some common machine learning algorithms and utilities, including classification, regression, clustering, Continue Reading

Play with Spark: Building Spark SQL in a Play Spark Application

Reading Time: 2 minutes In our last post of Play with Spark! series, we saw how to integrate Spark Streaming in a Play Scala application. Now in this blog we will see how to add Spark SQL feature in a Play Scala application. Spark SQL is a powerful tool of Apache Spark. It allows relational queries, expressed in SQL, HiveQL, or Scala, to be executed using Spark. Apache Spark has a new Continue Reading

Knolx session:Understanding nosql

Reading Time: < 1 minute BIG data! Word is not relatively new now but still evolving. Changing requirement,scaling  applications beyond current limitation is what have been driving force behind big data development.  Here i am sharing a presentation to cover transitioning from traditional RDBMS to nosql world, nosql ecosystem and current era of hybrid design. Happy programming! Keep innovating.

Dependency Injection @ scala

Reading Time: 5 minutes Scala is all about scalable,functional, immutability and most importantly less piece of code! While building a framework using shared-nothing architecture, i came across the requirement of linking/referencing various modules(rather services) together.  Dependency injection was an obvious choice. Let’s take ahead this discussion with further exploration of Dependency Injection(DI) and various possible ways to accomplish it Dependency Injection It is basically providing the objects that an Continue Reading