Kevin
Kevin
Ok, that's a pitty. But, why doesn't my first attempt compile, whereas my second attempt does?
> @ktoso - I was able to get this working without much hassle. Included the sbt-assembly plugin -- `addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.6")` > Then ran > `jmh:compile` > `jmh:assembly`...
I figured out how to build a fat jar using sbt-assembly. This is how i configured my `build.sbt`: ``` lazy val root = (project in file(".")) .enablePlugins(JmhPlugin) .enablePlugins(JavaAppPackaging) libraryDependencies ++=...
Well `topOrder.toLayered` returns three layers: - (0, Nodes(2)) - (1, Nodes(4, 7)) - (2, Nodes(5)) By permuting the second layer you can only find the following orders: - 2 4...
I implemented the requested functionality based on this [explanation](https://www.geeksforgeeks.org/all-topological-sorts-of-a-directed-acyclic-graph/) and using the API provided by scala-graph. ``` import scalax.collection.Graph import scalax.collection.GraphPredef._ import scalax.collection.GraphEdge._ import scala.collection.mutable.{ArrayStack, Map => MMap} def allTopologicalSorts[T](graph:...
Things got a bit messy so i based myself on the proposed solution in this [SO post](https://stackoverflow.com/questions/55201457/return-all-topological-sort-orderings-in-a-graph-using-kahns-algorithm). The proposed solution is recursive, so I transformed it into an iterative version...
Well, i don't know why the second scenario works. But for the first scenario which is: 1. Be connected on a network 2. Launch the server `./sbt ~jetty:start` 3. Go...
In a Docker container (i.e. Linux) the problem does not occur, but on my Macbook (macOS high sierra 10.13.6) it does occur. This is part of the server's output: ```...
I ran into the same issue, where `toZod` would not recognize that `T | null | undefined` is in fact a nullable `T`. Here is a small change that fixes...
This seems unintentional and i'm certainly in favor of skipping the periodic snapshot if a snapshot is already in progress. cc @balegas