Skip to main content

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.

0 votes
1 answer
12 views

Hexa Conversion to ASCII Character Encoding in XSLT

How do we convert below hexa input to ASCII character encoding in XSLT? The hexa inputs are always a fixed 8 hexadecimal digits. Can you please help, Thank You XML <input> <hex>...
Ram Adabala's user avatar
0 votes
1 answer
35 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. ...
emendelson's user avatar
0 votes
1 answer
62 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 ...
Ram Adabala's user avatar
-1 votes
0 answers
18 views

Python - Generating all combinations of Hexadecimal strings with some filtering rules [closed]

So I'm looking for a script to generate a list of all possible combinations of 32-character long strings and to make this job faster need to add some filters: no repeating characters next to each ...
HonkyPete's user avatar
0 votes
0 answers
26 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 ...
T. J. Foster's user avatar
0 votes
1 answer
41 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: ...
pb-0's user avatar
  • 11
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 ...
A.Sark's user avatar
  • 19
0 votes
1 answer
41 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\...
Weber Felipe's user avatar
0 votes
1 answer
51 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 ...
deepsdog's user avatar
-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 ...
Real Noob's user avatar
  • 1,483
-2 votes
0 answers
36 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 ...
momo's user avatar
  • 71
1 vote
0 answers
15 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 ...
NobinPegasus's user avatar
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 ...
Piedad's user avatar
  • 1
0 votes
0 answers
38 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 ...
user24354609's user avatar
0 votes
2 answers
24 views

Arduino: String to HEX String representaion for AT commands

Sensors values: float temperature = 29.5; float humidity = 32.56; float lightLevel = 17365.83; int co2 = 452; int noise = 583; String dataString = ""+String(temperature)+","+...
DevilCode's user avatar
  • 1,110

15 30 50 per page
1
2 3 4 5
650