Suggested reading for BITS/Bytes and sample code to perform operations etc.
Hi, Need a refresher on bits/bytes, hex notation and how it relates to programming (C# preferred). Looking for a good reading list (online preferably). ...
Hi, Need a refresher on bits/bytes, hex notation and how it relates to programming (C# preferred). Looking for a good reading list (online preferably). ...
This is a follow up question. So, Java store's integers in two's-complements and you can do the following: int ALPHA_MASK = 0xff000000; In c# this requires the use of an unsigned integer, uint, because it interprets this to be 4278190080 instead of -16777216. My question, how do declare negative values in hexadecimal notation in c#,...
This may have been answered elsewhere but I could not find a suitable response. I have this code: enum enumWizardPage { WP_NONE = 0x00, WP_CMDID = 0x01, WP_LEAGUES = 0x02, WP_TEAMS = 0x04, WP_COMP = 0x08, WP_DIVISIONS = 0x10, WP_FORMULAS = 0x20, WP_FINISHED = 0x40, }; Which is legacy and I have...
I found the following article : here about installing fonts on a Windows computer via a script. The author uses VBScript to do that, but I'd like to use Ruby/Python. There is a line in the script I don't understand : Const FONTS = &H14& What is that &H14&? Is it a number? How would I represent that in another language? ...
What's the easiest way to programmatically darken a hex colour? Without using any built-in functions. The language is irrelevant, it can just be pseudo-code if you want. Thanks. ...
Which of the following give back 63 as long (in Java) and how? 0x0 0x1 0x2 0x4 0x8 0x10 0x20 I'm working with NetworkManager API flags if that helps. I'm getting 63 from one of the operations but don't know how should I match the return value to the description. Thanks ...
Hello, I'm quite new to Perl development, and I'd like to perform a following task: My script receives hex-encoded string as command-line param. Then I must decode this string and write it to output file like a C++ array with initialization from data given. For example: perl myscript.pl DEADBABEDEADBEEF and the output something like ...
Hello everybody, I'm trying to output the value of a TByte as its corresponding hexadezimal representation in an AnsiString. Example: TByte is 0x4F AnsiString: "4F" (two characters, a 4 and an F) I know of the StringOf function, but that converts to the "mapped" character. Is there any decent function build in or does somebody has a ...
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...