Apple Watch – the new old watch

Apple have finally announced the Apple Watch. Based on the publicity photographs and rushed reviews that have been published so far, I’m a fan and will probably buy one. But it struck me that the grand new innovation, the Digital Crown, is hardly ground-breaking – my current Tissot watch has had it for ten years!
Tissot classicApple Watch

You see, the functions on my classic Tissot watch are entirely driven by the bezel. As well as the analogue time, it has a stopwatch, timer and digital date/time display.
The bezel acts in several modes:

  • Rotate slowly to change hours
  • Rotate quickly to change minutes
  • Press to start/stop timer or stopwatch
  • Pull out to change the time

What’s really clever is that, when the digital functions are hidden, the watch looks completely analogue. And the bezel reacts according to mode – it only bleeps when you press in stopwatch/timer mode, and ignores the press otherwise.

So whilst the Apple Watch is my next watch, my classic Tissot watch was there first.

1 Comment

Filed under Musing, Technology

Book Review: Rogue Male, Geoffrey Household

20140901-132534.jpgI picked up this book on holiday, a victim of the “suggested reading” table at Waterstones. Written in 1939, this novel follows the plight of an English gentleman who attempts to assassinate a leading political figure abroad (likely Hitler) and is caught. It’s a compelling read and I enjoyed the occasional humour about the gentleman and his class, alongside the grim reality of his plight whilst on the run. Apparently, a sequel has been written as if narrated by the gentleman’s friend Saul, to be published later this year – that makes me think this book was “suggested” for commercial reasons rather than its status as a classic book.

20140901-133306.jpg

1 Comment

Filed under Book Review

Book Review: Flash Boys, Michael Lewis

20140901-131432.jpgMichael Lewis’s books seem to get better and better. Whilst Liar’s Poker is often cited as a classic, I think The Big Short and now Flash Boys are more interesting. Flash Boys is particularly impressive given that the topic of high-frequency trading is under so much scrutiny, yet Lewis brings to light some of the practices going on in the industry that are not widely known. On top of that, he has a gift for making heroes out of otherwise unremarkable characters.

20140901-132336.jpg

1 Comment

Filed under Book Review

Book Review: The Drop, Michael Connelly

20140827-142005.jpgIn The Drop, Harry Bosch is working for the cold cases department and suddenly finds he is called on to investigate two cases at once. The first is an apparent suicide of the son of a leading politician – with all the accompanying fallout dealing with a long-term enemy of the police force could bring. The other is a puzzling murder in which the suspect matching DNA from the scene would have been a child at the time of the crime. In this book, Harry meets Hannah Stone, the therapist of one of the suspects. It also features his daughter, Maddie.

20140827-142934.jpg

Leave a comment

Filed under Book Review

LINQ for C++ by Steve Love

The October 2013 issue of Overload includes an article by Steve Love on building a range library that enables LINQ like syntax in C++.

20140827-141310.jpg

This looks pretty good and is along similar lines to the approach in cpplinq.

Leave a comment

Filed under C++, Programming

Interview with Bjarne Stroustrup

Short interview with Bjarne Stroustrup where he comments briefly on Go and Swift.

Apparently, Stroustrup is currently working for Morgan Stanley – hence his interest in C++ for financial applications.

Leave a comment

Filed under C++, Programming

How to investigate rebuilds in Visual Studio

You never know when this tip from Kiri Osenkov might come in handy – how to investigate why Visual Studio keeps rebuilding before running, even when you think nothing has changed.

Leave a comment

Filed under Programming

Pure silicon for quantum computing

The BBC reports that American physicists have found a way to purify silicon better than ever before.

The good stuff is silicon-28, and physicists in the US have worked out how to produce it with 40 times greater purity than ever before.

Even better, they can do it in the lab instead of relying on samples made ten years ago in a huge, repurposed plutonium plant in St Petersburg.

Leave a comment

Filed under Technology

How to generate tests under GTest

One of the many features provided by GTest is the ability to generate test at runtime. One useful application of this is that you can execute data-driven testing by obtaining a list of test file names, then generating a test for each of them. It’s actually very simple to do this in GTest – they call these value-parameterized tests (see documentation). Here’s a snippet of code to demonstrate how little overhead is involved:

#include <gtest/gtest.h>

using namespace testing;

// placeholder - could be used for test setup/cleanup
class MyTest : public ::testing::TestWithParam<std::string>
{
};

TEST_P( MyTest, IntegrationTest )
{
    std::string test_file_name = GetParam();

    // open file and run the integration test
}

std::vector<std::string> test_file_names();

INSTANTIATE_TEST_CASE_P( MyLibraryName, MyTest, test::ValuesIn( test_file_names() ) );

On one hand, this approach isn’t really in the spirit of unit test – data-driven tests have a habit of quickly escalating to integration tests between libraries. However, such integration tests also have their place in a testing strategy, and this is a neat way to accomplish it with minimal overhead.

1 Comment

Filed under C++, C++ Code, Programming

Restaurant Review: Monty’s Inn, Beaulieu, Hampshire

Monty's Inn, Beaulieu

Monty’s Inn, Beaulieu


Really enjoyed lunch at Monty’s, part of The Montague Arms Hotel, at Beaulieu in the New Forest. This was my first visit, but will definitely be going back. The sea bass served with saffron potatoes and breaded mussels with caramelised shallot puree was beautifully presented. The chocolate mousse with raspberry sorbet and shortbread was delicious. We walked to Monty’s from Buckler’s Hard, a historical maritime visit – also worth a look.
Five Stars

Leave a comment

Filed under Restaurant Review