Java Code Geeks » Sebastian Scarano http://www.javacodegeeks.com/ Java 2 Java Developers Resource Center Fri, 27 Feb 2015 20:00:31 +0000 en-US hourly 1 http://wordpress.org/?v=4.1.1 FactoryPal: New Scala framework for creating objects as test datahttp://www.javacodegeeks.com/2012/12/factorypal-new-scala-framework-for-creating-objects-as-test-data.html http://www.javacodegeeks.com/2012/12/factorypal-new-scala-framework-for-creating-objects-as-test-data.html#comments Wed, 26 Dec 2012 11:00:55 +0000 http://www.javacodegeeks.com/?p=6138 FactoryPal is a scala framework that lets you create objects as test data. All you have to do is define the templates for each of the classes that you want FactoryPal to create objects from. After that, FactoryPal takes care of the rest. Have you ever heard of factory_girl a super cool Ruby framework? Well, […]

 

]]>
http://www.javacodegeeks.com/2012/12/factorypal-new-scala-framework-for-creating-objects-as-test-data.html/feed/ 0
Play Framework posted values revisitedhttp://www.javacodegeeks.com/2012/07/play-framework-posted-values-revisited.html http://www.javacodegeeks.com/2012/07/play-framework-posted-values-revisited.html#comments Sat, 21 Jul 2012 15:00:00 +0000 http://www.javacodegeeks.com/2012/10/play-framework-posted-values-revisited.html Working with posted values with Play Framework 2.0, without defining a form mapping, might not be so obvious as it was with Play 1.x, that’s why I’m writing this quick cheatsheet. For this quick sample, let’s define the following view: app/views/index.scala.html @(message: String) message: @message <br /> <h2>Scala form</h2> <form action="@routes.ScalaPoster.save()" method="POST"> scala name: <input […]

 

]]>
http://www.javacodegeeks.com/2012/07/play-framework-posted-values-revisited.html/feed/ 0
Troubleshooting Play Framework 2 apps on Openshifthttp://www.javacodegeeks.com/2012/05/troubleshooting-play-framework-2-apps.html http://www.javacodegeeks.com/2012/05/troubleshooting-play-framework-2-apps.html#comments Thu, 10 May 2012 19:00:00 +0000 http://www.javacodegeeks.com/2012/10/troubleshooting-play-framework-2-apps-on-openshift.html Troubleshooting Openshift   With the do-it-yourself application type you really get a lot of freedom to support almost any framework or server that can be built and run on a linux box. But you do have to make your homework, and do some research.  So in this article I’ll show you a couple of tips […]

 

]]>
http://www.javacodegeeks.com/2012/05/troubleshooting-play-framework-2-apps.html/feed/ 3
Deploy Play Framework 2 apps to Openshift with Java AND Scalahttp://www.javacodegeeks.com/2012/05/deploy-play-framework-2-apps-to.html http://www.javacodegeeks.com/2012/05/deploy-play-framework-2-apps-to.html#comments Wed, 02 May 2012 13:00:00 +0000 http://www.javacodegeeks.com/2012/10/deploy-play-framework-2-apps-to-openshift-with-java-and-scala.html A couple of weeks, Mark Atwood, Jorge Aliss, and me, Sebastián Scarano participated in Red Hat’s webinar LET’S PLAY! IN THE CLOUD: DEVELOPING JAVA WEB APPS ON OPENSHIFT In the webinar Mark gave a neat introduction to Openshift, Red Hat’s free Platform as a Service: Then we developed a basic contact manager web application, combining […]

 

]]>
http://www.javacodegeeks.com/2012/05/deploy-play-framework-2-apps-to.html/feed/ 0
Play!ing (2.0) with Twitter Bootstrap, WebSockets, Akka and OpenLayershttp://www.javacodegeeks.com/2012/04/playing-20-with-twitter-bootstrap.html http://www.javacodegeeks.com/2012/04/playing-20-with-twitter-bootstrap.html#comments Fri, 13 Apr 2012 21:00:00 +0000 http://www.javacodegeeks.com/2012/10/playing-2-0-with-twitter-bootstrap-websockets-akka-and-openlayers.html The original post can be found on the ekito website. For one of our client, we need to show a map with vehicles position updated in real-time. So I began to make a prototype using Play! framework, with its latest released version 2.0, using the Java API. I started from the websocket-chat of the Play! […]

 

]]>
http://www.javacodegeeks.com/2012/04/playing-20-with-twitter-bootstrap.html/feed/ 0
Play framework 2 quicktip: Scala consolehttp://www.javacodegeeks.com/2012/04/play-framework-2-quicktip-scala-console.html http://www.javacodegeeks.com/2012/04/play-framework-2-quicktip-scala-console.html#comments Wed, 04 Apr 2012 12:52:00 +0000 http://www.javacodegeeks.com/2012/10/play-framework-2-quicktip-scala-console.html When I first started to play with Scala, I was amazed by the Scala interactive interpreter (also known as REPL, read-evaluate-print-loop). It was one of those things that you never expected to find in a statically typed, compiled language like java or scala. What would you say if we could have it for our play […]

 

]]>
http://www.javacodegeeks.com/2012/04/play-framework-2-quicktip-scala-console.html/feed/ 2
Play framework on the cloud made easy: Openshift modulehttp://www.javacodegeeks.com/2012/02/play-framework-on-cloud-made-easy.html http://www.javacodegeeks.com/2012/02/play-framework-on-cloud-made-easy.html#comments Wed, 15 Feb 2012 12:11:00 +0000 http://www.javacodegeeks.com/2012/10/play-framework-on-the-cloud-made-easy-openshift-module.html Just a couple of years ago finding an afordable hosting solution for a java web application was a hard task, and looking for a free one was an impossible mission. Not to mention that even thinking about things like auto-scaling, one-command deploy, continuos integration, and that sort of stuff was plain science fiction. This last […]

 

]]>
http://www.javacodegeeks.com/2012/02/play-framework-on-cloud-made-easy.html/feed/ 1
Play! Framework + Google Guicehttp://www.javacodegeeks.com/2012/02/play-framework-google-guice.html http://www.javacodegeeks.com/2012/02/play-framework-google-guice.html#comments Mon, 13 Feb 2012 19:36:00 +0000 http://www.javacodegeeks.com/2012/10/play-framework-google-guice.html In the project I’m currently working, we started to use Google Guice. For those who don’t know, Google Guice is a dependency injection framework. The basic idea behind dependency injection is to provide a class it’s dependencies, instead of making the dependent class responsible of instantiating the objects on which it depends. Play has a […]

 

]]>
http://www.javacodegeeks.com/2012/02/play-framework-google-guice.html/feed/ 0
First steps with Scala, say goodbye to bash scripts…http://www.javacodegeeks.com/2012/01/first-steps-with-scala-say-goodbye-to.html http://www.javacodegeeks.com/2012/01/first-steps-with-scala-say-goodbye-to.html#comments Fri, 13 Jan 2012 20:30:00 +0000 http://www.javacodegeeks.com/2012/10/first-steps-with-scala-say-goodbye-to-bash-scripts.html Those who know me are aware that I’ve been following play framework, and actively taking part of it’s community, for a couple of years. Playframework 2.0 is right around the corner, and it’s core is programmed in Scala, so it’s a wonderful opportunity to give this object-oriented / functional hybrid beast a try… Like many […]

 

]]>
http://www.javacodegeeks.com/2012/01/first-steps-with-scala-say-goodbye-to.html/feed/ 1
Play framework modules: Divide and conquerhttp://www.javacodegeeks.com/2012/01/play-framework-modules-divide-and.html http://www.javacodegeeks.com/2012/01/play-framework-modules-divide-and.html#comments Fri, 06 Jan 2012 13:28:00 +0000 http://www.javacodegeeks.com/2012/10/play-framework-modules-divide-and-conquer.html It’s usually the case that you start developing an application and go on fulfilling requirements. When your application grows bigger you start to realize the convenience of separating it into different components. Moreover, when you develop your second or third application, your begin to recognize certain features that could be reused across different applications. These […]

 

]]>
http://www.javacodegeeks.com/2012/01/play-framework-modules-divide-and.html/feed/ 0