Recursive Glob

By Adam Patterson in: Code


While building the upgrade script for tentacle I knew that the file I was going to work with would be a zip, and would contain many sub folders. PHP has a function called glob that finds files pathnames matching a pattern. It works really well but only goes one level…

View Post   


A new Event API

By Adam Patterson in: Announcements Code


Here is an overview of the event API in Tentacle, One thing that was really important to use was the ability to chain methods giving us the ability to filter and process a chain of events.At the moment there are a number of hooks and triggers throughout the system responsible for…

View Post   


After a few issues last week in dealing with a JavaScript update that broke a number of other plugins, I had to take a good look at what we were using and scrap a number of "test" plugins.CKEditor is now implemented into the site, along with CodeMirror syntax highlighting.This could replace…

View Post   


Geo Location update

By Adam Patterson in: Code Performance


I have made some subtle but important updates to the GEO api used for statistics.Previously geo.tentaclecms.com was pulling from another API, this "Worked" but occasionally would throw an error caused by a hiccup in the connection.  After downloading a rather large geo location database and creating my own service I…

View Post   


How I made my beefy VPS

By Adam Patterson in: Article Code


Building a VPS is a lot like planning the foundation to your home, You need to have everything done correctly before you can start building up.I chose a base install of Ubuntu Server 12.10, and knew that I needed at a minimum a LAMP server. But there are a number…

View Post   


Centring Columns in Bootstrap

By Adam Patterson in: Code


Grids are great, Look at all that order that they provide!I have been using them for years, but there are always certain instances where the grid fails, and you begin to loose the practicality of the grid.For instance. If you had a 9 column grid and you need a 7…

View Post   


TextMate keymap for PhpStorm

By Adam Patterson in: Code


I love TextMate, but it really suits me best for single file applications.It took some time for me to get used to and fully appreciate the shortcuts. One of the biggest adjustments I had to make while using PhpStorm was learning all new keyboard shortcuts.Ruby Mine includes a TextMate keymap…

View Post   


x

Keep in touch!

* indicates required