Studio-Scala

Dribbling with Filter.js: client-side JS filtering of JSON objects

Reading Time: < 1 minute Dribbling Filter.js Play framework with client-side JS filtering of JSON objects and rendering HTML snippets via jQuery. Big chunk to display? Interactive filtering? Most importantly it has to be really fast. Isn’t it like dribbling against Netherland! Big ground, lots of hooting and most importantly have to be fast and win   UI programming is an exciting ground to play, That’s why i chose reactive platform Continue Reading

How to setup and use zookeeper in scala using Apache Curator

Reading Time: 2 minutes In order to use Zookeeper to manage your project’s configurations across the cluster, first we will setup the zookeeper ensemble on our local machine (setup is for testing on a single machine) by following these steps: 1) Download a stable zookeeper release 2) Unpack it at three places and rename it to: /home/user/Desktop/zookeeper1, /home/user/Desktop/zookeeper2, and /home/user/Desktop/zookeeper3 3) In order to use zookeeper we will need Continue Reading

Scala in Business | Knoldus Newsletter – August 2014

Reading Time: < 1 minute We are back again with August 2014, Newsletter. Here is this Scala in Business | Knoldus Newsletter – August 2014 In this newsletter, you will find that how industries are adopting Typesafe Reactive Platform for scaling their applications and getting benefits, how scala and akka repositories are most popular in this month and how spark and Typesafe reactive platform together making big data applications. So, Continue Reading

SCALA: Introduction of scala

Reading Time: 2 minutes Scala is object oriented and functional programming language which is created by Martin Odersky and it was first released in 2003. Scala is known due to development productivity, applications scalability and overall reliability. Scala and Java have common runtime platform and most of feature of java are extended in scala. Scala is compiled into Java Byte Code which is executed by the Java Virtual Machine Continue Reading

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

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