RabbitMQ Messaging Application Development How-to [Instant]

I had the opportunity to get a copy of this book for review by Packt Publishing.

As I already have some experience with RabbitMQ, I was more interested to see if this book could be used as a learning material within the company I work for. Not every new developer knows about RabbitMQ and it’s not easy to start with, especially if you have no background with other queuing systems.

And I was pleasantly surprised while reading the book.

The author first explains what RabbitMQ is all about and what it can do for you. Then quickly goes over the installation process and continues with many different use cases by using an e-commerce shop as example.

The different examples used in the book are carefully put in order of complexity. You will first learn, as in all other langues, how to do a simple “hello world” and continue with more complexer use cases. What I liked a lot is that during each example the author carefully explains each concept used. Exchanges, bindings, queues, brokers will not sound like Chinese any more.

To summarize, the book is a very good candidate to learn RabbitMQ quickly without cutting corners! I highly recommend this to beginners. That being said, more experienced developers can still learn one or two things from the advanced examples.

The only negative point I have is that all examples are written in Node.js. Maybe adding a second or third language can be helpful for some readers.

By the book: http://www.packtpub.com/rabbitmq-messaging-application-development/book

Adlogix is hiring a Senior PHP Developer

Adlogix.euAdlogix, the company I work for, is urgently searching for an experienced PHP developer to join our development team in Belgium.

Adlogix is a powerful online sales and operations management system trusted by leading media companies. Adlogix helps media companies to maximize their online revenue and optimize their advertising processes. We integrate Adlogix with your systems (ad server, crm, erp, billing) to eliminate data redundancy and create process transparency.

  • You’ll be part of the R&D team and involved in the development of Adlogix’ digital advertising management platform.
  • You’ll participate in the full development life-cycle
  • You’ll help build the architecture of the internal frameworks
  • Gather technical requirements from external partners
  • Enjoy your job and come up with crazy ideas

We’re looking for someone who has experience with web services, database design, setup and administration, as well as PHP development with well structured, scalable and maintainable code.


  • Knowledge of Composer is a +
  • Good knowledge of REST
  • Strong debugging skills and the ability to easily and quickly read and modify code
  • You’ve dealt with scalability issues, caching, queuing and distributed storage
  • You’re well versed in OOP, synchronous and asynchronous design patterns, the DRY principle, and unit testing (maybe even TDD)
  • You have deep experience with relational databases and database architecture (maybe some nosql experience too)
  • You’re a master of HTML/CSS/JavaScript and can bend the browser to your will
  • You’re familiar with MVC and application frameworks for PHP (ideally Symfony1 and/or Symfony2)
  • You’ve worked with a (D)VCS like Subversion and Git (or are excited to work somewhere that uses it)
  • You thrive in a fast paced, agile, iterative and collaborative engineering environment where quality well tested code is highly valued
  • You’re experienced with technologies like RabbitMQ
  • You have a solid foundation in computer science with strong competencies in data structures, algorithms and software design
  • Ideally you have a degree in Computer Science, Electrical Engineering, Applied Math or Physics and/or 5+ years of relevant engineering experience. If anything, you have to be crazy about PHP and web applications.

If this is you, contact Adlogix ASAP (info@adlogix.eu or www.Adlogix.eu), or share to help us spread the world (or Belgium that would already be very good :) )

Easy SSH tunneling with Putty

Need to access a MySQL server, a RabbitMQ management server or any other (web) server configured on a dedicated/virtual server which is not (or you don’t want to) open to the outside world?

A simple SSH connection and Putty makes this possible:

1. Requirements

  • Putty SSH client (download)
  • SSH access to a server

2. Configure Putty

Open the Putty Configuration client, and fill in the field ‘Host Name (or IP address)‘ with the IP or host name of your remote server. In the Connection type section you should select SSH which will set the port automatically to 22.

Once this is done, open the Tunnels section in the menu Connection -> SSH. In this section we are going to configure the port forwarding. Assume we want to access the RabbitMQ management web server which runs on the port 55672. We need to tell Putty to listen on a Source port (=local), and to forward it to the Destination (=remote).

For this example we will configure putty to forward port 1234 to the remote port 55672.

Fill in the ports as displayed in following screen and then click on Add:

If everything is correctly configured click Open. This will open a SSH connection with your remote server and at the same time the configured port forwarding. The major drawback is that you cannot see the port forwarding from that screen. If you also use putty to manage your remote server, you will not see the difference. Of course you can always configure the putty screen to be a different color (if you know alternative tricks, please share ;) )

While the putty connection screens remains open you should be able to access the RabbitMQ management web server by calling http://localhost:1234 in your favorite browser.

As you can see the procedure is really simple and opens a lot of possibilities without having to open different ports on your remote server.


How to use a symfony 1 layout from a different directory

In symfony 1 it is possible to have different layouts for an application. But they all have to be put into the directory ‘myproject/apps/frontend/templates/’. But what if you want to use a layout from another location?

Assume you make a plugin with a specific layout, it would be nice to load the layout from the plugin directory, and not to have to copy the file to the global directory.

Here is how you can achieve this:

$template = $this->getContext()->getConfiguration()->getTemplateDir('MODULE', 'LAYOUT_FILE.php');
$this->setLayout($template . '/LAYOUT_FILE');

Let’s say you have the following:


The actions.php class could be something like this:

class MyUserAction extends sfActions {

  public function preExecute() {
    $template = $this->getContext()->getConfiguration()->getTemplateDir('MyUser', 'MyUserLayout.php');

    $this->setLayout($template . '/MyUserLayout');

  public function executeIndex() {


Have fun!

Symfony Live 2010 – day 1 #sflive2010

So far everything went great, well not great but ok, the periferique in paris was hell this morning, and we had a 5 hour drive from brussels to paris, thx to a train accident. But… most important… we got here.

We mist the first session on i18n but the second one on admin generator gave me som gr8 ideas on layout. After that, the Microsoft crew came on to stage, and pffff.. shitty presentation… just a promotion and selling of their Azure product. And I wasn’t impressed at all!!!

now lunch, simple but ok. and we’ll see what the next hours bring…

sessions are about to start…

well well well, that was an interesting session by Mr Bachelet. I regret it that he didn’t do the session in french, it would have been better!!! a bit of an overview of all handlers and helper, just isn’t enough I guess…

Questions are answered quite good…. He knows his stuff real good! take your time to present next time.

doctrine migrations was nice. interesting and in particular the question session with a very kind host, answering all questions asked. And believe me, there were a lot of questions :-)

Symfony Live 2010 #sflive2010

On the 16-17th of February the Symfony Live 2010 conference will be held in Paris. A lot promising developers and evangelists will be speakers on this conference like:

  • Fabien Potencier
  • Jonathan Wage
  • Dustin Whittle
  • Stefan Koopmanschap

My colleague and I will attend this conference and, if everything goes well, we will try to update our DevExp blog with live feedback or summarized posts on some of the most interesting sessions.

Read from Excel in ASP

I always had a hard time finding correct documentation on the old ASP (active server pages) language and I needed it one more time in the last few days to create a script that read from an excel file.

As I believe that it might be handy for a handful of people around the world (is there actually anybody else still developing in ASP these days?), I hereby share my little piece of code with you guys.

Any suggestions or comments are always welcome.

In my example we read from an excel file that has 1 small table that has 1000 lines and columns from A until G.
The first row contains all the column names.

'initialize variables
Dim objConn, strSQL
Dim x

Set objConn = Server.CreateObject("ADODB.Connection")
objConn.Open "DRIVER={Microsoft Excel Driver (*.xls)}; IMEX=1; HDR=NO; "&_
 "Excel 8.0; DBQ=" & Server.MapPath("filename.xls") & "; "
strSQL = "SELECT * FROM A1:G1000"

Response.Write("<table border=""1"">")
'write all columnNames
For x=0 To objRS.Fields.Count-1
 Response.Write("<th>" & objRS.Fields(x).Name & "</th>")

Do Until objRS.EOF

' write as much columns as there are in your excel file
Response.Write("<td>" & objRS.Fields(0).Value & "</td>")
Response.Write("<td>" & objRS.Fields(1).Value & "</td>")
Response.Write("<td>" & objRS.Fields(2).Value & "</td>")
Response.Write("<td>" & objRS.Fields(3).Value & "</td>")
Response.Write("<td>" & objRS.Fields(4).Value & "</td>")
Response.Write("<td>" & objRS.Fields(5).Value & "</td>")
Response.Write("<td>" & objRS.Fields(6).Value & "</td>")



Set objRS=Nothing

Interview: Jean-Baptiste Jung

You can never get enough interviews, at least if they are a bit interesting…
This time we got an interview with Mr Jean-Baptiste Jung, a very friendly and ambitious guy with little spare time as he mentioned in his interview.

My name is Jean-Baptiste Jung (Pronounce: Young) and I’m a 27 years old blogger, web developer and web designer from the French-speaking part of Belgium.
I started blogging in 2006 by writing a blog in French about the Python programming language. I quickly dropped this blog and created a new one, Lyxia.org to discuss a lot of nice things about the Internet: Web development, Web design, blogging, WordPress and much more. After this successful experience, I decided to create a similar blog, but in English. This is how, in June 2008, I created Cats Who Code.
I’m also an author on several popular blogs as such as WpHacks, ProBlogDesign and Smashing Magazine where I provide various tutorials, how-tos and lists, mostly about WordPress. I have released some WordPress themes as well, the most popular is called OpenBook and the most recent NYC Theme. Apart from blogging, I work as a web developer in a French company and have a lovely wife and a very cute cat.

What projects are you currently working on?
Lots! I’m making big changes to wprecipes.com with a new design and lots of new featur

es. I’m working on CatsWHoCode.com to improve the blog even more. And at last, I’m on the point to publish my first blog which is not about web dev things!

Continue reading

Interview: Jacob Gube

blogthumb4Well, well, well after our first interview I guess our ball got rollin’ and we are proud to present our second interview.

This time we got in contact with Jacob Gube who is the founder and maintainer of the Six Revisions weblog having over 35K RSS readers. Let’s hope we reach the same amount one day!!!

Jacob Gube, a web developer and designer who works with PHP, .NET, Flash/ActionScript, XHTML, JavaScript/jQuery/MooTools and MySQL, is the creator and primary author of Six Revisions – a weblog the provides practical, useful information for the modern, standards-compliant web designer and web developer.

What projects are you currently working on?

I’m working on a PHP/MySQL social news site start-up that’s self-funded. No release dates yet and there’s still a lot of work to be done! Also, I’m trying to finish up a JavaScript book.

Continue reading

How to force symfony colors on windows with PuttyCyg?

Those of you who’re developing with symfony under windows will have noticed that, when running tasks in the command prompt, no colors are used. This is because the windows command prompt isn’t compatible with the color notation.
Most of you also have cygwin installed (shame on you if you didn’t :p). But even if you run the tasks through “PuttyCyg”, which is fully compatible with the color notation, you will not benefit from the colors.


Continue reading