Computing > Programming

Reverse engineering tool as requested by Dave Jones

(1/1)

hennep:
I have created a tool to load 2 separate images and show these with transparency.
See Dave's video: https://youtu.be/GOk1BYKSsOI



The tool is developed with Code::Blocks and wxWidgets in Linux.
I don't have a working Code::Blocks installation on Windows.
If somebody can offer some help to compile this on Windows, it will be appreciated.

The project:
https://github.com/HenniePeters/RevEngE

cheers,
Hennie

Nominal Animal:
You know, you could do the same directly in the browser, with a bit of HTML5 and JavaScript.

Such pages do not require a network connection.  For example, my FIR filter example –– just type some coefficients, say 1 0 1 in the top text box, and press Enter, and it'll show the FIR filter frequency response for that filter –– you can save as a HTML page on your own computer, and it'll work exactly like it would when loaded from a server.  (That example is in Public Domain, so if you wanted to play with how to do such pages using HTML, JavaScript, and the Canvas element as defined in HTML5, feel free!)

The reason I personally like such "tool pages" is that they work on basically all devices as-is, including tablets, which are useful for browsing datasheets and such while using other tools to do some work.  If I recall correctly, you may need a network connection and a helpful server to implement drag-and-drop of images.  I'd use text boxes with direct URLs to the images, using file:// urls for files on the local machine, since that should always work.  The only real difficulty is making them responsive: because JavaScript isn't that fast, you may need to use timers and callbacks to do display updates, instead of directly in the event handlers.  If you use the event handlers directly, on slower machines (like tablets!) the UI may be jerky, unresponsive while "computing" the next state.  So, there is some art in this too, even though it is just HTML + CSS + JavaScript.

mrflibble:

--- Quote from: hennep on August 31, 2021, 12:54:37 pm ---The tool is developed with Code::Blocks and wxWidgets in Linux.
I don't have a working Code::Blocks installation on Windows.
If somebody can offer some help to compile this on Windows, it will be appreciated.

--- End quote ---

If you do have a working development environment on linux, you could do a cross-compile for windows. Code::Blocks is a cross-platform IDE after all, it even says so on the wiki. And since the codeblocks.org webserver keeps crapping out with a 502, here's a wayback snapshot of the cross-compile instructions:

https://web.archive.org/web/20200429154954/https://wiki.codeblocks.org/index.php/Cross_Compiling_wxWidgets_Applications_on_Linux

mrflibble:

--- Quote from: Nominal Animal on September 01, 2021, 08:34:38 am ---You know, you could do the same directly in the browser, with a bit of HTML5 and JavaScript.

--- End quote ---
That sounds suspiciously much like ... work.  :o

Better living through laziness and ImageMagick:

apt-get install imagemagick && man imagemagick composite


--- Quote ---Such pages do not require a network connection.  For example, my FIR filter example –– just type some coefficients, say 1 0 1 in the top text box, and press Enter, and it'll show the FIR filter frequency response for that filter –– you can save as a HTML page on your own computer, and it'll work exactly like it would when loaded from a server.  (That example is in Public Domain, so if you wanted to play with how to do such pages using HTML, JavaScript, and the Canvas element as defined in HTML5, feel free!)

--- End quote ---
Hey, neat!  :-+ Just had a bit fun plugging in some sequences. Response seems pretty snappy.


--- Quote ---The reason I personally like such "tool pages" is that they work on basically all devices as-is, including tablets, which are useful for browsing datasheets and such while using other tools to do some work.  If I recall correctly, you may need a network connection and a helpful server to implement drag-and-drop of images.  I'd use text boxes with direct URLs to the images, using file:// urls for files on the local machine, since that should always work.  The only real difficulty is making them responsive: because JavaScript isn't that fast, you may need to use timers and callbacks to do display updates, instead of directly in the event handlers.  If you use the event handlers directly, on slower machines (like tablets!) the UI may be jerky, unresponsive while "computing" the next state.  So, there is some art in this too, even though it is just HTML + CSS + JavaScript.

--- End quote ---
In principle I 100% agree with you here. Unfortunately whenever I try this myself, I always break out in a horrible rash. JavaScript allergy.  :'(

hennep:
Thanks for pointing to the cross compiling option in code:blocks. I missed that completely.

I made a demonstration video for the tool.

Navigation

[0] Message Index

There was an error while thanking
Thanking...
Go to full version