Questions tagged [hex]
Hexadecimal (also base 16, or hex) is the base-16 positional numeral system, using the 16 symbols 0–9 and A‒F.
9,741
questions
1
vote
0
answers
25
views
Extract level data from unknown octet-stream format
Overview:
I wanted to attempt to extract the level data from Happy Wheels, their APIs are all open to pull data. I can pull the data shown in the level lists as well as each individual level ID (it ...
3
votes
2
answers
91
views
R: Efficient way to str_replace_all without recursively replacing conflicting substitutions?
Hello,
The problem
First, let me try to illustrate the problem. Assume I want to apply the following cipher to encode the string, "abc".
library(tidyverse)
cipher <- tibble(
byte = c(...
0
votes
3
answers
80
views
Decimal -> HexaDecimal -> Character Encoding in XSLT
(1) My requirement is to convert a DECIMAL INPUT to hexadecimal notation with fixed 8 digits
(2) Convert/Map HEXADECIMAL RESULT to character set by picking 2 HEXADECIMAL characters at a time and ...
1
vote
1
answer
53
views
How to convert long hex string into byte array (0x69, 0x63, etc. etc.)
I have a long hex string (around 8000 bytes) that I want to convert into what I think is called a byte array. (Please be kind if I've got the name wrong.) In other words, the string begins
69636E etc.
...
0
votes
1
answer
69
views
How to convert Long datatype to Hex format in XSLT and Perform Long Parsing in XSLT. XSLT to be used in DataPower
Below is my .Net VB code.
How do we implement below code in XSLT (XSLT to be used in DataPower). Since we do not have Long datatype in XSLT, we're having tough time to implement below .Net code in ...
0
votes
0
answers
29
views
Representing an 8-digit hexadecimal as a long [duplicate]
I am writing a Java program that performs bitwise operations on bites in a data stream.
I have been given test values in the form of 8-digit hexadecimal strings, which I have converted to base 10 and ...
0
votes
1
answer
42
views
Raw gzip data contains non-ASCII characters
I am working with gzip raw data that contains non-ASCII characters that I am unable to decompress and decode.
I am getting the data from Firestore through the python client and the payload looks like:
...
0
votes
0
answers
22
views
Adding two negative Hex numbers
I am trying to add two hex numbers given in two's compliment: A415 + A555. I'm having a bit of trouble with understanding the two's compliment inversion for adding.
I converted both numbers to binary ...
0
votes
1
answer
43
views
How to convert string to byte string in python?
I want to convert a variable string in hex format to a byte string in python?
Example:
string = 'b36372908bd6f0b5898a38879c7d88436590c3e786568db84a3948408e81b4c6'
to byte string = b'\xb3cr\x90\x8b\...
0
votes
1
answer
59
views
How to convert Hex to Dec in Codesys ST?
I'm using Codesys V3 ST language
I'm writing a code to communicate motor controller unit which uses CANOpen protocol
I want to use CAN raw messages to communicate
I put CAN bus messages bytes in an ...
-4
votes
1
answer
61
views
Converting a HEX color value to RGB in JavaScript
I have this code:
let hexInt = parseInt(hex, 16);
let r = (hexInt >> 16) & 255;
let g = (hexInt >> 8) & 255;
let b = hexInt & 255;
I know that a HEX digit requires 4 bits to ...
-2
votes
0
answers
37
views
i convert integer as hex to decimal in PHP but it gives me float, how to solve it? [duplicate]
when I try to convert this Hex: 780000465257A7054F5180E46C000100004652 to a decimal number, it should give me this decimal value: 2676089517297180626710225817179225498977322578,
you can try that using ...
1
vote
0
answers
17
views
How to delete bytes in ghex instread of making them null bytes
I'm editing a jpg file. I am using ghex.
The problem I'm facing is I can make bytes 00(null byte)
But can't erase bytes. What to do?
how can I remove the 00 00 00 00 bytes
Shift + Arrow and pressing ...
0
votes
1
answer
31
views
Converting Measurement Signal to Hexadecimal String in Lua for Excel Template Integration
I have a measurement signal that is diagnosed and returns a positive numeric value. I need to convert this value to a hexadecimal string using Lua, integrated within an Excel template, and passed to ...
0
votes
0
answers
39
views
Wrong hex reading through serial port c#
I`m trying to read hex values through serialport from microcontroller in visual studio, and data that
higher than 126 index in ascii table is receiving like 3F which represents "?", or it ...