teamon

  • Archive
  • RSS
  • Ask me anything

Kill sbt forked jvm

Recently I’ve been playing with akka under sbt. I often run sbt console and then use run command to execute my app. It works great for single threaded applications that exits by itself. When using akka, there are couple of threads that do not quit. Hitting ctrl+c quits running application AND unfortunately also sbt. I figured out, that it can be fixed with a little bit of hacking.

First, set fork in run := true is build.sbt. Then you can stop forked jam with the following shell line:

I’d suggest making it an alias or even better save as Shell Extension available via hotkey using awesome alfred app.

    • #scala
    • #sbt
    • #akka
  • 1 week ago
  • Comments
  • Permalink
  • Share
    Tweet

coffee-script compiler plugin for sbt (works with liftweb)

    • #scala
    • #liftweb
    • #cofee script
  • 8 months ago
  • 4
  • Comments
  • Permalink
  • Share
    Tweet

Neodatis OdbConfiguration printout

In case I might need this again…

Source: gist.github.com

    • #scala
    • #neodatis
  • 9 months ago
  • 1
  • Comments
  • Permalink
  • Share
    Tweet

Simple scala benchmark utility

Very, very simple. Strongly influenced by Ruby’s Benchmark

Usage …

.. and the result

    • #Scala
  • 11 months ago
  • Comments
  • Permalink
  • Share
    Tweet

Scala specs cheatsheet

Based on MatchersGuide

    • #scala
  • 1 year ago
  • Comments
  • Permalink
  • Share
    Tweet

akka singleton actor

If you ever want to do something like this:

DON’T! NEVER. Even in tests or something, doesn’t matter, never!

Using singleton actor object + scala-specs = silen fail with message “null” and one big WTF.

    • #scala
    • #akka
  • 1 year ago
  • Comments
  • Permalink
  • Share
    Tweet

akka actors cheatsheet

Small cheatsheet for great akka library

    • #scala
  • 1 year ago
  • Comments
  • Permalink
  • Share
    Tweet

Scala: Combine several Partial Functions into one

    • #scala
  • 1 year ago
  • Comments
  • Permalink
  • Share
    Tweet

Good old C-style for loop in scala

Source: gist.github.com

    • #scala
  • 1 year ago
  • Comments
  • Permalink
  • Share
    Tweet

Handle exceptions inside Actor


and then

Source: gist.github.com

    • #scala
  • 1 year ago
  • Comments
  • Permalink
  • Share
    Tweet

Decompile scala

    • #scala
  • 1 year ago
  • Comments
  • Permalink
  • Share
    Tweet

Scala collections #collect

    • #Scala
  • 1 year ago
  • Comments
  • Permalink
  • Share
    Tweet

Scala remote actors

Server

Client

    • #scala
  • 1 year ago
  • Comments
  • Permalink
  • Share
    Tweet

Scala String replace

Worth remembering, thx to lopex

    • #scala
  • 1 year ago
  • Comments
  • Permalink
  • Share
    Tweet
← Newer • Older →
Page 1 of 2

About

Ruby, Scala and others.

Pages

  • About
  • Projects
  • RSS
  • Random
  • Archive
  • Ask me anything
  • Mobile

Effector Theme by Carlo Franco.

Powered by Tumblr