Category: Tools

Cal-Heatmap 3 released

The latest 3.x branch of cal-heatmap comes with one new big feature: vertical orientation. Implementing it was not easy, since other features, like label position on the side, etc, must come along. A quick summary of all the new features in the v3: Calendar vertical orientation Label can be positioned on all four sides Label […]

First steps with PredictionIO : a simple recommendation server

A recommendation system seems to be a must in this current era websites, where you want to keep the current visitor inside your website, by providing things that will hold him there through Lead Management. Anyone can build a basic recommendation engine by joining a few tables in a relational databases, and start recommending an […]

Install, configure and protect Awstats for multiple nginx vhost on Debian

There’s already a lot of tutorial on internet on how to install awstats for nginx there are even options where you can get Cheap Instagram followers. I didn’t find any for the configuration I wanted for my outdoor gear website, FishingPicks.com, so I’ll write one, for my record. I have some custom needs, let’s suppose […]

CakeResque 3.0 : welcoming the Scheduled Jobs

CakeResque 3.0 was just freshly baked. The most important feature of this version is the support of scheduled jobs. In addition to the possibility of queuing a job for a later execution, you can now specify when to queue the job. Scheduling jobs Queuing a job on a future date You can know specify when […]

Background jobs with php and resque: part 8, a glance at php-resque-ex

In all the previous part of this tutorial serie, we were using php-resque. But in some cases, this original library is not enough. Php-resque-ex is a fork of php-resque, and provides additional features. It has the same API as php-resque, and can replace it without problems.

Background jobs with php and resque: part 7, Manage workers with Fresque

Fresque is a command line tool to manage your php-resque workers Fresque removes all the hassles of manipulating process, pipe, daemon and other cli-guru related commands when managing php resque workers. Instead of starting a worker with this command: QUEUE=notification php resque.php You use: fresque start –queue notification You begin to see its real usefulness […]

Background jobs with php and resque: part 6, integration into CakePHP

Using background jobs inside a php framework with php-resque is a little bit different, as the framework is imposing its own convention. Let’s see how to create background jobs in CakePHP, with the CakeResque plugin. CakeResque is a CakePHP plugin for creating background jobs that can be processed offline later. CakeResque is more than a […]

Background jobs with php and resque: part 5, creating jobs

Now that you have some workers running, let’s feed them some jobs. In this part, we’ll try to understand what’s a job, and how to refactor your application to implement background jobs. What’s a job A job is a written order to tell the workers to execute a particular task. This order looks like: Mail, […]

Background jobs with php and resque: part 4, managing worker

This guide is intended for Linux and OS X users. Windows users will have to adapt some code to make them works. Understanding the internal works Technically, a worker is a PHP process that will run indefinitely, always monitoring for new jobs to execute. Pseudo-code of a worker’s internal: while (true) { $jobs = pullData(); […]

Background jobs with php and resque: part 3, installation

As said in part 2, we’ll use php-resque for our queue system. In this part, I’ll explain how to install all the tools needed to run php-resque, a port of Resque. Resque (pronounced like “rescue”) is a Redis-backed library for creating background jobs, placing those jobs on multiple queues, and processing them later. Obviously, we’ll […]