hex

Hex editor for viewing combined string and float data

I have a binary file of unknown format that I need to be able to read. I have access to a program which can 'unpack' the file, but the user interface is terrible for exporting data. I've extracted a few points in an attempt to search for them in the file and discover a pattern, but it's not an efficient method. What I'm trying to do is ...

Help with .wav hexadecimal...

Hello, I just want to find out -to expand my knowledge on hexadecimals... And I'm wondering how .wav files convert to hex... I have a hex editor, I open them and mess around with the hex: I understand that the first few are file extension and file bitrate etc. But I want to learn which hex values write a sound? Like what gives a sou...

Javascript Hex String to Image

Hello everyone. I'll cut right to the chase. Right now I am developing a web based application. It has a PHP REST based architecture that serves up XML documents. On many of these documents attributes are hex encoded picture strings. On the client side jQuery AJAX fetches an XML document with a picture in it. I need to display said pic...

Hex Code Brightness PHP?

I want users on my website to be able to pick a hex colour, and I just want to display white text for dark colours and black text for light colours. Can you work out the brightness from a hex code (preferably PHP)? ...

How to sort by hexadecimals in xslt?

Hi, im trying to sort my transformed output by a element which contains a hex value. <xsl:sort select="Generation/Sirio/Code" data-type="number"/> Values are plain old Hex: 00 01 02 ... 0A ... FF but they are getting sorted like that: 0A FF 00 01 02, which indicates that the sorting method fails as soon as there are character involved...

Convert hex to utf in Python

Hi.. I have a hex string and i want to convert it utf8 to insert mysql. (my database is utf8) hex_string = 'kitap ara\xfet\xfdrmas\xfd' .. .. .. result='kitap araştırması' How can i do that? Best regards. ...

jquery css color value returns RGB?

In my CSS file: a, a:link, a:visited { color:#4188FB; } a:active, a:focus, a:hover { color:#FFCC00; } I tried with: var link_col = $("a:link").css("color"); alert(link_col); // returns rgb(65, 136, 251) How can I get the HEX code? * edit: found the answer here: http://stackoverflow.com/questions/638948/background-color-hex-to-js-v...

Add two hexBinarys with XPATH 1.0

Hi, my xml document looks somewhat like that (Values are both xsl:hexBinary): <Offsets> <Offset> <Name>ErrorOffset</Name> <Value>DD</Value> </Offset> <Offset> <Name>OtherOffset</Name> <Value>FF</Value> </Offset> </Offsets> <Value> <Name>Error1</Name> <Code>0...

Unable to decode hex values in javascript tooltip

Hi all, I have quite the process that we go through in order to display some e-mail communications in our application. Trying to keep it as general as possible... -We make a request to a service via XML -Get the XML reply string, send the string to a method to encode any invalid characters as follows: public static String convertUT...

Manipulating binary data in Python

I am opening up a binary file like so: file = open("test/test.x", 'rb') and reading in lines to a list. Each line looks a little like: '\xbe\x00\xc8d\xf8d\x08\xe4.\x07~\x03\x9e\x07\xbe\x03\xde\x07\xfe\n' I am having a hard time manipulating this data. If I try and print each line, python freezes, and emits beeping noises (I think ...

scanning binary files in antlr3

I would like to parse a binary file and specify the characters in hex format instead of unicode, is this possible? For instance: rule: '\x7F' ; Instead of: rule: '\u007F' ; Since I do not understand how unicode maps to one byte. ...

Open .bat file in php..

Hello, I want to make an online php hexeditor, where the user uploads a file, the server performs a specified hexedit on it, and then the new file is saved on the server. I was thinking that I should write a .bat file that opens a hex editor on windows, performs the specified actions, then returns the new file. I could use the php functi...

Insert hex values into MySql

I have a table with a VARBINARY column. I need to insert a string such as '4D2AFF' which represents the hex values 0x4D, 0x2A and 0xFF respectively. How do I construct this statement? ...

How to convert a hex float to a float in C/C++ using _mm_extract_ps SSE GCC instrinc function

Hi, I'm writing a SSE code to 2D convolution but SSE documentation is very sparse. I'm calculating dot product with _mm_dp_ps and using _mm_extract_ps to get the dot product result, but _mm_extract_ps returns a hex that represents a float and I can't figure out how to convert this hex float to a regular float. I could use __builtin_ia3...

Follow program execution through .DLL in hex representation

Is there a way to follow a program's execution through DLL code in hex? For example, I want to see what sections have just been read when I press a button. It has to work for x64 DLL's. Thanks! ...

How to remove hex characters from DB?

Hi, i have a MySQL DB where the rows have characters like %20, %2C, etc... how can i remove them from the DB without editing the file on notepad? The .sql file is about 300mb in size... thanks ...

Create NSData object with hex data

Hi there, I have a hex set of data, ripped from a .plist save of an NSArray, that reads (for example) like this: 06000000 01000000 00000000 00000000 00000000 00000000 00000000 00000000 00010000 08020100 00000000 e028f440 00008543 00809343 b0e22a00 that I would like to turn into an NSData object. What is the appropriate way to do this...

How to edit a binary file's hex value using C#

So here's my issue. I have a binary file that I want to edit. I can use a hex editor to edit it of course, but I need to make a program to edit this particular file. Say that I know a certain hex I want to edit, I know it's address etc. Let's say that it's a 16-bit binary, and the address is 00000000, it's on row 04 and it has a value of...

How to turn a hex string into an unsigned char array?

For example, I have a cstring "E8 48 D8 FF FF 8B 0D" (including spaces) which needs to be converted into the equivalent unsigned char array {0xE8,0x48,0xD8,0xFF,0xFF,0x8B,0x0D}. What's an efficient way to do this? Thanks! EDIT: I can't used the std library... so consider this a C question. I'm sorry! ...

How to print a signed integer as hexadecimal number in two's complement with python?

I have a negative integer (4 bytes) of which I would like to have the hexadecimal form of its two's complement representation. >>> i = int("-312367") >>> "{0}".format(i) '-312367' >>> "{0:x}".format(i) '-4c42f' But I would like to see "FF..." ...