Variable Number of Nested For Loops

An old problem that came to my head a couple of days ago. I solved it as an excersive in Fortran class about 25 years ago, my current solution is: $lbound = 1; $ubound = 4; $loops = 3; $numbers = array(); for($i=1; $i=1; $l–) { $numbers[$l]++; if( $numbers[$l]>$ubound ) { $numbers[$l] = $lbound; } […]

if you can’t use apt to clean up due to a 100% full /boot

From: The solution that worked from me. NOTE: this is only if you can’t use apt to clean up due to a 100% full /boot If apt-get isn’t functioning because your /boot is at 100%, you’ll need to clean out /boot first. This likely has caught a kernel upgrade in a partial install which […]

Reduce doctrine queries on hydration of related entities

Suppose you have a schema like the one in the next figure and in your repository class you fetch an MqProject entity and later in the code you traverse through all MqProject’s related MqJobs and each job’s related MqTasks like foreach($project->getJobs as $job) { foreach($job->getTasks as $task) { printf(“job: %s task %s\n”, $job->getId(), $task->getId()); } […]

Symfony – RabbitMq

Past few days I did some work on the software I use for my research. The analysis of the evolution of software projects can take some time if the code base gets big and there are many releases. Till now I was using JMSJobQueueBundle to run long jobs is the background. Excellent bundle, easy to […]

Add a shipping carrier in cs-cart 4.x

Adding a new shipping carrier in cs-cart is a ugly story. There is no administration page for that and to do it manually you have to follow a multi-part procedure. This procedure I will try to describe here in details. I thank cs-cart forum members for their posts, because from the information posted there I managed to put up the whole procedure here clearly.

Cs-Cart using classes

Some times cs-cart add-ons are getting larger than a 200 lines of code. Controller actions get longer, functionality requires more code. For example my ShopFeed addon is around 2800 lines of php code. Not including smarty templates. Putting code in func.php is the obvious solution. But there you have to work with functional code and […]

gsproduction a symfony2 intranet application

This is a project I did at the end of 2013. An old client of mine had to replace a legacy application (build with CA-Clipper in 1995) that replaced my legacy application in 2002 with a new one to suite his current needs in a more human way than the Cobol dos terminal program they […]