Skip to main content

Posts

Most used Perl editors

I've seen this poll too late, although it's interesting that the most used Perl editor is the vi family (where I'd belong) with 34%, followed not very closely by Emacs (13%). Eclipse + EPIC got only 6%... The full poll results here .

Debianize a Perl module

What a good day. Not only I've got a new laptop from the company, but I've found also an extremely useful tool to build a debian package from a perl module: dh-make-perl . You just need to do 2 things: - Run dh-make-perl on the untarred module directory (this creates the necessary debian dir and files). - Inside the module directory, run debuild . Very nice. Now I wonder why most of the CPAN and POE components don't come with a debian package...

When was that package installed?

On debian/Ubuntu you can check the installationdate from the output of: ls /var/lib/dpkg/info/*.list -lh Just | grep the name of the package you're interested to. See this for important details.

debian policy for init scripts

It could be useful to add your /etc/init.d/ script to debian/conffiles to avoid overwriting local changes. Sometimes sysadmins change the init scripts and with this little tip you can help them in case of package upgrades. From the Debian Policy Manua l: "The /etc/init.d scripts must be treated as configuration files, either (if they are present in the package, that is, in the .deb file) by marking them as conffiles, or, (if they do not exist in the .deb) by managing them correctly in the maintainer scripts (see Configuration files, Section 10.7). This is important since we want to give the local system administrator the chance to adapt the scripts to the local system, e.g., to disable a service without de-installing the package, or to specify some special command line options when starting a service, while making sure their changes aren't lost during the next package upgrade. "

Using externals with SVN

UPDATE: You need to specify the directory you want to create when setting the external property. No need to create the dir before propset: it'll be done automatically when you 'svn up' . - Create somewhere in the SVN repo the directory you want to use as external (let's call it SVNEXTURL) - Go in the working copy where you want to have an external reference and: svn propset svn:externals 'newlocaldir SVNEXTYURL' . where newlocaldir is the name of the directory being created by SVN during this operation. Quotes are needed. Note the '.' - and then svn up Enjoy! Problem : if you're using a version of svn-buildpackage older than 0.6.24 (debian), it won't work with external references. You can upgrade to >= 0.6.24 or apply locally the patch described here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=363003

Lessons learnt #1

Not a real surprise, but useful to write it down... - If you have data that varies depending on the platform or environment you're using, be sure to have it in a separate file, marked as config file (for example using debian/conffiles if you build debian packages) - Be sure to have a clear way to handle dependencies - Write them down and whenever possible use automated tools, as debian/control if applicable)

I'm cellphone only

Now that I think about it, it's since 2000 that I don't have a fixed telephone line in the house where I live. Cell phone and ADSL or 3G data connection meant to replace it (with some limitations in terms of service availability and emergency calling ). It's probably a known trend: in the US 20% of people have made the same choice . And look how many families are adopting wireless phone services only ! I'll write on this topic and on interesting solutions. VOIPBLOG.IT reported it in Italian.