Monthly Archives: January 2014

Spring: Null with @Inject

My Spring got rusty; and I’ve made a common mistake.  Surprisingly it was hard to find a solution to it; so I am providing one here in hope that it helps others. Problem I defined a class; that I wanted … Continue reading

Posted in Uncategorized | Leave a comment

AWS-SWF: ExternalWorkflowStarter

When writing a distributed AWS-SWF app; you may want to have a separate module just for starting a workflow. AWS guide suggests the following: MyWorkflowClientExternalFactory factory = new MyWorkflowClientExternalFactoryImpl(); MyWorkflowClientExternal client = factory.getClient(); client.start(); Since my settings are somewhat different … Continue reading

Posted in Uncategorized | Leave a comment

AngularJS Template Options

angular-ui-router is the best (state-based) approach to templates and deep linking. Here is a simple example: http://plnkr.co/edit/hQCPFC?p=preview   Other (less favorable options) As per AngularJS tutorial it is suggested to use routing in order to utilize templates. ng-include provides a simplest way … Continue reading

Posted in Uncategorized | Leave a comment

Error: [$injector:nomod] Module ‘ngRoute’, ‘ngResource’ is not available

Problem Uncaught Error: [$injector:modulerr] Failed to instantiate module clientApp due to: Error: [$injector:modulerr] Failed to instantiate module ngRoute due to: Error: [$injector:nomod] Module ‘ngRoute’ is not available! You either misspelled the module name or forgot to load it. If registering … Continue reading

Posted in Uncategorized | 2 Comments

IntelliJ: building Play Scala project

It appears some of the current best practices for building a Play project is to configure your build in project/Build.scala (previously it was done via build.sbt; but that is often not powerful enough; make sure to delete build.sbt from you … Continue reading

Posted in Uncategorized | Leave a comment

Scala Play 2 on IntelliJ (OSX)

Instal scala and play Instal scala and play on your machine using brew (if not done yet): brew update brew install scala brew install play   Create New Application (also applicable to modifying existing one) Create New Application (ref). Create a … Continue reading

Posted in Uncategorized | 1 Comment