newspaint

Documenting Problems That Were Difficult To Find The Answer To

Monthly Archives: November 2014

If Tkdiff Doesn’t Appear To Accept Keyboard Shortcuts

I have, for the best part of a decade, loved tkdiff. It is a simple graphical diff tool written in Tcl/Tk that works on both Windows and Linux.

However v4.2 doesn’t appear to accept keyboard commands (such a “n” for next diff, “p” for previous diff, and “q” for quit). Actually, it does, but you have to select the diff text frame in order for the application to process the keys. You can do this either by clicking on the diff text, or pressing shift-<tab> twice.

A more permanent fix is adding the bold line to the main proc:

proc main {} {
    ...
    wm deiconify .
    focus -force $w(LeftText)
    update idletasks
    ...
}

… which will force the left hand text panel to take focus on start-up – thereby accepting keys from the keyboard, such as “q” for quit.

How To Save Photos On SDCard In CyanogenMod/Android

My CyanogenMod (11)/Android (4.4) phone was saving photos to internal memory by default but I wanted to save photos to my sdcard.

I found how to change the camera storage option in this forum thread. Here I document the process using screenshots.

First start up the Camera app.

Next tap/select the “options” icon (it is an unfilled circle that may contain icons on top).

Then tap/select the “settings” icon (it is three horizontal lines with sliders on top).

Choose the options icon and then the settings icon

Choose the options icon and then the settings icon

From the SETTINGS menu that you are now seeing tap/select the “more settings” icon (it is identical to the same three horizontal lines with sliders on top that you tapped previously).

Select the more settings icon

Select the more settings icon

How you see the MORE SETTINGS menu. From here you can select “Storage” to choose the destination for photos.

Select Storage from the More Options menu

Select Storage from the More Options menu

Lastly select “SD card” as the desired destination (or “Internal” if you wish to switch back).

Select destination for the saved photos

Select destination for the saved photos

All done!

Microsoft Don’t Do Information

In my experience over the years Microsoft products, from Operating Systems to Servers, routinely neglect to inform the user why something has gone wrong. In fact sometimes Microsoft, when they rarely attempt to be helpful, appear to go out of their way to give a wrong error message – which completely will confuse you!

I bought a new laptop which had Windows 8 pre-installed. I also have a friend with Windows 8.1. Both this laptops have had the same problem: the WiFi connection will show up as “limited” (and not work) with ordinary routers that every other WiFi device has no problems connecting to (such as phones, and other laptops running other Operating Systems such as Ubuntu, Windows 7).

The WiFi “limited” issue is the reason why I formatted my laptop and replaced the OS with Xubuntu. I’ve not had any WiFi issues since. It is also the reason why I’ll never purchase another Microsoft Operating System for home use in my lifetime.

It’s not just that Microsoft have seemingly broken ordinary WiFi connectivity. That’s a grave enough error in a modern Operating System. But the more severe error is that Windows 8/8.1 will just show the connection as “limited” without any description as to why. A reason might just help a poor customer diagnose the fault. Is it an inability to get a wireless signal? Is it because it cannot get an IP address assigned? Is it because Microsoft are trying to ping a server of theirs and it is failing? What is it!?!

And it’s not just WiFi connectivity that Microsoft stick two fingers up at the consumer with little-to-no information. I used to work with IIS (Internet Information Services, Microsoft’s version of a working web server like Apache). This incredibly crass piece of software would return the wrong error code – e.g. when a CGI application failed to execute property the server would return a 404 error (page not found) rather than a 500 error (server problem). If there’s one thing worse than returning no or little information – it is returning blatantly false information.

Conclusion? Microsoft hate people. Microsoft couldn’t give a passing thought about people. Information is not something Microsoft do. Instead they sell, market, and sell glossy interfaces. But helping you get a job done – like connecting to an ordinary WiFi router, or diagnosing why a web service isn’t working – well Microsoft will do their darnedest to make your life miserable.

WHEN YOU HAVE A CHOICE, DO NOT BUY MICROSOFT. IT IS ALMOST ALWAYS THE WRONG CHOICE.