I recently had to find in one of our big database if a large set a users did a specific action. With no time frame. That means that potentially millions of ids must be compared to dozens of millions actions, and growing.
This beginning to be small big data… Continue reading MongoDB: fastest way to compare two large sets
For a while now, at Silicon, we use a combination of Capistrano and Composer to deploy our websites and other services we created.
We tried many possibilities, the one we choose is to run composer install on every deployment. But that means that a dependancy (plugin or theme) can be updated during the deployment.
Of course, it’s not perfect, in an ideal world, we would have a staging server to test and validate the deployment, but it’s not the case. So, to keep a track of Composer’s updates during deployment, I had the idea to mail the output of Composer after the end of the deployment. For doing that, I need to store Composer output in a file and, only if the deployement was successful, send the email with the content of this file. Continue reading Composer: save the output to a file
When we redesigned our newsletters, we came from far.
I arrived in the company to find very bad emailing practices. No responsive at all, no TEXT version, absolutely all best practices were missed by my predecessor.
Recently, I’ve been in charge of the redesign of all newsletters for many countries. Now, all our newsletters are responsive, has a TEXT version and some other best practices like physical address, two one-click-unsubscription links and many more…
But with several years of bad practices, how to tell our subscribers to open this new newsletter? If they were used to not open it, why would they now? And if they not, our redesign will be useless.
All is not perfect yet, but with two tips, help user to open your newsletter and increase your open rates.
Maybe it’s common use and everybody but me already knew it, but after ten years of php development, I’ve just find a very useful php function: Glob.
Glob function can be used to return an array of files from a given path, where file names matches a pattern.
Continue reading Php glob function
Chrome rendering engine does not allow antialiasing on fonts. This is pretty annoying, especially as Google provide a service to use webfonts! But, there is a way to fix this!
Update (2014-09-20): Finally, Google fixed this issue and released it with Chrome 37 [source]
Continue reading Chrome : webfonts antialiasing Fixed! (Updated)
Read a code can be a pain, especially if you wrote it years ago or if someone else have to read it later. Fortunately, you are using Sublime Text ! Continue reading Sublime Text : Add space to your code