Ben Chuanlong Du's Blog

It is never too late to learn.

Building Tool for Scala

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. The recommended building tool for Sclas is Gradle > Maven > sbt. Maven is too verbosal while sbt is too hard to use.

References

http://www.hammerlab.org/2017/04/06/scala-build-tools/

Mount Samba on Mac

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

GUI

Go -> Connect to Server

smb://path_to_dir

Command Line

mount -t smbfs //user@server/sharename share

mount_smbfs //user@SERVER/folder ./mntpoint

Spcify Java Version to Use in a Scala Project

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

javacOptions ++= Seq("-source", "1.8", "-target", "1.8", "-Xlint")

initialize := {
  val _ = initialize.value
  if (sys.props("java.specification.version") != "1.8")
  sys.error("Java 8 is required for this project …

Install sbt on CentOS

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

wget http://dl.bintray.com/sbt/rpm/sbt-0.13.5.rpm
sudo yum install sbt-0.13.5.rpm
curl https://bintray.com/sbt/rpm/rpm | sudo tee /etc/yum.repos.d …