typesafe Questions

2

I've been using the environment variable substitution feature in Typesafe config: foo = "foo" foo = ${?FOO} This results in a "default" value of "foo" if there is no environment variable named F...
Hannah asked 9/1, 2017 at 21:49

2

We have a project with huge configuration files built using hocon configs. There is an intention to use variables to create template_section and set up some values in the template based on some opt...
Presently asked 15/2, 2016 at 14:54

2

Solved

This is a beginner question. So my app structure looks like src/main/java/... src/main/resources/application.conf src/test/java/... src/test/resources/module/test.module.conf application.conf ...
Earful asked 29/4, 2015 at 4:56

5

Solved

googlesheets{ dmkb_sheet = "1xEC8CPlKn654321wcoS_JB12345cPPiaA0M" other_sheet = "123isS0M30TH3R1D" } I would like to use something like myConfig.getAsMap("googlesheets") and get the two nested ...
Riocard asked 13/6, 2019 at 13:6

5

Solved

I am currently working with Akka Stream Kafka to interact with kafka and I was wonderings what were the differences with Kafka Streams. I know that the Akka based approach implements the reactive ...

3

I want to combine both having a type for a constant, and using it "as const" to get the literal types as the type: type MyType = {name: string}; const x:MyType = { name: 'test' // Autoc...
Desorb asked 20/6, 2019 at 21:26

1

Solved

I have an Animal trait and a few case classes as follows sealed trait Animal trait Domestic extends Animal trait Wild extends Animal case class Dog(id: UUID = UUID.randomUUID()) extends Domestic ...
Artie asked 31/5, 2021 at 12:40

2

Solved

I have an odd problem with sbt and the Typesafe repository: [info] Resolving com.typesafe.play#play-json_2.10;2.2.0 ... [warn] module not found: com.typesafe.play#play-json_2.10;2.2.0 [warn] ==== ...
Oboe asked 10/12, 2013 at 14:37

2

How do I provide an array/list of values as an environment variable to typesafe/lightbend config? application.conf default-buckets = [ 10, 30, 100, 300, 1000, 3000, 10000, 30000, 100000 ...
Fayum asked 2/5, 2018 at 11:13

4

The title talks by itself, I have a Config object (from https://github.com/typesafehub/config) and I want to pass it the a constructor which only supports java.util.Properties as argument. Is there...
Fetching asked 17/12, 2015 at 15:5

5

Solved

So I am having multiple occurrences of similar snippets in my code: val optionValue = try { Some(config.getString(key)) } catch { case _: Missing => None } I want to somehow eliminate th...
Marthmartha asked 3/9, 2018 at 6:22

2

Solved

Let's say, I want to pass a function to another function: function foo() return 0; end function bar(func) return func(); end print(bar(foo)); But you can make functions typesafe: function fun...
Toughminded asked 18/12, 2019 at 12:8

4

Solved

I'm trying in Scala to get a list from a config file like something.conf with TypeSafe. In something.conf I set the parameter: mylist=["AA","BB"] and in my Scala code I do: val myList = modify...
Deirdre asked 28/7, 2013 at 21:44

3

Using typesafe config, how do I override the reference configuration with an environment variable? For example, lets say I have the following configuration: foo: "bar" I want it to be overriden ...
Ceporah asked 5/7, 2016 at 7:17

1

I am using scala typesafe config (version 1.2.1) in one of my projects to read the application.conf file, my project has dependency on multiple other projects and I create a jar with dependencies t...
Barbital asked 14/8, 2015 at 16:19

5

Solved

I have perks.conf: autoshield { name="autoshield" price=2 description="autoshield description" } immunity { name="immunity" price=2 description="autoshield description" } premium { name="pr...
Kuopio asked 11/7, 2013 at 16:35

2

Solved

Test case: import org.specs2.mutable._ class HelloWorldSpec extends Specification { "Typesafe Config" should "allow me to see my escaped key" in { val entries = ConfigFactory.parseString(""" "q...
Dumdum asked 12/2, 2014 at 19:43

1

Solved

So I've recently discovered that callbacks for event handlers are bad for rendering performance: https://reactjs.org/docs/handling-events.html I'm trying to heed this by grabbing the properties off...
Despoil asked 23/4, 2018 at 1:35

2

Here is typesafe config documentatioin. According to it it is possible to override a properties like that: akka { loglevel = DEBUG loglevel = ${?LOG_LEVEL} } So in that case logLevel will be ...
Freewheel asked 30/10, 2014 at 8:42

3

Solved

what is the correct way to do a bulk insertOrUpdate in Slick 3.0? I am using MySQL where the appropriate query would be INSERT INTO table (a,b,c) VALUES (1,2,3),(4,5,6) ON DUPLICATE KEY UPDATE c=...
Jinn asked 25/1, 2016 at 20:14

3

Solved

Consider the below code which uses scala logging: class MyClass extends LazyLogging { logger.debug("This is very convenient") } What is the difference if I use StrictLogging instead? When shoul...
Sherburn asked 14/1, 2017 at 10:34

3

Solved

Akka Version: Akka 2.4.7 Akka Features: HTTPS Server Support Typesafe's ssl-config Language: Scala I am using the Http Server feature of Akka 2.4.7 to provide several HTTPS service connect...
Braggadocio asked 11/6, 2016 at 6:25

1

Solved

I read the Reactive Manifesto . But I could not understand the core differences between event driven architectures and message driven architectures. And as a result, I also could not understand th...
Murrumbidgee asked 7/6, 2016 at 15:20

2

Solved

I have a Spark (Spark 1.5.2) application that streams data from Kafka to HDFS. My application contains two Typesafe config files to configure certain things like Kafka topic etc. Now I want to ru...
Toponym asked 19/2, 2016 at 15:59

1

Solved

I'm using akka streams graphDSL to create a runnable graph. There are no compile-time errors wrt inlet / outlet of the stream components. Runtime throws following error: Any ideas what should I ve...
Janellajanelle asked 17/2, 2016 at 9:19

© 2022 - 2025 — McMap. All rights reserved.