Fun with WP.me and Twitter Cards

I was trying to figure out why my Twitter Cards weren’t working when I was tinkering with someone else’s WordPress install.

Turns out at some point Twitter decided to follow the WP.me redirect and grab the page behind is differently.

So, now you need to whitelist your domain rather than WP.me.

To do that pop along to The Card Validator with one of your none WP.me Blog Post URL’s in hand and pop it in the validator box.

twitter_card_validation

Click request approval, fill in the little form and wack submit! It might throw an error but retest your page and all should be good!

pending

Give it a few minutes:

waiting

And Finally:

finally

A working Tweet!

Updated like so:

Barry_Carlyon_on_Twitter___Fun_with_WP_me_and_Twitter_Cards_http___t_co_WYcrgwtMgG_

A Week of Commuting

So today ends my first week of my Manchester based job at Fred Aldous. Currently this means I’ve been commuting to and from Manchester every day.

Currently my journey goes

  • My House
  • Burley Park
  • Leeds train station
  • Manchester Piccadilly
  • Starbucks
  • Short walk

And of course the reverse!

So far it’s been difficult to get a seat but I don’t mind standing since it is some form of exercise 😛

Anyway, what really annoys me is when a train arrives at a station and people gravitate towards the doors.

They do it in such a way so that it makes it difficult for people to get off. Which aside from being a pain in the arse do them, the moment there is a gap people start piling on, and of course at peak times there is always a person or two stuck in the aisle trying to get off whilst people are piling on the train.

Inevitably this causes delays as the piling on lot have to stop and clear a route for those getting off to get off.

/Begin Rant/
Why can’t people just take a step or to back and not be in such a rush! If you let people get off and just give everyone some space. I’m sure it will be better for everyone involved and potentially help keep the trains on time at these peak times!
/End Rant/

Anyway my first week hasn’t been to bad. But more on my new job in another post. Currently standing on a train! Trying to publish this blog post in the little windows of coverage I get! And we appear to be following a slow moving train!

Prison Architect

From the minds that bought you Uplink and Darwinia comes a currently in Alpha, kind of being Kickstarted game: Prison Architect.

When I first came across it I had left it open in a tab or some time and I finally got around to watching the introductory video. And from that point on I decided to back the project!

Intro Video

Here’s the introductory video. It is quite hilarious in places, and it got me hooked!


Or Jump to YouTube

PRISONERS WITH DRILLS FOR NO REASON!!

They are running a Kickstarter style campaign to allow people to back the game but they have built the backing process to run on their own site. And using a third party provider to secure downloads. Which is quite clever as it give them full branding control. But does mean they miss out of the relevant sites promotional routes, but like them it still relying on backers to help promote the game.

The Game

The aim of the game is to design, build, and run a prison, using gaming themes and ideas from such games as Theme Hospital and others.

It’s currently reached its alpha 7 release and improvement on alpha 6. Largely adding in the Name in the Game backers, and the crimes they have committed (biographies), heres mine.

Barry Barry Barry

It’s quite a good laugh. I’ve had plenty of Prisoners escape, Guards die, and Workers building but not managed to start a big enough riot to burn it down (yet), but if it did happen, you can call the Fire Brigade in and direct them to put the fire out. In the future they are adding more “disasters” and relevant services to deal with them, bit like Sim City I suppose.

Backing

They have several levels of backing available and even if you do go for the lowest level where you just get access to the game, you can always upgrade later via a PayPal donation. And due to recent milestones being reached you can get a “discount” on the name in the game level.

I myself am on the picture in the game level. Which gets your name in the game and your Prisoner designed to match your likeness. (And of course all the previous tiers including copies of existing Introversion Software games, and some nice physical bonuses!

Where

Check the game out over on Prison-Architect.com and on Twitter @IVSoftware! I think it’s worth backing even at just the $30 level to get a copy of the game!

Annual Report

2012inblogging-2

It’s that time of year again where WordPress posts out the Annual JetPack Stats Annual Report, and here’s my report!

Shame it only tracks Posts and not Pages, since there have been a fair few comments and views on the WordPress Plugins category of pages!

Writing PHP Code to Standard

So with the release of AWS SDK Version 2, I’ve been inspired a little to write better PHP Code, at least in stuff I have on my GitHub. The new SDK is written to match the PHP Framework Interop Group PSR-0, PSR-1 and PSR-2, as well as Composer/Packagist Support.

I been working a on project to make starting a new project easier, (create a repo, setup the deployments, Apache VHost etc). Primarily working off of the ATech Media Suite of products.

Starting from a base of peterjaap’s Codebase PHP Wrapper, where I was just adding missing API endpoints to the class, at which point the new AWS SDK was released and inspiration of a sort struck.

I started a new project from scratch, to implement all the API’s that Atech runs, it’s very much in progress, I’ve currently got full support for DeployHQ and PointHQ end points, (as well as having gotten a few obvious missing end points added to the API).

I’m clunking my way thru the CodeBase API, it’s taking some time as its got a truck load more end points, that DeployHQ and PointHQ put together. It has Projects, which have repos, which have tickets, just to scratch the surface.

At the moment it’s largely functional, it’s just missing some extras, the Time Tracking, File Uploads, and so on.
It’s very much a learning experience in an attempt to follow the coding standards as well as laying the code out properly.

At the moment the CodeBase class itself is pretty large, and I’m pondering about splitting it out to sub classes. Classes to represent Projects and Repos and Tickets and so on, but its the first thing I’ve tried to build in such a way, so much consideration is needed, to hopefully get it right. I keep looking at other Project like the AWS SDK and GoCardless’ PHP Class.

The only thing thats really missing, is Unit Testing, which I still need to sit down and learn properly, but I’m still trying to find a suitable entry point to teach myself, and of late been expanding my knowledge using Code Academy, more on that in another post!

So thats a short update on PHP Development in general, you can checkout the ATech API Class so far on GitHub. Feedback always welcome!

(I’m trying to write more on my blog, as well as more PHP in general, hence a in progress post instead of a “It’s completely finished give it a whirl” post)