Redis on Laravel: Why naming is a pain

Screen Shot 2014-10-30 at 22.44.50It’s Thursday night, and you’re looking to start using Redis in your Laravel application. You fire up your Homestead box (more on this in another post), open your favourite IDE and put in a new route to start playing around. Just something simple to start, write then read a value, just like the example.

You save, and load up the route in your browser, only to see:

Call to undefined method Redis::connection()

That can’t be right, can it? The Redis class is built-in to Laravel, and connection() was in the example. How can it be missing? Readmore »

Clone the Classics – Space Invaders with Swift and SpriteKit

Following on the heels of Asteroids with Sprite Kit, the introduction of the Swift language made me feel like another crack at the whip. So here’s my take on Space Invaders. This time, I went for OS X as a platform, again using SpriteKit, but this time using Swift as the primary language.

SpriteKit Space Invaders

Readmore »

Test your Twitter Vocabulary

TwitterTime for another quick project! This time, I’ve put together a vocabulary tester for Twitter. Just put in your twitter handle, and get an outline of your most used and longest words.

The app is implemented under Laravel, using the Twitter APIs to pull tweets for processing. To get around potential memory and time contraints on PHP scripts (and to provide feedback on progress), I used AngularJS for aggregation and rendering of results. Bootstrap and Font Awesome provided quick styling. Readmore »

Quick Project: Asteroids with SpriteKit

After an extremely long hiatus from my Shoot ‘Em Up project, I was itching to see what was new in the world of iOS game development. Discovering the new SpriteKit API, I just had to give it a try. So I put together a quick version of Asteroids over a few weekends.


It’s missing a couple of features (no hyperspace or flying saucers), but was a great way to get to grips with the new API. Not only that but I also got an excuse to play with Git’s submodules feature, which I’m sure I’ll be using a lot more in future.

You can see the full source on GitHub, feel free to download and build a copy!

2^n: A silly 2048 extension

Last week, I got hooked on 2048 after playing the Doctor Who Edition obsessively on my lunch break.

Unnecessarily excited with the powers-of-twoness of the game, I forked the code and let you play a slightly bigger version (or two).

2^n Screenshot

Readmore »

What a Difference a Frame Makes

This afternoon, I was walking past a construction site and did a double take. Part of me could swear I’d just walked past a mirror, but hadn’t seen myself in the reflection. After a brief moment of vampire-based self doubt, I stepped back a few paces and saw this:

Readmore »

Reviving an old habit, but a good one

I admit, I expected to get a little further with my blogging goal before missing a week, let alone two. Or three. I’ve kind of lost count. Suffice to say I’ve had a hard February so far. I won’t go into details, but I’m coming out of the other side feeling better than I have in a long while, and I’m eager to crack on with some self improvement. First stop, finally joining a gym in NYC.

Readmore »

GOG – A Video Game Nostalgiagasm

GOG LogoAs any mobile video game developer from the first wave of smartphones can tell you – a small group, but a proud bunch – nostalgia sells. So if you were a PC gamer in the 90s and 2000s, might be right up your alley.

I’ll admit, I’m not a big gamer, I’ll occasionally get hooked on a story based game here and there, but I’m not the sort to spend hour after hour fragging whiny teenagers or trolling frustrated Call of Duty players. But I do get misty-eyed when I think of my childhood days playing wonderfully crafted low-res strategy or point and click games. And luckily, some part of me has managed to ignore all the frustrated hours spent trying to get DOS to actually run those games (does anyone know what an IRQ setting actually was?).

Readmore »

App Review: Level Money

Your spending allowance, and that's it.

Your spending allowance, and that’s it.

I hate budgeting. Compartmentalising my spending into arbitrary, inflexible ring-fences I can’t possibly stick to has never seemed to work, for some reason. Luckily, someone’s come up with a budgeting app that doesn’t actually require much budgeting.

Level Money is a new money management app for iOS and Android that tells you simply what you can spend each day. And that’s all. You don’t have to predict how much you’ll spend on food, you don’t get stuck deciding which bill to ignore because you needed a new winter jacket. All you need to do is to watch what you spend for the day.

It’s beautifully simple and perfect for someone like me who isn’t organized enough to do a weekly food shop. It’s the app I’ve been waiting for since I moved to Manhattan with it’s eye watering rents. In fact, I was working on something similar myself when Level was released, and I was delighted to see they got it right! Readmore »

How to Configure Laravel on MAMP

Laravel is a powerful framework to speed PHP web development, MAMP is a handy GUI to allow quick and easy testing of websites on OS X. Smash them together and you get quick and easy web development on OS X.

My work at Spotflux has recently involved a lot of PHP development to build an account management portal for our new Premium service. This had to tie in to our exiting web APIs (which I’ll admit were a little cobbled together) and be backwards compatible with our existing database. And it had to be done yesterday. Readmore »

Social Widgets powered by