You’re Not Using Source Control? Read This!
The document goes on to talk about the available tools (git, Hg, SVN) and give a sales pitch for _why_ source control has benefits for an organisation. There are also some action points to follow to implement source control if you haven’t already taken the leap, which I hope will help anyone looking to take that step – it’s kind of awkward in this day and age to admit that your organisation doesn’t have source control, but however this situation arose, hopefully this document wraps up my thoughts on how to find a good way out! Continue reading
Become a ZCE in 2013
Edit: Pack now available from https://leanpub.com/zce
Continue reading
Christmas Kitchen
Building on Datapoint: Weather With Icons
9 Magic Methods in PHP
The title is a bit of a red herring as PHP has more than 9 magic methods, but these will get you off to a good start using PHP’s magic methods. It might be magic, but no wands are required!
Ubuntu Icons Directory Routing
File does not exist: /usr/share/apache2/icons/ ...
Which was really odd, because my webroot is somewhere else completely!
Eventually I spotted a /icons
entry in the configuration for mod_alias
in apache, which intercepts all requests to /icons on any virtual host, and rewrites it. Err, thanks? Renaming the directory to “images” solved the problem in this instance, and I hope if you googled for an error message, you will find this page and be able to fix it equally quickly :)
Datapoint: Weather API from the MetOffice
Continue reading
Managing PHP 5.4 Extensions on Ubuntu
aptitude install php5-pear
and then get tangled in dev packages (clue: look which libcurl you have already installed to figure out which of a long list of -dev
packages to choose), managing finally to emerge with a pecl install http
that completes successfully with the words:
configuration option "php_ini" is not set to php.ini location
You should add "extension=http.so" to php.ini
I’ve been using Ubuntu for some time however, and we don’t put settings straight into php.ini
, there’s a directory called /etc/php5/conf.d/
where all the various module configurations live, or you can enable things just for when PHP is called by apache or from the CLI. However today I hopped into /etc/php5/
and saw this:
.
├── apache2
├── cli
├── conf.d
└── mods-available
Hmmm … mods-available
? Continue reading