Scala

Scala is a general-purpose programming language providing support for functional programming and a strong static type system. Designed to be concise, many of Scala's design decisions aimed to address criticisms of Java.
Here are 9,671 public repositories matching this topic...
-
Updated
Apr 13, 2020 - Scala
The Java minimal imports:
imports scala.collection.JavaConverters
which is deprecated in scala 2.13. This triggers the warning/error (dependinc on your scalac
options):
[error] /Users/ignasi/git/projects/lightbend/playframewo
Can someone explain why KM reports partitions covered as 0%? Also, why would there be a negative lag?
kafka-manager: 1.3.3.22
kafka: 2.0.1
zookeeper: 3.4.9
Thanks!
Issue
Impacted version: 4.33.0
Deployment mode: standalone app
Repro steps:
- Wiki -> New Page
- Fill in each item and click "Save" button.
- Page name:
title+
- Content:
aaa
- Page name:
- Redirect to the edit page.
- Page name:
title
instead oftitle+
- Content: (blank)
- Page name:
As +
is decoded to whitespace, should it be treated as an invalid character he
Let's support at least reading "b3" header from a single string, most commonly traceid-spanid-1
It would also be nice to support optionally writing this, especially in message providers or others with constrained environments.
Expected behavior
As discussed on openzipkin/b3-propagation#21 and first implemented here: https://github.com/openzipkin/brave/blob/master/brave/src/main/java/bra
-
Updated
Apr 5, 2020 - Python
The images are quite nice but sometimes they feel kinda cheap. It would be nice if they could be redrawn with TikZ.
This would give a touch of class to a book that is already beautiful.
Simple solution:
?
steps
Run this build, from the Getting values from multiple scopes page in the docs:
lazy val core = project
lazy val util = project
lazy val root = project.settings(
sources := {
val filter = ScopeFilter( inProjects(core, util), inConfigurations(Compile) )
// each sources
Drop Local Blocks
Scala allows local blocks as in
def foo(x: Int) = {
val y = x
{ val z = y * y
println(x)
}
y -1
}
This is dangerous, as it only works if there is an empty line in front of the local block. Dropping the empty line can give obscure type errors or even change the meaning of the program since then the block is treated as an argument to a function on the precedin
Once Issue #1749 is merged, build.sbt should be edited to add the incantation
Global / onChangedBuildSource := ReloadOnSourceChanges
This is available as of sbt 1.3.8. I find it reduces my cycle time & frustration
when making edits to build.sbt, etc. Basically, I do not have to go through a
5 or 15 minute failure cycle because I forgot to do a manual reload. With that
setting, sbt det
Plotting UI revamp
The plotting UI leaves a lot to be desired:
- When you bring up the plotting UI, it's not obvious that you have to do some work to make a plot happen. If you don't, there's no error message, just a never-ending wait. (see https://gitter.im/polynote/polynote?at=5e0e36f9eac8d1511e9ed2ff )
- Why do we make you drag things onto axes? Especially when there is only one axis it could go onto (at leas
-
Updated
Mar 16, 2020 - Python
Spark 2.3 officially support run on kubernetes. While our guide of "Run on Kubernetes" is still based on a special version of Spark 2.2, which is out of date. We need to:
- update that document to Spark 2.3
- release the corresponding docker images.
-
Updated
Apr 12, 2020 - Kotlin
parameters object
perhaps it would be nice to provide an example where injected parameters are inside a dictionary or object:
# parameters
import argparse
args = argparse.Namespace()
args_dict = {}
args.a = 1
args_dict['b'] = 2
papermill ... -p args.a 1.618 -p "args_dict['b']" 3.14159
This would of course be useful for making transition between *.py
scripts (using e.g
add microsite?
According to the generated build
The commands to launch are the following :
docker pull andypetrella/spark-notebook:0.7.0-scala-2.11.8-spark-2.1.1-hadoop-2.7.2-with-hive
docker run -p 9001:9001 andypetrella/spark-notebook:0.7.0-scala-2.11.8-spark-2.1.1-hadoop-2.7.2-with-hive
Using that image (and I think it i
I've noticed all the links on template homepages are broken.
I cant find where these links are set though. It doesnt seem to be here
<img width="1043" alt="sc