1,753 questions
0
votes
0
answers
58
views
Swift decoding error on date type based on user settings preferences (time format) [duplicate]
Recently I have noticed that an API which return a reponse that contains some date type are failing if I have a 12 hour format (AM/PM) on my phone enable iOS 17.6.1. If I switch to 24 hour format the ...
0
votes
0
answers
30
views
How to find out the byte offset of the first audio frame in an Ogg Vorbis stream
I'm hacking SoX to fix soxi's idea of the average bit-rate of an audio file; previously it did:
8 * file_size / length_in_seconds
but that makes very short files report huge bit rates, so it is to ...
1
vote
1
answer
67
views
How to partially override decoding behavior using Mongo Golang Driver v2
The timeCodec in the Mongo driver throws an error when decoding doubles into time.Time fields. I'm dealing with legacy data that stores time as a double and it's impractical for me to migrate ...
0
votes
0
answers
39
views
svn outputs garbled characters on Windows10
svn outputs garbled characters on Windows, it seems that utf-8 output of svn was read by terminal in gb2312.
the activity code page of windows is set to utf-8(65001),but the system region code page is ...
6
votes
0
answers
134
views
partially decode, stream and filter big data with tensorflow_datasets (tfds)
I have two issues (Note that this code is generated in google colab):
Issue 1 I want to stream the droid dataset, which is almost 2TB big. I want to only use data which matches my filter conditions. ...
1
vote
1
answer
57
views
How to determine if a BER ASN.1 identifier uses one or multiple octets?
I'm implementing a parser for BER-encoded ASN.1 data, and I'm confused about how identifier octets work. According to the ASN.1 BER rules:
Each identifier octet encodes class, primitive/constructed, ...
0
votes
0
answers
48
views
RabbitMQ Configuration Entry Encode / Decode problem
I am working with RabbitMQ v3.12.0 which is running on Erlang v26.0.1. on a Windows 10 machine. The problem is that I am unable to successfully apply encrypted configuration entries. To simplify the ...
-1
votes
1
answer
105
views
Encoding and decoding text with special characters (àâäèéêë)
I am trying to encode the text in Angular :
let encodedText = window.btoa("demoé"); //ZGVtb+k=
When trying to decode the same text in C#, the conversion is not happening properly:
string ...
1
vote
0
answers
100
views
Unable to decode the value of the data field of the instruction in the Solana blockchain transaction
There is such a transaction in the Solana blockchain:
5Tkjtr2SnhaTbchug5TzeBZj6eehjdnDCLm9z6Hb3xFAcVtM6rAv2Ecxtvi6N8RbnfkRuRKR7aJv61RRNSPRxW77
There are instructions in it:
('Instruction Details' =>...
5
votes
2
answers
105
views
How do I decode a bit string representing a n-digit number, where the 'n' digits were grouped and encoded in bit words of different lengths?
Background
I am trying to decode a bitstring from a QR-Code, where the data was encoded in numeric mode. According to this QR-Code tutorial: https://www.thonky.com/qr-code-tutorial/numeric-mode-...
0
votes
0
answers
160
views
Convert Base64 ImageStream in .NET WinForms to images with Python
I have a very big WinForms application in the company I'm at and I want to extract all the images that are contained in it. I already wrote a program in python to extract basic images that are of type ...
0
votes
1
answer
61
views
Binary file base64 encode in js and decode in python
I want save an excel file as json in database. It is then downloaded in the python backend later on to create the excel file.
My frontend to save excel file as json:
const fileReader: FileReader ...
1
vote
2
answers
126
views
How to Handle Both Encoding and Decoding with Custom Error Handler in Python?
I'm working on a scenario where I need to handle encoding and decoding of strings using custom error handling in Python. Specifically, I want to create an error handler that can deal with both ...
0
votes
2
answers
86
views
Heap Buffer Overflow in findMedianSortedArrays Function in C (LeetCode)
double findMedianSortedArrays(int* nums1, int nums1Size, int* nums2, int nums2Size) {
int* asd;
bool flag1 = false, flag2 = false;
asd = malloc(sizeof(int) * (nums1Size + nums2Size));...
0
votes
0
answers
65
views
how to convert response to image with decoding?
I was using this code on python previously
with open(f"image.jpg", "wb") as fh:
fh.write(response.content)
and it was working fine, but now I changed lib for requests and the ...