hex-converter app

(reload) (page class:public)
I do quite a bit of coding in C, and occasionally some in PIC assembler. As such I'm often using values in hexadecimal (because for certain purposes it makes a lot of sense). However that doesn't mean I can convert arbitrary values to and from hex in my head. A few obvious values such as 0x20=32 (which is also ASCII whitespace), or 0xFF=255, or 0xFFFF=65535, I know perfectly well, but otherwise I use the bc terminal-based calculator thingy to do the conversions (assuming I actually need to know them).

Unfortunately though, this gets rather awkward as it involves telling it to output in base 16, or take input in base 16, and then if I want to change it back, what am I doing? Do I tell it to use base 10 in base 10, or in base 16? Doubtless simple if you're wide awake but rather than think about it I usually close it and restart it again!! Or launch a further instance. Too much bother to think about as I'm the sort of person who sometimes gets relations backwards if not concentrating. Plus it only recognises capital ABCDEF, rather than lower case. Or is it the other way round? It's generally whichever one I'm not using. And I wind up tying up yet another whole xterm window with it, unless I keep starting and stopping it as needed, which, again, gets tedious. In short, a less than ideal arrangement.

Hence the urge to sort out a decent hex-conversion program. Now I could do it as another terminal-based program, and that'd probably be quite simple, but I'd have to be able to tell it what direction to do the conversion, or have 2 versions and keep starting and stopping those, too. GTK2 is now pretty firmly established and I have the dev packages for it in my Debian Linux system at last (there were nontrivial issues preventing this for the past year or so), and the documentation is at least adequate for this purpose (I'll have to see if things have improved since I turned my back on the toolkit due to the patchiness of the docs of the time). So I'm going to try some more GTK code, something I don't think I've done since v1.0.

Features

Planned/contemplated features

Screenshots



Version 0.01! It's no oil painting, and is pretty limited, but it does essentially work.

Download


Hex Combobulator, V0.01 (Linux source code in tar.gz format. Don't ask me for Windows versions, nor how to compile it for Windows though it is most likely possible with MinGW32 and the Windows version of GTK2. If you want that, you're expected to know how for now, sorry!)

News


11th December 2008:Turned out that though "hex cromulator" was unused, "cromulator" was in fact someone's username (multiple someones?), so it seemed... wrong somehow. I decided "Hex Combobulator" was quite good though and have decided on that even though there's also people with the username "combobulator" :D It seems different somehow, I'm not sure I could explain why *ahem*. Anyway, Hex Combobulator is now roughly functional at V0.01, though it lacks most of the neat features. Further updates to come as time allows.
10th December 2008:Project started. Working title picked of "hex_cromulator", it would probably be unused...

See also

Note most of those links were for finding out about GTK2 dialog[sic] boxes, which are quite terribly explained in the official tutorial and the reference docs are a bit much to take in as introductory material.

(planning notes)




Page source

Warning:Only I can edit Mwuki!