Dan Brown
Dan Brown
On this text: ``` id: String, node: String, lastTried: sql.Timestamp, lastTriedUri: String, lastTriedSeeding: sql.Timestamp, lastTriedDepth: Int, lastFetched: Option[sql.Timestamp], lastFetchedStatus: Option[Int], lastParsed: Option[sql.Timestamp], lastParsedOutLinks: Option[Int] ``` I do `viC` from here:...
Looking at the [ZooKeeperClient api](http://twitter.github.com/commons/apidocs/com/twitter/common/zookeeper/ZooKeeperClient.html) (and also the [implementation](https://github.com/twitter/commons/blob/master/src/java/com/twitter/common/zookeeper/ZooKeeperClient.java#L251)), it looks like there's no way to connect to the zk cluster using a [chroot suffix](http://zookeeper.apache.org/doc/r3.3.4/zookeeperProgrammers.html), which I typically do just...
### Bug: using aes() multiple times loses all but the last one ```py from lets_plot import * from plotnine.data import mpg LetsPlot.setup_html() ( ggplot(mpg) + aes(x='hwy') + aes(y='cty') + geom_point()...
- https://ggplot2.tidyverse.org/reference/expand_limits.html - https://plotnine.readthedocs.io/en/stable/generated/plotnine.scales.expand_limits.html
``` scala config("one.two")("three")("four.five").as[Int] ``` Useful for passing subtrees around without all modules having to know their absolute path.
Creating anonymous subclasses of classes that use Logging trips an NPE, e.g. http://stackoverflow.com/questions/9958977/logula-logging-on-anonymous-class-instances Since `getCanonicalName` returns null in some cases, like anonymous classes, the simplest fix seemed to be to...
Useful, e.g., if you have a case class or custom collection type that you want to specialize with @JsonValue and @JsonCreator instead of the jerkson defaults.
``` scala import com.codahale.jerkson.Json object A { type Z = Int case class Ok(x: Int) case class Bad(x: Z) def main(args: Array[String]) { println(Json.parse[Ok]("""{"x":3}""")) println(Json.parse[Bad]("""{"x":3}""")) // ERROR: java.lang.ClassNotFoundException: Z }...
- This kept triggering in dev so I added a guard to warn and ignore - Not sure the root cause -- it could just be a spurious behavior from...