Tech TLDR;

  • Archive
  • Top Posts
  • GitHub
  • LinkedIn
  • Contact

Attach Remote Debugger to Jar File and Scala REPL

December 15, 2018 by admin

I was investigating a bug that would only happen in production and wanted to attach a debugger to a particular workflow. I could have run the entire application and attached remotely, via: In my case, I wanted to invoke a specific method and see what happens via Scala REPL. Turns out it’s pretty easy to […]

Filed Under: Scala

Adding Ammonite REPL to Scala For Ad Hoc Testing

November 13, 2018 by admin

Ammonite is an interactive REPL for Scala, kind of like ipython is for Python. I usually use IntelliJ IDE for Scala (which has a REPL and debugger among other things). Ammonite is great replacement though, when I don’t want to start up full blown IDE. It’s really easy to get started with Ammonite. First it […]

Filed Under: Scala

How to install old version of SBT using Homebrew

September 15, 2017 by admin

I’ve recently ran into issue where our projects were expecting to run with SBT version 0.13.12, but the only version that was installing with home-brew via brew install sbt was 1.0.1. Global Setting I’ve Googled and realized that I can install older version with brew install sbt@0.13 but this installed version 0.13.16 which was still […]

Filed Under: Scala, Tools

Save Ammonite (Scala REPL) History to File

April 7, 2017 by admin

I use Ammonite and ipython like REPL for Scala. I find it handy to save history to file, so here is how to do it in Ammonite. Ammonite exposes a global object called repl, which has a method called history. The code above converts history to a new line separated string and writes it to […]

Filed Under: Scala

Write or Paste Multi-Line Code in Scala REPL

April 7, 2017 by admin

I love Python and ipython, so I often crave similar experience when working with Scala. Scala already has a built in REPL which is a huge plus, however, I wasn’t sure how to copy/paste multi-line text. For example, I had a snippet of code saved somewhere that looked as such: This would work fine if […]

Filed Under: Scala

Parse JSON Object to Map in Scala Using Jackson

October 6, 2016 by admin

I couldn’t find a good example online, so here it goes. Hope it helps

Filed Under: Scala

Copyright © 2023 · eleven40 Pro Theme on Genesis Framework · WordPress · Log in