-
Barebones Guide to JUnit on the Command Line
Introduction JUnit is a testing framework for Java. It is primarily aimed for IDEs, but with some perseverance it can be used on the command line.
ConsoleLauncher You will need ConsoleLauncher, a java executable, to run JUnit from the command line. At time of writing the latest version is junit-platform-console-standalone-1.6.0.jar and can be downloaded from the Maven Repository. Download this file to your working directory.
Create a sample java file Using your text editor of choice create a file called SampleUnit.java and copy and paste the following code in it:
-
Where Do I Put AppImages?
TL;DR I put my AppImages in /opt.
The Official Recommendation The AppImage FAQ recommends the following for storing AppImages:
If you don’t want to leave them in $HOME/Downloads, then $HOME/Applications is a good choice.
Why not leave them in $HOME/Downloads? What’s wrong with this? Can’t I just leave them in $HOME/Downloads? No. If you are anything like me Downloads is full of random accumulated dross, kind of like digital lint. Anything worth preserving gets filed, anything left is assumed to be delete-worthy. Which admittedly gets done very infrequently, but enough that it is not a permanent storage place.
-
Configuring Deja Dup Ubuntu backup on a WD My Cloud NAS
Considering that the sole purpose of Deja Dup is to backup and one of the main selling points of a WD My Cloud NAS drive1 is as a place to store your backup; it is surprisingly difficult to do it in a seamless way on Ubuntu. By seamless I mean it happens in the background without you having to think about it.
This post was originally written in December 2019 for Western Digital’s My Cloud OS 3 operating system and Ubuntu 18.04 LTS. As I write this in February 2021 the current WD operating system is My Cloud OS 5, and of course Ubuntu has also moved on. There might therefore be easier ways to do this - I haven’t checked as this method still works for me. Differences for both OSs are shown below.
-
Configuring Oni as a C / C++ IDE on Ubuntu 18.04
Update Dec 19: Whereas previously Oni was freely downloadable, there since appears to have been a change in project direction. The IDE is now called Onivim 2 and there is a pre-order fee. No idea if you can still install the version I used below, but the post might be useful in other contexts.
K&R’s Second Edition of the C Programming Language (*affiliate link) is not an easy read. To tame it I thought I might use Oni to do some of the heavy lifting, which is an IDE with Neovim as a back end. It looked pretty and was meant to work out of the box. I however spent an age getting it to do linting in C, so below are my struggles: