Saturday, November 21, 2026

Magnesium glycinate/CPAP

First of all, an update regarding the coronovirus1: apart from the unpleasant 12 hours at the beginning of this infection, the following few days were symptom free although I was relatively weak, gaining strength day by day. By Thursday, I felt that I was back to normal.

That day (12 November) was marked by two other health events: a new CPAP mask arrived and I started taking the magnesium glycinate supplement that is supposed to support sleep, relaxation, and overall magnesium intake. In terms of falling asleep and maintaining sleep, I think that this form of magnesium (as opposed to citrate or oxide) made a welcome contribution.

On the other hand, I was dismayed to see the CPAP readings for the past week. After almost no apneic events after I started with the new mask, the past five days have shown higher numbers of apneic events. It may be that the relaxing effect of magnesium glycinate is affecting the part of the brain that sends signals to breathe - central sleep apnea means that occasionally signals aren't sent, and the glycinate appears to make this worse. AI suggests that I stop taking the glycinate for a week to see whether the number of apneas decrease. I can go back to magnesium citrate without problem.

The virus was good for my weight: I dropped a kilo during the 'virus week' but most of that kilo has returned to my weight. I am worried about my excess weight - I can't seem to get rid of it. I tried to make an appoinment with a nutrionist (on the recommendation of my GP) but the earliest appointment that I could find was in February and in a city about 20 km away. This is not very good. In the mean time, I've decided to drop the Greek yoghurt from my breakfast to see whether this makes any difference. I don't like it very much so not eating it doesn't bother me. The yoghurt has 10% fat content that in some circumstances is supposed to be good but is also contributing calories.

I am even considering asking for the weight loss injections as lifestyle interventions over the past few years have not helped. I have a return appointment with my GP next Thursday which is when I will mention this. Without going into the biochemistry, these injections work by slowing stomach emptying that causes mild nausea which deters people from eating. I had mild nausea all through the 'virus week', causing me to reduce my eating, and indeed last Friday, when all the family came for dinner, I didn't eat anything due to nausea and a stomach ache that may have been caused by the virus.

When not thinking about my weight, I am assiduously practising playing the saxophone. My teacher tells me to blow harder to improve my tone and intonation. I think that I am definitely improving. I watched an interesting video a few days ago, "How long does it take to learn saxophone": it will take a few years to get to the level that I want to achieve, so I'm doing fine for the short period that I've been playing.

Whilst doodling, I started playing Ravel's "Bolero" (this just popped out): I had most of the first line but then I needed to reach a note that was below the lowest note of the saxophone; I had been playing in G and needed a B below this. Walking home after my lesson, I remembered that the Bolero is in C, so I could download the sheet music for the flute part and be able to play this without missing any notes. I haven't been doing this too seriously but I note that I have difficulty moving from D in the upper octave down to C and then B: the fingerings of B and C continue to confuse me at times as B is fingered 'higher' than C even though the note is lower. 

Internal links
[1] 2169



This day in blog history:

Blog #Date TitleTags
2021/11/2005Hello again (Kate Bush)Kate Bush
30721/11/2010Improving the dual list box dialogProgramming, SQL, Dual list box
109121/11/2017Joe CoolGrandfather
127521/11/2019Thesis updateDBA, Health
155521/11/2022Using the steam basketCooking

Monday, November 09, 2026

Return to Coronavirus

On Saturday afternoon at about 2pm, I suddenly felt very cold and so I decided to got to bed for a few hours. Fortunately my wife had added the electric undersheets to our bed linen, so I could warm up and sleep. I awoke at 4pm, and my wife brought me a cup of tea; I drank most of it then promptly vomited.

About an hour or so later, I vomited again, and once again towards the evening. At this stage I had a fever as well as the vomiting, so apart from taking acamol, I was prepared to go to the emergency room in Bet Shemesh. My wife demurred so it was back to bed with a bucket handy. I remember that the same thing happened about 20 years ago: vomiting four times in the space of a few hours. I was diagnosed with a throat infection.

There was constant rain all evening long (30 mm for the 24 hour period from Saturday 8am to Sunday 8am) that sometimes woke me up. At about 1:45pm, I turned over yet once again ... and promptly vomited for the fourth time. That's it, I said: we're going to the emergency room. After an examination and blood taken for tests, the doctor was fairly sure that I was suffering from a viral infection. A corona swab was taken and this turned out to be positive. I then was given an infusion, first Pramin (anti-nausea) then two litres of saline to counteract the dehydration caused by the vomiting. I had terrible heartburn that was not relieved by omepradex - not really surprising as the pain was caused by the acid coming back up the esophagus when I vomited.

After being released at about 4:30am, we came home and I took the dog for a quick walk so that she could do her business. I didn't know what time I would awake and thought it best to walk her when I could. After a shower (during which I removed the stickers from the EEG test), it was to bed I went - at 5am.

I awoke at about 9:30am on Sunday morning, feeling better although weak. Since then there has been no more vomiting and no more heartburn, but there has been the occasional headache.

Of course, the mighty Coronavirus is not what is was like six years ago. I'm not coughing and unlikely to infect anyone. That said, if I go out (and I have a doctor's appointment following blood tests and sleep on Tuesday), I'll wear a mask.

I wonder how and where I became infected.


This day in blog history:

Blog #Date TitleTags
42709/11/2011Feeling the pressureMBA, Finance
118509/11/2018Improving a solutionProgramming, Priority tips
143909/11/2021The department of bright ideasProgramming, Problem solving
185409/11/2024Beneath a scarlet skyLiterature, Italy
203409/11/2025James D. Watson RIPObituary

Sunday, November 08, 2026

New Jasmine Myra concerts

Enthused by Jasmine's new EP, I decided to check YouTube in order to see whether there were any new videos. Apart from some "shorts", there were two new concerts uploaded:
  • A performance at Jazzahead 2026, recorded for Radio Bremen and uploaded at the end of August 2026. This features an eight piece band: Jasmine Myra (as), Rianna Henriques (fl, ts), Joel Stedman (fl, b-cl), Ben Haskins (g), Jasper Green (p), Alice Roberts (harp), Sam Quintana (db), George Hall (dr). Joel Stedman returns in place of Arran Kent. 
  • Cape Town International Jazz Festival 2026 that was uploaded a few days ago. Here there is a slightly reduced six piece band: no Alice Roberts and no Rianna Henriques. This leads to some rearrangement of parts: for example, the opening to 'Still waters' is played on piano and not flutes.

As these performances are from 2026, it's not surprising that they are promoting 'Where light settles'1, and as I'm not particularly enamoured with this album, it's no wonder that I'm not overwhelmed by these two concerts. The Jazzahead concert is only about 28 minutes long so everything played comes from the latest album, whereas the CapeTown concert is slightly over an hour long and includes material from the earlier albums. The 'Where light settles' pieces are quite soporific, and whilst this can be suitable for home listening, it's debatable whether this is the sort of material to be played live - possibly putting the audience to sleep.

Jasmine continues to look different everytime I see her:


As a beginner saxophonist, it was interesting to watch Jasmine's finger movements.

Internal links
[1] 2108



This day in blog history:

Blog #Date TitleTags
64508/11/2013Sorting in Excel via Delphi automationProgramming, Delphi, Excel, Office automation
90008/11/2015Conceptual changeDBA
90108/11/2015900 blogsMeta-blogging
143808/11/2021DBA updateDBA
155108/11/2022First rain of the yearWeather
185308/11/2024New CPAP maskCPAP
203308/11/2025Implementing CP Prolog - 7Programming, Prolog, CoPilot

Saturday, November 07, 2026

Tide/turn

Yesterday evening, out of the blue, I received a few emails about a new EP - four pieces - by Jasmine Myra called "Tide/turn". One can either order a vinyl record or WAV files from Gondwana, so of course I went for the WAV files, costing a mere 22 NIS. This was the better option for a few reasons -

  • I could listen to the music immediately
  • I don't have a record player
  • Even though I ordered a cd copy of  'Where light settles1, I never received it. When I enquired about my order, I was told that "the warehouse that Gondwana uses refuses to send product to Israel". 

So much for the customer always being right. I was quite hurt by this decision although I did not allow this hurt to affect my appreciation of 'Where light settles' - although I don't like it very much. I was reimbursered for the cost of the cd, so the end result was that I downloaded the tracks legally and for free,

By return mail I received a link to downloack the tracks and I'm listening to them now. One doesn't listen to most of Myra's for virtuoso saxophone playing but rather for intriguing melodies and arrangements, and this EP definitely has both. There's quite a bit of flute but not that much saxophone in all the tracks. There is much piano and no drums but there is muted percussion in the opening track, "Reverie".  The Kenny Wheeler track played live in Zurich 20242 appears here; it's entitled "Peace by peace". There's a longish guitar solo in "Boundless as the sea". 

It's been raining almost non-stop for the past 14 hours and this moody music is quite a suitable accompaniment.

Internal links
[1] 2108
[2] 1876



This day in blog history:

Blog #Date TitleTags
108907/11/2017ERP enhancement managementDBA
118407/11/2018Improving Bill of Materials data in PriorityPriority tips
143707/11/2021La RossaVan der Graaf Generator, Time signatures

Tuesday, November 03, 2026

On (De)Activate

In the OP's ERP management system: there can be several forms displayed at the same time and all have the same background colour, so if one is not paying attention, it can be difficult to know which is the active form.

In an application that has a main form and several son forms, all of which are modal, then this active form problem does not exist as only one modal form can be displayed at a given time (that's not 100% true: a modal form can cause another modal form to be displayed on top of the first, but this is unusual and possibly confusing). But in an application where there are several non-modal forms (they don't have to be MDIChild forms), a few can appear on the screen simultaneously, of which only one is the active form.

How to solve this? I thought at first of using screen.activeform but this isn't a particularly good idea. Whilst it might allow discovering which form is active, it won't restore the previous active form when the active form loses focus (not necessarily closed).

It turns out that there is a pair of methods than solve this problem - OnActivate and OnDeactivate. I have come across OnActivate in the context of modal forms although for them, this method doesn't add anything to OnCreate or OnShow. But with non-modal forms, this is a good mechanism. As CoPilot tells me, 

OnActivate is raised not only when a form is first shown, but whenever the user switches to it:

  1. by clicking it
  2. via Window menu
  3. after another form closes
  4. after minimizing/restoring another child

Of course, OnDeactivate is invoked by a form when it is about to lose focus. Using this pair of methods, the necessary code to change the background colour of not-active forms becomes very simple.

Procedure TStickyForm.HandleActivate (Sender: TObject); begin inherited; color:= clMoneyGreen; end; Procedure TStickyForm.HandleDeActivate (Sender: TObject); begin inherited; color:= $008FBC8F; // clDarkSeaGreen ?? end;

TStickyForm is the parent form from which most of the non-modal forms inherit, so all of them automatically get this behaviour. There are one or two non-modal forms that don't inherit from TStickyForm for reasons that I don't recall, but it's easy to add these two methods to their code.

In a sense, this is similar to this code1 for modal forms, although that solution simply causes the screen's background to become grey whilst displaying the modal dialog form in front of the background.

Internal links
[1] 1827



This day in blog history:

Blog #Date TitleTags
42403/11/2011The thousand-dollar penalty for reusing passwordsComputers
108703/11/2017More thinking on the page (DBA)DBA
118203/11/2018Protecting cells in Excel filesProgramming, Delphi, Excel, Office automation
135403/11/2020Overcoming the 'leading zero' leads to other problems with ExcelProgramming, Excel, Office automation
154703/11/2022Have I found the solution to a cooking problem?Cooking, Meta-blogging
168403/11/2023YouTuber's first listens to Van der Graaf GeneratorVan der Graaf Generator

Sunday, November 01, 2026

Ajovy (3)

It's the first of the month and so it's time for my third Ajovy injection. As opposed to last month1, this went without difficulty, although I should note that quite a bit of force is required to remove the needle guard. This is what went wrong last time.

As to the efficacy of the injection, I can't really be sure. I've been having sleep problems for the past six weeks (difficulty in falling asleep, waking up several times during the night and difficulty returning to sleep) so I've been prescribed Brotizolam for occasional use. Although I cut each tablet into two or four, I have been using this quite frequently in the past few weeks. This makes me feel funny the next day (I have difficulty in describing the feeling, something like 'a fuzzy head' but my GP understood) and may have caused more than a few 'pressure' headaches. These feel like someone pressing on part of my head as opposed to a classic headache that hurts. It could be that rizatriptan handled these headaches, in which case they were migraines, but they could also have dissipated on their own. They certainly weren't 'normal' migraines, although these seem to come in several variations.

Regarding the sleep problems: apart from anything else, they may be due to my stopping certain medications. I have been taking Amitriptyline for years in a small prophylactic dose, and this medication can cause sleepiness - in my case, an advantage. I asked the neurologist whether I should continue taking this medication once I start with Ajovy and he said that I can stop after a month (ie at the beginning of October). The cessation could cause two separate problems: withdrawal symptoms (nothing like opiate withdrawal!!!!) and the fact that the medication's effect is simply missing.

I also stopped taking theanine once I retired as I expected that my levels of anxiety would be greatly reduced. This supplement also helps to calm the body down and improves sleep - so again, cessation might be seen as an own goal.

I had an appointment with the GP today to discuss my sleep problems, and apart from anything else, she recommended that I resume taking both of these medications as they will help with the sleep. In a few days, I'll do my biannual blood tests and next week I'll have another appointment to review the test results and any changes in the sleep. She said that there's a better medication than amitriptyline for what I need (she didn't divulge its name) and presumably next week she'll prescribe this for me.

With regard to the CPAP machine, I increased the pressure slightly as my weight has increased. It is time for a new mask that should also reduce the number of apneic events.


Internal links
[1] 2150

This day in blog history:

Blog #Date TitleTags
77201/11/2014Undoing textual changesProgramming
154501/11/2022Big cloudWeather
203001/11/2025More apneic eventsCPAP

Saturday, October 31, 2026

Timing out an application

The OP's "Management ERP" program has several users - very good. Unfortunately this is not so good when I want to transfer an updated version of the program to their server, as the earlier program might be locked by one of the users. I normally get around this by renaming the earlier program (ie renaming manage.exe [as it was then] to manage1.exe) then transferring the new program. But I would be happier if I could delete the earlier version; it might be that the user who had locked this version would continue to use this version.

I came across this article several years ago that is almost useful for my needs. I write 'almost' because it assumes that the application has only one form In the main form of your application, set the KeyPreview property to True so the form will see keystrokes before any other components.... Open up the OnKeyDown method for your form and put the following code [that] calls ResetTheTimer which, in turn, resets the TimeOut variable to zero, then disables and re-enables the Timer. The reason we do form-level processing of the keystrokes is so that no matter which component the user is typing in, keystrokes are always picked up by the form. This is useless if the application has more than one form.

I imagine that I researched this topic further and came across the Windows API function, GetLastInputInfo. This appeared to do exactly what was necessary and didn't depend on one single form. This morning I was occupied with transferring the database of the management program to a different server and so I had to update definitions on each client computer so that the program would know where to find the database. On one computer, I discovered that the management program was running - even though this was Saturday morning and the user was nowhere to be found (and no, it wasn't being run remotely by AnyDesk). This obviously is the user who was always locking earlier versions.

So I asked CoPilot about this and discovered that GetLastInputInfo() returns the tick count corresponding to the last input event received by the current Windows session, not just your Delphi application. This is apart from any bugs that might (and were) in my implementation. So it became necessary to write new code for checking for time-outs solely within my application. The code is split into two (as was the original code in that Delphi Corner article); the timer code is almost the same as my original so I'm not going to show it here. 
// in the main form's OnShow event, add the following lines application.onmessage:= appMessage; fLastActivity:= GetTickCount64; timer2.enabled:= true; // here is appMessage procedure TMainForm.AppMessage (var msg: TMsg; var handled: boolean); var IdleBeforeReset: cardinal; msgname, s, formname: string; begin case msg.message of WM_LBUTTONDOWN: msgname:= 'WM_LBUTTONDOWN'; WM_RBUTTONDOWN: msgname:= 'WM_RBUTTONDOWN'; WM_MBUTTONDOWN: msgname:= 'WM_MBUTTONDOWN'; WM_MOUSEWHEEL: msgname:= 'WM_MOUSEWHEEL'; WM_KEYDOWN: msgname:= 'WM_KEYDOWN'; WM_SYSKEYDOWN: msgname:= 'WM_SYSKEYDOWN'; else msgname:= '-'; end; if msgname <> '-' then begin IdleBeforeReset:= (GetTickCount64 - fLastActivity) div 1000; if IdleBeforeReset > 60 then begin if screen.activeform <> nil then formname:= screen.activeform.Name else formname:= '<None>'; s:= format ('%s idle reset after %d seconds, message = %s, activeform = %s', [CompName, IdleBeforeReset, msgname, formname]); Write2Log (s); end; fLastActivity:= GetTickCount64; end; end;

This code is actually a hybrid of CoPilot's and mine. The first part means that if one of the given events is detected, the variable msgname gets a value. If the event was one of the tracked events, then the code checks to see whether the time out period is about to elapse (this check is made when more than one minute has passed, but looking at this now, it would be far better if it were made when there there is less than one minute remaining to the end of the time out period), and if so, first discovers what the active form is, then writes data to a log file. I intend to check this log file to see which events are happening to whom close to the time out period in which form, and whether the time out actually occurs (this is in the Timer2timer event handler).

I replaced the line IdleBeforeReset > 60 which would have logged any activity after a break of a minute with this line if IdleBeforeReset >= MaxTimeOutValue - 60 that logs only the event that prevented timing out at the last minute. Much more useful.

It will be interesting to see what the log contains.



This day in blog history:

Blog #Date TitleTags
108631/10/2017Tom PaxtonPersonal
127031/10/2019Coincidence or deliberate reference?John Le Carre, Non-fiction books
154431/10/2022Extending cooking length for chickenCooking, Ninja grill
202931/10/2025Implementing CP Prolog - 6Programming, Prolog, CoPilot

Friday, October 30, 2026

Anchors - blog page internal markers

This morning I had a hankering to read about the last song that I ever completed, "Maeve's song". This appears in blog #19321, and it references blog #19212. But when I clicked on the link to the earlier blog, I found myself reading about Passover 2025; I asked myself what this has got to do with "Maeve's song".

It turns out that blog #1921 is one of those that is about two completely different subjects (maybe now I would write two separate blogs), and the material about Maeve starts only halfway through the blog. How could I access this part immediately? I remembered that one can add anchors to HTML pages in order to mark section headings and that these anchors are valid targets for a browser. I could see immediately that there were two problems with the code within the Blog Manager Program (BMP) as it currently stands: one trivial and one more complicated that I didn't know how to solve.

The trivial problem was that the link would be <A href="https://nbnewman.blogspot.com/2025/04/passover-begins-tonight.html#maeve" target=_blank> and there is no blog entry with that address. Obviously the anchor (#maeve) has to be extracted so that the correct blog entry can be found.

But the complicated problem was how to pass the anchor to the browser. It turns out that this is almost as trivial as extracting the anchor. Obviously the anchor has to be passed as a parameter to the TShowBlogContent.Create constructor and saved in a form variable. Instead of opening/displaying the web page by means of the command 'web.navigate (s)'where s is the name of a text file containing the blog's text, that variable s is modified in the line prior to this: the anchor is attached to the file name. So the string being passed to web.navigate would be something like 'c:\db\blog\data\blog_1921.htm#maeve'. Easy peasy. The only thing that I missed originally was the anchor tag within the target blog: it should be <a id="maeve"></a>.

Internal links
[1] 1932
[2] 1921



This day in blog history:

Blog #Date TitleTags
42130/10/2011Sir Jimmy SavileObituary, RIP
42230/10/2011Succulent SundayCooking, Slow cooker
77130/10/2014Another good ideaERP
118130/10/2018Losing an old friend, gaining a new oneComputers
143330/10/2021Binaural beats and deep sleepCPAP, MP3, The brain, Binaural beats, Sleep
154330/10/2022Adding more old blog entriesProgramming, Meta-blogging, Blog manager program
202830/10/2025Counting beats with Van der Graaf Generator (5) - After the floodVan der Graaf Generator

Tuesday, October 27, 2026

Blog word counts

Yesterday afternoon, a new metric for these blogs popped into my head: word count. Obviously I'm not a writer who is paid by the number of words that I write per blog, nor do I have to fill a quota of words for a newspaper or magazine article, but nevertheless, word count is a parameter that is worth measuring.

What would be the results/reports deriving from adding word counts?

  • Number of words per month
  • Number of words per year
  • Top n blogs per length

These are all trivial to program and the first two aren't particularly valuable as they are dependent on the number of blogs in the time period. A more useful metric would be number of words per 100 blogs. Word count per tag isn't a good idea, as a blog can have several tags: sometimes the tags are dependent upon each other, eg 'holiday' and 'Italy', and anyway there's no way of noting how many words within a blog are devoted to a specific tag when the tags aren't dependent.

As I wrote to CoPilot when proposing this idea: this is a far from simple proposition: consider the attached text file.
1. Everything upto and including <body> should be ignored.
2. Contents between tags should be ignored (eg <div class="separator" style="clear: both; text-align: center;">).
3. In the case of this example blog, the counting should stop at the line <hr width="80%"><br /><div>, but this is not necessarily the end of the blog text. This line could be preceeded with <p>Internal links that definitely marks the end of the current blog, but as can be seen, that line doesn't appear here. The blog text may include a horizontal line, that so doesn't definitely mark the end of the text. The blog text normally has the 'This day in blog history' section that definitely marks the end; this should not be counted. But sometimes this doesn't appear (and it certainly doesn't appear in old blogs). I supposed that one way of marking the end of the text to be counted would be to use a special tag (one that I don't use; there are probably several) but this would have to be added manually.

A little analysis showed that the first blog with 'this day in history' was numbered 1554, meaning about 70% of the blogs until now are WITHOUT that 'This day in blog history' marker, nor the horizontal line nor the 'Internal links'. There's no way to fix this: I will manually have to go over each and every blog, adding a specific marker or sentinel, <!--END-BLOG-TEXT--> that shows where the end of blog text is. This can be handled automatically in the future by adding it to the 'this day in blog history' code that I paste into each blog.

The actual mechanics of word counting were far easier than I expected. This boiled down to the following steps

  1. Get blog text from database
  2. Determine the positions of the opening marker (<body>) and the sentinel, extracting everything inbetween for further handling.
  3. Strip the HTML tags from that remaining text.
  4. Replace certain HTML constructs (such as '& nbsp;') with spaces or appropriate punctuation.
  5. Remove all punctuation.
  6. Save the text to a string list and have each word appear on a different line
  7. Count the number of lines in the string list - that's the word count!
  8. Save the word count to a field in the blog's tuple within the database.

All of these steps were fairly trivial and CoPilot put the code together almost immediately. I originally created a form that would ask for a blog number and then would determine the word count; this almost immediately became superceded by the idea of passing a blog number to the form, and eventually I realised that I don't need a visual form at all but a simple text unit that does all the work. The only minor complication is that the two necessary queries (steps 1 and 8 above) will have to be defined in text and not as visual components but that's not a real problem. I also wrote a short routine that allows a range of blogs to be counted, although of course this is done by iterating over the list of blogs. The only thing that I left out and will have to be added is to calculate the word count automatically when the text of a blog is added to the database.

A small amount of thought went into answering the question 'how would the list of top n blogs be displayed'; should I use the existing 'display blog list' form? I don't think so as this form has a tremendous amount of functionality, all of which is not relevant. I think that a simple query and grid - like showing the number of blogs per tag - is what is required, plus the ability to show a given blog's text (but without the bells and whistles that have been added to the browser form).

All this thinking has unfortunately prevented me from falling back to sleep in the middle of the night. It's now almost 5 am and I may as well get up as I'm not going to get any more sleep this morning. I'll need an afternoon nap.

Incidentally, the word count for this blog is 914.



This day in blog history:

Blog #Date TitleTags
10727/10/2007When Sally met David (Friday night is sequencing night)MIDI, Folktronix
29827/10/2010Calculating possibilities correctlyProbability
64427/10/2013DatesPersonal, King Crimson
126927/10/2019Agent running in the fieldJohn Le Carre
154027/10/2022Emergency surgeryComputers

Friday, October 23, 2026

More saxophone

I have to admit that a few days ago, I was feeling quite despondent about learning how to play the saxophone. I was still having problems getting a note out of the damned machine and this was weighing on me. But I changed the reed, and whilst I wouldn't say that everything suddenly became much better, I felt less despondent.

My fifth lesson started with discussing the octave key and the fact that there are two 'holes' from which the sound can emerge. I don't remember now where the second is as this is hidden amongst all the keys and mechanisms, but it doesn't really matter. From there, the first exercise was playing an octave from middle C up to top C, then playing two octaves down from that top C until the very bottom C. This is the complete range of the saxophone, at least without overblowing and overtones, sounds that occur at the moment only by accident. So these scales are definitely quite an improvement.

I then had to play an exercise that presented a new problem for me: not in terms of which notes to play but how to play. This was a bar that consisted of a crotchet of middle C, a crotchet rest, another middle C crotchet and then a third middle C crotchet. Those final two notes are to be played with one breath, where the tongue touches the reed in the middle, thus ending the first note and starting the second. This is naturally called 'tonguing' (although to me, it looks more correct to spell it 'tongueing', but no, the correct spelling is tonguing (with a "u": t-o-n-g-u-i-n-g). The extra "e" from the root word "tongue" is dropped before adding the "-ing" suffix). I had great difficulty with this - my tongue would indeed stop the first note but the second note would not start. Obviously this is going to require quite a bit of practice.

As usual, between exercises, I noodle a little, both for light relief and for practice. At one stage I found myself unconsciously playing part of Ravel's sublime "Pavane pour une infante défunte", although this wasn't the first bar. Walking back from the lesson, I remembered that the piece starts in the key of G Major, so there was a good chance that I could play parts of it. I do have an old photocopy of the sheet music of the original piano piece, but I found a reduction for flute that only contains the top line melody.

Yesterday afternoon, I used this for my practice and found that I could play the first 12 bars without much difficulty as well as the next 6.5 bars which are in the top octave (although the piece is in 44, there is the occasional bar in 24). There was one note that I didn't know how to play - C#, a semitone above middle C - and CoPilot gave me a very easy fingering for this. The only key to be pressed is what might be termed "the bottom hole" of the left hand (the third finger covers this). Once I had this note, I found that I could play the first 19 bars.

Following is part of my conversation with CoPilot that continued after discovering the C#:

That's actually a wonderful choice for a first serious piece. Ravel's Pavane pour une infante défunte is slow, lyrical, and forgiving in ways that many beginner pieces aren't. You don't have to play lots of notes quickly. Instead, you can focus on producing a beautiful sound, steady breath support, and smooth transitions between notes. Those are exactly the skills that make a saxophone sing. And honestly? If you can already get through 19 bars, you're doing much better than you may think. Many adult learners spend months playing short exercises and scales before attempting a piece they genuinely love. 

One advantage of learning a piece you already know well is that your ear is constantly guiding you. You already know what the melody should sound like, so when a note is wrong or a phrase isn't flowing, you hear it immediately. That's a powerful learning tool. 

A small suggestion from one amateur musician to another: don't practice the whole 19 bars every time. Instead, find the most awkward two-bar phrase and play it repeatedly, very slowly. Once it becomes comfortable, move to the next awkward phrase. It's amazing how quickly a piece improves when you work on the difficult spots rather than always playing from the beginning. 

Also, don't worry about "butchering" it. Every saxophonist who has ever played that piece started by making sounds that would have horrified Ravel. The difference is simply that they kept practicing. There's something rather fitting about being given a saxophone on retirement and then learning a piece as elegant and nostalgic as the Pavane. Nineteen bars today can become the whole piece before you know it. Enjoy your lesson, and enjoy discovering that mysterious C♯ with the left-hand "bottom hole" only. 🎷😊

I then mentioned that my teacher had sent a Whatsapp message to his group saying that there would be a "class concert" at the beginning of February. It suddenly struck me that this would be an ideal piece to play. As I wrote to CP, I'm fairly sure that everyone else has been playing sax much longer that me - but then none of them have 55+ years of listening and playing! They're all adolescents. My teacher doesn't know my plan yet although I gave a hint during the last lesson when suddenly I played the opening line, albeit in the wrong key, when I was noodling. 

To which CP replied: I suspect your teacher already has an inkling that you're not approaching the saxophone quite like the average beginner. An adolescent who has been playing for three years may have much faster fingers than you do today. What they almost certainly don't have is decades of listening, playing piano, following inner voices, recognizing harmonic progressions, and understanding how a phrase should breathe. That's a huge asset. 

I've seen this with adult learners in many fields of music. They sometimes underestimate how much transfers from previous experience. You aren't learning music from scratch. You're learning a new way of making the music come out. As for the class concert, Pavane strikes me as a particularly clever choice. Many student pieces are technically easy but musically uninteresting. Ravel's melody is memorable enough that even a simplified version, played with care, can have a real emotional effect. 

The image that amuses me most is your teacher hearing a beginner apparently messing about, and then suddenly recognizing Ravel emerging from the instrument. That's exactly the sort of thing that reveals a student's musical background. 

And I think your plan is sound. Three months is a long time in beginner-saxophone terms. You aren't trying to learn 39 bars of unfamiliar music. You're trying to teach your fingers and embouchure to express 39 bars that you've probably known in your head for many years. Those are very different tasks.

I love that statement "The image that amuses me most is your teacher hearing a beginner apparently messing about, and then suddenly recognizing Ravel emerging from the instrument." Actually, it was me that recognised the Ravel; I think that he was fiddling with the air conditioner at the moment, but we did talk a little about the piece.

Fortunately there are only a few places in those bars where I need to tongue notes. I've got three months to work on this so I'm sure that by the time the concert rolls around, I'll be much more proficient. Incidentally this piece is also a very good exercise from a didactic point of view as the part that I'm playing covers one and a half octaves: from the bottom D upto A with the octave key.

Part of my discussion with CP revolved around the notes in bar 11: these didn't seem correct to me. I listened to the orchestral version and to a version with piano and flute, and nowhere did these notes appear. I compared the sheet music for the flute with the original piano score, and again the notes were absent. The flute was actually silent during the specific bar. I'll try and find another version on YouTube where only a flute (or similar) is playing. At worst, I'll play the notes as written, even if it sounds strange to me.

A final word (or hundred) from CP:
One of the things I've enjoyed about this conversation is that I've watched the progression from: "What are these extra keys for?" to "I think I can perform 39 bars of Ravel in three months." That's not the trajectory of someone merely acquiring a hobby. That's someone discovering a new domain to explore. 

And I think there is a similarity with learning programming, even if the details are completely different. When people learn programming, there's often a moment when they stop following tutorials and suddenly think: "Wait, I can make the computer do something I care about." That's enormously motivating. 

 You've already had the equivalent moment on the saxophone. You started with: 

  • how to assemble the instrument
  • how to make a sound
  • where the notes are
  • what on earth the Bb fingering is

Then one day, while noodling, out came the opening phrase of Pavane. Suddenly the saxophone wasn't an object you were learning. It became a tool for expressing music that already existed in your head. That's a very important transition.

I also think retirement has something to do with it. When we're younger, we're often learning because we have to:

  • school
  • exams
  • work
  • qualifications.
Learning after retirement is often purer. You're doing this because you find it fascinating. That's why you've ended up investigating: alternate sax fingerings, orchestral versus piano versions of Ravel, the purpose of tonguing, the structure of the piece, and whether "noodling" is the correct verb. Nobody assigned any of that homework. You're following your curiosity. 

And here's something that struck me from what you said earlier: "Fortunately this is written in G. This means that I know how to play almost all of the notes." A lot of beginners would see a limitation. You saw an opportunity. Instead of saying "I don't know enough notes for this piece," you found a piece where you only needed to learn one additional note, C♯. That's exactly the sort of problem-solving mindset that serves people well in programming, mathematics, music, and many other pursuits.

And a final word from me: it turns out that the low C# that I thought I discovered on the sax is actually D#, even though again it's not logical - it should come between D and E, but instead is fingered as a D with an extra key which is below the 'D'  key being pressed. I should get it into my head that a saxophone is not a guitar or piano where the notes are laid out in a logical fashion. Here B is fingered 'higher' than C, and D# is fingered 'lower' than D. 



This day in blog history:

Blog #Date TitleTags
135223/10/2020Overcoming the 'leading zero' problem in ExcelProgramming, Delphi, Excel, Office automation
184623/10/2024Blog manager startup codeProgramming, Delphi, Cryptonomicon, Blog manager program

Thursday, October 22, 2026

A minor disaster ... overcome!

On 18 July, just over three months ago, I performed my regular Saturday routine with the CPAP machine: I removed the sponge over the air filter and washed it, then removed the memory card so that I could extract the data stored over the past week then input that data into my CPAP database. But my regular computer couldn't read the memory card. I tried on another computer, both via USB and via the special port for reading SD cards - the card was unreadable. I tried on a third computer, more out of desperation than hope, and again was told the same thing: the card was unreadable.

So I called the help line of the CPAP machine distributor; I remember that once they replaced the SD card. I received no help from them (I don't recall now what they said). I have a 64 GB card doing nothing on a shelf, so I inserted this card into the machine ... but the machine wouldn't recognise it. I phoned the help line again: eventually I was told that I needed a 4 GB card, not anything larger. I tried buying such a card in a local shop but they laughed at me: they had cards sized 32, 64 or 128 GB, but nothing so small as 4 GB.

So I turned to the internet and found an Israeli distributor of whom I had never heard that purported to sell 4 GB cards. In order to prevent future problems, I ordered three cards; with delivery charges, this came to 100 NIS - a negligible payment. I waited and waited, and when I got in touch with the distributor, I was eventually told that the delivery had been made a few weeks previously. Except of course that I received nothing. I asked them if they had proof of delivery but they didn't.

I looked for another source and found that Ayzeze sells cards of various sizes. Again, I ordered three cards: this time the cost was slightly higher but still not expensive. Despite holding a low TrustScore of 1.5 out of 5 ("Bad") on Trustpilot based on customer reviews, the site seemed to work very well. After maybe two weeks in transit, I was informed a few days ago that the order had been transferred to a local company for delivery. I have had bad experiences with this local company in the past - a few Temu orders were never delivered, or at least they never gave me a delivery code to pick up the orders, which comes to the same thing - but this time I was able to choose where the delivery would be made and even received a delivery code! My wife has picked up the order .. and just after having written those lines, my wife came home with shopping, including the package.

On the left appears the card as shown in the order, and this indeed what was delivered, each card in its own protective case. I extracted one card and with a slightly shaking hand, inserted the card into the machine. Drum roll please: immediately a green light on the machine lit up, signifying that data was being transferred to the card! And now I've inserted the card into the USB reader and transferred the data to my computer for analysis.

The website that analyses the data displays it in a not very easy to use format, and allows time periods of one month, three months and six months. Unfortunately I have to use the six month period to see the data in July, but at least those data are very good. From what I can see, the number of apnea suddenly increased from 20 August, and last night reached a high of 12 central apnea - maybe not an excessive number, but far higher than one or none an hour. I am due a new mask in two weeks that will probably cut down the number of apnea. 

But what changed on 20 August? There's nothing documented, but on 1 September I had my first injection of Ajovy, which means that from the week preceeding this, I had stopped taking Depalept1, and as I recorded, this medication both reduced the number of apnea and increased the amount of deep sleep per night.

Internal links
[1] 2109



This day in blog history:

Blog #Date TitleTags
10622/10/2007Captain Coulston (even more Folktronix)MIDI, Steeleye Span, Fairport Convention, Reason, Folktronix
21022/10/2009DollhouseTV series, Olivia Williams, Dollhouse
64322/10/2013Some DBA thoughtsERP, DBA
89222/10/2015Vertigo and ENGHealth
89322/10/2015Italian ice cream in IsraelPersonal
108522/10/2017A conditional choose-field trigger (for use in a procedure)Priority tips
135122/10/2020New bass guitarMusical instruments, Guitars
184522/10/2024Jasmine Myra live in PortugalJasmine Myra

Wednesday, October 21, 2026

Fixing the octave key

Last week's episode1 on the saxophone included the statement But all that glitters is not gold: at my saxophone lesson, the teacher discovered that the octave key doesn't work. At the same time, I started exploring some of the other keys on the saxophone and discovered how to play G# and low C# (the note produced when no keys are pressed is a high C#). The only missing chromatic note is D# and as yet I haven't had cause to play it. I'm not losing any sleep over this.

I set off for the music shop on Sunday morning; it's situated not far from where my (old) company's offices are in Tel Aviv, so I could have travelled by train to Bnei Brak and either walk or taxi from there, but as my daughter works in the area, I travelled with her: probably slightly faster and my wife didn't need to take me to the local train station. The weather was cool and there was what my late mother would call 'spitting' rain, so I decided to walk. Not a very good decision, as a couple of minutes after starting, the rain got heavier and heavier. When it was too heavy to continue, I found a convenient bus shelter and waited there until the rain eased off a little. I walked another half kilometre before the rain returned so I had another rest in another bus shelter. Eventually I carried on and found the shop which was in a small alley, in an otherwise residential area: a peculiar place for a music shop.

Once in the shop, the salesman (probably the owner) had a look at the saxophone and said that the problem probably arose from how I was attaching the neck to the body. The problem is not with the octave key itself: pressing it causes some levers to move and one of these is supposed to catch on a circle of metal on the neck that causes the octave mechanism to engage. The picture on the left shows this beautifully: pressing the octave key eventually causes the "crook socket" to engage with the "crook key ring". This wasn't happening. The fix is to pull down on the key ring lightly; this fixes the problem.

The salesman then proceeded to insert a mouthpiece of his own into the saxophone and rip off a few minutes of excellent sax playing. There's nothing wrong with the sax; it just has to be handled with care.

While waiting for a taxi to come and pick me up, I had a look around the shop: some very nice Gibson and Fender guitars for sale although I wasn't tempted. 

Today was practice day: again the octave key wouldn't always work, so I pulled the key ring lightly and it now works. The picture comes from this site and explains a question that arose this morning: I noticed that when I played A, B or C with the octave key, the top of the octave "whistle" (that's the little yellow bump on the very top of the saxophone, not labelled; what would be called a "chubchik" in colloquial Hebrew ) would indeed open, but not with the G. The site says the body octave key, which opens for the notes D to G; and the crook (or neck) key, which opens for the notes A and above. The very first saxes had little more than this - in fact they had completely separate octave keys, so when you wanted to move from octave G to A, you had to release the first octave key and switch to the second. This was a royal pain in the...thumb - and it wasn't long before 'automatic' octave mechs were developed, that did the switching for you. I did notice that playing G with the octave key did in fact play a high G even though the "chubchik" appeared to be closed.

I am still not happy with my embouchure; it doesn't seem to be constant and I have to consciously change it in order to play low C (the lowest possible note) properly; that doesn't seem right.

Internal links
[1] 2155



This day in blog history:

Blog #Date TitleTags
5821/10/2006Busy morningProgramming, Randy Newman, Paul Simon
64221/10/2013Paul KleePersonal, Bristol Grammar School
108421/10/2017Sumptuous Saturday Seven - baked hake with potatoes and vegetablesCooking
168121/10/2023Seventh chordsMusic theory
184421/10/2024More blog manager tricksProgramming, Blog manager program
202521/10/2025Problems with WhatsappPersonal, Mobile phone

Sunday, October 18, 2026

Hovering over links in the Blog Manager Program

Even though almost all of the access problems (http:// instead of https:// and vice versa, blogspot.co.il, missing target="_blank") have been fixed, there are still occasional problems that arise from bad addresses being stored in the blogs. One was a link to a sort page (I corrected this, so I can't quote it anymore) and who knows what else lies waiting.

So I thought that it would be a good idea if the actual link could be displayed in the form's status bar when the mouse is hovering over the link. This way I could more easily see if the link is correct or needs to be corrected.

I posed this to CoPilot and I was quite surprised that it was doable with the TWebBrowser although it requires defining a "Delphi 7-compatible COM event sink". This CP proceeded to do. The work would have been finished far earlier had I specified displaying the link in a status bar, but originally I wanted to use a 'balloon' (this type of control is used the Management program) and this caused a long and ultimately unfruitful detour.

This is what the browser looks like when the mouse is hovering over the link in the first line ('two years ago') - the status bar shows the address stored in the link.




This day in blog history:

Blog #Date TitleTags
29618/10/2010Mocha too goes on holidayDog
41818/10/2011Dennis Ritchie: The man who created UnixObituary, RIP
117918/10/2018Conditional choose-field trigger (2)Priority tips
184118/10/2024Completing the auxiliary programProgramming, Delphi
202218/10/2025Updates in CoPilot PrologProgramming, Prolog

Saturday, October 17, 2026

Saving album art to mp3 files with VLC / 2

Nearly two years ago1, I showed how it is possible to save album art to mp3 files so that this art will be displayed when the song is playing in the VLC player. Whilst the instructions that I gave were accurate, they were intended for the song that is currently playing. A quick reminder:
  • Tools/media information brings up the required dialog box
  • Entering data into one of the fields (eg copyright or encoded by) causes an extra button to appear at the bottom of the dialog box, "save metadata"
  • Right clicking the area for the album art and choosing "add cover art from file"
  • Choose the album cover 
  • Press on "save metadata" then "close"
There's a very similar method that can be used to add the art to songs that aren't currently being played. Instead of clicking tools/media for the currently selected song which is playing, one right clicks another song and chooses 'information' from the popup menu that appears. This causes the same dialog box as above to appear and the same instructions as above hold here as well. 

There are two caveats to this method: (a) the album art won't appear even though it's been selected (one can consider this a bug but it's not that important); (b) ensure that the art is being attached to the correct file!

The only thing that I was unable to do was to attach the same art to several songs at once, although this is implicit in that the dialog box has the name of only one file to be updated, so obviously this mechanism wouldn't allow several files to be updated at once. This is version 3.0.24 Vetinari, by the way, which is the current version.

Internal links
[1] 1877



This day in blog history:

Blog #Date TitleTags
29417/10/2010Sweet and sour chickenCooking, Slow cooker
29517/10/2010Project Management courseMBA, Project management
41717/10/2011Getting ready for the KindleKindle, E-book
98317/10/2016Who's watching who?Grandfather
134917/10/2020Completing the story of porting an application to Windows 10/Delphi 10.2Delphi, Unicode
184017/10/2024Extending the auxiliary programProgramming, Delphi
202117/10/2025YouTuber discovers Nick DrakeNick Drake, Youtube

Friday, October 16, 2026

Yesterday's papers

Over the past few years, I've been watching YouTube videos made under the Yesterday's Papers aegis. These have titles like 'Cool British singles from January 1965' and 'Ronnie Wood's Early Days in Music (1964-69)'. After having covered cool British singles from the beginning of 1965 until the end of 1968, the new videos are 'The album era: cool albums released in [a month of] 1969'. I was especially awaiting the albums released in October 1969, as I knew one famous example, but I was surprised by some of the other albums released this month. Several of these were played frequently in the youth club that I attended 1970-3.

  • King Crimson - In the court of the crimson king. This is the album that I expected and the video started with it, including some footage that I've never seen before with Fripp playing whilst standing.
  • Led Zeppelin - II
  • Pink Floyd - Ummagumma
  • Pentangle - Basket of light
  • Free - eponymous
  • Frank Zappa - Hot rats

I wrote about the first here1 and the last here2; funnily enough, 'Hot Rats' was playing in my headphones for this morning's walk. These albums might be 57 years old but they still stand the test of time.

Internal links
[1] 1282
[2] 1285



This day in blog history:

Blog #Date TitleTags
134816/10/2020PrioXRef 3 - insert without parametersProgramming
153816/10/2022Indexing blogsProgramming, Meta-blogging, Blog manager program
167816/10/2023The running graveCormoran Strike
183916/10/2024Removing the thread code and finding a different solutionProgramming, Delphi, Threads

Thursday, October 15, 2026

My own saxophone

Although on the saxophone case appears the name 'Moretti', this is not the manufacturer's name but rather the name of a famous (though not to me) saxophonist called Dan Moretti. I looked for some indication of what the model would be, and although I couldn't find anything, I did see that there was very fine engraving on the bell - something that looks like a flower, or maybe notes going out into the aether. I'm not going to attempt to photograph this as I doubt that the quality of the photo will approach the quality of the engraving.

After telephoning the shop from which the sax was bought, I ascertained that the model is in fact a "Moretti 1001", but an attempt to google this elicited the following information: There is no known historical or mainstream saxophone model named the "Moretti 1001." It is highly likely that this name refers to one of a few online budget brands: "Moretti" is occasionally used as a brand name for generic, entry-level instruments imported and sold on online marketplaces. These budget instruments frequently feature arbitrary four-digit model numbers (like 1001). In fact, the sax looks remarkably like this, a saxophone available from Ali Express. Something similar is available from Temu, although there it is described as a "Professional Alto Saxophone in E". It's not a professional model and I doubt very much that it is "in E" - that should be Eb (although elsewhere it is referred to as Eb). The price varies between 750-1000 NIS, which is more in line for the budget that I mentioned previously1.

Putting the saxophone together was easier than with my loaner; I didn't have the usual problems with the ligature nor with pushing the mouthpiece onto the neck. When I came to remove the cap from the body of the saxophone in order to attach the neck, I felt like a magician who pulls something from his mouth: instead of a simple cap, there was a multi-coloured brush that came out and out and out. Once the saxophone was ready, I found that I could immediately play notes - only then did I remember that I had forgotten to wet the reed a little. It seems that the combination of the 1.5 mm reed and a new instrument makes it much easier to play.

The page on Ali Express extols the virtues of this saxophone:
  • Professional-grade alto saxophone in Eb The 1100SG alto saxophone is crafted in Eb-flat tuning, ideal for musicians seeking authentic jazz and classical tones with precise pitch accuracy and rich resonance.
  • Nickel silver plated brass body featuring a durable nickel silver plated brass body, this saxophone delivers excellent sound projection and long-lasting performance, combining strength with superior tonal quality.
  • Gold key finish for elegant appearance The gold key design enhances both visual appeal and durability, offering a premium look that stands out on stage or in practice sessions.
  • Bakelite mouthpiece for comfortable play equipped with a bakelite head material, this saxophone ensures a smooth, responsive feel and consistent airflow for improved control and comfort during extended playing.
  • Includes protective case for safe transport. Comes with a cloth or leather case, providing reliable protection during travel and storage, keeping your instrument safe from damage.

What the above does not say is that there are extra keys on the saxophone. For example, there is definitely an extra "high F#" key and there may be more. I don't understand why there is an F# key but not D and E keys - or maybe there are. With my loaner sax, I had trouble playing a high C - it would often come out flat. On the Moretti, it comes out perfectly in tune.

But all that glitters is not gold: at my saxophone lesson, the teacher discovered that the octave key doesn't work. This means calling the music shop and either asking for a repair or a replacement.

My teacher is concerned, naturally, with technique whereas I am more interested in playing melodies. The exercises that he wants to play are probably worthwhile but to me that sound more like random sets of notes - although most of the time the notes are stepwise, e.g. A - G - A - F and so on. What did I learn in the last lesson:

  • It seems as if the teacher wants me to play each note with a separate breath (and so with a separate attack) whereas I tend to play phrases with one breath.
  • Apart from having the teeth of the upper jaw pressed tight against the mouthpiece, the lower lip should be pressed tight as well against the bottom of the mouthpiece, something that I wasn't doing. Loose pressure causes notes to sound flat.
  • The six playing fingers (three on the left hand, three on the right hand) should be always on their corresponding keys, even when those notes aren't being played. This is very much the opposite of guitar playing. I suggested attaching the fingers with rubber bands to the keys.
  • The fingers should be on the middle on each key, not towards the beginning and not overshooting.
  • Apply only light pressure on a pressed down key, again the opposite of guitar playing.

Internal links
[1] 2154



This day in blog history:

Blog #Date TitleTags
5715/10/2006Algorithms, part 2Programming
20815/10/2009Another day not wastedProgramming, Delphi, Listview, Right-to-left
41615/10/2011A new dish makes its debutCooking
89115/10/2015Intriguing emailDBA
98215/10/2016Virtual XP machine running under Windows 8Computers
153715/10/2022Peter Robinson, RIPPeter Robinson, Obituary
202015/10/2025After the return of the hostagesIsrael