Bill Farmer

Random thoughts on random subjects

Marion’s Banana and Walnut Cake

by Marion Farmer. Categories: Recipes .

This cake is delicious, quick and easy to make.The amount of sugar is reduced because the banana has natural sweetness. I have substituted rapeseed oil for cooking margarine as it is a healthier option. Using this method you do not need a food processor. Ingredients 225g (8oz) self raising flour 1 level teaspoon baking powder 55g (2oz) demerara sugar 2 large ripe bananas 55g (2oz) walnut pieces 55g (2oz) sultanas 2 eggs 2 tablespoons rapeseed oil milk to mix 20cm cake tin (or similar)

Read more →

Hiding Edit Button

by Bill Farmer. Categories: Hacking .

My Diary and Notes apps have a floating button in the corner of the screen which is used to switch between editing markdown text and viewing the result. Although it is part of the android Material Design, this button has been the subject of several issues raised by users. I have seen apps which hide this button on scrolling, and this was one of the suggestions by users. Getting this to work correctly turned out to be more complex than initially considered, requiring two boolean flags and a lambda expression.

Read more →

Derive Edit Position from Markdown

by Bill Farmer. Categories: Hacking .

I had a request to switch to the edit view from the markdown view at the double tap position in my Diary app. The app already has a gesture detector so I just had to add an onDoubleTap function. To get the tap position in the markdown view it is necessary to compensate for the position of the view on the screen, scrolling, and the display density. // onDoubleTap @Override public boolean onDoubleTap(MotionEvent e) { if (shown) { int[] l = new int[2]; markdownView.

Read more →

Fixing Basin Waste Pop Up

by Bill Farmer. Categories: DIY .

There are two things that seem to go wrong with pop up basin waste plugs, either the clicker stops working or the O ring washer fails. Clicker The clicker can stay stuck down, refuse to stay down or come apart. If it sticks down it can possibly be pulled back up with a drain plunger, otherwise you will need to take off the U bend and poke it back up with a long screwdriver.

Read more →

Pi-hole Cloudflare, DNSCrypt, Unbound Setup

by Bill Farmer. Categories: Hacking .

Pi-hole I came across a reference to Pi-hole recently, so as my old pi has been gathering dust, I thought I would try it out. The pi already had Raspbian Stretch Lite installed, so I uninstalled some of the packages I had previously installed, and loaded Pi-Hole using the One-Step Automated Install. The installation script asks a series of questions using text dialogs and produces a log as it goes.

Read more →
Previous page Next page