Maxim Podkolzine
Maxim Podkolzine
I have own serialization mechanism and was trying to write an adapter to a Serializer, like this: ``` new Serializer() { @Override public Slice write(T data) { byte[] bytes =...
LT;DR: length calculation is wrong, padded zeros are never ignored. Note that `vocab_encode` encodes each char as an index in `1`..`vocab_len`: that's what is stored in `seq` before it goes...
The task is as follows: **How to accumulate elements of a vector (X) to an array (F) based on an index list (I)?** To me this means that `F` should...
Cassandra: 3.10 I'm trying to filter the table and sort results by a field. The easiest way is to use `filter` and `sort` options from Lucene expression API: ``` select...
Is there a way to access API response headers, in particular rate limit ones? I tried even to derive from `GitlabHTTPRequestor` to patch http response processing, but everything that deals...
Create a map and call `.clear()`: ``` java.lang.UnsupportedOperationException: remove at java.base/java.util.Iterator.remove(Iterator.java:102) at java.base/java.util.AbstractCollection.clear(AbstractCollection.java:431) at java.base/java.util.AbstractMap.clear(AbstractMap.java:297) ```