Design and Implementation of a Flexible Application Architecture

Here's a link to the talk I gave at LAPHP meetup on creating a flexible application architecture using Laravel 4. The talk was based around principles of a SOLID architecture. Then going through how it might be applied to a Laravel 4 application. Here's the talk



Array list of all timezones

I needed an array of all the timezones so I could insert it in to a database seeder. So I created one off a list from wikipedia. \$timezones = array( array('abbr'=>'BIT', 'name'=>'Baker Island Time', 'utc'=>'UTC-12'), array('abbr'=>'NUT', 'name'=>'Niue Time', 'utc …



How to install Tomcat7 on Linux Mint

How to install tomcat7 on linux mint is simple. Run: sudo apt-get install tomcat7 tomcat7-admin tomcat7-common That's it. Now to configure the users for the mangers. Open the user file. sudo vim /etc/tomcat7/tomcat-users.xml Make it look like this: <?xml version='1.0' encoding='utf-8'?> < …



Nagios ping fails

I recently setup NagiosXI with their provided amazon ami. It was very simple to setup and everything looked good. Added a couple servers and they all could not be pinged from Nagios. I couldn't ping them from Nagios' ping tool. I could ping them from the command line so I …



Error starting Tomcat7 “no JDK found – please set JAVA_HOME”

After I had set JAVA_HOME in the /etc/profile export JAVA\_HOME=/usr/lib/jvm/java-7-oracle/bin/java But Tomcat wasn't happy with that. So I went to Tomcat configuration directly. File: /etc/default/tomcat7 \$ vim /etc/default/tomcat7 ... \# The home directory of the Java development kit (JDK …



How to install java 7 on debian

HOW TO INSTALL JAVA 7 ON DEBIAN 7 Debian is my distro of choice for servers, but due to licencing issues it cannot provide Oracle Java 7+ in the repos. Personally Oracle needs to undo their restrictive licensing on a VERY popular language. Need to add an older repository that …



How to install cacti on Debian 7

Installing cacti on Debian 7 is very easy. Issue an apt-get install cacti apt-get install cacti Then follow the prompts for mysql root password and cacti db password (which it creates). Then go to http://localhost/cacti Click next and confirm a few options. Login with admin/admin It will …



Install Jenkins on Debian 7

Here's how I installed Jenkins on Debian 7. \$ wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add - \$ sudo echo 'deb http://pkg.jenkins-ci.org/debian binary/' >> /etc/apt/sources.list \$ sudo apt-get update \$ sudo apt-get install jenkins



BaseRepositoryInterface Base Eloquent Repository

Here's a base Eloquent Repository. interface BaseRepositoryInterface { /\*\* \* Execute the query and get the first result. \* \* @param array \$columns \* @return :::IlluminateDatabase:::EloquentModel|null|static \* @static \*/ public function first(\$columns); /\*\* \* Execute the query and get the first result or throw an exception. \* \* @param array \$columns \* @return :::IlluminateDatabase:::EloquentModel \* @static \*/ public function firstOrFail …



Depends: libssl0.9.8 (>= 0.9.8m-1) but it is not installable

I was setting up a webserver on Debian 7 but ran in to a dependency issue for nginx. It said I needed libssl0.9.8. Well I had libssl1.0.x which left me wondering was it in compatible. Yes it is. I needed to download the deb and install …