Articles


Compiling PHP 7 from source

1 year ago by: matt

I work out of /usr/local/src for anything I'm compiling from source so adjust to suit your own setup.

cd /usr/local/src

Grab yourself the latest version available on the php.net website using wget in the current directory.

Once you have finished downloading you need to gunzip and untar:

sudo gunzip php-7.0.1.tar.gz
sudo tar -xvf php-7.0.1.tar
cd php-7.0.1

To keep track of what configuration I compiled so...

Continue reading


2015 is a wrap

1 year ago by: matt

Well another year comes to an end and the stats are in:

  • 12 flights across Europe
  • 2000+ miles driving across Europe
  • 7 Countries visited
  • 6 Skydives
  • 100 B.A.S.E jumps
  • 10 weeks abroad

I also got to work on some pretty interesting projects over the year. Early on in the year I finished off a project for a private client which was for tracking quality control across multiple companies. I contracted for a few m...

Continue reading


Image upload with Summernote 0.7 and Laravel 5

1 year ago by: matt

Couldn't get this working right out of the box due to some changed syntax/callbacks on summernote so here's some quick code samples on how to get image upload working for summernote 0.7. Keep an eye on the summernote insertion API for any changes in future:

http://summernote.org/deep-dive/#insertimage

Unless you have manually disabled csrf, Laravel will be expecting the post request to also submit t...

Continue reading


Phalcon PHP route model binding

1 year ago by: matt

Edit: I have since this article was written updated the Phalcon documentation here to include this example. I have also put in a pull request to 2.1.x to put this functionality into the dispatcher in the phalcon core.


So this is something I discovered today after creating a new feature request over on the cphalcon GitHub. My initial request was to allow for route model binding similar to what is ...

Continue reading


PHP Dublin Meetup - January 2016

1 year ago by: matt

First meetup of 2016 and probably the best one I've attended so far. Rasmus Lerdorf himself gave a great presentation/introduction to PHP 7 which came with examples and benchmarks. I also loved the deployment example without loosing requests in progress. Obviously there is still no similar solution for deployments with schema changes but one can dream...

PHP 7.0.2 has already been released so there...

Continue reading


Phalcon PHP Paginator with URL parameters

1 year ago by: matt

So this is an issue that a few people on the forums and github have reported. Common scenario would be searching or filtering where you are adding additional parameters into your request. Something like the following:

http://mydomain.com/articles?sort=desc


Now you would expect the following output if you have your Paginator set up correctly:

<?php echo $page->next ?>

//Output
?page=2&sort=desc


How...

Continue reading


Pacific Crest Trail 2016 - Gear

1 year ago by: matt

In 2012 I came across a movie called "Into the wild" that has stuck with me ever since. It follow Christopher McCandless on a trip to get to the Alaskan wilderness. At the time I had just started my skydiving, B.A.S.E jumping training so I had to focus on that but the idea had been planted.

Last year I watched "wild" which was filmed along the Pacific Crest Trail and it was the missing piece I need...

Continue reading


Compiling Nginx from source - Ubuntu 14.04

1 year ago by: matt

More of a reference for myself but may come in useful for someone else too.

Start off by downloading the latest version you need. In my case im going for 1.9.12. I usually throw all of this into /usr/local/src.
Keep in mind, I am running all of this as sudo, if you dont know what your doing do some reading on the linux superuser.

cd /usr/local/src
wget http://nginx.org/download/nginx-{VERSION}.tar.g...

Continue reading


Injecting a model instance into a controllers action

1 year ago by: matt

This is a continuation/update from my Phalcon PHP route model binding post. My pull request has since been merged and made its way into Phalcon 3.0.0. This is taken from the documentation I wrote for this feature here.


From 3.0.x onwards the dispatcher comes with an option to handle this internally for all models passed into a controller action.

use Phalcon\Mvc\Dispatcher;

$dispatcher = new Dis...

Continue reading


From Zero to Play store in 3 weeks

11 months ago by: matt

Summary: Spent 3 weeks building my first Android app from scratch to the Play store. Feature creep is real! Laravel and Dingo are awesome for quick API work!

Here's the result: B.A.S.E jumping logbook app


After 6 months of no programming/development work due to travelling, I figured I might as well give Android another shot while I work my way back into the PHP world. Unfortunately when it comes t...

Continue reading


RHS Energy / Lets Talk Solar / Synagia ongoing Ireland Scam

3 months ago by: matt

Latest Update June 17th 2017:

Martin Palmer is now trading under ANOTHER new company called "Synagia". Company website here and their Facebook page here. Again STAY AWAY ITS A SCAM.

Also it was requested back in march to remove "Joseph Caroll" from this article as he was "just answering the phones" and not involved with any of this which I gladly complied with. However his name is now popping up aga...

Continue reading