Here is a a symfony 1.4 plugin we’ve implemented to make it easier to manage (upload, delete, etc…) files to Rackspace Cloud Files. We first developed this when we started having performance problems with a client’s website that uses a lot of images. The Rackspace Cloud Files acts as a CDN. It helped us to have all files uploaded via the website’s admin, kept in a central secure storage. This way, if the load/traffic has a spike, and we need to add another frontend or backend instance to the website, we don’t have to copy the thousands of files to the new server or create a NFS between them; we just create another server instance and we’re good to go and we benefit from the CDN advantages as described in Yahoo’s developer best practices
Read more…
We have been really busy the last year or so, so it has been a really loooong time since we posted regularly.
We promisse to try and post more regularly, once every week or so…
Read more…
Install thinkfan + sensors and configure both
sudo aptitude install lm-sensors thinkfan
sudo sensors-detect # configure lm-sensors -> I accepted all the questions
sudo vi /etc/modprobe.d/thinkpad_acpi.conf # add "options thinkpad_acpi fan_control=1"
sudo reboot now
Read more…
December 24th, 2009
pedro
I recently updated to the newest version, 9.10 AKA Karmic Koala and I love it. It’s fast and everything works perfectly. Or nearly everything…
Read more…
One of the things that stumbled me the most about bazaar is that it does not have a own authentication method. Users can access repositories through ssh, sftp, etc. While this is very usefull if everyone working on the repo has shell access to the server, it does not allow “virtual users” the way svn does. Well, not out of the box anyway… There’s always a workaround. This post tries to explain how to configure Bazaar in the centralized model and set user level permissions to the working directory.
Read more…
Today I was had to move a few web sites from one server to another. As I did not have ssh or ftp access to it, the only way to do it was through Plesk. As I don’t have experience using Plesk, I did not know that Plesk’s built in File Explorer can only be used to manage your web site’s files within the server, but it does not let you download those files. So, looking around Plesk’s admin interface I found the backup feature. That looked promissing, so I clicked on it and it brought me to another page called “Backup Manager”. This page allows you to set up periodic or one time backups. Backups can be saved in Plesk’s local repository or in an external FTP server. So I set up all the FTP details and start the backup. Once the backup finished I tried to open it on a linux box and file-roller gave an error when it tried to extract it. A `file` showed that the file was indeed in gzip format.
Read more…
Recently, I’ve been doing a few projects using Symfony PHP framework and Bazaar for version control. One of the great features of Symfony is that it generates base classes automatically to interact with the database from a pre-defined schema file. While this is a great feature, every time the schema gets changed, Symfony regenerates all the files thus flagging them as modified in Bazaar. To avoid committing those files all the time, I created a .bzrignore file to ignore them and leave my repository nice and clean.
Read more…
First lets install pureftpd using apt-get:
Install pureftpd with the MySQL backend:
apt-get install pure-ftpd-mysql
Read more…
Here’s a little wordpress widget I’ve written. For those not familiar with it, wolframalpha|Alpha is a computational knowledge engine. Basically, it claims to answer every question you might or might not have including the final answer to life, the universe and everything. It’s very interesting in my opinion and it’s worth a try. Therefore I’ve written a little wordpress plugin so you can easily add it to your wordpress blog if you want.
Read more…