Adding AJAX to your WordPress Plugins

This weekend I’m giving a talk at WordCamp Victoria about using AJAX in WordPress. The talk uses a couple of code snippets to demonstrate creating a simple plugin that passes some data from the client to the server and then updates the web page using data sent back from the server. Here’s the code for […]

WordCamp Vancouver 2012 – What Did I Learn?

Another great event & I learnt lots of great stuff.

Probably the most interesting talk of the day, for me, was Zack Tollman’s talk about cache invalidation schemes. Yeah… hard-core, that’s me 🙂

The talk was, obviously enough, very technical and right up my alley. I already knew there was a caching mechanism built into […]

Adding an Admin User to Your WordPress Database

Ever locked yourself out of your WordPress installation? No, of course not – you always keep a secure copy of your passwords. But I had a situation last week where I needed to perform admin actions on a copy of a client’s site and only had non-administrative access.

I’d recommend strongly against hacking yourself an […]

Using The WordPress Settings API

So I’ve been writing WordPress plugins & widgets for people recently and having to produce administration pages in the dashboard. Using the WP Settings API makes this SO amazingly easy… you barely have to write any code or HTML at all.

Basically it comes down to just this…

[…]

Glitch and the LED Sneakers: Epilogue

What now?

Well, it was a one-off… a little bit of fun for the Glitch Launch Party and an excuse for me to explore the Arduino platform. However I just noticed today that the in-game shoes have a couple more tricks up their sleeves (do shoes have sleeves?). When you’re away from the keyboard in […]

Glitch and the LED Sneakers – In Action!

So it’s all put together… but what do they look like? Show us!

OK, OK… your patience is finally rewarded, here’s a video of what they look like in action:

[…]

Glitch and the LED Sneakers – Putting It All Together

At this point I’ve got a jumble of wires, crocodile clips and circuit boards spread across half my desk. Nothing too shoe-related going on yet and definitely not portable.

To bring this to life, I needed two basic set of things:

something in which to mount the Lilypad, power board and batteries. My original idea […]

Glitch and the LED Sneakers – Final Code

I had a couple of sets of changes I needed to make to my test code.

Firstly I needed the ability to change the effects mode using the button. I originally added this by testing to see if the button was down, incrementing a global variable that I used for the mode, a switch statement […]

Glitch and the LED Sneakers – First Test

At this point I broke out the croc clips and the LEDs and started experimenting. Whenever you click ‘Upload’ in the Arduino IDE it compiles your current code, transfers it to your Lilypad, reboots the Lilypad and starts the code running – so the feedback loop for trying out ideas & seeing what works is […]

Glitch and the LED Sneakers – Hello World

So now it’s time to plug things together and start programming.

The Arduino development environment is super simple to work with. The tools are written in Java so they’re cross-platform. If you’re running Ubuntu then installation is simply a matter of visiting the Software Centre, typing in ‘Arduino’ and clicking the install button for the […]