Using Apache substitute with magento
Jul15

Using Apache substitute with magento

So I had a very interesting problem today. I needed to add a JavaScript file to all the sites hosted on my development server right before the head tag close. Why? Because I wanted to get some RUM statistics without having to go into each site and change the header file. Enter the Apache Substitute module Apache substitute module is just the tool that I needed to do such a task. Think of it like a server implementation of...

Read More
Logrotate Magento WordPress and more
Jul14

Logrotate Magento WordPress and more

This article took a lot longer to see the light, because of my self imposed hiatus. How to use logrotate Magento WordPress Logrotate is a very simple Linux command yet extremely powerful that you can use to “automate” the whole log cleaning endeavor. By Definition Logrotate is designed to ease administration of systems that generate large numbers of log files. It allows automatic rotation, compression, removal, and mailing...

Read More

Quick tip for merging PDFs

Currently I have been generating some automated reports from Pingdom and Newrelic and create some PDFs well, the code I was using was not merging them right (Read: I screwed it up) now let’s not dwell in the small details because I found this small Linux utility call pdftk, which is just wonderful when it comes to merging PDFs: To Install it: sudo apt-get install pdftk or pdftk To use it: pdftk nr_report.pdf pingdom_report.pdf...

Read More

Optimizing MySQL performance

Optimizing MySQL performance Here is a little trick I learned recently on how to optimize MySQL performance or rather how to think when trying to get the most out of MySQL performance. There are 2 variables or settings in MySQL you want to pay attention to: query_cache_size which is the maximum amount of data that may be stored in the cache and query_cache_limit which is the maximum size of a single resultset in the cache. In other...

Read More
Advanced Vagrant use with Puppet
Apr20

Advanced Vagrant use with Puppet

    Because there is no a better way to close the gap between Development and operations than by finding common ground between automation and repeatability. Advanced vagrant use with puppet You know when talked about vagrant and Magento before however that was a very simple case. Voice of warning: this has nothing to do with Magento. This time… Puppet and Vagrant are the stars of the show. What happens when you get...

Read More
LocalStorage with Store.js
Apr13

LocalStorage with Store.js

To use or not to use LocalStorage with Store.js You may remember that not so long ago we tried using local storage to improve magento’s speed and while this approach is particulary useful, it inherits some of the same problems you would encounter when using LocalStorage for everything else that is: how do I store something other than strings? As you may recall: storage.setItem("user_data", {name:"Luis Tineo",...

Read More
Improve Magento’s speed using RAM drives
Feb13

Improve Magento’s speed using RAM drives

Improve Magento’s speed using RAM drives Wikipedia explains very well what RAM drives are and we all know that SSD are fast reading but have issues with endurance There’s a myriad of options and possibilities that one could do to improve Magento’s performance and adding a different one to the mix doesn’t really hurt, right? In all systems (confirmation required) you can use /dev/shm, this example is mainly if you want to keep your...

Read More
Magento developers Unleash the power of automation
Nov25

Magento developers Unleash the power of automation

Magento developers unleash the power of automation Deployments are always a pain, especially if there are holidays around because magento developers don’t usually unleash the power of automation even if there are tools in place to help them do so. This is not to say that everyone has to have the same workflow but I hope that with this example and pain of mine you can see why automating deployments is such a great idea. Black...

Read More
Magento and VagrantUp
Sep25

Magento and VagrantUp

Vagrant and Chef with knifes For those of you out there doing team development and collaboration, especially now that github is making it so social and simple, you’ve probably run into some or all the following problems: Your development environment doesn’t mirror your production environment (hardly ever). Since the Mac / Linux revolution it’s impossible to keep everyone’s development environment consistent It...

Read More
Magento Developers Toolbox v2.0
Sep24

Magento Developers Toolbox v2.0

Let’s expand our magento developers toolbox Part one of the series can be found here. I was supposed to be in hiatus… but I was reminded by my 4 month old daughter that I am awake 24/7 so it’d make sense to use that time wisely. I was also reminded that I promised a Magento developer toolbox v2.0 and going into hiatus didn’t play too well with it – sorry guys. Besides turning off my brain has never been...

Read More