Reading Time: < 1 minute In this knol session we have discussed about traits in scala.
Reading Time: 2 minutes In my last blog i’ve elaborated the steps to integrate the JaCoCo with your Play Scala project. This time we’ll learn about how to integrate the Scala Code Coverage Tool ( SCCT ) in your Play Scala project. Just some easy steps and you’re done with SCCT integration. Lets see it in action. 1. Add the following resolvers in your plugin.sbt file. resolvers += Classpaths.typesafeResolver Continue Reading
Reading Time: < 1 minute Its always a good practice to have a fine test coverage in any project. I am working on Lift framework. I have tried to integrate the SCCT with my lift scala project. Here, I am going to elaborate a few easy steps to integrate the SCCT in Lift Scala project. I am using scala 2.10.0 and sbt 0.12 version.
Reading Time: < 1 minute In the presentation which is the part of our ongoing Knolx session, we discussed about how to test Akka actors using Testkit. By using testkit we can test Actor’s behaviour, apply time assertions on actor’s reply and we can also do integration testing of actors. We also discussed how to use TestProbe to test actors which are supposed to send messages to different destinatations. Continue Reading
Reading Time: 2 minutes Its always good to have a fine test coverage in any project. I am working on Play framework & this time i’ve tried to integrate the JaCoCo with my play scala project & it’s cool to have it in my project. I am going to elaborate a few easy steps to integrate the JaCoCo in Play Scala project. 1. Add the following lines of code Continue Reading
Reading Time: 2 minutes This blog post serves the two purposes : First , We’ll learn about getting the latitude & longitude for an address using Google Geocoding API. Second , We’ll do the same as mentioned above using Play 2.1 WS API & learn about how to call the web services in Play 2.1. On order to call the other HTTP services within Play 2.1 we use play.api.libs.ws.WS Continue Reading
Reading Time: < 1 minute This time I gave KnolX session on FitNesse. We have been using it for BDD and acceptance tests for projects at Knoldus. FitNesse is excellent for increasing collaboration between developers, testers and customers. Making FitNesse work with Scala does not require any special configuration. It works out of the box. In this presentation you will learn using FitNesse for a Scala project with a DoFixture Continue Reading
Reading Time: < 1 minute In our previous blog , we explained about using Pagination in Lift using Scala . But If you render a page via AJAX , pagination link would not be refreshed until we reload the page . In this blog , we will have a basic idea that how to refresh pagination via AJAX . Suppose you are displaying an item list on web and you Continue Reading
Reading Time: < 1 minute This is LiftWeb Login Template with a nice User Interface. If you want to use Liftweb as framework , Scala as Programming Language and MongoDB as Database then this demo project can be used as a starting point for your application . In this application , you will find lot of functionalities such as : Social Login Service Email SignUP using MongoDB Settings Birthday Reminder Continue Reading
Reading Time: 2 minutes In this blog , we will have a basic idea that how to use LiftWeb’s built -in functionality for Sorting and Pagination . Lift provides SortedPaginatorSnippet for sorting of results and PaginatorSnippet for paging of results . Suppose you are displaying an item list on web and you want to sort and paginate that list then you have to implement both snippets SortedPaginatorSnippet and PaginatorSnippet Continue Reading
Reading Time: 2 minutes If you are a beginner of using Lift web framework, then it will help you a lot for understanding how to play with views and snippets. Here, I am explaining some basic use of snippets. 1. Replace id of a html attribute , if class is given. html : <div class=”demo”> snippet : “.demo [id]” #> (“demo”+_id) 2. Replace id of a html attribute , Continue Reading