Saiedmomen
01/11/2019, 7:42 PMxenoterracide
01/12/2019, 12:23 AMyodgor777
01/12/2019, 2:30 PMSaul Wiggin
10/19/2020, 12:16 PMPhenotype API error. Event # cbvq@9670a4c5, EventCode: 12 [CONTEXT service_id=51 ]
which i presume means that the model object isn’t matching the JSON format. Anyone be more specific?user
10/19/2020, 12:24 PMMati Galli
10/19/2020, 6:40 PMuser
10/20/2020, 10:02 AMuser
10/20/2020, 10:18 AMuser
10/20/2020, 3:59 PMaarjav
10/20/2020, 8:36 PMAnnotationTarget.TYPE_PARAMETER
, it notes "(unsupported yet)". Anyone know the status of that ticket / what issues we can face?user
10/21/2020, 2:58 PMAmol Pednekar
10/21/2020, 3:03 PMviralshah
10/21/2020, 9:11 PMval lines: MutableList<String> = mutableListOf()
// Read in another stream and write a chunk of lines to the above list
val stringToWrite = lines.join { "" }
Now here is where I need help, should I be using stringToWrite.byteInputStream()
or stringToWrite.toByteArrray()
?
I know that I have to use a GZipOutputStream somewhere but I needed a bit of help lining up all the pipes so that I can give it to the Amazon S3 client.
Any ideas? Thanksuser
10/22/2020, 8:13 AMserver
10/22/2020, 3:30 PMBrian Dilley
10/22/2020, 11:26 PMFanis Paschos
10/23/2020, 10:11 AMRayeW47
10/23/2020, 11:15 AMInt
and a String
and output a generic class?
How would I do something that essentially looks like this but actually works? Because this currently does NOT work for me
open class FlagSerDes<T>(
val decodeFromString: (String) -> T,
val getEncodeString: (T) -> String
): KSerializer<T> {
override fun deserialize(decoder: Decoder): T = decodeFromString(decoder.decodeString())
override fun serialize(encoder: Encoder, value: T) {
encoder.encodeString(getEncodeString(value))
}
}
class Flag1(val flags: Int) {
@Serializer(forClass = Flag1::class)
companion object: FlagSerDes<Flag1>( { Flag1(it.toInt()) }, { it.flags.toString() }
}
class Flag2(val flags: Int) {
@serializer(forClass = Flag2::class)
companion object: FlagSerDes<Flag2>( { Flag2(it.toInt()) }, { it.flags.toString() }
}
zero_coding
10/23/2020, 7:57 PMgroostav
10/23/2020, 8:02 PMMaxim Jaffe
10/23/2020, 8:47 PMMaxim Jaffe
10/23/2020, 8:48 PMMaxim Jaffe
10/23/2020, 8:49 PMMaxim Jaffe
10/23/2020, 8:51 PMMaxim Jaffe
10/23/2020, 8:58 PMMaxim Jaffe
10/23/2020, 9:02 PMPacane
10/23/2020, 9:06 PMPacane
10/23/2020, 9:07 PM