Mr.NiceGuy
11/15/2021, 9:32 AMHåkon Holmstedt
11/16/2021, 12:34 PMAbstractBaseTest
class of about 2000 lines that is inherited by many of our tests, and we have read somewhere on the jetbrains blog that large classes can impact compile time. Is it reasonable to think that rewriting the AbstractBaseClass to something concrete that tests can use, rather than inherit, would improve our situation?Vahalaru
11/19/2021, 2:50 AMMarcus Brito
11/19/2021, 1:59 PMReceiveBuilder#onMessage
signature.Henrik Johansson
11/22/2021, 3:04 PMsimon.vergauwen
11/22/2021, 7:15 PMFlow
based Kafka programs.
Was wondering if there would be any interest in such a library, and/or if people are interested in contributing. Or if there is an existing library already out there. I have some operators, and examples ready if someone is interested.
https://github.com/nomisRev/kotlin-kafkaMuhammad Abdullah
11/24/2021, 7:03 AM@Table("organisations")
data class Organisation(
@Id val id: UUID?,
val name: String = "",
val information: String = "",
val urls: Any?,
val emails: Any?,
val phoneNumbers: Any?,
val addresses: Any?,
val settings: Any?,
val active: Boolean = true,
val createdAt: Instant = Instant.now(),
val updatedAt: Instant = Instant.now(),
)
{
“name”: “Business Name”,
“information”: “Business Info”,
“phoneNumbers”: {
“office”: “+6172345678”,
“imam”: “+6142349876”
},
“emails”: {
“info”: “info@bus.com”,
“commity”: “commity@bus.com”
},
“addresses”: {
“address”: “2345 SomeStreet Road, MyTOWN, 1234",
“postal address”: “PO Box 123"
},
“urls”: {},
“settings”: {
“timeFormat”: “dd/MM/yyyy”,
“currency”: “AUD”
}
}
Any pointers or help would be greatly appreciated.
ThanksSergey Serdyuk
12/01/2021, 9:00 PM@RestController
@RequestMapping("/my_controller")
class MyController {
@GetMapping(produces = [MediaType.APPLICATION_JSON_VALUE])
fun getIds(@RequestParam(value = "ids") ids: List<Long>): List<Long> = ids
}
when I call for example:
curl -ik localhost:8080/my_controller?ids=1,2,3
all good
but when my client send an empty value for example:
curl -ik localhost:8080/my_controller?ids=1,,3
the list ids
don't check nullability and my method got [1,null,3]
I suppose the problem around conversion from java to kotlin cause when I decompile class to java I see next
@NotNull
public List getIds(@RequestParam("ids") @NotNull List ids) {
Intrinsics.checkNotNullParameter(ids, "ids");
there is no any nullability checking, any ideas how to fix it, and where is the root of problem?
thanks.Scott Kruse
12/03/2021, 6:22 PMEmanuel Moecklin
12/10/2021, 6:03 PMalon shoshani.86
12/12/2021, 11:31 AMalon shoshani.86
12/19/2021, 4:05 PMJairo Andrés Terán Arcos
12/20/2021, 2:20 PMGillian Buijs
12/21/2021, 10:31 AMalon shoshani.86
12/23/2021, 8:57 AMGillian Buijs
12/23/2021, 11:16 PMalon shoshani.86
12/27/2021, 7:37 PMio.ktor.client.HttpClient
To make http calls between microservices and third parties for example:
When the http call succeeded the httpResponse maps automatically to my Object,
but when there is error in the http call and it failed, I expect the client will throw an exception with the satatus code 40X 50X, and it's not.
I need to check manually what is the status code, and decide what to do.
Am I using it wrong? Do you have another client to use?Agustin Magne
01/01/2022, 5:26 PMFred Bowker
01/06/2022, 3:26 PMandyg
01/07/2022, 8:52 AMExerosis
01/08/2022, 8:02 PMvar cancel = false
var i = 0
this.forEach {
val result = !it(using, interaction)
println("${i++} cancelled = $result")
if (result) {
println("cancelling")
return
}
}
It prints out 4 times DOES NOT print cancelling... and then it just stops.Alina Grebenkina
01/13/2022, 12:52 PMmartmists
01/14/2022, 11:16 AMJohann Pardanaud
01/14/2022, 1:25 PMThis cheat sheet provides guidance on the various areas that need to be considered related to storing passwords. In short:
• Use Argon2id with a minimum configuration of 15 MiB of memory, an iteration count of 2, and 1 degree of parallelism.
• If Argon2id is not available, use bcrypt with a work factor of 10 or more and with a password limit of 72 bytes.
• For legacy systems using scrypt, use a minimum CPU/memory cost parameter of (2^16), a minimum block size of 8 (1024 bytes), and a parallelization parameter of 1.
• If FIPS-140 compliance is required, use PBKDF2 with a work factor of 310,000 or more and set with an internal hash function of HMAC-SHA-256.
• Consider using a pepper to provide additional defense in depth (though alone, it provides no additional secure characteristics).
Rob Elliot
01/18/2022, 2:04 PMHttpHandler
& the browser fetch API that would allow using the same code to make HTTP requests in the browser and the server?John O'Reilly
01/19/2022, 2:51 PMasavio
01/20/2022, 5:14 AMexitProcess()
terminates the service without waiting for any active processes to complete. Is there a way to wait for all the active process to complete before termination?Gillian Buijs
01/20/2022, 6:09 PMGavin Ray
01/22/2022, 11:28 PM-DEV
or -SNAPSHOT
builds via Gradle?
I've tried adding the sources in the README here:
• https://github.com/JetBrains/kotlin#using--dev-and--snapshot-versions
But my build doesn't seem to be able to find the versions 1.7.0-dev-911
or 1.7.255-SNAPSHOT
Fred Bowker
01/27/2022, 3:41 PMFred Bowker
01/27/2022, 3:41 PMhfhbd
01/27/2022, 3:54 PMplugins {
kotlin("jvm") version "1.6.10"
id("com.squareup.sqldelight") version "1.5.3"
}
repositories {
mavenCentral()
}
dependencies {
val sqlDelight = "1.5.3"
// Apache 2, <https://github.com/cashapp/sqldelight>
api("com.squareup.sqldelight:coroutines-extensions:$sqlDelight")
api("com.squareup.sqldelight:jdbc-driver:$sqlDelight")
// Apache 2, <https://github.com/hfhbd/kotlinx-uuid>
api("app.softwork:kotlinx-uuid-sqldelight:0.0.12")
// Apache 2, <https://github.com/Kotlin/kotlinx-datetime>
api("org.jetbrains.kotlinx:kotlinx-datetime:0.3.2")
// BSD 2, <https://github.com/pgjdbc/pgjdbc>
api("org.postgresql:postgresql:42.3.1")
}
sqldelight {
database("SchemaDB") {
dialect = "postgresql"
packageName = "wipma.schema"
deriveSchemaFromMigrations = true
verifyMigrations = true
}
}
Fred Bowker
01/27/2022, 3:58 PMbuildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath("com.squareup.sqldelight:gradle-plugin:1.5.3")
}
}
hfhbd
01/27/2022, 4:00 PMFred Bowker
01/27/2022, 4:08 PM