Category Archives: Web development

Symfony – file uploads with custom names and paths

I’ve been experimenting and doing a bit of digging with the Symfony file uploading in forms functionality. Out of the box, with eg. a Doctrine model, Symfony will save the filename only of an uploaded file, and it usually generates a random filename consisting of a hash of the original name together with a random [...]

A stack of twits

Here at White October towers we pride ourselves on not knowing everything. This is what the internet was made for. So when we are stumped on a problem we hit the Google. These days however our first point of call for any technical programming problems is Stack Overflow. A quick search of that site usually [...]

Our weekend JailBrake

Not quite as dramatic as it sounds, but still very exciting : half of the White October office went over to Bethnal Green this weekend to take part in Social Innovation Camp‘s JailBrake weekend.  The event brought together social innovators and web development professionals, all donating their time to develop 6 ideas for online platforms [...]

Symfony admin generator theming

From this… To this (at the click of a few generator.yml changes)! As part of one of our current Symfony projects in work, a colleague and I decided that rather than reinventing the wheel everytime we used a new admin-generated module in the application with regards to overriding partials and actions in pretty much the [...]

PHP UK Conference 2010

Last Friday (26 February 2010), myself and Ed Lucas from White October took a trip down the M40 to the PHP UK Conference 2010, hosted at the Business Design Centre in London.  The purpose of the trip was three-fold – firstly to attend some great talks, secondly to socialise and meet other members of the [...]

Hudson and Symfony continuous integration

We’ve been experimenting this week with using Hudson as our continuous integration server for our latest Symfony project.  Previous experiences with CruiseControl via phpUnderControl and the symfonyUnderControl plugin were OK-ish but we’d occasionally experience CruiseControl dying on us with no warning apart from the lack of emails after checking our code in. So we decided [...]

Simple shorten url using bit.ly and php

Inspired by the simple tweet to twitter function by Fabian Potencier I have built a stupidly simple url shorter for bit.ly. Something you are probably going to want to do if you are sending tweets via PHP. function shorten($url, $login, $apikey) { $api_url = “http://api.bit.ly/shorten?version=2.0.1& longUrl=”.urlencode($url).”&login=”.$login.”& apiKey=”.$apikey; $ret = file_get_contents($api_url); $data = json_decode($ret); if($data instanceof [...]

Slave out of sync with your master?

Hello, I am not growing a Mo. So I have to blog about something technical… One of our major clients has a Master-Replication setup which we use for failover and backups. However it managed to get itself out of sync. A small example is that it the user table is missing a single user. The [...]