Archives For November 2011

Image representing Heroku as depicted in Crunc...

Did you know you can use custom PHP extensions on Heroku? Neither did I, cos I can’t find it in the documentation. But you can:

https://gist.github.com/1288447

I came across this while searching for a way or workaround to use the MongoDB PECL extension on Heroku (don’t get me started on that…).

If you can’t be bothered checking the link, the summary is this:

  1. Create a folder in your app called ‘ext’ or similar.
  2. Copy your extension into this folder.
  3. Create a php.ini file with the following contents:
    extension_dir = "/app/www/ext/"
    extension=mongo.so
    
  4. Deploy
About these ads

Parents Evening

Chris McLeod —  Nov 29 2011 — 2 Comments

My biggest fear about this whole separation/divorce thing is that it screws up the kids, particularly my eldest. The other two are too young to understand what’s gong on, or to even know any different. The eldest though is both very smart, and at a sensitive age.

So I’m sure you can imagine it was more than a little unnerving to be ask to attend his Parent-Teacher evening. I had heard from the Ex that his teacher had voiced her disapproval of our situation on a couple of occasions (it’s a Catholic school).

In fact I was so anxious about how the evening might go I almost cancelled. Had I royally screwed up my son? Had the stress of his mummy and daddy splitting up affected his school work? Were there other issues we weren’t aware of?

Thankfully my fears proved unfounded. Apart from a few issues with poor handwriting, and a slight tendency to get distracted, he’s doing excellent at school. His memory is amazing, according to his teacher (a bit like my own), so even when he appears to be not paying attention he can recall even the most obscure detail about what the class is learning.

When we left, my ex and I were both smiling. The headmistress even commented on it as we were heading out the door. I’m pretty sure I was more grinning than smiling. I don’t think I can express just how relieved I was.

Second Date

Chris McLeod —  Nov 29 2011 — 2 Comments

So the night after my first date with D I was invited to go back around to hers to hang out with pizza and a bottle of wine.

I may have been out of the dating game for a while, but I’m not entirely clueless, and based on the night before, I knew exactly what was going to happen that evening, so as well as the wine, I packed a bag appropriately. One thing I had to bear in mind was it was going to be my weekend with the kids, so it wouldn’t do for their dad to pick them up in the same clothes he had worn the night before.

The evening was nice. I picked up some nice wine on the way there (despite knowing nothing about wine as I rarely drink the stuff). The pizza was awesome, though we didn’t finish it; I’m sure her flat-mates didn’t mind finishing it off later in the evening. We watched some really crappy TV, and talked a while.

I ended up staying awake most of the night “processing” what had gone on. It was a big step to take, so very soon after the breakup, but it was one which was going to happen sooner or later. If nothing else, I guess I’m glad it happened sooner so I can mentally move on quicker.

Scalable and Modular Architecture for CSS

Apple iMessage and Poor User Experiences • Matt Galligan

The Five Megabyte Web Developer | Benjamin Atkin

Hack Weekend Update

Chris McLeod —  Nov 26 2011 — 1 Comment

I’m having heaps of fun experimenting with the Facebook APIs. It’s definitely a learning experience, and it’s something I’ve kind of missed – just playing around with a technology, with absolutely no expectation anything will come of it.

That said, I’ve finally settled on what I’m going to try and build with all this experimenting. It’s a nice, little, fun app tied to a Facebook page.

the CodeIgniter logoMost of my small personal projects tend to get built with CodeIgniter (CI), which is a simple to use, fast, lightweight PHP5 MVC framework.

the Facebook logoFor a while now I’ve had an itch to build something fun against the Facebook API so I can start learning how Open Graph works, and as a primer to building a “proper” Facebook integrated application. I also realised I hadn’t actually tried using CodeIgniter 2.x since it was released (quite some time ago). With an abundance of free time this weekend it seemed like the perfect time to get hacking!

Before I could build anything I would need to know one thing: just how do you connect a CodeIgniter app to Facebook?

Continue Reading…

Yesterday morning I imported the best bits (plus a few other entries) from two of my old blogs

These blogs had languished unloved for some time, but it felt wrong to just drop them or completely abandon them. So now the highlights – such as they are – are here for you to have a read through, so head on over to the archive page to browse through them.

If You Had Invented Siri, You Would’ve Invented Siri