Feb 092019
 

One of the things that irritates me about fancy new service management systems like systemd is that unless you get everything exactly right, you can end up with things interfering with specific configuration files – specifically /etc/resolv.conf.

Now as a DNS administrator, I have a certain fondness for manually controlling /etc/resolv.conf and it does actually come in useful for making temporary changes to test specific DNS servers and the like. The trouble comes when something else wants to control that file.

The ideal fix for this conflict is to have things like systemd control a separate file such as /etc/system/resolv.conf.systemd, and for /etc/resolv.conf be installed as a symbolic link pointing at the real file.

But back in the real world, if you do disable systemd-resolver which can be done with: systemctl disable systemd-resolved.service; systemctl stop systemd-resolved.service

Then you may also want to make the file immutable: chattr +i /etc/resolv.conf. On at least one server, systemd merrily re-created /etc/resolv.conf as a symbolic link to an empty file despite systemd-resolved being disabled.

Corner Of The Pyramid
Feb 032019
 

Apple’s stockprice has taken a bit of a tumble just recently, prompted by a statement from them indicating that they’ve made a bit of a mess of the iPhone releases and they’re not selling as many as they expected.

Foolish scaremongers are predicting the demise of Apple. Over a few bad quarters? That’s just ridiculous.

If anything (and you fancy a gamble), now is probably a good time to buy shares in Apple, because they are not going away any time soon. And they will probably come up with an answer to what they are doing wrong.

So what are they doing wrong?

Too Few Products

It may seem a bit strange to say considering just how many different iPhones you can buy, but what I am really talking about here are product types rather than individual variations. After all whether you are buying an iPhone X, XS, XS Max, or XR, you’re still buying an iPhone.

Just take a look at the Apple web site navigation bar :-

Each of those (with the possible exception of a particular keen Mac user of the “Mac” group, and of course “Music”) is a product that a person is only likely to have one of.

And keeping the number of products you sell small makes you more vulnerable to the occasional “miss”. Which with the best planning in the world will happen from time to time.

Just imagine what is missing :-

  1. The Apple HiFi
  2. The Apple alarm clock.
  3. The Apple home/small office network server.
  4. The Apple power-line ethernet adaptor.
  5. The Apple WiFi access point.
  6. The Apple air pollution monitor/smoke detector.

And that’s just a few items thought up by an individual on a lazy Sunday afternoon.

Don’t Ignore The Fringe Fanatics

For many years, Apple survived by making products well suited to the audio/visual creator community. And yet looking through the Mac line-up, there is nothing there suited to the real power user.

And yet Apple has fans who still want to run macOS – either compromising on their needs by getting an iMac Pro (usually with huge piles of non-Apple external disks) or by getting an ordinary PC and running macOS on it.

Give them what they want, and no a promise to release a proper Mac Pro “someday” isn’t sufficient.

There may not be a great deal of profit in it, but a small profit is better than none. And catering to power users may well have a greater effect than you suppose – they are or can be influencers. Imagine every photographer, videographer, and sound engineer saying “Forget about Windows; get yourself a Mac”.

Because that’s what they used to say.

Too Expensive

If you ask anyone if they would like more features, the answer is almost always yes, but they can become more reluctant if you ask them to pay a little more money for those features.

And if you ask them to pay more for features they are not interested in, they’ll rapidly lose interest if money is tight and their old phone is ‘good enough’.

And that is what has happened, the latest iPhone has more and better features than any previous iPhone but the price has crept up. For many (including the affluent “middle-class”) it has become a significant purchase rather than something that can be paid off with 2-4 months of minor inconvenience.

Follow The Path
Jan 252019
 

If you are using the right kind of terminal that supports graphics inline (such as KiTTY), then you can write simple (or complex) tools that insert images into the terminal.

Being able to display the flag of a country (if you know its two-letter ISO code) is kind of trivial but useful if you need it.

And a shell function to do that is remarkably simple :-

function flag {
    wget -o /dev/null -O /var/tmp/flag.$$ http://flagpedia.net/data/flags/normal/${1}.png
    if [ $? -eq 0 ]
    then
        kitty +kitten icat /var/tmp/flag.$$ && rm /var/tmp/flag.$$
    else
        echo Not found
    fi
}

(that’s a Zsh function which may require adaption to Bash).

Jan 152019
 

Now that the click-bait is out of the way, vi movement keys are perfectly reasonable particularly to those who have been using them for decades (which includes me). But for ages, vi itself has supported the arrow keys for movement as well as the tradition cursor movement keys.

For the benefit of those who have not used vi and are wondering what those traditional cursor movement keys are, they are H (left), J (down), K (up), L (right). A bit like the gamer’s set of movement keys – W, A, S, and D, except that the vi movement keys pre-date arrow keys.

There are those who will claim that the traditional movement keys are more efficient as they require less hand movement. And they are. So it is perfectly understandable that many tiling window managers and other keyboard-centric software uses these movement keys.

But someone who hasn’t spend decades hard-wiring the vi movement keys into their brain, will find vi-style key bindings inscrutable. And the fix? Just use the arrow keys as well.

There is no harm in having two key sequences do the same thing; no harm in emphasising that the arrow keys work too. And indeed no harm encouraging the use of vi-style movement keys by emphasising their efficiency.

Don’t forget that someone learning a new tiling window manager (or most other things) can be put off by the silliest of things – such as inscrutable control keys.

Rusty Handrail
Jan 052019
 

Well mine does (which I would recommend, but I’ve no idea what it is), but I don’t know about yours.

Send me it with some cash in it, and I’ll take a gander.

But …

Just how practical is RFID or NFC scanning anyway? The scaremongers would claim that there are people out there, slapping payment terminals to your bum and siphoning off your bank account.

I know from my own attempts at scanning (and you will know similarly from “tap & pay”) that the distance at which you can read RFID or NFC is normally fairly minimal. Sure you can get antennas which can read at distances of up to 700m, but they tend to resemble those old TV antennas.

Which is kind of obvious for someone trying to be at least relatively stealthy.

And if they do grab details they get to make a single limited payment (even a bank isn’t dumb enough to miss multiple payments) and you’ve probably got a good claim against the bank any way.

So it is pretty unlikely, the damage is limited (and may even be none).

So is an RFID/NFS blocking wallet really necessary? Well if you are in need of a new wallet any way, getting one with that feature makes sense. But it probably isn’t worth throwing away a perfectly fine wallet to get one.

But stick your wallet in your front pocket.

Unoccupied