Java

Re Render HTML Template using Scala and Lift

Reading Time: < 1 minute In this section , I will explain how to re-render HTML Template without loading the browser . You can refresh HTML template without loading browser via AJAX using Scala and Ltft . Lift provides SHtml.memoize which memoize the NodeSeq used in apply() and then call applyAgain() in an Ajax call . You can re render a particular template part of HTML page or complete page Continue Reading

Implement Geolocation using Scala and Lift

Reading Time: < 1 minute In this section , I will explain how to implement Geolocation using Scala and Lift . You can easily fetch user’s current location or near by location by his IP address . 1) You will need API key to be able to use . To get API key , just Go to IPInfoDB . 2) Get user’s IP address var ipAddress: String = "" S.containerRequest.map(r Continue Reading

Working with Play framework using Scala and MongoDB

Reading Time: 2 minutes Scala : Scala is a general purpose programming language designed to express common programming patterns in a concise, elegant, and type-safe way. More… Play Framework : Play 2.0 is a high-productivity Scala web application framework that integrates the components and APIs you need for modern web application development. Play is based on a lightweight, stateless, web-friendly architecture. More… MongoDB : MongoDB is a scalable, high-performance, Continue Reading

Liftweb JSON serialization and deserialization using Scala

Reading Time: 2 minutes We are working on a Scala project using Play framework. We had written the Serializers and Deserialzers for parsing the JSON data that contains different data types like ObjectId , Scala Enumeration etc. We are using net.liftweb.json for writing and parsing the JSON data. We were having the JSON looks like as : [{“id”:1,”school”:”Cambridge”,”year”:{“name”:”FirstYear”},”major”:”Science”,”degree”:{“name”:”Bachelor’s”},”Date”:”01/05/2011″}] The year field here is an scala enumeration and the Date Continue Reading

Google Web Toolkit (GWT) : Your first step !

Reading Time: 3 minutes Google Web Toolkit (GWT) is a development toolkit for building and optimizing complex browser-based applications. It is an open-source, Java-based framework for creating Ajax web applications. It is created and used by Google. With GWT, you can develop and debug AJAX applications in the Java language using the Java development tools of your choice. When you deploy your application to production, the GWT compiler translates Continue Reading

Google Apps Script And Getting Site Context

Reading Time: 2 minutes Google Script UI services enables to create rich UI in Google Sites. There is a bug where there is no way to find out directly where Google Apps Script is embedded in Sites. If you are faced with similar dilemma and need a workaround read on. This a critical issue when a script intended to be executed for multiple sites. In our case the requirement Continue Reading

Experiences at Cloud Computing Conference Pune 2011

Reading Time: < 1 minute I was one of the speaker of the second IndicThreads conference held at Pune on 3-4th June 2011. Sessions at the conference dealt with key topics like Cloud Security, Amazon Elastic Beanstalk, Legal Issues in Cloud Computing, OpenStack, Xen Cloud Platform, Rails and CouchDB on the cloud, CloudFoundry, Gigapaces PAAS, Monitoring Cloud Applications, ORM with Objectify-Appengine, Scalable Architecture on Amazon AWS Cloud, Cloud Lock-in, Cloud Continue Reading

Why CloudFoundry is Disruptive?

Reading Time: 2 minutes Recently, Inphina started exploring Cloud Foundry to add onto its cloud offerings. The initial reactions have varied from good to very good to but ‘could they have this…’ In general it looks like that Cloud Foundry (CF) would be disrupting the PaaS market eventually. Why? Primarily because of the following reasons It is not tied to a particular environment or framework like .Net for Azure, Continue Reading

Custom Versioning for Google Docs: Working with Google Docs on Google App Engine

Reading Time: 5 minutes Inphina, as an expert on Google App Engine and Google Apps has enabled many medium to large organizations leverage the cloud by building, migrating or re-engineering complex line of business applications to the cloud making significant reductions in their capex expenditure. Contact us at cloud@inphina.com As a last post in series of posts for building custom versioning for Google Docs, in this post, we would look at the interaction Continue Reading

Custom Versioning for Google Docs: Handling File Operations on Google App Engine

Reading Time: 2 minutes In the last post you saw how easy it was to use the functionality of GWTUpload and upload the file to the server. In this post we would look at the file handling for Google App Engine. As you would know that File operations are not allowed on the app engine. You can however, read from a file if it is uploaded as a part Continue Reading

Custom Versioning for Google Docs: Building GWT Gadget to Upload on App Engine

Reading Time: 4 minutes In my previous post, we talked about the the business case for building a custom versioning gadget for Google Docs. In this post, we would talk about the GWT gadget which we built for the purpose. The custom gadget looks like this As you would notice, we have a file uploader which can upload multiple files at once (of course you have to select them Continue Reading