WordPress PHPStorm coding standards

May 24th, 2012 by Richy B. 2 comments »

I’m a regular user of JetBrains PhpStorm coding package and recently I’ve been doing a bit of WordPress orientated work – so how can I ensure my code matches the WordPress coding standards? Well, using Rarst’s WordPress coding standards helps.

  1. Just download the file and save it as “WordPress.xml” into your Php Storm folder such as .WebIde40/config/codestyles (on Linux, this was /home/[username]/.WebIde40/config/codestyles : I did have to show hidden files in Nautilus: on Windows it’ll be something like C:\Users\[username]\.WebIde40\config\codestyles\ ). To find your configuration file easily, run the following commands:
    • Linux: cd ~/.WebIde40/config/codestyles
    • Mac OS X: cd ~/Library/Preferences/WebIde40/codestyles
    • Windows: cd c:/Users/USERNAME/.WebIde40/config/codestyles
  2. Restart PhpStorm
  3. Load your project and go to “File -> Settings”
  4. Select “Project Settings -> Code Style”
  5. Select “Scheme: WordPress” and OK
  6. Select “Code -> Reformat code…” and wait for your code to be reformatted

This won’t catch every item (such as the Yoda conditions), but it’ll at least make it a bit closer.

MBNA – PIN security, slightly lacking

March 2nd, 2012 by Richy B. 1 comment »

Due to a card fraud incident (CNP), MBNA have had to reissue my Miles and More credit cards (I have a Visa card and American Express card on the same account). They’ve also issued me with new PIN codes. However, I received one letter today that read:

“Your American Express credit card PIN is here

Please be aware:

  • The PIN for your VISA credit card has been sent to you separately
  • The PIN for your American Express and Visa credit cards will be the same.

and another letter reading:

“Your Visa credit card PIN is here

Please be aware:

  • The PIN for your American Express credit card has been sent to you separately
  • The PIN for your Visa and American credit cards will be the same.

Yep – both PINs were the same: so why did they have to send two letters (doubling the chances of interception of the letters?) giving the same details? Why not just one letter saying “Here’s your new PIN code – it’s applicable to your Visa card (ending XXXX) and your American Express card (ending YYYY) which you’ll be receiving in the next few days. The PIN is the same for both cards, and you can can the PIN on either card via most high street cash machines.”

Briggs-Rauscher Iodine Oscillator video

March 1st, 2012 by Richy B. No comments »

YouTube: Axis of Awesome Four Chord Song

December 18th, 2011 by Richy B. No comments »

I’ve found a YouTube video I’ve been hunting for for a few months now – “Four Chord song” by Axis of Awesome: basically, they don’t think they’ve had a hit record because they’ve never release a single with a song with these four chords which are used in practically every popular beat combo:

Bye Bye Mangahigh – hello Bairwell!

November 28th, 2011 by Richy B. No comments »

After just over 3 years working at Blue Duck Education Ltd as the Lead Developer/Systems Architect with Toby Rowland and other very talented people (too numerous to name here) building the Mangahigh Maths Games educational resource which we built from a brand new site to being one of the fastest growing educational games sites – I’m now leaving for pastures new.

So where am I going?

Well, my fiancĂ©e and I will be starting, on the 3rd of January, a new company called Bairwell Web Development to combine our two talents. Bairwell will be offering WordPress, Perch and LAMP (Linux, Apache, MySQL, PHP 5 : also some Varnish, PostgreSQL, Memcache, Perl and Systems administration) development consultancy services – so if you want a well designed (Katy), scalable and responsive (me) website: then please get in touch with us via our web development site (Katy is still working on it at this time of writing), Twitter or Facebook.

Fingers crossed!

gamy-dance
%d bloggers like this: