There have been some discussion around net about Drupal‘s future. I don’t know where the discussion started from and is core Drupal developers included or is it only some Drupal users who is giving their opinions. Anyway, I like the idea and wanted therefore blog few words about it.
Ubuntu has now days awesome start/stop system called Upstart which has replaced /sbin/init. It is also capable to supervising processes. It is really simple to add new processes to upstart. I wanted my blog start automatically on system boot and therefore I added my blog under upstarts control.
Long time from previous post. I have been quite busy with my work and other hobbies and therefore haven’t had too much time for hacking. This month I had some spare time and started migrating my VPS from Slicehost to Linode. I have one python program where I use MongoDB and Mongokit which I was installing with easy_install. For all depencies I picked lastest versions and result wast that program wasn’t working.
I had problems with mail delivery on one server where server self doesn’t have any email services. The case was following: server’s hostname was example.com and emails for example.com was handled by another server. By default sendmail will treat all emails sent to example.com meant for local users eg. user@example.com will be searched from local user table.
I wanted all emails to example.com to be delivered to domains email server which was defined on MX record. I’m not sendmail expert and for my own servers I prefer postfix, but this was client’s server so I had to figure out how to configure sendmail handle this case.
One of sites which I admin lived on hosting providers server which was powered with CPanel and I moved it on VPS few days ago. I had tar file which was CPanel’s full backup of host. Emails and website was easy to migrate from that backup because tar contained all emails on Maildir format and whole website was on one folder. Mailing list migration was more trickier because of CPanels patched version of Mailman.
I found this helpful Mailman migration article, but it was for normal Mailman setup and steps are little bit different if you are moving away from CPanel. I didn’t find too much information of CPanel’s Mailman so I wrote this small tutorial for other admins who are moving away from CPanel and have to migrate their mailing lists to standard Mailman setup.
I have read nice posts of Gunicorn and decided to try it out. Until now I this blog was running top of Flup and from very beginning I had some bad feelings about it. This Django based blog is running on small VPS and that’s why I’m really interested of low memory footprint. I read that Gunicorn has small memory footprint and high performance so I installed it on my VPS. Setting up Gunicorn was really easy and straightforward process which took only few minutes and released almost 40 Mb memory. I will explain the installation and configuration process shortly.
Yesterday evening I took second try with vim on os x (or actually macvim) and tried to install some plugins with GetLatestVimScripts. It took for a while to figure out why it didn’t download plugins. Only error message I got was “n downloading errors” where n was count of plugins. I hope this post will help if someone else has the same issue.
Yesterday I faced with really weird issue with PHP’s session handling. At work we are hosting dozens of sites on our servers and suddenly on one server we were getting lot of weird out of space errors when PHP tried to open session files. Error message was “Warning Unknown: open(/path/to/sessions/sess_somehash, O_RDWR) failed: No space left on device (28)” . Because of those errors I was believing we were somehow running out of space on apache’s temp file partition. Truth was there was only few megabytes data, but the problem was that we had over 200 000 files on one folder and PHP got crazy of that.
Few weeks ago my Nokia E75 noticed of new software update. This is my first phone which has update notifier. It has also option to download and install update directly from phone without needing PC Suite. I think this was great because I don’t own PC, but I found reality is different.
As I have mentioned I use now days Mercurial for my pet projects. There was one thing I was missing from Git. Git has nice feature to pick part of files for commit. Its really nice feature because I find myself regularly doing many small issues between commits which I want to commit separately.
Same kind of feature have been available for Mercurial over two years from now. It is called hg record which is made available by record extension. This increased Mercurials usability at lot. I hope this tip will help someone else who has also wondered if this kind of functionality exists in Mercurial.
Should we still consider to move on Mercurial at our work :-/