Book Review: Advance! The Full Licence Book by Alan Betts, Steve Hartley

51Go0CzjPlL._SX346_BO1,204,203,200_This book felt of much lower quality than the previous two. There are many typos and editing errors and I noticed a few technical errors as well. I guess it makes sense the advanced saw less scrutiny than the beginner one as fewer people will ever get to this point. Or maybe it’s my bias because this is the first time I really need to learn from the book (the previous two were, mostly, revision of stuff I already knew).

What really annoyed me is that there were many explanations that felt it was missing definitions of terms of explanations of the most basic parts so, aside from memorizing the concepts, it was hard to learn from it.

I’m obviously still grateful that there’s a book that covers the syllabus of the test for the Full License. At the same time, I wish we, in the UK, had more and better material like in the US, where you have the Extra Class License Manual, a thick 496-pages long nice book, and the excellent Gordon West’s Extra Class 2012-2016, as well as one or two video courses on YouTube covering all the material.

Giving the the physics is the same for the US and the UK, and that the ham radio hobby is having trouble with not having enough people and resources, it would be nice to share more things across countries. I understand the regulations are different and complex, but still, the actual radio stuff could be exactly the same in the US, UK and many other countries.


Buy Advance! The Full Licence Book


The Omnivore’s Dilemma: A Natural History of Four Meals by Michael Pollan

omnivores_dilemma_by_michael_pollan1So far the tone of this book is disgustingly hippish. I think it presents some interesting data, but the way it presents it is so annoying:

– everything modern is bad
– everything mainstream is bad
– the only good alternative is primitive farms
– food and nature is a mystery that we cannot grasp so all efforts to synthesize fertilizers, pesticides, etc are doom to fail
– the natural cycle of chickens, cows, pigs, etc is perfect and shouldn’t be tampered with (mind you, these animals are almost as artificial as computers these days).

The part that annoys me the most is how it attributes negative connotations to the term agrobusiness. The definition of that word is “the businesses collectively associated with the production, processing, and distribution of agricultural products”, so, his idyllic small farms are as much agrobusinesses as the Monsatos he criticizes.

Another example I found ridiculous is when a farmer would refuse to ship him some food because burning fossil fuels to deliver his product was against his principles and instead told him: “If you want to try it, you’ll have to drive here”. Guess what! Driving to a location burns more fossil fuels than shipping a small package through highly efficient delivery companies (unless you drive an electric car and even then, I’m not sure).

I understand if the recommendations of the author were for an individual but he often talks about society as a whole without exploring the economic implications of using much more manual labor to produce food: can we actually feed the world with traditional farms? I don’t know and I have an inkling that the answer is probably very complex and not explored a lot in this book that advocates everybody to eat from those traditional farms.


Buy The Omnivore’s Dilemma: A Natural History of Four Meals in USA
Buy The Omnivore’s Dilemma: A Natural History of Four Meals in UK
Buy The Omnivore’s Dilemma: A Natural History of Four Meals in Canada

Book Review: Intermediate Licence – Building On The Foundation by Steve Hartley

s-l640I’m not a good person to judge this book because I not only have a technical background in electronics, I also got my American Extra-level license (AC1DM) before this one, so, I had to study all this material a few months ago. This feel like a revision.

Something that really surprises me about the book is that it says the ionosphere reflects radio waves. I understand we use that word in casual speech but I believe a book on ham radio should be more strict and use the correct term: refraction.

For whatever it matters, I passed the exam with a 43 out of 45 questions answered correctly.


Buy Intermediate Licence – Building On The Foundation

Book Review: American Prometheus: The Triumph and Tragedy of J. Robert Oppenheimer by Kai Bird, Martin J. Sherwin

80571For this review I’m considering, without any fact checking or cross referencing, that this biography is factual and true to the events although clearly some of the statements in the book would be hard to evaluate as they describe the feelings of large groups of people.

I knew a bit about The Manhattan Project and it was fun to have another take on those years of science, innovation and destruction. What I didn’t know is what happened before and after in the life of Oppenheimer.

During the earlier years, I was surprised by how active Oppenheimer and other people were in the projects of the communist party. It sounds as during those days, for many Americans, it wasn’t the enemy’s ideology but a potential solution to their ongoing socioeconomic problems. Some glorified the Soviet Union before they knew and understood how tyrannical it was. I can’t begin to fathom at the absurdity of the witch hunt that was McCarthyism and what a negative force it excreted on the American scientific society. I can’t help but notice the parallel with the trial against Alan Turing.

What surprised me the most about what I read in this book was Oppenheimer’s transformation. You could never guess that the boy and young man described in the early chapters could ever become a leader of scientists, a pragmatic that could put a practical goal above the intrinsic curiosity that pushes people into science and achieve so much. I guess the fear of a Nazi world was a great motivator.


Buy American Prometheus: The Triumph and Tragedy of J. Robert Oppenheimer in USA
Buy American Prometheus: The Triumph and Tragedy of J. Robert Oppenheimer in the UK
Buy American Prometheus: The Triumph and Tragedy of J. Robert Oppenheimer in Canada

Book Review: Life in the United Kingdom: A Guide for New Residents by Great Britain Home Office

81DKEZAB9NLThe only real way to judge this book is whether it helps you pass the Life in the United Kingdom test or not and I don’t yet know that. I’ve read the book (it actually took me one full day to go through all of it) and I’m probably going to re-read at least once, but for my actual study I’m using the mock tests at:… I’ve found many sources of mock tests, but that one seems to have the hardest questions and I personally know someone that passed the test studying from there.

Judging the book by itself, I found it terrible. There’s two reasons for that:
– It’s written for the lowest level of English that would allow you to become a citizen, so, the prose is terse and simple.
– It’s designed to cover just the information you need to pass the test and nothing more, so, it’s almost a regurgitation of facts.

About the last point, for some bits of history that I know a bit about and that are super interesting (WWI, WWII, Scotland’s joining the UK, and a few more) I found the book super boring and skipping all the interesting bits just because it’s not in the exam. It makes sense for this book but it makes for a boring book. I have to admit that it made me curious about some things that I want to read more about and also some places I want to visit now.


Buy Life in the United Kingdom: A Guide for New Residents in USA
Buy Life in the United Kingdom: A Guide for New Residents in the UK
Buy Life in the United Kingdom: A Guide for New Residents in Canada

Restoring window sizes in JavaFX

Update 2018-05-23: Updated the code to my current version, which fixes a few bugs.
When doing usability testing of an alpha version of Dashman, one thing that I was strongly asked was to have the windows remember their sizes when you re-open the application. The need was clear as it was annoying to have the window be a different size when re-started.

The new version of Dashman is built using Java and JavaFX and thus I searched for how to do this, how to restore size. I found many posts, forums, questions, etc all with the same simplistic solution: restoring width and height, and maybe position.

What those were missing was restoring whether the window was maximized (maximized is not the same as occupying all the available space, at least in Windows). But most important than that, none of the solutions took into consideration the fact that the resolutions and quantity of screens could be different than the last time the application run, thus, you could end up with a window completely out of bounds, invisible, immobile.

I came up with this solution, a class that’s designed to be serializable to your config to store the values but also restore them and make sure the window is visible and if not, move it to a visible place:

// Copyright (c) 2017-2018 Flexpoint Tech Ltd. All rights reserved.

package tech.dashman.dashman;

import com.fasterxml.jackson.annotation.JsonIgnore;
import javafx.application.Platform;
import javafx.geometry.Rectangle2D;
import javafx.stage.Screen;
import javafx.stage.Stage;
import lombok.Data;
import tech.dashman.common.Jsonable;

public class StageSizer implements Jsonable {
    private static double MINIMUM_VISIBLE_WIDTH = 100;
    private static double MINIMUM_VISIBLE_HEIGHT = 50;
    private static double MARGIN = 50;
    private static double DEFAULT_WIDTH = 800;
    private static double DEFAULT_HEIGHT = 600;

    private Boolean maximized = false;
    private Boolean hidden = false;
    private Double x = MARGIN;
    private Double y = MARGIN;
    private Double width = DEFAULT_WIDTH;
    private Double height = DEFAULT_HEIGHT;

    private Boolean hideable = true;

    public void setStage(Stage stage) {
        // First, restore the size and position of the stage.
        resizeAndPosition(stage, () -> {
            // If the stage is not visible in any of the current screens, relocate it the primary screen.
            if (isWindowIsOutOfBounds(stage)) {
            // And now watch the stage to keep the properties updated.

    private void resizeAndPosition(Stage stage, Runnable callback) {
        Platform.runLater(() -> {
            if (getHidden() != null && getHidden() && getHideable()) {
            if (getX() != null) {
            if (getY() != null) {
            if (getWidth() != null) {
            } else {
            if (getHeight() != null) {
            } else {
            if (getMaximized() != null) {
            if (getHidden() == null || !getHidden() || !getHideable()) {

            new Thread(callback).start();

    public void setHidden(boolean value) {
        this.hidden = value;

    private boolean isWindowIsOutOfBounds(Stage stage) {
        for (Screen screen : Screen.getScreens()) {
            Rectangle2D bounds = screen.getVisualBounds();
            if (stage.getX() + stage.getWidth() - MINIMUM_VISIBLE_WIDTH >= bounds.getMinX() &&
                    stage.getX() + MINIMUM_VISIBLE_WIDTH <= bounds.getMaxX() &&
                    bounds.getMinY() <= stage.getY() && // We want the title bar to always be visible.
                    stage.getY() + MINIMUM_VISIBLE_HEIGHT <= bounds.getMaxY()) {
                return false;
        return true;

    private void moveToPrimaryScreen(Stage stage) {
        Rectangle2D bounds = Screen.getPrimary().getVisualBounds();
        stage.setX(bounds.getMinX() + MARGIN);
        stage.setY(bounds.getMinY() + MARGIN);

    private void watchStage(Stage stage) {
        // Get the current values.
        // Watch for future changes.
        stage.xProperty().addListener((observable, old, x) -> setX((Double) x));
        stage.yProperty().addListener((observable, old, y) -> setY((Double) y));
        stage.widthProperty().addListener((observable, old, width) -> setWidth((Double) width));
        stage.heightProperty().addListener((observable, old, height) -> setHeight((Double) height));
        stage.maximizedProperty().addListener((observable, old, maximized) -> setMaximized(maximized));
        stage.showingProperty().addListener(observable -> setHidden(!stage.isShowing())); // Using an invalidation instead of a change listener due to this weird behaviour:

and the way you use it is quite simple. On your start method, you create or restore an instance of StageSizer and then do this:

public void start(Stage stage) {
    StageSizer stageSizer = createOrRestoreStageSizerFromConfig();

I haven’t put a lot of testing on this code yet but it seems to work. Well, at least on Windows. The problem is that this snippet is interacting with the reality of screen sizes, resolutions, adding and removing monitors, etc. If you find a bug, please, let me know and I might release this a library with the fix so we can keep on collectively improving this.

What Star Trek: Discovery should have been

Star Trek DiscoveryMy opinion of Star Trek: Discovery is positive, but there’s still something that annoys me and since it’s a bit of a spoiler, you should stop reading here until you watched season 1.

Star Trek: Discovery shouldn’t have been a prequel. STD (oops, unfortunate acronym) should have been a sequel to all the other Star Treks we had. I don’t understand why they made it a prequel. It’s not trying to explain an origin story; if anything, it’s destroying Star Trek cannon.

If it was a sequel, in the 25th century:

  • the uniforms wouldn’t be an issue
  • the introduction of new races wouldn’t be an issue
  • the introduction of a human that went through Vulcan academy wouldn’t be an issue (she could be Spock’s protege, instead of Spock’s father’s protege)
  • the Klingons looking different wouldn’t be an issue
  • flat screens and holograms wouldn’t be an issue
  • the use of a sort of holodeck wouldn’t be an issue
  • discovering a way to teleport through the galaxy without needing warp drives wouldn’t be an issue
  • we could have Star Trek: The Next Generation, Voyager and Deep Space 9 cameos.

The BorgWhy make it a prequel then? There’s no advantage to having it be a prequel. You could still have a war with the Klingons if they wanted to bank on their fame (although a war with the Borg is much more frightening in my opinion, specially since peace with the Borg is impossible).

They couldn’t have the flip phones, I mean, the communicators, which apparently are iconic enough to put on one of the posters, but aren’t the badge communicators also iconic? And if not, it feels like a small lose.

I don’t understand this obsession with needles prequels, are people afraid of the future? of moving forward and seeing what happens next?

Book Review: Things to Make and Do in the Fourth Dimension by Matt Parker

81xpnk+4DXLI was expecting a funny read of math curiosities and indeed there was plenty of humor and curiosities in this book in the style of Matt Parker (Google him and watch his videos, he’s great); but this book had much more than that.

Some parts of the book were not easy at all. I’m glad things were not dumbed down too much for us plebes. Some parts I couldn’t understand a lot and I just skipped them. Mind you, this was bed-time reading for me, so, I didn’t put a huge effort into it.

Something that surprised me when reading this book is how much we don’t know. From studying math in school and college it feels like we have most of it figured out, but I like how often Matt points to corners of the math world that don’t look, but probably are, too complex and they are not know or resolved at all. Similarly, how much of the math that we know is rather young, as in 20th century or second half of the 20th century.

I’m happy to recommend this book to everybody that enjoy maths but for people that don’t, they should read this book, as it might change your mind.


Buy Things to Make and Do in the Fourth Dimension in USA
Buy Things to Make and Do in the Fourth Dimension in UK
Buy Things to Make and Do in the Fourth Dimension in Canada

Read this before watching Star Trek: Discovery

I just finished watching Star Trek: Discover and although I’m not blown away, I did enjoy it and I’m looking forward to how the story continues.

There were three points that felt wrong about the series but if you approach them with the right mind-frame you can minimize their impact on your enjoyment because they are more subjective that they look.

Star Trek Discovery

  1. The Star Trek universe: this TV show just doesn’t fit. The uniforms don’t fit, the look of the Klingons don’t fit, the level of technology doesn’t fit, the design of the Starfleet ships doesn’t fit. Just think of it as a reboot and stop trying to make it fit, it’ll hurt. This is what happens when you do a prequel and you are original.
  2. The bullshit: there’s plenty of space bullshit in Star Trek: Discovery and you might feel insulted by it, but if you try to be objective you’ll see that all of Star Trek had a lot of bullshit in it. This one smells slightly different but it’s neither better nor worse.
  3. It’s an exception in Starfleet: the events depicted in the TV show are exceptional in the Starfleet organization and thus it’s not the attempt and success at clean solutions that we come to love and respect with Captain Picard; but if you think about it, it’s not that different from some of the Deep Space 9 episodes.

If you can get past those three points, the TV show can be very enjoyable. It’s not full of politics and morality like Star Trek: The Next Generation; but this is only the first season (go and re-watch TNG season 1 again, it might not be what you remember) and there’s plenty of talk about what’s right and wrong and when the ends justify the means and whether the needs of the many outweigh the needs of the few or the one.

It’s a breath of fresh air to see clean-tech sci-fi produced with state of the art graphics. It looks astounding, even better than J.J. Abrams’ movies (mostly because, I believe, it tries to be even less canon than those). The design of the Klingons, their culture, their spaceships, their armor and space suits, their language and the fact that they speak it constantly is amazing and gives a deep experience of the difference in cultures. I just hope those sets and costumes are not too expensive, I want this TV show to go on.

Book Review: The Psychopath Test: A Journey Through the Madness Industry by Jon Ronson

psychopathtest_custom-9fb3036a713639d308b67686c1b07ba6358eae8b-s6-c30I went into this book with the wrong expectation. When it says “A Journey” in the title, it really means it. The book is a journal. It almost feels like the making-of of The Psychopath Test, instead of the book itself. The whole book is written in first person, with no other order than time passing. It’s like a story.

There are some good nuggets of content every now and then but for my taste, they are too far apart. For most of the book the treatment of psychopathy is very prejudicial, but it’s impossible to pin-point examples because everything is either something that happened (so and so said), something the author felt or thought (you can feel something, like, tall people are evil, without claiming it to be true), or an open question (should all psychopaths be locked up?)

I wish for a more descriptive book that was neutral as to morality. If you are after that, look elsewhere, this is not it.


Buy The Psychopath Test: A Journey Through the Madness Industry in USA
Buy The Psychopath Test: A Journey Through the Madness Industry in UK
Buy The Psychopath Test: A Journey Through the Madness Industry in Canada