Chris Worfolk's Blog


Install dev packages with Composer

April 2nd, 2012 | Programming, Tech

Sometimes, you might install your dependencies via composer but find that the tests don’t work for it. You could get an error similar to the following.

phpunit
PHP Fatal error:  Class 'Symfony\Component\Yaml\Yaml' not found in
/home/example/Gherkin/src/Behat/Gherkin/Keywords/CucumberKeywords.php on line 31

This could be because if you have just run composer install, it will only install the main packages, but some packages could be specified as dev only. You may find a “require-dev” section in the composer.json file.

If you do, you can install the packages using the following flag.

composer install --dev

This will install the development packages as well, which should allow you to run the tests.

Compiling APD on PHP 5.3

April 2nd, 2012 | Programming, Tech

If you try and compile APD on PHP 5.3, you may get an error similar to the following.

error: 'struct _zend_compiler_globals' has no member named 'extended_info'make: *** [php_apd.lo] Error 1

This can be solved by modifying a few of the APD files. To do this, you need to download the APD archive file and uncompress it.

Then make the changes as detailed on the PHP bug tracker. Once this is done, it should install as normal.

phpize
./configure
make
sudo make install

APD should now be installed.

So, I’m basically like Malcolm Reynolds now

April 1st, 2012 | Life

You know, except for the fact that I don’t have a dubiously serviceable spaceship named Serenity (I don’t have a perfectly serviceable one for that matter either). Nor do I have a crew, rugged good looks or such a free-spirited approach to whether to follow the law or not.

Mal

Look at him there, what a man.

Pioneers, out there, working for themselves. Well, that is what I will be doing. I recently handed in my notice at Buzz Sports. It has been an amazing three years, but the time has come to move on and establish my own technical consultancy, which will be opening its doors in April.

So if you need help with your software project, get in touch. With expert knowledge of scalable web application architecture and a reassuringly expensive price tag, you’re in safe hands.

The Sun is back

March 31st, 2012 | Life

Hey, anyone else remember the Sun? You know, the big glowing thing in the sky.

It’s back and we’ve been cashing in. I spent Saturday with Norm, George, Oli and Raby on Millenium Square, soaking in the rays (and in everyone else’s case, soaking in equal amounts of beer). That has been followed up with a lunch in The Box’s beer garden and two lunches in The Oak’s beer garden this week. It’s a hard life.

Leeds PHP User Group

March 30th, 2012 | Life, Tech

Last week, I finally made it down to the Leeds PHP User Group.

The meeting consisted of a talk by Lorna Mitchell on Git, Github and Open Source. It didn’t tell me anything that I didn’t already know, but it was interesting none the less. They also provide free food at their meetings, so I then regretted eating before I went 😀 .

By a perhaps unfortunate coincidence, the next day one of my friends sent me a contact they recommend I speak to about my career. The name rang a bell – turns out the recruitment agency had in fact been sponsoring the event and she was there – if only I had known 24 hours earlier I could have introduced myself in person! Still, there is always next month.

Dr Neil Cooper – Arms Regulation

March 29th, 2012 | Foundation, Humanism

This month’s meeting of Leeds Skeptics in the Pub welcomed Dr Neil Cooper from the University of Bradford’s Peace Studies department to talk about arms regulation.

It certainly captured the interest of the audience as the talk itself was followed by one of the longest question and answer sessions we have ever had at Leeds Skeptics!

March 2012 Wendy House

March 28th, 2012 | Friends, Life

This month’s Wendy House saw Will lose his Wendy House virginity and Hugh make a return after what he claimed was an eight-year absence. That would mean that we was 16 last time he went, though if he settled into looking adult as easily as he has the bumbling old professor role in equal speed, it is in fact a perfectly plausible story.

A far bolder claim, but one I can assure you is true, is that Elettra given took to the dance floor and strutted her stuff! Add that to other things that happened and you actually have quite a strange, but very much enjoyable, night.

U never know what’s around the corner

March 27th, 2012 | Distractions

Upon checking my emails recently I found an email with the following content in. It was not addressed to me, nor did the email it was sent from match that of the email in the body. But nobody would lie on the internet, right?

Good evening, master

I want to be your servant which is ready to make all your dreams come true. My name is Marya. I am 25, young, pretty beautiful and I like sexual experiments like BDSM, roleplaying and other. I am sure that sex is about freedom and not only about missionary pose, right?

I am searching for a man who is ready to satisfy me fully, u know what I mean, right?) If you ready to break any boundaries and ready to experience the most ardent desire and best sex in ur life then do not hesitate and write an answer as soon as you can! I am already waiting!

Please kindly send your respond to maryaredrose@ymail.com.

Can’t wait to hear from you!

P.S.: To accelerate you I’ve attached some ero pics of me…

Yours, Marya

She had also attached a picture of herself, and it turns out she was quite attractive.

So I emailed her back.

Hi,

You’re gorgeous. Where are you? How did you get my details?

Chris

She hasn’t responded. It’s almost as if it is some kind of scam…

Persistent sudo

March 27th, 2012 | Life, Tech

Sometimes, you have a number of tasks to complete as an administrator and having to put sudo in front of every command just becomes annoying. Luckily, you can change into persistent sudo mode.

sudo -i

This will then prompt you for your password and once successfully entered, you will be transfered to the root user.

It is much like doing su, except that you are prompted for your own password, rather than the root account’s password.

Leeds – Second biggest city in the UK

March 26th, 2012 | Distractions, Religion & Politics

One topic that often comes up in discussions is regarding how big Leeds is. So I thought I would clarify the situation, by pointing out that we are in fact the second biggest city in the UK.

Leeds now has a population of 810,200. That isn’t the West Yorkshire Urban Area which includes all the surrounding towns, of which the population is 1,499,465. So we’re not talking about Greater Leeds if you will, just Leeds.

Compare this to Glasgow, which has a population of 629,501, or Manchester, which has a population of 394,269. Of course, Greater Manchester has over two million people, but as we’ve already discussed, we’re not including surrounding towns.

Only one city can out-match us for population – and that is Birmingham, with a population of 970,892.

What of that London place you say? Why the City of London is only a square mile, and has a population of 11,700.