Monthly Archive for January, 2007

Finding file extensions with AWK

This one-liner helps in finding the file extensions of a given Subversion working copy:
find path_to_repos -type f | grep -v "/.svn/" | awk -F "/" '{print $NF}' | awk -F "." '{if (NF > 1) {print $NF}}' | sort | uniq

Its usage outside of Subversion is even more trivial.

Dear big customer

Dear big customer,

two years ago I described how I would have organized a piece of your network architecture to let one of your one hundred developers divisions use Subversion properly. Now a well known company tells you they would do the same and you really appreciate their suggests as you’ve never heard them before.

It’s always fun to see the way you spend your money and waste my time :-|.

A patch for Joomla com_media

Once again an easy to fix bug viewed by thousands of eyes has survived for ages. Today I sent this patch to Joomla forge to fix a bug in administrator/components/com_media/admin.media.php.

rsync helps exporting Subversion’s working copies

This one-liner helps you to keep a mirror of a working copy of a Subversion repository without its .svn directories. It may speed up the test-modify-commit cycle: it acts like an export but it should be faster.

The command is


rsync -apogz –delete –exclude=”.svn/” /working_copy/path/ /testing/point/
rsync -Dgloprtz –delete –exclude=”.svn/” /working_copy/path/ /testing/point/

Of course the whole thing works if your project doesn’t have “.svn/” directories.

rsync mirror note

Recently I needed the following one-liner I’ve used for years but it was lying on an unreachable computer so let me write how you can mirror two folders with rsync:

rsync -apogz –delete /source/ /target/
rsync -Dgloprtz –delete /source/ /target/

venticinque

Torino, 19 gennaio: terzo giorno di gare delle Universiadi Invernali 2007.

In città: 25 gradi.

http://www.comune.torino.it/meteo/

knopILS cited by Wikipedia

I noticed knopILS is cited as “an excellent Italian version” in the “Variations” list of the Knoppix page of Wikipedia.

Wow!

I don’t know either who wrote that or when they wrote it but it’s a very pleasant discovery.

Joomla Subversion behind a proxy

This is a note about how to checkout the Joomla stable (1.0.x) Subversion repository when you are behind a proxy.

I know there are many sites explaining how to do that but I was not able to find one of them with an out of the box working solution.

This is my recipe.

1) Add the following lines to your ~/.subversion/servers:

[global]
http-proxy-exceptions = *.your_domain
http-proxy-host = proxy.your_domain
http-proxy-port = 80 # 80 or the right port for you

2) The most important thing to do is to use HTTPS. In a working path, type:
svn co --username your_username https://scm.joomla.org/svn/repos/joomla/releases/1.0/ your_folder

Lexmark E232 and Kubuntu Edgy

This is a reminder for me and a note for you: the Lexmark E232 laser printer works fine with Kubuntu Edgy making it visible as Lexmark Optra E321 (Foomatic + hpijs). I use it with the Netgear Mini Print Server PS101.

Jack in the blog

After having fixed some typo on Wikipedia, I overcame my shyness and added my bits to it. I have always found funny the way the word “Jack” is used, so I added here some missing usages. It was hard to find something silly enough to be a good start but finally I have found it :).

I have added:

  • Car Jack
  • Jack Frost
  • Jack knife
  • Jackpot

and some Jack that are stil to be added are:

  • boot Jack
  • Jack-in-office
  • Jack ketch
  • Jack staff
  • Jack towel
  • screw Jack

I suggest reading http://www.thefreedictionary.com/Jack and http://dict.die.net/jack-in-office/ because the hunt is still open :).