more PHPain 2

When Mood Music
2012-05-22 15:26:00 pissed off FriComedy: Now Show 24 Jun 2011 – BBC Radio 4

Got MacPorts but it claims that Iggy’s Xcode installation isn’t happy:
Error:
Error: No Xcode installation was found.
Error: Please install Xcode and/or run xcode-select to specify its location.
Error:

Now downloading Xcode from Mac App Store – and have discovered the craptastic Launchpad, another loathsome, pointless idea-port from iOS.

more PHPain 1

When Mood Music
2012-05-22 14:53:00 pissed off FriComedy: Now Show 24 Jun 2011 – BBC Radio 4

Just tried the ‘using bundled PHP’ route on Iggy, my MacPro. Normally I’d be scared of fiddling under Iggy’s bonnet-lid but right now I’m too pissed off to care.

Still no joy – about to try MacPorts on Iggy because it’s far too slow on the TiBook.

PHPain

When Mood Music
2012-05-22 13:06:00 annoyed FriComedy: Now Show 10 Jun 2011 – BBC Radio 4

So I’m trying to work my way through a teach-yourself PHP book. Macs apparently have come with PHP since the beginning of OSX. However, either you need to enable the bundled PHP by modifying the Apache web-server configuration file or install it yourself.

Installation impedimenta

I’ve tried enabling PHP on two different macs by following the instructions here. This seems to work, in that the phpinfo() command works. Also, simple commands within PHP scripts that make HTML to display formatted text work. (With no apologies for using <font> tags instead of <span>!)

However, $variables and form-handling fail – it seems that values for variables aren’t getting through to the guts of PHP. To find out whether I’m simply keying incorrectly, I’ve tried using the scripts provided by the book’s author – still no joy.

So I thought I’d try freshly installing the most up-to-date version of PHP I could on the mac I’m using for this, my 1GHz TiBook running MacOSX 10·5. Instructions are here: I went for the MacPorts route. macPorts provides a way of installing standard Unix stuff onto the Unix underlying OSX.

I found the version of MacPorts appropriate to 10·5. It tells me it needs Xcode, Apple’s IDE. Usually Xcode comes with the installer for OSX but wasn’t included in my copy of 10·5. But it’s available from Apple’s website – you have to do a little digging for the appropriate version (3·1·4).

To get it, you need to be a registered Apple Developer. (Hollow laugh – while developing for iOS and MacOS is one of my eventual aims, I’m so far away right now it’s frightening.) Anyway I registered and then waited for the 1GB download to finish.

Xcode is now installing on the TiBook – it’s going to take about an hour to install. Then I need to install MacPorts and then find how to use it, then install and configure PHP and then see if form-handling works… Bah!

<rant>This all seems so un-necessary – why can’t there be a simple, standalone installer? If it needs to install other stuff (i.e. if there are dependencies), so be it – the installer can notify you and ask permission to install this stuff. It’s all open source, so where’s the problem. To comply with open source ideals (which I broadly agree with), the raw source code can simply be on the provider’s website or , thus providing the option for those who want to compile and install their own stuff or contribute to development. The rest of us just want to install and use software.</rant>

It lives!

 

When Mood Music
2012-05-18 18:27:00 jubilant Live Wire – AC/DC

Several years ago, I bought an XServe G5 because I wanted to teach myself more about servers. I gambled on buying a known-faulty machine in the belief that the purchase price plus the cost of fixing it would be less than the cost of a fully-functional one. This worked out: my total expenditure was about £300 while a known-good equivalent would have cost around £500 at the time.

repaired, then faulty again

The fault turned out to be a duff power-supply – XServalan would cut out in the middle of, or soon after, booting. After this surgery, she ran MacOS 10·5 happily – and this was very useful, especially when my MacBook Pro died and I needed to work in Adobe Creative Suite. Even though I now have Iggy, I still need a mac that can run MacOS 10·5 to run QuarkXpress 7·3 (needed for some freelance work). There are ways of flying MacOS 10·5 on an intel mac but they’re not so satisfactory, mainly due to the limited screen-size.

All was fine until last month, when the symptoms returned: XServalan wouldn’t even complete booting before shutting itself off. I’ve finally found time to replace the power supply with one from a box of XServe bits I obtained about a year ago. It’s quite a struggle to extract XServalan fully from its desk-side compartment

Let joy be unconfined: XServe has been resuscitated. His roar fills the hall.

edit

Here are screenshots of the different screen-sizes available:

Yum!

When Mood Music
2012-05-17 23:38:00 accomplished The humming of TiBook’s fan

The dish I ate most in India – and enjoy almost every time I go to a south Indian restaurant – is masala dosa. Dosa is a think crispy pancake made with rice flour and a little bit of dhal. The masala (spice) part is a mild, tangy potato curry, which is wrapped in the middle of the dosa, vaguely akin to a christmas cracker, but much tastier!

So, having found a packet of instant dosa mix, I was keen to try it. I found a recipe for the filling here and a recipe for the coconut chatni such dishes should be served with here.

My filling ended up a lot more mashed than the illustration (and my memory) show, but tasting just how I remember. The chatni tasted just right to me, even though I used desiccated coconut and hence a lot of water. The only problems were using a hand-blender without a lid – stuff ended up everywhere and not having a proper tav (a flat griddle: think of a large frying pan but without any walls). So it was difficult to pick up and flip over the dosa – they ended up in shreds. However, they were together enough to dip into the ‘filling’ and chatni, and provide a crisp and tasty counterpoint to smooth yet spicy food.

There’s plenty of chatni left over so I’m making a brown chickpea dhal tomorrow to go with it.

Spinning to an early grave

When Mood Music
2012-05-17 11:43:00 pissed off Hurt – Nine Inch Nails

Last night’s spinning session was one of the best I’ve experienced: possibly second only to my first ever session. Andy’s infectiously-grinning personality gave the key: the music was all inspiring but with easily-followable heavy beats. There’s a track he often plays which is a cut-up dance version of Another brick in the wall part 2. Usually I’d hate any interference with perfection but this cut-up just works.

Other tracks included an extended, beat-enhanced version of Coldplay’s Viva la vida. Somewhat cheesy, maybe, but again perfect for this situation.

The only flaw was the inclusion of Johnny Cash’s cover of Hurt as a wind-down track. For me, this brings back memories of some crazy painful events in India. For my hostess, it’s associated with even worse things. Even without these personal associations, the lyrics aren’t at at all relaxing.

Despite this, both of us were positively affected by the session. I was gibbering and happy, and free of pain.

What a change this morning. I woke several times during the night from ongoing pain in my arm. By 7am, it was screamingly bad: it felt as if individual lumps of muscle in my upper left arm (just below the shoulder) were performing scallop-shaped spasms. Topical pain-killing cream provided little relief, and physiotherapist-supplied exercises (which usually help) were nigh impossible. This is a week on from a steroid injection which was supposed to unwind the inflamed rotator cuff.

The only relief was to get up and attempt to get mentally active. Resting my arm on my desk as I type helps, as does copious amounts of tea. I hate this and am scared it will interfere with future employment – if I’m mentally incapacitated by pain and tiredness what use will I be?

Diabollox Serenwankity

When Mood Music
2012-05-15 22:58:00 bitchy (Intro) – Sigur Rós

So it’s back to Argyle-speak for this one. A couple of weeks ago the pain (especially overnight) in my arm became so bad, despite regular exercises as recommended by the physiotherapist, that I opted for a steroid injection.

I was told that steroids can raise blood sugars so I should monitor more closely than normal. So the next day my meter died. The next day was a Saturday. The maker’s helpline only operates during office hours on weekdays. So, as requested, I left a voicemail with my name, address, phone number and meter serial number.

By about 11am yesterday, my call had not been returned. So I called the maker (Abbott Diabetes Care) and was put through a script by their advisor. Today I took delivery of a shiny new meter, spare battery and box of test strips.

I also received their software and USB cable for downloading readings from the meter into the software. (So far I’ve used an Excel spreadsheet.)The software is for PC only. It works fine on the VirtualBox XP incarnation running on my mac. However the cable doesn’t, so the advantages of the software are lost to me: if I must enter data manually, I’m better continuing to use a simple system I’m used to.

Scorecard: all scores out of 10

Item Score comments
Helpline availability 5 Some marks for having a helpline at all
Speed of response once contact was made 10 Excellent
Cost of response 10 Replacement meters and batteries were free
Software usability 3 It works only on Windows (XP, Vista, 7) but these can be emulated on other platforms.
Hardware usability 0 It doesn’t work on an emulated XP setup while all other USB stuff I’ve tried does.

For those of you who don’t know Argyle-speak, the title of this blog article translates to ‘Diabetes serendipity of an unpleasant nature’.

Splat them peds

When Mood Music
2012-05-10 12:56:00 busy The Trooper – Carmageddon

One of the reasons I maintain an OS9 mac with an optical drive is to play Carmageddon 2: it allows me to drive and be violent when I prefer to avoid both of these in real life.

I’m very pleased to see the Beeb reporting that the original studio is working on a new version – and that a mac version will be forthcoming (admittedly after the PC version). I’m so pleased that I’ve pledged a contribution to the studio’s Kickstarter appeal. If you want to get into the game that predated and probably inspired Grand Theft Auto, I’d urge you to do so too.

watching the drips fall from my helmet

When Mood Music
2012-05-07 18:21:00 satisfied the whirring of TiBook’s fan

The weather took a turn for the worse overnight. However, I wanted to take what might be my last opportunity to stay in Corrie and attempt the String from east to west without stopping. So while my hostess set off in the car to go shopping in Brodick, I girded my my loins and mounted Lev.

I was quite damp by the time I got to the junction of the String and the around-Arran road (A841). Thanks to the nature of this junction, I had to start the ascent from stopped – this forced me to use the easiest range of Lev’s gears to get up the first slope. However, I didn’t need them for long and got back to the hardest range long before the right-hand bend that presages the exposed and hardest part of the climb.

Thank goodness lev had these ranges – I needed them in the exposed part. From the bottom, it appears to be a gentle slope. It isn’t: I needed to swear a lot at my legs to keep them pedaling. Just before the top, the gradient increases then the road takes a left turn into another gradient-increase. This was where I most feared I’d put my feet down. However, more swearing and the knowledge that I was so near to the top I could taste it prevented this.

The roll down the other side only takes you a couple of miles – and the surface is very worn in places: there’s another 6 miles of varying undulations and surfaces (from potholes to smooth tarmac) to get to Blackwaterfoot. I met my hostess there: she’d been shopping back at the Old Byre in Machrie.

We then both started traveling back east to Brodick. The wind and Lev’s ongoing friction problems were against me so this time I didn’t make it up the String’s ‘easy’ side without using all of Lev’s gears. By the time I met my hostess at Eilean Mor again, my hands were wet, my pinnae were complaining and my toes were cold. (The uppers of my cycle-shoes have thin mesh to let the sweat out – and the rain and cold in! Without the SealSkins socks, my feet would have suffered a lot more.) We thawed out over lunch before heading back to Corrie.

The weather was still foul and my gloves were still wet, so I stopped at Arran Active and bought some winter cycling gloves. (These have lots of padding on the palms, silicone-covered finger-tips so that they won’t slip off wet brake handles and nose-wiper areas on the thumbs. They’ll be a bit clumsy but will feel far better than freezing wet fingers.) I also bought an insulated windproof skull-cap to keep my ears warm and some lightweight fleece gloves so that I could keep my hands dry and warm but still usable at the end of a damp cycle.

Just as I left Arran Active, I received a text from my hostess: she was was setting out from the house in Corrie to jog to Sannox and back. So I pushed my legs as hard as I could and caught up with her just as she had turned round to come back to Corrie. This was the worst leg of today’s travels: into a biting wind with rain stinging into our faces. I’m amazed anyone could keep above a walk into that weather.

Here’s some times:

Foot of String, heading west 10:17
Top of String 10:46
Blackwaterfoot golf clubhouse 11:22
Depart Blackwaterfoot 12:14
Top of String 12:55
Arrive Eilean Mor, Brodick 13:21

I didn’t record times for Brodick to Sannox and Sannox to Corrie. Here’s the cyclemeter app map of coming back over the String.

I’m now back in Corrie: the only clothing I’ve not changed are my shorts (it was too cold to consider removing them) and the skull-cap. Oi veh! I’m having slightly nervous second thoughts about cycling from Glasgow to Edinburgh tomorrow. Ah well, that which doesn’t kill you makes you stronger – but that which kills you kills you!