Quick Action Shortcuts in MATLAB 2018b

Posted Leave a commentPosted in Code Tips, MATLAB

Background

For years I have used the Shortcuts in the Quick Action Toolbar to speed up my MATLAB workflow. To create one, I used to just click the button highlighted below.

Quick Action Toolbar in 2017b

Last week, I upgraded to 2018b and the ability to create Shortcuts in the Quick Action Toolbar appears to have been removed completely.

Quick Action Toolbar in 2018b

This was the conclusion I came to after clicking around for 10 minutes looking for where the functionality has been moved too.

Solution

Eventually, I found it.

In MATLAB 2018b, there is a whole new feature called Favorites (no UK localisation! ūüôĀ ), this can be found in the Home tab under code, as seen below. This is what shortcuts where in 2017b, but supercharged.

Favorites lets you save snippets of commonly used code and allows them to be quickly accessed from the Favorites drop down list. They can be added and removed from the Quick Action Toolbar quickly using buttons in the Favorites list.

You can even create Favorites directly from the Command History, by hovering over a selected line of code (or several lines) and clicking the star that appears on hover.

The full documentation of this feature is available on the MathWork Website here.

Teckin Smart Plug / Socket with HomeKit using homebridge

Posted Leave a commentPosted in Apple, homebridge, HomeKit

Context

I wanted to automate my outdoor lights to enable timers and motion detectors to trigger them to make the house a little safer and easier to navigate at night. I have not decided on an activation method yet, but the first step, will be to just get them on HomeKit. I considered smart bulbs, but that would mean i’d need to change the existing PIR fixtures and I do not need to dim them or anything, so this seemed overkill. I can disable the PIR on them all and set them to always on, so a smart socket will do the job great!

I started looking for HomeKit smart sockets in the UK and the choice is very limited and often pricey.  I decided to just try a Teckin £10 socket from Amazon, which was not HomeKit compatible, but I was certain I could work something out with homebridge.

Configuration

The Teckin Smart Plug is just a Tuya device and uses a cloud API for actuations, not controlled locally on your network like all other HomeKit devices. This may have some security implications, but all comunications seems to be encrypted and secure, so I am happy to use this for now.

The homebridge plugin that I ended up using to control the socket is homebridge-tuya. I struggled to get the tuya-cli link-wizard to work to identify the id and key of the device. The connection initial process seems very flaky. I do not know if it is due to my mesh network or what, but i spent hours on this bit. In the end I resorted to identifying the id and key for my switch using Charles on macOS and this method from an older version of the Tuya node API.

Result

It works great in HomeKit!

Now, to find a good way to trigger it from motion outside.¬†ūü§Ē

Fitness Room, Gym Review: Park International Hotel, Kensington, London

Posted Leave a commentPosted in Gym

In this series, I will review gyms in Hotels that I have stayed in around the UK. I am writing this series as it is very hard to know what a hotel means by a fitness room when booking. I have often arrived at a hotel with a gym to find a tiny room with a treadmill and 3 mismatched dumbbells. The ratings are based on what I’d expect from a hotel gym. I mainly do strength training in a gym. As I prefer to do aerobic work outside, this may slightly bias the ratings.

My Visit

I visited the Park International, Kensington, London during the snow storm of February 2018. I stayed for one night on 27th February 2018.

TLDR: small, hot,¬†ūüĎé.

(more…)

watchOS 4 on Series 0

Posted Leave a commentPosted in Apple, watchOS

Over 880 days ago on 24th April 2015, I received my original Apple Watch (recently dubbed Series 0), I have worn it every day since. I use it mainly for fitness and media playback control, but nothing else.

The main reason is that my Apple Watch was too slow to use any apps and even the ones that I do use had some performances issues, e.g. the timer in the workout app struggling to display smoothly on screen.

Performance

watchOS 4 has been a huge improvement –¬†performance seem so much better, apps launch quicker, the interface is more fluid, everything seems much more reliable. As an example, my app Departure Board launches more faster, and it even updates its location using the GPS on the phone much quicker. I’d even argue that it has crossed the threshold from unusable to usable. watchOS 4 has really given a new lease of life to my aging, scratched watch.

Media Control

Since I got my AirPods in December and I lost the ability to control the volume on my headphone (I had been using Jabra Revo Wireless for years), I have been hoping the Now Playing screen would be available as a complication. The Now Playing screen lets you control the device volume with the digital crown. Having it as a complication would let me access it with a single tap, rather then pressing the side button and scrolling to find it, then selecting it.

With watchOS 4, Apple went one step further and displays the Now Playing screen whenever media is playing on your iPhone. As soon as I start media payback on my phone, the watch face is replaced with the Now Playing screen.

What’s next?

I was almost convinced that I would be upgrading at a Series 3 with LTE this year. However this performance improvement may help me defer this purchase for another year or until Series 4. In addition to this my carrier, Three, is not supported yet and podcast playback over LTE is also not available yet as far as I know.

The Shelf is now available on App Store

Posted Leave a commentPosted in Apps, News, The Shelf

In August, I announced The Shelf, which allows you to import, via drop or copy, many kinds of data into it to hold until it is needed later. Check out the original article for full details and a demonstration of The Shelf.

It is now available to download on App Store.

New Features

During beta testing, I received many requests for PDF support, I was able to add this in time for release.

Pricing

During App Review, I was told by Apple repeatedly that The Shelf was an unacceptable app type for Auto-Renewing Subscriptions. As a result, I have changed the business model from yearly subscriptions to a one-time IAP to unlock unlimited items in the App. I hope that this will cover the cost of all further development and as a result I will not need to charge for anything else in the future, but  I cannot guarantee that at this stage.

Get it now

Download it now from App Store Рit is free to try.

The iPhone Pro Won’t Be Great for Video

Posted Leave a commentPosted in Uncategorised

The rumours for the as of yet unannounced iPhone Edition / Pro seem to suggest that it will feature a 5.8″ 2800 x 1242px screen.

Using a bit of trigonometry, widescreen videos on this unannounced iPhone Edition / Pro will only be 104% the size of the regular iPhone 7, whereas the 5.5″ screen on the current iPhone 7 plus displays a video ¬†137% the size of the¬†regular iPhone 7.¬†This can be seen graphically below.

This may be a huge issue for me, as I use my iPhone 7 plus a lot to watch YouTube.

Full Resolution