Author: Ayush Mishra

Easiest Way To Map Optional Nested Case Class with Slick in Scala

Reading Time: 2 minutes Few days ago, I had a scenario, in which I was supposed to map optional nested case class in slick using Scala. case class Employee(emdId:String,name: String, record: Option[Record]) case class Record(subject: String, mark: Int) I was trying to do this mapping the way, I have explained below. class EmployeeSlickMapping(tag: Tag) extends Table[Employee](tag, “Employee”) { def emdId = column[String](“emdId”) def name = column[String](“name”) def subject = Continue Reading

Solution for Riak 500 Internal Server Error

Reading Time: < 1 minute I am new to Riak and learning it. Few days ago, I got 500 Internal Server Error exception while inserting data in a Riak bucket. It was weird because I was able to insert same data in different bucket. I tried to find out root cause, but didn’t get success. After beating my head whole day, I posted it on Roak forum and stackoverflow. I Continue Reading

Weather Information System using Scala.Js and HTML

Reading Time: < 1 minute Scala.Js- a Scala to JavaScript Compiler. If you are developing your web application in Scala, you don’t need to sacrifice JavaScript interoperability. You can write your web application entirely in Scala. We have created a simple application “Weather Information System- Get the mood of your city on one click” using Scala.js and HTML. To use this application, pull the code from https://github.com/knoldus/ScalaJs_Weather_Report.

Finagle By Twitter Engineer @ Knoldus

Reading Time: < 1 minute This week, Puneet Khanduri, member of Twitter core engineering team, introduced us to Finagle in the MeetUp organized by Knoldus. It was a great session. We are thankful to Puneet. It was quite inspiring and appreciated by all attendees. Please find slide deck of this meetup.

Easiest Way to Implement Google Map in Scala.js

Reading Time: < 1 minute In this blog, I would explain how to implement Google Map in scala .js. If you are developing your web application in Scala and you want to write javascript functionality in Scala then you should go with scala.js. To implement Google Map in scala.js, please follow below steps:- 1) Add below code in your HTML file <script src=”https://maps.googleapis.com/maps/api/js”></script&gt; <div id=”map_canvas” style=”height: 430px; width: 512px;”> 2) Continue Reading

Scala’s evolving ecosystem – Introduction to Scala.js

Reading Time: < 1 minute In this MeetUp, We introduced Scala.js as Scala’s evolving ecosystem. Scala.js- A scala to JavaScript compiler. If We are developing any web application in Scala, we don’t need to sacrifice javascript interoperability. Scala's evolving ecosystem- Introduction to Scala.js from Knoldus Software LLP

How to do remote profiling, if you have only console access to remote machine

Reading Time: < 1 minute In this blog, I would explain how to do remote profiling on remote machine, if you are not a root user and you have only console access to remote machine. I have used YourKit for profiling, which is one of the best and user friendly tool for profiling. Please follow the steps, mentioned below, to step up yourkit on remote machine:- 1) Download tar.bz2 archive Continue Reading

Show Online Friends using Node.js with Nice UI Interface

Reading Time: < 1 minute Last month, we created a login demo template in Node.js and MongoDB. We also added signUp with Facebook, Twitter and google. So that user would not need to signup manually. We added profile management feature with a nice UI interface. So that uses could modify his profile detail along with his photo. We have used MongoDB for this application. We added Friend List management with Continue Reading

Making Friend-List in Node.js and MongoDB using Autocomplete

Reading Time: 2 minutes Last week, we created a login demo template in Node.js and MongoDB. We also added signUp with FaceBook, Twitter and google. So that user would not need to signup manually. We added profile management feature with a nice UI interface. So that uses could modify his profile detail along with his photo. Now we have added one more feature Friend List management with auto-complete functionality. Continue Reading

Profile Management with Nice UI Interface in Node.js and MongoDB

Reading Time: < 1 minute Last week, we created a login demo template in Node.js and MongoDB. We also added signUp with FaceBook, Twitter and google. So that user would not need to signup manually. Now we have added profile management feature with a nice UI interface. Now uses can modify his profile detail along with his photo. This is demo template, which can be used as a starting point Continue Reading

Knolx Session:- An Overview of Node.js

Reading Time: < 1 minute In this section, we would give an overview of node.js. Node.js, a software platform, built on google chrome runtime. It uses v8, the same run time environment, that google chrome uses. It is one of the best plateform to easily build scalable network applications(especially server-side). An Overview of Node.js from Ayush Mishra

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

Reading Time: < 1 minute 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

Easiest Way to Implement JOINs in MongoDB 2.4

Reading Time: 2 minutes Last year, I wrote a blog to implement JOINs in MongoDB. But this solution was applicable only for versions below Mongo 2.4. According to the release log of 2.4, this feature is removed. We could not use another collection on map reduce, which is invoked against a particular collection. Earlier it was permitted. MongoDB is a no-SQL database and doesn’t support joins. But if you Continue Reading