Custom error pages in CodeIgniter

September 27, 2016

The simplest way to create custom error pages is to edit the files at /application/views/errors/html/error_*.php such as error_404.php (for 404s), error_db.php (for database errors) and error_general.php (for most other errors).

Read More

Deleting remote git tags

September 12, 2016

A reminder for when you really want to destroy a whole bunch of stuff...

Find out what tags you have locally:

david$ git tag

Delete them all:

david$ git tag -d v1.0.0 v1.0.1 v1.1.0

Push all those deletes to the remote system:

david$ git push origin :refs/tags/v1.0.0 :refs/tags/v1.0.1 :refs/tags/v1.1.0

That's it. Destruction complete.

Read More

How to join multiple mp4 files together using ffmpeg on OS X

April 11, 2016

Sometimes I need to concatenate several mp4 files together. ffmpeg is a good tool for this job.

On OSX, it's easy to install using Homebrew:

brew install ffmpeg

If you have MP4 files, these could be losslessly concatenated by first transcoding them to mpeg transport streams.
Source –

Say we have 2 mp4 files to concatenate or join together, first we transcode each of these into an intermediate format:

ffmpeg -i input1.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate1.ts
ffmpeg -i input2.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate2.ts

After that we can concatenate these together using the following:

ffmpeg -i "concat:intermediate1.ts|intermediate2.ts" -c copy -bsf:a aac_adtstoasc output.mp4

For more files, just pipe separate the additional files here:

Read More

IBM Connect 2016: 1402 - Getting Technically Cozy with IBM Connections Cloud APIs and App Dev

February 9, 2016

Last week, whilst at IBM Connect 2016 in Orlando, Florida, I gave a presentation on extending IBM Connections Cloud. The slides from the presentation are below:

The full code examples from the presentation are hosted on GitHub here:

Read More

Older posts