Any full Eclipse skin available?
Since I have some ocular problems and my eyes start bleeding when the display is too bright, I was wondering if there is any full Eclipse skin available.I already found darker theme for the code...
View ArticleAnswer by LMeyer for what is akka and for which purpose it is used?
In a nutshell, Akka is a convenient framework for doing reactive and distributed application on the JVM. It is based on the reactive manifesto and therefore it is :Event-driven with message passing...
View ArticleAnswer by LMeyer for Scala style: More than one class in a file?
This is all covered in Scala style guideSummary :As a rule of thumb, you should have one logical compilation unit (i.etrait, class, object) per file. Exception made of companion objectswhere you can...
View ArticleAnswer by LMeyer for How to handle master actor failure
From the docs :/user: The Guardian ActorThe actor which is probably most interacted with is the parent of all user-created actors, the guardian named "/user". Actors created using system.actorOf() are...
View ArticleAnswer by LMeyer for Can akka handle heavy algorithms to transform data from db?
Well, all I can offer here is my experience. As a matter of fact I am currently working on something similar (i.e an ETL with text files). We're essentially taking a lot of text files and loading their...
View ArticleAnswer by LMeyer for Scala: Package import conflicts
Use import rename :import scala.concurrent.ExecutionContext.Implicits.{global => newName}
View ArticleAnswer by LMeyer for Akka, futures and critical sections
Just to support Jean's answer here's the example from the docs :class MyActor extends Actor { var state = ... def receive = { case _ => //Wrongs // Very bad, shared mutable state, // will break your...
View ArticleAnswer by LMeyer for How to keep library dependencies updated to Scala version?
name := "Hello Test #1"version := "1.0"scalaVersion := "2.11.2"resolvers += "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/"libraryDependencies += "com.typesafe.akka" %%...
View ArticleHow to programmatically retrieve some build files in TeamCity?
I'm currently doing a plugin for TeamCity 8.1.4 to support our tool. The latter generates some JSON and HTML/CSS/JS files I would like to include in TeamCity UI through respectively a graph and some...
View ArticleAnswer by LMeyer for Schedule restart of Akka actor
Delay on restart hasn't been implemented yet. Thread.sleep is out of the question performance wise.I see two choices :Have your main actor create the querying actor on a message. When it blows up...
View ArticleAnswer by LMeyer for Implicitly convert an Iterable to Option
Implicit conversion alone is not going to help you if you want to do this. What you need here is an implicit class :object Rich { implicit class RichIterable[T](it: Iterable[T]){ def toOption:...
View ArticleAnswer by LMeyer for Play framework tutorial: Cannot resolve symbol 'index'?
I managed to make it work on IDEA Community 14 by solely cleaning IDEA cache (File -> Invalidate Caches / Restart)
View ArticleAnswer by LMeyer for Type bound issue using Quartz from Scala
Alright, just made it work by casting oldTrigger to SimpleTrigger... That turned TriggerBuilder<? extends Trigger> getTriggerBuilder() into TriggerBuilder<SimpleTrigger> getTriggerBuilder().
View ArticleAnswer by LMeyer for Iterating over JSON object in jquery
Your JSON isn't valid. What about this :var json = '[ {"DisplayName":"Answer Number 1","Value":"Answer1","Option":"True"}, {"DisplayName":"Answer Number 1","Value":"Answer1","Option":"False"},...
View ArticleAnswer by LMeyer for Is there a better way to check if a number should be...
You can use a matcher. Checking a range for the numbers you gave don't make much sense but this does for example :numberExample should be (6 +- 1)Here the test will fail if numberExample is lower than...
View ArticleAnswer by LMeyer for Scala play framework Form Validation for numbers
Check your imports. You should have play.api.data.Forms._ maybe you have only play.api.data.Forms.nonEmptyText
View ArticleThere is no action mapped etc.. In Struts 2
Yet another question on this I know, but let me just say I looked everything else or about. So, I'm currently building the structure of my Struts 2 Project. I use Struts 2.3.4, JBoss 7.1 and Eclipse...
View ArticleAnswer by LMeyer for Struts 2 XML Validation
You'll have to do it before the request, that is, on the client side. You could use Javascript with a OnChange or OnKeyDown event on the textboxes. The triggered method could invalidate the submission...
View ArticleAnswer by LMeyer for What is a unary type?
Unary is another way of saying "of arity one". A one parameter function is said to be unary, whereas a two parameters function is binary, three is ternary and so forth...The same principle applies to...
View ArticleAnswer by LMeyer for Use Circe to decode Normal Class (not case class)
With io.circe.generic.auto._, you're using Circe's automatic generic derivation, which is backed by Shapeless's LabelledGeneric typeclass. LabelledGeneric only works with product types like tuples and...
View Article