Weekend reading: "Free will" edition

Get your exact position with a Bash one-liner

Need to get the geographical coordinates of your current position? On a Debian and Linux Mint, install the geoclue-2-demo package using the sudo apt install geoclue-2-demo command, then run the following one-liner:

/usr/libexec/geoclue-2.0/demos/where-am-i | grep -e 'Latitude' -e 'Longitude' | tail -n 2

If you need the latitude and longitude values only, use this one-liner instead:

/usr/libexec/geoclue-2.0/demos/where-am-i | \
grep -e 'Latitude' -e 'Longitude' | tr -d ' ' | \
cut -d':' -f2 | tr -d ° | tail -n 2

Weekend reading: "Taliban's luxury hotel" edition

Weekend reading: "Empire of dust" edition

Personal ThinkPad hit parade

Although I have a box full of ThinkPads, I'm by no means a ThinkPad hoarder or, worse, collector. I just never had the heart to sell any of my trusty workhorses. Every ThinkPad I owned served me well, but there are several models that stand out. For the record, I use exclusively Linux (mostly Linux Mint and openSUSE), so I can't attest to how any of my ThinkPads perform when paired with Windows. In fact, decent Linux support was a decisive factor in switching to ThinkPads in the first place.

Stack of ThinkPads

Continue reading