scala tag

41 questions


1 answers
60 views
0
I don't want to list the contents of arguments in a pattern match using case class.

Suppose you run the following programs:sealed trace Exprcase class N(n:Int)extends Exprcase class Var(x:String, a:Int, n:Int)extendsExprcase class Add (n:Expr*) extensions Exprcase class Mul(n:Expr*) ...

1 years ago

1 answers
51 views
0
I want to use a password containing symbols for my sbt proxy settings

I installed sbt because I wanted to use scala on my company PC, but when I tried sbt new, I couldn't get the plug-in.I found a way to configure proxy settings in Qiita, so I tried it, but it didn't wo...

1 years ago

2 answers
74 views
0
How to optionally wrap the return value of a Java function that may return null

If you want to receive an option for a function that may return null, for example, valfuge=Option(nullablefunc())defaultwice(one:Option [Int]) = { one.map(2*)}value result=twice (fuge.asInstanceOf [Op...

1 years ago

1 answers
123 views
0
missing parameter type on file upload with silhouette

It's been a few months since I started learning scala+play.I'm trying to implement fileupload, and I'd like to have a view that displays identity using silhouette, but I don't know how to write it.The...

1 years ago

1 answers
96 views
0
Typeface Activator did not compile CoffeeScript and auto-reloading stopped working

I use Scala to develop web applications in Play Framework.Until yesterday, the development was going well, but Activator(sbt) did not compile CoffeeScript and auto-reloading did not work anymore.I can...

1 years ago

1 answers
60 views
0
I want to stop early if there is an error during sbt compile.

If there is an error when compiling from the sbt console, I would like it to stop as soon as possible.When compiling continuously, such as ~compile, there is a very meaningless error in the back and y...

1 years ago

1 answers
68 views
0
Please try specifying another using the-encoding option one error found

The paths are as follows: which scala/usr/local/bin/scalaimport java.awt.image.BufferedImageimport java.awt.Color/** * View the Mandelbrot Set. */object Mandelblot { /** * Create an image. */ create...

1 years ago

1 answers
75 views
0
I didn't really understand the internal process of why I could detect click events just by importing EventListener.

Until now, I thought that I should import EventListener to detect any event without thinking too much about it.However, I am looking into the internal handling of EventListener.There are pages like th...

1 years ago

1 answers
85 views
0
Error if url parameter in restfulAPI contains %

I am creating a WEB API in playframework 2.x, but I get a Bad Request error when the url parameter contains %.For example, when searching with the string 20% off...Bad Request For request 'GET/search?...

1 years ago

1 answers
86 views
0
About Configuring the Number of Gatling Users and the Interval Between Runs

We are testing the load using Gatling.Number of users: 1Interval: 600 secondssetUp(scn.inject(rampUsers(1)during(600 seconds))).protocols(httpProtocol)We are conducting a load test under this conditio...

1 years ago
« - 3 - »

© 2024 OneMinuteCode. All rights reserved.