hex Questions

0

How could the below code be modified to create 3 columns such that column A contains unique HEX codes representing text colors (each cell in column A would contain the HEX code displayed in the res...

4

Solved

In Linux we can do echo -n -e '\x66\x6f\x6f' > test.txt to write HEX values to a file. How can this be done simply in Windows batch?
Yolande asked 11/12, 2017 at 10:21

6

Solved

I'm sure someone has already solved this problem: what is an easy and portable way to convert a hex color value (anything from 000000 to FFFFFF) to 3 decimal values from 0 to 255. (If you're not fa...
Dehypnotize asked 31/8, 2011 at 6:16

7

Solved

I'm trying to find a way to print a string in hexadecimal. For example, I have this string which I then convert to its hexadecimal value. my_string = "deadbeef" my_hex = my_string.decode('hex') ...
Oddball asked 15/5, 2013 at 18:4

3

Solved

This question is not asking how to convert a hash string hex value to it's opposite color. This question is asking how to convert a hash string hex value to a regular hex value explained below: I ...
Anywheres asked 7/1, 2018 at 19:18

5

Solved

I am trying to log the request body of requests to my api and nginx is turning all quotes (and some other characters like spaces and tabs) into hexadecimal characters. Here is my log format log_f...
Simsar asked 20/5, 2015 at 22:32

3

Solved

For some reason, when converting some values in PowerShell from Hex to Decimal, I get incorrect value. For example: - Type 0xC0000000 then hit enter, you'll get -1073741824 which is incorrect, th...
Discotheque asked 25/7, 2016 at 12:13

4

Solved

How do I convert the string 'AA5504B10000B5' to an ArrayBuffer?
Jailbreak asked 31/3, 2017 at 2:11

2

Solved

I have string "6A" how can I convert into hex value 6A? Please help me with solution in C I tried char c[2]="6A" char *p; int x = atoi(c);//atoi is deprecated int y = strtod(c,&p);//Retur...
Geometrid asked 9/4, 2015 at 19:19

7

Solved

I have to convert an int to an hex value. This is for example the int value: int_value = -13516; To convert to a hex value i do: hex_value = Integer.toHexString(int_value); The value that I s...
Absenteeism asked 6/8, 2013 at 10:52

5

Solved

Is there any native Swift way for any (at least integer) number to get its hexadecimal representation in a string? And the inverse. It must not use Foundation. For example the String class has a fu...
Hemimorphite asked 28/11, 2014 at 13:6

7

Solved

The following code procedure bytes = parseHexString (createHexString (bytes)) leads to updated of bytes, what I would like to avoid. And as a result calculations are not correct. <html> <...
Outpour asked 30/1, 2013 at 11:43

6

Solved

How can I convert a string value like "0x310530" to an integer value in C#? I've tried int.TryParse (and even int.TryParse with System.Globalization.NumberStyles.Any) but it does not work...
Greenland asked 25/11, 2010 at 18:21

7

Solved

In Objective-C I used to convert an unsigned integer into a hex string with: NSString *st = [NSString stringWithFormat:@"%2X", n]; I tried for a long time to translate this into Swift bu...
Vescuso asked 15/6, 2014 at 12:17

14

Solved

I have an integer that was generated from an android.graphics.Color. It has a value of -16776961. How do I convert it into a hex string with the format #RRGGBB? Simply put: I would like to output #...
Diapositive asked 30/6, 2011 at 19:12

17

Solved

So I have this query working (where signal_data is a column) in Sybase but it doesn't work in Microsoft SQL Server: HEXTOINT(SUBSTRING((INTTOHEX(signal_data)),5,2)) as Signal I also have it in E...
Mina asked 31/3, 2009 at 20:56

23

Solved

Here is a function I was working on to programmatically lighten or darken a hex color by a specific amount. Just pass in a string like "3F6D2A" for the color (col) and a base10 integer (a...
Bunkmate asked 6/4, 2011 at 0:39

17

Solved

In C, what is the most efficient way to convert a string of hex digits into a binary unsigned int or unsigned long? For example, if I have 0xFFFFFFFE, I want an int with the base10 value 429496729...
Shawanda asked 13/8, 2008 at 20:20

3

Solved

I am trying to extract discrete colors from a matplotlib colormap by manipulating this example. However, I cannot find the N discrete colors that are extracted from the colormap. In the code below...
Pesticide asked 8/11, 2015 at 16:57

8

Solved

I have a string like "sample". I want to get a string of it in hex format; like this: "796173767265" Please give the C# syntax.
Racemose asked 8/6, 2013 at 12:37

5

Solved

I tried this code: LinearLayout someLayout=(LinearLayout)view.findViewById(R.id.someLayout); someLayout.setBackgroundTintList(context.getResources().getColorStateList(Color.parseColor("#ff8800"))...
Apollus asked 15/12, 2017 at 17:50

3

When I write CSS, intellisense doesn't show me color box for hex value color but only icon. Before, Intellisense showed me color box for hex value. I don't know why. Now I use VS Code version 1.31....
Accountable asked 14/2, 2019 at 12:47

7

Solved

I'm having a little trouble grabbing n bits from a byte. I have an unsigned integer. Let's say our number in hex is 0x2A, which is 42 in decimal. In binary it looks like this: 0010 1010. How would...
Stinking asked 6/3, 2013 at 18:57

8

Solved

I'm using Visual Studio 2008 and I have just noticed that the debugger is displaying integer values as Hex when I hover over variables and also in the immediate window. I guess I must have hit a sh...
Spitler asked 28/7, 2010 at 15:25

2

Solved

I'm trying to create a QString which is a hexadecimal number with its letter digits in Capitals instead of small caps, how can it be done? QString( " %1" ).arg( 15, 1, 16 ) yields f and I'd lik...
Beaufort asked 18/6, 2010 at 22:23

© 2022 - 2024 — McMap. All rights reserved.