the devmin quest

linux administration-development tips and tricks

Si vous cherchez mon site professionnel, merci de cliquer ici.

How to get a clean html code when using the rails erb template system


That’s may be a minor issue, but I find it quite annoying to have the html code messed up by the few logic in the erb templates.


Fast website update with SVN


If you manage websites on a remote dedicated server, you probably waste many time on transferring code from your local machine to the remote one. You can script some ftp transactions, but it’s somehow not really secure. You can use scp, but it can be a pain with the need for password.

What I’ll discuss here is an other method : using SVN. The main advantage is to update the site in a simple command, and to be able to revert modifications easily.


using a secure dynhost as a postfix trustee


In the two past posts, we saw how to setup a dynhost service and to secure it. If you’re a postfix user, you may like the “mynetworks” variable that lets you use postfix from a list of ip without needing any other identification. This, obviously, can’t work with a dynamic ip. I searched and asked for a while, but I just can’t find any way to use a domain name instead of an ip. So, this post discusses how to read the mynetworks value from a mysql table, and how to integrate this in secure_dynhost_server.


secure dyndns service with authentication server


In the last post, we saw how to setup a dyndns service with bind. This works well for webservices, in order to provide a domainname to users, but it has some security flows if you want to integrate a dynamic ip’d computer in a business network. The issue is about letting someone acquire your old ip when you disconnect, and thus being considered as a part of your network. In this post, we’ll discuss a method to build an authentication server upon ssl.


Group ownership in object oriented programming


This post discusses the concept of ownership in oriented object programming, and more precisely, how to deal with instances shared by several instances of an other class.