Monthly Archives: June 2013

ChorusTrainer development begins

June 22, 2013
By

After delaying the project for too much time I decided to start developing ChorusTrainer This will be an Android App aimed at Chorus singers The normal workflow to learn a new piece goes like this: you get a midi file containing the piece You play it enhancing (or isolating) the voice specific to your...

Read more »

KDE: Kontact , Knode and X-Face

June 9, 2013
By

Recently switched to using Kontact instead of Thunderbird Kontact includes Knode which is a good program for reading newsgroups and also supports X-Face But there is an integration issue between the two programs: Kontact allows you to select an image that gets converted automatically to X-Face, this is possible for each identity Knode uses...

Read more »

Symfony, commands and SwiftMailer

June 6, 2013
By

Symfony is a nice piece of software, but let’s admit it: it still has some rough edges The one I stumbled in today involves the sending of e-mails using SwiftMailer from within a Symfony Command Even if everything was correctly configured, the generated emails were not actually sent The problem was soved by configuring...

Read more »

Doctrine2, transactions and lazy-load

June 5, 2013
By

I stumbled in an issue using Doctrine2 transactions inside a Symfony2 app I’m currently developing I needed a transaction regarding a user property First attempt has been to retrieve the User object through public function someAction(Request $request){ $usr= $this->get('security.context')->getToken()->getUser(); $usr = $em->lock($usr, \Doctrine\DBAL\LockMode::PESSIMISTIC_WRITE); .... try{ $amount = $usr->getSomeProperty(); if($amount > $okValue){ $amount--; } $usr->setSomeProperty($amount);...

Read more »