Contactez-nous : 01 71 18 39 73 | contact@thecodingmachine.com
Suivez-nous sur Facebook

David's blog Syndicate content

Installing Drupal using Composer

Lately, I have been playing a lot with Composer. If you don't know Composer, it is a great dependency manager for PHP, and will probably become the defacto standard in the coming months. I wanted to see if Composer could be used to install Drupal.

Composer comes with a big repository of libraries (hosted on http://packagist.org).

Triggering a PHP script when your Postfix server receives a mail

In this tutorial, we will see how to trigger a PHP script each time your web server is receiving some mail.

Why would you want to do that? Well you could want to do that to develop a custom mailing list system, to archive your mail in database, trigger commands in your website by sending mails... your imagination is the limit.

Getting started with a basic Postfix filter

Configuring Postfix

Fixing Java memory leaks in Ubuntu 11.04 using jmap

When facing problems regarding memory consumption of a Java application, the JDK contains a number of useful tools to help you understand what is going on. You can get a list of the tools on this page.
One of these tools is "jmap". Jmap will let you now (among other things) know what objects are using your precious memory.

Cool!
...
except that when you try to use jmap on Ubuntu 11.04 with a Sun JVM 6, you will get this error message:

Attaching to process ID 12450, please wait...

Profiling a Java remote server using Netbeans

I used to profile my Java applications with the TPTP Eclipse plugin. It was admittedly a nightmare to install, but once you had it running, it was a fairly efficient tool. Alas, to my dismay, I realized that TPTP is no more. The project was dropped from the latest Eclipse release train (Indigo). And of course, one week after the new Eclipse release, I have a need to profile a remote server.

Solving the "Too many open files" exception in Red5 (or any other application)

We have been running a Red5 server for quite some time, and as our application was getting more popular, we happened to see new errors we had never seen before. Actually, we saw a bunch of "Too many open files" exceptions in the logs, and most users could not connect anymore to our application.

New feature: install processes coming to Mouf

A new feature is coming to Mouf: install processes.
This has been a long awaited feature (yes, at least 2 people requested it :) )

What it means is that a package developer can now trigger a custom install process when its package is installed. And this is great!

It means that most of the work to set up a package can be performed during the install. For instance, a database connection package could set up the connection by asking the user the connection parameters... A package that request an instance to be created could create it directly, etc...

Coming soon in Butterflive

It has been a great deal of work to release the first version of Butterflive, but we are keeping a rapid development pace.
I want to share here with you what will be coming in the next months.

Easier installation

Although we made a lot of efforts to keep the installation process easy, you still have to install the Butterflive Tracking code files on your server, and we know this can be tricky on some environments. So the major update we are working on will be to get rid of the Butterflive Tracking code file!

Working towards Apideo 1.5

Coming soon in Apideo

We only released Apideo 1.0 a few weeks ago, and we are already working hard to release the next version that will probably be numbered v1.5.

Here is a sneek peak into features to come:

Copier votre base de données MySQL en local... en une ligne

Votre site web est en production, mais vous détectez une anomalie sur la production, mais impossible de la reproduire en local. L'anomalie est généralement liée au jeu de données et donc, vous décidez de:

  • Effectuer un dump de la base de données en production
  • Télécharger la base de données sur votre poste
  • Supprimer la base de données locale
  • La recréer
  • Charger les données à partir du dump serveur

Ces 5 étapes, sur la vie d'une application vous allez les exécuter des dizaines de fois.

Installer le cache d'op-code APC sur Ubuntu 10.04

Dans cet article, je vais expliquer comment installer APC sur Ubuntu 10.04.
APC est un cache d'opcode (même un peu plus que ça). Quand un script PHP est exécuté, il est d'abord compilé en interne par PHP. PHP ne stocke pas le résultat compilé du script et donc, à la prochaine exécution du script, PHP le recompilera. APC est conçu pour stocker le résultat compilé dans son cache. Ainsi, losque PHP exécute le script, APC lui servira directement le script compilé. PHP n'aura pas besoin de recompiler le script et économisera donc beaucoup de temps.