Finally watched Coco yesterday. Tears may have been shed by wife and husband both.

The filesystem is lying to me, and I can’t fix it. A tale of woe and incompetence.

My problem is that the tag utility I use to write metadata tags to my files in my scripts will report that the operation has been completed but on my external APFS spinning platter drive (yes I know not my brightest idea ever) if I immediately afterwards do a query it won’t always be the case. I assume from experience with file systems on Linux that this is due to design decisions in APFS which mean anything you really want to make sure is on disk now needs to be manually synced.

Investigating the sadly dormant codebase for the tagging tool, the saving operation seems to be handled by this function.…

So how do you tell NSURL setResourceValue that it needs to apply the hammer?

Since according to the documentation is returns yes when things are written to disk then it should already do that but evidence indicates that this is not the case.…

There also doesn’t seem to be a flag on NSURL to mark the object as critical and needing an fsync performed.

I suppose I could try something truly hideous like looping over the above operation a few times to ensure that the message got through.

What I ended up doing was inserting sleep 5 after every interaction with the tagging tool in my scripts to ensure that some time had passed to allow things to have settled on disk.

This makes me feel incompetent and thus remains my tale of woe.

All I wanted to know was is it was possible to do tell what turned out to be NSURL setResourceValue to do the equivalent of an fsync() to ensure data was written to disk immediately.

To its credit the Apple documentation is quite ok but still no real answer.

I like to think that while my own programming abilities only extend to writing marginally worthwhile shell scripts I can read code quite well… today I had to read some ObjC code and my world view was shattered.

Objective C is like a different solar system.

It really shouldn’t be this hard to be able to derive a Plex item ID from the path to a file.

One literally it seems has to parse the database, there isn’t a way to do it in one delightful command line invocation.

The other way around sure, Plex Media Scanner does the trick.

I acquired some devilishly hot nameless peppers from my neighbor.

Only one thing to do, fermented hot sauce with undertones of mint and basil.

Numbs the lips with heat in just the right way.

Lots of tics today and the second night with practically no sleep.

Barely left the sofa at all, frankly the only thing that cheers me up is yesterday’s progress on my automation project.

In doubt if my flavored faux naan bread would work so I made a backup Tomato and Red Ale loaf.

I just rediscovered the old truth that the file system lies to you. So.. alcohol. Alcohol never lies to me. It’s delicious and it doesn’t cause me to have to redesign a shit ton of my scripts.

My wish was granted and, @louisdhauwe, all round amazing person, author of Pixure, PanelKit, OpenTerm, and many other awesome things which shatter every limit you thought your iPad had, has joined

People who write command line tools which return 0 even when experiencing error conditions are horrible. Whenever I have to deal with such an application I am struck by the desire to continually rub hot sauce in my eyes as a preferable alternative.

My dog is an annoying little shit. She had to spend the night at our place because her nighttime family are traveling for the funeral. She therefore decided to wake us up multiple time during the night to pee and look for her missing people.

What a morning, my wife’s maternal grandmother (and last remaining grandparent) died at 3.33 after a short period of illness.

I’d really like a HomePod, we used to listen to a lot of music but after my surround setup died having to have the TV on has seriously hampered that.

And one of my favorite people of all time, @donmelton, is now on

Welcome Don

Finally got around to watching Dave Letterman’s new interview show on @Netflix. Delightful, minimalistic and full of heart. I can’t wait for future editions.

My parents returned to Denmark yesterday after a 3 week visit, the sadness of saying goodbye and not knowing when I will see them again required a distraction so I baked 5 grain bread with lime and orange zest.

While I feel no happier, the kitchen at least smells delightfully.

My dog seems to think that washing our hands is bad because it indicates that she is dirty (which she is) and therefore needs a bath (which she does).

Therefore in her mind washing hands is the gateway to dachshund cleanliness which in turn is a sure sign of the apocalypse.

The world apparently mourns Ingmar Kamprad, creative tax evader. Rumors that he is to be buried in a low cost pinewood coffin of elegantly minimal Scandinavian design are as of yet unconfirmed.

Horrified to learn that our friend and her 1 year old needed to get out of their house as her partners struggle with depression led to him being violent in front of their child. Both are now safe in my home for as long as they need and he is being committed for treatment.