Find out play! version number (e.g. 2.1.3) in application code - scala

Does anyone know how to find out which version of play! an application is running with during runtime? I thought there might perhaps be something like play.api.Play.current.frameworkVersion.
I searched the API doc at http://www.playframework.com/documentation/api/2.1.x/scala/index.html#package for anything useful, but could not find anything.
I think I probably could hack together something like writing the SBT plugin version into a file during the compile/stage which I can then read at runtime. But I was hoping there would be a less cumbersome way of doing this...
Cheers, Alex

How about:
play.core.PlayVersion.current();
found in: http://www.playframework.com/documentation/api/2.2.0-M2/scala/index.html#play.core.PlayVersion$

Related

How to use SourceKit python bindings?

Sorry for such broad question, but after some attempts I'm not sure how to use python bindings. I tried to just import "request.py" or "capi.py" but all I got were errors. After adding missing libraries to my search path, I ended with missing symbol "_dispatch queue_attr_concurrent" (which suggest wrong library version?).
My question isn't about that particular error, but rather correct way of interacting with python bindings (and SourceKit itself). I have tried to use precompiled version, and compile it myself (https://stackoverflow.com/a/40033117/1117854), but result was all the same.
Is there something obvious that I'm missing? Or maybe someone with similar experience succeed and have some tips? It's not well documented and I'll probably find solution sooner or later, but I believe I'm not the only one who felt lost after first contact with SourceKit.

Is there a Scala like Clojurescript? aka Integrated Scala Single Page Application

So ClojureScript One is rather incredible looking! You can make updates with your REPL in real time to a SPA.
So something like this is rather impossible in Java where you don't have a REPL but it seems very possible in something like Groovy or Scala. I'm sort of a Lisp bigot (I really shouldn't be but oh well) and wondering if there is a Scala or Groovy like Clojurescript?
Update:
In theory it looks like one could wrap Scala/Groovy around Java's ItsNat. However I have some doubts about that project given it hasn't been updated since 2011 (also they have they ugliest website.. its like they tried to make it ugly). The license is also rather restrictive.
Try http://www.scala-js.org/ a A Scala to JavaScript compiler
There's js-scala, but it seems to be quite experimental at the moment.
ItsNat has come to quit a stable stage, this is why it is inactive. Of course new features and more browser support and testing can be leveraged, but so far, we've had a great experience with ItsNat. We've been with ItsNat since version 0.7 and had very (2) issues, that too, quite rare ones.
If you'd like working examples, I'd be glad to show you as our project is open sourced :-)
Works well with both SEO and SPI.
Demo
If you are looking for SPA scala-gwt. Or you are looking for scala-to-javascript compiler?

JBoss gettingstarted.zip

I am looking for the gettingstarted.zip or the examples in the jboss tutorial, but could not find them, especially the sources for the jsfejb3 example. Are these examples removed from the distribution or am I to stupid to find them?
Do you mean the example shown in http://docs.redhat.com/docs/en-US/JBoss_Enterprise_Application_Platform/4.3/html-single/Getting_Started_Guide/index.html#About_the_Example_Applications ?
If so it's available in the "Application Platform 4.3.0.GA_CP09 documentation" available from https://access.redhat.com/downloads/
this might be what you are looking for JBOSS Start Guide.zip, also maybe try JBoss Sourceforge page
edit: try this maybe JSF-EJB3 Example
and these guys LINK seem to have got working what you are having trouble with maybe something in thier posts can help

What is the purpose of the scala.tools.nsc package?

I've spent a good few hours googling for something to allow me to open Zip files in Scala (I know you can just use the Java API, but I was hoping to find a Scala friendly wrapper for it instead of faffing about writing Buffered/FileInputstream and so on)
So I was just messing about in the REPL and found this package
scala.tools.nsc.io.ZipArchive
Which after some digging and using this scala.tools.nsc.io.File, I managed to open a zip archive with all of the Scala niceness (being able to foreach etc)
The thing is I can't see any mention of this package in the official Scala 2.8.1 API document, so I was just wondering why there's no documentation on it? What is it?
this package contains Compiler-related classes. It's mainly used (as far as I know) for Plugin creation.
Due to it being related to Scala compiler, I'm not sure to which point it is a "stable" package and how much may it change between Scala versions, so be careful there.

Is there any ScalaConsole around?

when using GroovyConsole I've found that i'ts much more useful then scala command-line REPL. Does anyone know will it be ScalaConsole anytime soon? It will certainly help to fiddle with Scala and learn its ways
Not sure if there is something like GooovyConsole, but there is Kojo. It's more than a console, but could used as a console.