Productivity Sauce

Dmitri Popov
Ansiweather: Weather in the Terminal

Apr 27, 2016 GMT

Sometimes the simplest tool can also prove to be an indispensable one. Take Ansiweather, for example: this one-trick pony displays the current weather conditions and forecast right in the terminal, and that's all it does. But if your daily computing revolves around the terminal, having the ability to view weather info from the command line can come in rather handy. Ansiweather depends on a few packages which are available in the official software repositories of most mainstream Linux distributions. To install them on Ubuntu and its derivatives, run the sudo apt-get install curl jq bc command, and you are done. Clone then the project's GitHub repository, and use the following commands...
Prune Your Photo Library with fdupes

Apr 22, 2016 GMT

If your photo library contains thousands of photos, chances are it has duplicate files lurking in its corners. But finding and removing these unwelcome guests can be tricky, unless you use the fdupes tool for the job. fdupes generates an md5sum hash on each file, and then returns files that have identical hashes (which almost certainly means that they are duplicates).To put fdupes to practical use right away, run the fdupes -rSm /path/to/dir command. The -r parameter makes the command run recursively (i.e., it includes all sub-directories in the specified directory), while the -S and -m parameters generate a summary that includes the size of the duplicate file. To interactively remove...
Instant Pronounceable Passwords with

Apr 20, 2016 GMT

The web app can come in rather handy when you need an easy-to-remember password. When you visit the site, the app automatically generates a batch of 8-character pronounceable passwords which contain both capital letters and numbers. These might not be the strongest passwords around, but they should do the trick in a pinch. The app is released under an open source license, and since it's written in HTML, JavaScript, and CSS, you can deploy it on your own server in a matter of seconds. Simply clone the project's GitHub repository into the document root of your server using the git clone command, and you are good to go. By...
Use Node-RED to Get Twitter Mention Alerts

Mar 31, 2016 GMT

I don't use Twitter a lot, which explains why I often miss mentions from other users. But checking for mentions manually is as practical as playing tennis with a broom stick. Node-RED to the rescue! I already have a Node-RED instance running on my Raspberry Pi, so all I had to do was to write a simple flow that monitors Twitter for mentions and sends email alerts to me. The flow consists of three nodes. The Twitter node searches all public tweets for @dmpop (that's my Twitter handle) mentions, while the Function node uses a simple function to construct a message that is then sent to the email address specified in the Email node. Pretty simple stuff really. If you want to deploy a...
Quick-and-Dirty Geotagging with a Bash Script

Mar 22, 2016 GMT

When you need to quickly geotag a bunch of photos with an approximate location (e.g., city and country), a simple Bash shell script can help you to do it much faster than a heavy-weight application like digiKam. The script uses the Nominatim service to perform forward geocoding (i.e., obtain the geographical coordinates of a given place name) and a combination of curl, jq and tr tools to extract the latitude and longitude values. It then uses the ExifTool to write the obtained coordinates to all JPEG files in the current directory. To install jq and ExifTool on Debian and Ubuntu-based distributions, run the apt-get install curl jq libimage-exiftool-perl command as root.To deploy the...
Open Note Scanner: Instant Note Digitizing on Android

Mar 15, 2016 GMT

There is no lack of apps of varying degrees of sophistication and quality that can transform your Android device into a handy note digitizing tool. And if you prefer to keep things simple and open source, Open Note Scanner is what you need. The utility relies on OpenCV software (you need to install it separately) to do its magic, and it does the job without any input on your part. Open Note Scanner supports two modes: Manual and Auto. In the manual mode, it's up to you to accurately frame the page your want to digitize. Keep in mind that the app works best with pages that have dark (or preferably black) borders around it. To get the best possible result, you might want to place a loose...
Instant Streaming from Linux to Chromecast with stream2chromecast

Mar 10, 2016 GMT

What's the easiest way to stream media files from a Linux machine to Chromecast? The correct answer is stream2chromecast. This simple tool makes the task of streaming media files from a Linux machine to a Chromecast device ridiculously easy. Clone the project's GitHub repository using the git clone command. On Ubuntu-based distributions, run the sudo apt-get install libav-tools command to install the avconv package required for transcoding media files not supported by Chromecast. And that's all there is to it.To stream a media file, switch to the stream2chromecast directory and run the /path/to/foo.mp4 command. To...

Issue 188/2016

Buy this issue as a PDF

Digital Issue: Price $9.99
(incl. VAT)