hexadecimal

Convert zip file timestamps to human readable format

How can the file last modification date and time, for files in a zip file, be converted to a human readable format? ...

Displaying variable values in hexadecimal with xcode during debug does not work anymore (xcode 3.2.3)

Hi, I switched to xcode 3.2.3 last week and curiously I cannot display variable values in hexadecimal during the debug process. When I open Run > Variable views then all options remain gray except the first two ones (Use data Formatters / Show Type Column). Did someone notice this? Why such a change? Franz ...

Javascript - "One shade darker"

Hi, Is it possible to use javascript to determine what color is one shade darker than the current background? Maybe some hexadecimal addition/subtraction? I have a menu that can be any color and if it wasn't too difficult it would be great if the submenu could be one shade darker. Does anyone know how to achieve this effect? ...

Create a hexadecimal colour based on a string with jQuery/JavaScript.

Hi there. Sorry if this is a vague question... I'm not really sure how to go about it so maybe someone with the wisdom can point me in the right direction :) Basically, I want to create a function that will accept any old string (will usually be a single word) and from that somehow generate a hexadecimal value between #000000 and #FFF...

Removing hex characters from xml file with php

So to start, I have an array of XML files. These files need to be iterated through and checked for certain 'unrecognized' hexadecimal characters and replaced with normal UTF-8 text, or some kind of placeholder. I've tried iterating through the files and replacing the hex codes using both str_replace and preg_replace with no luck. My ul...

Placing a byte at a very specific address on a hard disk, can it be done? (using c++ for example)

This might sound silly, but I'd like to know how to do the following. I've created a .txt file. The content of the .txt file is the word "hi" without the quotes. So the .txt file contains 2 characters. When opening the .txt file in a hex-editor one sees 2 hexadecimal pairs, namely "68" and "69": Offset 00000000 68 69 hi What I want t...

How to write data in specified format into a binary file with Perl?

Hi all, this might be quite a newbie question, but i need to process a certain text file and dump its content into a binary file and i do not know how - i decided to use perl, but my perl skills are quite low. I probably should have written this in C++, but this seem like a nice and easy task for perl, so why not learn something new? ;)...

convert string rep of hexadecimal into actual hexadecimal

Possible Duplicate: how to parse hex or decimal int in Python i have a bunch of Hexadecimal colors in a database stored as strings. e.g. '0xFFFF00' when i get them from the database i need to convert this string into an actual hexadecimal number, so 0xFFFF00 how can i do this in python ...

Choosing values for constants

One thing I've never really understood is why in many libraries, constants are defined like this: public static final int DM_FILL_BACKGROUND = 0x2; public static final int DM_FILL_PREVIOUS = 0x3; public static final int TRANSPARENCY_MASK = 1 << 1; public static final int TRANSPARENCY_PIXEL = 1 << 2; What's up with the 0x and << stuff?...

Converting a string with a hexadecimal value to an actual hexadecimal value

I have a string like this: "00c4" And I need to convert it to a hex value like this: 0x00c4 How would I do it? ...

\x Escape in Java?

Hi, I was wondering if there is a similar hex (\x) escape in Java like there is in C++. For example: char helloworld[] = "\x48\x45\x4C\x4C\x4F\x20\x57\x47\x52\x4C\x44"; printf("%s", helloworld); There is no hex (\x) escape in Java from what it appears so far. Is there an alternative that is just as easy to use without having to conca...

hexadecimal value

return jjMoveStringLiteralDfa1_0(0x140L, 0x4000000000000L); i try to convert 0x4000000000000L hexa to binary and text but i get strange characters. Is this hexadecimal value? ...

Efficient Hex Manipulation

I have a byte array represented by hex values, these are time durations. The data could be converted to integer values and multiplied by a constant to get the timings. The decoding of the data will be saved to a file as a series of hex strings. What would be an efficient way of manipulating hex values? I was looking at performance iss...

What's this numeric notation called?

add(new CustomLabelField ("Please enter your credentials:", Color.WHITE, 0x999966, 0)); What is that 0x999966? I want to place this color there so how can I convert it? I just need an online tool that will convert it for me but I don't even know what it's called! :D link for more info Thanks! Edit: OK, so this is called a hexadecim...

Why hex in string is not converted to hex when passed through command line argument?

What I understand that hexadecimal numbers can be placed into string using \x. For example 0x41 0x42 can be placed in string as "\x41\x42". char * ptr = "\x41\x42" ; printf( "%s\n" , ptr ) // AB \x is discarded and 41 is considered as a hex by the compiler. But if I pass it to my program through command line arguments, it does not wo...

Generating a list of colors, blue through red, 0% through 100%.

I want to create a list of colors, red-yellow-green-blue, and blend into each other across a span of 100. Anyone have experience in this sort of thing? Edit: Well, RGB actually. Any language will do. I just need the algorithm. ...

How to display hexadecimal numbers in C?

I have a list of numbers as below: 0, 16, 32, 48 ... I need to output those numbers in hexadecimal as: 0000,0010,0020,0030,0040 ... I have tried solution such as: printf("%.4x",a); // where a is an integer but the result that I got is: 0000, 0001, 0002, 0003, 0004 ... I think I'm close there. Can anybody help as I'm ...

Words from HEX alphabet

Hi folks, I'm looking for words that can be created from hex alphabet [0-9a-f]+ like C0FFEE, DEFACED We also can use lisoz, where 1=l,i; 5=s; 2=z; 0=o etc. It can be used in memory addressing or IPv6 address, so it will be funny and much easier to remember. There is nice list here: http://www.nsftools.com/tips/HexWords.htm but I'm sure...

How to make calculations on hexadecimal numbers with awk?

I have a file containing a list of hexadecimal numbers, as 0x12345678 one per line. I want to make a calculation on them. For this, I thought of using awk. But if printing an hexadecimal number with awk is easy with the printf function, I haven't find a way to interpret the hexadecimal input other than as text (or 0, conversion to integ...

MD5(RAND()) on MySQL returning only digits

I'm running this sample code I found while googling: SELECT MD5(RAND()) But, to my surprise, MD5 is returning plain digits, instead of hexadecimal digits. Using CONV(MD5(RAND()), 10, 16) seems to solve my problem, but the MySQL documentation states that the MD5 function should return a string already in hexadecimal. Am I doing someth...