Why You Should Learn Git

Exhibit A: a real final-year group project for University. Believe me, I tried to teach them Git; but I just ended up with an inbox of .zip files to merge...…

MySQL Data Types in PHP

By default, when PHP receives data from MySQL, all data is cast as a string - even integers! You want the MySQL Native Driver for PHP (mysqlnd). Now PHP recognises MySQL data types and will cast them appropriately :) Install on Ubuntu: sudo apt-get install php5-mysqlnd. Install on OS X with…

Declarative Blade Extensions

Update As Jeffrey points out in the comments, there's a much cleaner way of implementing this functionality (without extensions). I'm still interested in ways to manipulate Blade for producing 'DSLs', however. In order to break looped output into sections, you may write something like the following in Laravel's Blade templating…

PacktPub's 2000th Book

Packt Publishing are currently celebrating the release of their 2000th book with a BOGOF offer across their entire eBook library until March 26th. With unlimited purchases allowed in the time period, this is a great chance to learn new skills in Dart, Laravel, Angularjs and more! PacktPub BOGOF Offer.…

TextEdit Notes

TextEdit makes a great notepad, except for this screen appearing whenever you try to quit the app: I don't need to save the notes anywhere, I'd rather OS X just manage them, restoring them when I relaunch. In System Preferences > General, uncheck "Close windows when quitting an application". Now TextEdit…

Laravel Queue Supervisor

To run Laravel's queue listener in production, you can use something like: php artisan --env=production --timeout=240 queue:listen However this process won't be restarted when the process ends (eg. after a restart). We can use Supervisor to keep this queue listener process active at all times. Below are…