Swimming, 25th July 2019

Hit the pool with my daughter today and I have to say neither of us particularly enjoyed it. I really struggled and was far hotter than I would normally be whilst swimming. When I left one of the life guards told me that the water temperature was 31.5C, so perhaps that shouldn’t be surprising.

Hopefully it will be better tomorrow, given that the outside temperature should be somewhat lower than today if the forecast is correct.

USRPT distance this year: 165,800m
Total distance this year: 190,500m

Posted in Swimming | Tagged | Leave a comment

The joy of libgphoto2

Whilst I was on holiday I took a bit of a leap into the unknown and decided I’d try to implement support for DSLRs in the camera library I’ve written for oacapture and related applications, the intent being to use libgphoto2 to control the cameras (and libraw to manipulate the images).

libgphoto2 looks like a very impressive piece of software, supporting a huge number of DSLRs, but the documentation is, well, shall we say “somewhat lacking in depth”? There are a few sample programs that aren’t entirely convincing, and some function-level documentation generated by doxygen that doesn’t really tell you everything you need to know.

I’ve yet to work out what’s going on with the non-PTP2 cameras so I’ve decided to ignore those for the moment and just concentrate on the ones that do support PTP2. At this point I have my code recognising that my Canon 450D is connected and reading its model name to return to the caller. That’s about as far as I’ve got.

Much of the camera interface appears to centre around the concept of “widgets”. If you’re writing a GUI application (as I am) this may be a little confusing given that “widget” is also a term used for an object that appears a in GUI, but in this case the widgets appear to be nodes in a tree of information that describes the camera and its features, arranged in a similar way to a filesystem, in that each node has a “name” that is formed by concatenating the names of all the widgets from the “root” node with the components being separated by the slash (“/”) character. So /main/imgsettings/iso, for example. The leaf nodes represent actual information about the camera and contain data such as whether the data is read only, what type of information it is and what values it can take (if appropriate).

And this is where the fun starts… There doesn’t appear to be any meaningful documentation of what those “name” values can be, nor what they mean in terms of operating the camera. Some, such as /main/imgsettings/iso might be reasonably obvious, but others aren’t so obvious. For example, how does /main/imgsettings/autoiso differ from /main/imgsettings/isoauto, especially if both exist for the same camera?

I have discovered that leaf nodes also have a “label”. The label value appears to be a bit more camera-dependent, but may sometimes help with determining what any given leaf node refers to because it turns out that supported PTP2 cameras have a text file that describes their functions (in camlibs/ptp2/cameras in the source for the library though I’ve no idea if those are pulled into the installed binaries. In these files it appears to be the label that is used to configure what actually happens in terms of the PTP2 protocol, so searching the file for a given camera for the name of a leaf node and then for the associated label may help to work out what it actually does.

There doesn’t appear to be any definitive documentation on all possible values for the “name” fields and it may be that different names actually do the same thing (I can’t be sure at the moment), so writing code that handles all possible options doesn’t appear possible. At the moment I have created a list of 156 different names that are used in the configuration files mentioned above. Perhaps the next step is to pair those with labels and see what makes sense to code up in a first pass.

I’ll post on further progress when I make it.

Posted in Astronomy, Computing | Tagged , | Leave a comment

Swimming, 23rd July 2019

Another day with the pool rather too warm, but I think I did better than yesterday apart from the last few reps when someone decided they’d share the lane I was using and swim very slowly. It’s not particularly enjoyable when the water is too warm and I was very hot when I got out. I’m sure that really doesn’t help.

USRPT distance this year: 165,800m
Total distance this year: 188,700m

Posted in Swimming | Tagged | Leave a comment

Swimming, 22nd July 2019

Back to my usual pool today, to find it anything but usual. The water temperature was apparently 31C, which is a bit much for swimming hard. Given the enforced break from my usual sets I’ve decided to take this week just to get back into the swing of things and try to keep the pace below 49s, but not get too distressed if I can’t. I’ll restart proper USPRT swims next week.

USRPT distance this year: 165,800m
Total distance this year: 186,900m

Posted in Swimming | Tagged | Leave a comment

Swimming, 8th to 19th July 2019

Holiday time! And whilst I have access to a 30m pool, it’s busy, doesn’t always have lane ropes and observance of lane etiquette is poor. Oh, and there are no lane lines on the bottom of the pool, just a short black line 2m from each end. And no pace clock either.

Proper USRPT training therefore went out the window, and the lack of lane discipline meant that tumble turns were dangerous, so I decided I’d make the best of a bad job and swim a set as follows:

  • 4 x 90m front crawl warm-up
  • 24 x 30m front crawl at some notional 100m pace
  • 3 x 60m front crawl swim-down

I did the same set each day as an attempt at changing the pace of my usual training. Between the 30m reps I paused for ten breaths before starting the next rep, though often that got messed up if I needed to leave before a slower swimmer got in the way or it was obvious that I was going to catch someone up before they finished the length they were on. Not ideal, but probably the best I could do and it did at least mean that I was swimming. On a few days I did a few more reps because I lost count.

USRPT distance this year: 165,800m
Total distance this year: 185,100m

Posted in Swimming | Tagged | Leave a comment

Swimming, 4th July 2019

Arrived at the pool today to claims from the lifeguards that it was 40C on poolside. I can believe it, too. Walking out of the changing rooms felt like running into a wall of hot air. The water was far more pleasant (and for ten to fifteen minutes I even had it to myself).

I can’t claim the set was easy today, but it didn’t feel quite as punishing as it has been. I’ve been experimenting a little with my body position and I’m finding that if I swim in a position where my head feels just a little deeper in the water then my legs seem to lift slightly and I think I’m probably more streamlined. Whether that’s the reason or not, it does seem to make reps in the 47s easier to achieve, whereas I tend to drop back to 48s otherwise.

Anyhow, whole set completed again, no fails, very happy. My only concern was whether the older lady who decided to swim next to me and wander all over the width of the lane was going to be in the wrong place when I launched off the wall on the turn.

USRPT distance this year: 165,800m
Total distance this year: 169,950m

Posted in Swimming | Tagged , | Leave a comment

Swimming, 2nd July 2019

A much better day today. Hard to believe it was only 24 hours after such a poor performance yesterday. I’d not claim it was easy — I was definitely having to push hard from about sixteen reps in, but I made every one. Very pleased.

USRPT distance this year: 164,000m
Total distance this year: 168,150m

Posted in Swimming | Tagged , | Leave a comment

DHL lying this time

It feels as though courier companies are now in the business of removing parcels from the sender’s location after which point no-one (other than the recipient) really cares what happens to the delivery.

I had a DHL delivery scheduled “before the end of today”. By 11:57am it had been logged as “Delivery attempted; recipient not home”. This despite the fact that between the time it was logged as being with the delivery courier and when I was found to be “not home” there were no fewer than two and as many as five people at the property, including the builder who is working outside at the front of the house, and because there was a lot of going in and out the front door was actually open all day.

I reckon courier companies actually over-commit on what they can deliver each day and if they get behind schedule they just abandon some deliveries, marking them as “recipient not home”. In fact I’d further suggest that this may well be corporate policy given that it seems to happen on a regular basis. But then I guess that’s what you get when they make it a scramble to the bottom of the barrel to see who can deliver most cheaply regardless of the consequences. Collecting parcels from businesses who want to send them is usually easy, and if you don’t then you don’t get paid. Delivering them to the recipient is more tricky, so if it looks like it might become unprofitable, well, that’s the recipient’s loss…

Posted in Random | Leave a comment

Swimming, 1st July 2019

Well, an utter disaster today!

For a number of reasons, I think. My head wasn’t really in the right place today for a start. Too many other things going on and I wasn’t properly focused as a result. Also a work call dragged on over lunchtime meaning I was absolutely starving by the time I got to eat and probably didn’t have enough time after I did eat to allow my body to restore its reserves of energy.

As a result I felt as though I was constantly swimming tired and whilst I could still make the times, it was a real struggle to do so repeatedly 🙁

Hopefully tomorrow will be better…

USRPT distance this year: 162,200m
Total distance this year: 166,350m

Posted in Swimming | Tagged , | Leave a comment

Swimming, 28th June 2019

I felt a little better than yesterday when I hit the pool today and it showed in my swimming. The same set, but this time no fighting and whilst it was hard, I didn’t feel at any point that I couldn’t complete the full set. Bodes well for next week, I hope.

Just shy of 165km for the first half of the year. I wonder what the second half holds…

USRPT distance this year: 160,450m
Total distance this year: 164,800m

Posted in Swimming | Tagged , | Leave a comment