Chris Worfolk's Blog


It’s gone!

January 23rd, 2013 | Life

Last Friday, we went for dinner at Chaophraya.

However, to my horror, I found they had removed their Thai curry, in a Yorkshire Pudding, on a steak dish from the menu! This, of course, was the greatest food ever known to man, and as such I will be writing a strongly worded letter to the management, insisting the dish is reinstated. Anyone who wishes to sign the petition, get in touch.

MaxClients (150) is not an integer multiple

January 23rd, 2013 | Life, Tech

Starting Apache on Gentoo, you may get warnings similar to the following.

chris@server ~/lime $ sudo /etc/init.d/apache2 stop
Password: 
 * Stopping apache2 ...
WARNING: MaxClients (150) is not an integer multiple
 of ThreadsPerChild (35), lowering MaxClients to 140
 for a maximum of 4 child processes,
WARNING: MaxClients (25) must be at least as large
 as ThreadsPerChild (35). Automatically
 increasing MaxClients to 35.                                                                                    [ ok ]
chris@server ~/lime $ sudo /etc/init.d/apache2 start
 * Starting apache2 ...
WARNING: MaxClients (150) is not an integer multiple
 of ThreadsPerChild (35), lowering MaxClients to 140
 for a maximum of 4 child processes,
WARNING: MaxClients (25) must be at least as large
 as ThreadsPerChild (35). Automatically
 increasing MaxClients to 35.

You can resolve these warnings by editing your mpm file and changing ThreadsPerChild so that MaxClients becomes a multiple of it. In this case, setting it to 25 should do the trick.

sudo vim /etc/apache2/modules.d/00_mpm.conf

Change the values and save the file. Now restart Apache and it should stop the warnings.

You could also change MaxClients, but this would only resolve the first warning, and not the second.

Driving in Russia

January 22nd, 2013 | Video

Good luck in Glasgow

January 21st, 2013 | Foundation

After three and a half years of serving on the board of trustees for the Foundation, Gijsbert has stepped down.

He recently accepted a position as a Reader at the University of Glasgow, and as a consequence will be leaving Leeds next month. We would like to thank him for all the work he has done over the years and wish him the best of luck in his new position.

NFL divisional playoff round

January 20th, 2013 | Distractions

Last weekend saw the NFL divisional playoff round. It was almost certainly the best weekend of American football that there has been this season. The Baltimore Ravens caused a major upset, when, at the longest odds to win the Super Bowl, eliminated the Denver Broncos, who were the favourites at the time, from the competition.

The San Francisco 49ers beat the Green Bay Packers to proceed on to the NFC Championship match, while the Atlanta Falcons kicked a winning field goal with only 31 seconds on the clock to beat the Seattle Seahawks in a tail biting finish. Only the New England Patriots’ confident victory over the Houston Texans really failed to provide such excitement.

You can read all about the matches over on A Brit Talks Football. Tonight the championship round takes place to determine who goes to the Super Bowl – you can follow my updates on Twitter.

Christmas party

January 19th, 2013 | Life

Last week, we went out for the Worfolk Limited Christmas party. It was a very small affair – even with all the directors and employees attending, and partners, that still only left myself and Elina. Given the small number, I had decided to hold off until January to avoid large roaming gangs of noisy office employees.

We went to Anthony’s Restaurant, not just because it was located just round the corner, or because it is one of the restaurants in Leeds city centre that I’ve never eaten at but also because of the intriguing possibility of their taster menu.

This was an eight course meal where you don’t know what you’re getting – apparently because the chef just makes it up as they go along – which is brilliant. We ate our way through four starters, two mains and two desserts, along with a home made loaf of bread – each!

It was rather quiet in there – indeed, we had the place to ourselves for the first hour, before two other couples turned up, and that was their entire business for the night. That is simply a cost issue though – it certainly wasn’t because of the food, which did not disappoint.

I have little idea of what I ate in most of the courses, despite an explanation from our waitress. But it was all delicious, if a little rich – by the sixth course, I was starting to think I was on sauce overload. At 10pm, we waddled out of the restaurant, stuffed. My kind of Christmas party.

Imagick not loading on MAMP for Mac

January 17th, 2013 | Life, Tech

If you’re running MAMP and you’ve finally managed to get the Imagick extension to add ImageMagick support compiled, the battle may not be over yet. There are more things you need to do. You might get an error similar to the following.

Firstly, imagick.so was probably installed into the sytem’s PHP extension directory. So you might need to copy this into MAMP’s directory. Don’t just copy and paste the code below as you need to check the paths are correct for your system.

php -i | grep extension_dir
cp /usr/lib/php/extensions/no-debug-non-zts-20090626/imagick.so
/Applications/MAMP/bin/php/php5.3.6/lib/php/extensions/no-debug-non-zts-20090626/

Secondly, some of the libraries are out of date. You might get an error like the following.

[01-Jun-2012 08:46:22] PHP Warning:  PHP Startup: Unable to load dynamic library 
'/Applications/MAMP/bin/php/php5.3.6/lib/php/extensions/no-debug-non-zts-20090626/imagick.so'
 - dlopen(/Applications/MAMP/bin/php/php5.3.6/lib/php/extensions/no-debug-non-zts-20090626/imagick.so, 9): Library not loaded: /opt/local/lib/libjpeg.8.dylib
  Referenced from: /Applications/MAMP/bin/php/php5.3.6/lib/php/extensions/no-debug-non-zts-20090626/imagick.so
  Reason: Incompatible library version: imagick.so requires version 13.0.0 or later,
but libjpeg.8.dylib provides version 12.0.0 in Unknown on line 0
[01-Jun-2012 08:51:54] PHP Warning:  PHP Startup: Unable to load dynamic library '/Applications/MAMP/bin/php/php5.3.6/lib/php/extensions/no-debug-non-zts-20090626/yaml.so' - dlopen(/Applications/MAMP/bin/php/php5.3.6/lib/php/extensions/no-debug-non-zts-20090626/yaml.so, 9):
image not found in Unknown on line 0

We can solve this by editing a configuration file.

sudo vim /Applications/MAMP/Library/bin/envvars

Comment out the first two lines below and add the last one.

#DYLD_LIBRARY_PATH="/Applications/MAMP/Library/lib:$DYLD_LIBRARY_PATH"
#export DYLD_LIBRARY_PATH
export PATH="$PATH:/opt/local/bin"

This should override out of date libraries such as libjpeg. If you’re still having problems, you can manually copy in the freetype library too.

cp /opt/local/lib/libfreetype.6.dylib /Applications/MAMP/Library/lib/

Though in theory this step should not be required. Restart Apache and you should see Imagick appear on the phpinfo() output.

Salad

January 16th, 2013 | Photos

salad

Elina strongly dislikes onions and tomatoes, so I think I was pretty safe from her stealing some of my salad.

You may or may not know less than you think

January 15th, 2013 | Humanism

Last week, Paul Hopwood delivered a talk to the Humanist Society of West Yorkshire entitled “You Know Less Than You Think”.

Though, for the sake of those being busy, he included a more accurate title that went something along the lines of “you may or may not know more, less or the same as you may or may not think you know.”

It is a really interesting talk and one that he has previously given at Leeds Skeptics, as well as round the country. So interesting in fact that I actually went away from the event and read The Invisible Gorilla – one of the books Paul recommends in the talk.

I think what it comes down to is that Paul is just a really interesting guy. We went for a couple of drinks after the talk and settled in to some fascinating conversations – it was only realising I had to be at work in eight hours that made me call it a night.

If you missed it, don’t worry, you can see the version he gave to Leeds Skeptics online via Worfolk Lectures. Or, why not see it in person – Paul will be speaking at Sheffield Skeptics on 28 January!

Bettakultcha

January 14th, 2013 | Events

Last week, we attended BettaKultcha for the first time.

It’s an idea that seems to have sprung up across the UK – the idea is that you have lots of speakers, usually at least a dozen, and they each get to speak for five minutes. They have twenty sides, and these automatically transition every 15 seconds – so you have to fit your talk around that!

This event was the first one they had held at Leeds Town Hall, and an audience of 100-150 people were probably there. Talks included competitive dominos, fashion blogging, things you can do your body in the name of art, pet psychics (mocking of) and many others. All in all, a really good night of entertainment.