Categories
Development

php artisan serve for Laravel 5

Important: In an entertaining example of poor timing, Taylor Otwell added the serve command back into the framework shortly after I published this. There is now no need to use this package. Users of Laravel 4 will remember that it came with a fantastic little command:

Categories
Security

Mosh and UFW, without 1000 open ports

Anyone who works with Linux servers will have used SSH. It’s the stable of server management and cannot beat a GUI.The only downside with SSH is when you’re on a slow or intermittent connection, and your SSH connection keeps droppingout or locking up. It’s not fun at all…

Categories
Technical

Generating passwords in Ansible with complex loops

Ansible is a fantastic open source automation tool which you can use to configure systems, deploy software, and perform any number of other tasks automatically across as many, or as little, systems as you need. It’s like Chef or Puppet, only configuration is a piece of cake and installation is only required on the master […]

Categories
ThinkPad

Installing and using Ubuntu 14.04 on a ThinkPad T440s

I upgraded my trusty ThinkPad L520 to a shiny new ThinkPad T440s. Unfortunantly, but not unexpectedly,I tried to follow online tutorials for dual booting and ended up with a lovely black screen every time I tried toboot from the USB Live image I’d created.

Categories
Random thoughts

Waking Early… is hard!

If you haven’t heard of Leo Babauta before, you definitely need to check out his website Zen Habits: Zen Habits is about finding simplicity in the daily chaos of our lives. It’s about clearing the clutter so we can focus on what’s important, create something amazing, find happiness. As a way to be more active […]

Categories
Development

Laravel 4 Down Safe

Laravel is a fantastic PHP Framework that does most of the complex, and boring, application framework tasks for you, so you can focus on the application itself. One of the components it provides is a full Queue Worker system to make it very easy to add jobs into a queue and process them in the […]

Categories
Development

HTML5 Time Input and Chrome for Android Stupidity

For a project I’ve been working on, I needed to accept a time value input from users (for a timesheet). So I figured, what the hell, I’ll use the new HTML5 time input field (<input type=’time’ …>). It seemed to work perfectly when testing on my laptop with Chrome – a nice and simple time […]

Categories
Development

Sorting eager loaded records in Laravel's Eloquent.

Eloquent, which is Laravel’s ORM, has some really nice features. One of which is the [Eager Loading][eager]functionality that allows you to request all of the related records in one hit, to avoid having to makemultiple database calls for each iteration of a loop. Let’s look at a simple example which returns the latest 10 blog […]

Categories
Development

Limiting Belongs To Many database queries with Pivot table values in Laravel.

This post was updated on 2014-01-22. The Proposal that I mentioned in the original articlewas approved and then implemented by Taylor Otwell, and has since been released in Laravel 4.1.

Categories
Development

Automated backups of an on-demand MySQL database using automysqlbackup

Since I’m a PHP developer and I run Ubuntu on my laptop, I find it very easy to development directly on the machine. This means that my laptop also has PHP and MySQL running (and until the new PHP 5.4 dev server, Apache). While PHP doesn’t is only used on-demand, the MySQL server is a […]