Skip to main content

Reverse Engineering

Twice now in a few days, the docco has been useless, but vivisecting running programs has worked.

In the first case, I was using an app to turn a bunch of slideshow-style images into a DVD, with a talk track running under it. The initial application was childrens’ stories.

The app was quite clumsy, forex it would only allow one to adjust the length of time each slide remains in whole seconds, & each slide (duration, transition, transition-speed) had to be adjusted manually (GUI interface). Each slideshow had to be redone from scratch (that is, change a detail on one image, need to reload all images & reconfig each time, sigh).

So I ran a bunch of ps commands (ps wwwwaux >filename1.log) & captured copies of some of the (temporary) config files it made to run the app, now I can select slide times to the nearest millisecond (real-time accuracy is probably about 40ms) & rebuild the slideshow from a simple bash script.

I made the slides by scaling photos to NTSC sized PNGs, then used ImageMagick to inscribe the text thereon. I’m itching to do fancier stuff like underscored or italic words, but that may require getting changes to ImageMagick accepted. (-:

The next step (it uses ImageMagick to do the transitions) will be to have more options for transitions (e.g. fade-to rather than fade-in or fade-out).

In the second case, configuring a WPA2 WiFi connection (under Kubuntu) was not producing any good results. So apt-get wpa_gui, run that, it works (posting this from the desktop in question across WiFi), copy resulting change for future reference.

The code is the documentation, in a way. (-:

Comments

Popular posts from this blog

every-application-is-part-of-a-toolkit at work

I have a LibreOffice Impress slideshow that I wish to turn into a narrated video. 1. export the slideshow as PNG images (if that is partially broken — as at now — at higher resolutions, Export Directly as PDF then use ‘pdftoppm’ (from the poppler-utils package) to do the same). 2. write a small C program (63 lines including comments) to display those images one at a time, writing a config file entry for Imagination (default transition: ‘cross fade’) based on when the image-viewer application (‘display,’ from the GraphicsMagick suite) is closed on each one; run that, read each image aloud, then close each image in turn. 3. run ‘Imagination’ over the config file to produce a silent MP4 video with the correct timings. 4. run ‘Audacity’ to record speech while using ‘SMPlayer’ to display the silent video, then export that recording as a WAV file. 4a. optionally, use ‘TiMIDIty’ to convert a non-copyright-encumbered MIDI tune to WAV, then import that and blend it with the speech (as a quiet b

new life for an old (FTX) PSU, improved life for one human

the LEDs on this 5m strip happen to emit light centred on a red that does unexpectedly helpful things to (and surprisingly deeply within) a human routinely exposed to it. it has been soldered to a Molex connector, plugged into a TFX power supply from a (retired: the MoBo is cactus) Small Form Factor PC, the assorted PSU connectors (and loose end from the strip) have been taped over. the LED strip cost $10.24 including postage, the rest cost $0, the PSU is running at 12½% of capacity, consumes less power than a laptop plug-pack despite running a fan. trial runs begin today.

boundaries

pushing the actual boundaries of the physical (not extremes, the boundaries themselves) can often remove barriers not otherwise perceived. one can then often resolve an issue itself, rather than merely stonewalling at the physical consequences of the issue.