Mullard 5-20 Amplifier
Many years ago one of my brothers’ friends brought me a faulty military surplus valve amplifier which used 807 valves for the output. It appeared to have suffered a flashover which had destroyed much of the wiring and components inside the chassis, but the tagboards appeared to be reusable. I had a copy of a Mullard amplifier book, Mullard Circuits for Audio Amplifiers at the time, which I subsequently lent so someone who never returned it.
Read more →Handling Resizing in Windows
I have a windows app where I want the app window to maintain it’s aspect ratio when it is resized. Windows provides two mechanisms for this, the WM_SIZE message and the WM_SIZING message. The WM_SIZE message is sent when a window has been resized to allow child windows to be resized, the WM_SIZING message is sent while the user is resizing it to allow the size to be adjusted. The messages are handled in the WindowProc callback function.
Read more →Swift
Some years ago I wrote an OSX app in C using Carbon because my Hackintosh would only run OSX 10.4 (Tiger). The most difficult part was dealing with the Core Audio API. I recently decided to port it to Swift to avoid having to attempt to learn Objective C. A derivation of C that sends selectors to targets using the syntax [target selector arguments...] I don’t want to know about.
Read more →Boiled Beef and Carrots
This method can be used for any cut of beef but works very well for brisket or braising steak. Ingredients Brisket joint 4-6 chopped onions 3-4 large carrots Olive oil Black pepper Bay leaves Method Place joint in large covered casserole or saucepan with a couple of bay leaves Grind some black pepper over the joint and pour over some olive oil Surround the meat with chopped onions and chopped carrots Put on the lid and place in a slow oven for about 4-5 hours Enjoy with roast potatoes, parsnips and green veg
Read more →Android Custom Attributes
I had resisted adding a dark theme to my Diary app until now because it uses a custom calendar with built in customisable styles and preferences with icons. So I had to work out how to make the custom styles of the calendar revert to styles from the current theme, and how to switch icons for the preferences according to the theme. Calendar custom styles The custom calendar has a list of styles that are customisable in a attrs.
Read more →