white noise | tag/devel /blog//tag/devel.html white noise archmbox 4.10.0 /blog//post/archmbox_4.10.0.html /blog//post/archmbox_4.10.0.html devel perl Thu, 06 Nov 2008 22:07:18 +0100 devel Archmbox 4.10.0 was released.

Archmbox a is perl based email archiver which can perform different and specific actions on one or more mailboxes.

It's been more than three years from the last release of archmbox, and now here we are again. I'd like to than all contributors for their enthusiasm that pushed me to start working again on this piece of software.

This release is not a milestone, and won't probably change the way you archive emails; by the way, there are some nice features that worth a try; option to customize the archive mailbox name was added and support for logical and in regular expressions based archiving was added as well.

The usual code cleanups and revisions were performed as always.

Archmbox home page can be reached at the following url:

http://adc-archmbox.sourceforge.net/

]]>
archmbox is back /blog//post/archmbox_is_back.html /blog//post/archmbox_is_back.html devel perl Sun, 05 Oct 2008 17:15:18 +0200 devel Its been three years of silence. The TODO and CLEAN list had some elements in, but since things were smooth and I didn't received a single report about bugs, the development of archmbox kept on being delayed.

A couple of weeks ago I suddenly received a lot of good code contributions from Juergen Descher, a nice guy I've never heard about before, who awakened me from my sleep and put me back to development. So archmbox 4.5.0 is on it's way; I have little spare time to devote to it, but hopefully the wait for the new release won't be long.

I'm pretty amazed that this small little tool I developed back in 2002 is still used and captures interest. It's nice :D

]]>
serialization in ruby /blog//post/serialization_in_ruby.html /blog//post/serialization_in_ruby.html devel ruby Sat, 17 May 2008 14:19:19 +0200 Ruby

Serialization in ruby

]]>
ruby system hooks /blog//post/ruby_system_hooks.html /blog//post/ruby_system_hooks.html devel ruby Tue, 13 May 2008 22:28:14 +0200 Ruby

ruby system hooks

]]>
reflection in ruby /blog//post/reflection_in_ruby.html /blog//post/reflection_in_ruby.html devel ruby Fri, 02 May 2008 20:32:07 +0200 Ruby

Reflection in ruby

]]>
webless /blog//post/webless.html /blog//post/webless.html devel web Sun, 13 Apr 2008 11:58:21 +0200 web Last night I came across this link:

The webless initiative

I'm pretty well known for my minimalistic and old styles likes, but I guess it could be interesting to follow that link anyway. It's especially suggested to all web designers who are very talented in creating wonderful appearances without having a clue about standards and usability.

PS: my personal website and this blog are not fully compliant to webless guidelines, although they render well in small or console driven web browsers.

]]>
tt2 and markdown /blog//post/tt2_and_markdown.html /blog//post/tt2_and_markdown.html devel perl tools web Fri, 21 Mar 2008 22:44:17 +0100 web I definitely love Markdown; it just makes web pages editing painless, quick and funny. I was aware of a markdown plugin for Template Toolkit, so i decided to dig a little deeper.

All I needed was the Template::Plugin::Markdown perl module. After installing it I was able to use markdown syntax in my TT driven web pages:

[% USE Makdown %]
[% FILTER markdown %]
.
.
. (markdown formatted page content)
.
.
[% END %]
]]>
back to tt2 /blog//post/back_to_tt2.html /blog//post/back_to_tt2.html devel perl tools web Sun, 16 Mar 2008 22:38:48 +0100 web I am pretty excited. Soon I will be back on web design and development, so I took the occasion to tidy a bit some stuff about Template Toolkit.

From the TT2 website:

The Template Toolkit is a fast, flexible and highly extensible template processing
system. It is free (in both senses: beer and speech) open source software and runs
on virtually every modern operating system known to man. It is written in the Perl
programming language with certain key elements coded in C for maximum speed.
However you don't need to know any Perl (or C) to be able to use it.

It is ideally suited, but not limited to, the creation of static and dynamic web
content and incorporates various modules and tools to simplify this process. It is
mature, robust, reliable and well documented.

I haven't use it for quite a bit, so It will be very funny to explore all the features added since then.

]]>
threads and processes in ruby /blog//post/threads_and_processes_in_ruby.html /blog//post/threads_and_processes_in_ruby.html devel ruby Sat, 01 Mar 2008 12:08:26 +0100 Ruby

Threads and processes in ruby

]]>
input output in ruby /blog//post/input_output_in_ruby.html /blog//post/input_output_in_ruby.html devel ruby Sun, 24 Feb 2008 13:00:25 +0100 Ruby

Input/Output in ruby

]]>
modules in ruby /blog//post/modules_in_ruby.html /blog//post/modules_in_ruby.html devel ruby Tue, 19 Feb 2008 12:42:20 +0100 Ruby

Modules in ruby

]]>
exceptions in ruby /blog//post/exceptions_in_ruby.html /blog//post/exceptions_in_ruby.html devel ruby Sun, 17 Feb 2008 14:38:28 +0100 Ruby

Exceptions in ruby

]]>
expressions in ruby /blog//post/expressions_in_ruby.html /blog//post/expressions_in_ruby.html devel ruby Wed, 13 Feb 2008 22:05:38 +0100 Ruby

Expressions in ruby

]]>
methods in ruby /blog//post/methods_in_ruby.html /blog//post/methods_in_ruby.html devel ruby Sun, 03 Feb 2008 14:48:10 +0100 Ruby

Methods in ruby

]]>
the lazier I get /blog//post/the_lazier_I_get.html /blog//post/the_lazier_I_get.html devel geek perl Fri, 01 Feb 2008 17:22:36 +0100 geek I use ikiwiki to maintain this blog; I use it in non-cgi mode, which means that I edit the posts with vim off line, then I upload them to my web site. After more than two years of posting, I got a little bored of adding the tag statement at the top of each post and the html code to display the nice icon you see on the right.

Having some unexpected spare time, I decided to write a little helper to save me some key strokes. I don't know if it can be useful for anyone but me, by the way, you can download it here.

]]>
standard types in ruby /blog//post/standard_types_in_ruby.html /blog//post/standard_types_in_ruby.html devel ruby Tue, 22 Jan 2008 23:15:28 +0100 Ruby

Here's another mind map from the ruby series.

Standard types in ruby

]]>
iterators in ruby /blog//post/iterators_in_ruby.html /blog//post/iterators_in_ruby.html devel ruby Sat, 01 Dec 2007 14:58:04 +0100 Ruby

Iterators in ruby

]]>
classes in ruby /blog//post/classes_in_ruby.html /blog//post/classes_in_ruby.html devel ruby Sat, 24 Nov 2007 00:27:28 +0100 Ruby

I have finally found the time to organize my ruby knowledge. This is the first of a series of mind maps I drew while reading the picaxe book.

Classes in ruby

]]>
another little app for a gtd system /blog//post/another_little_app_for_a_gtd_system.html /blog//post/another_little_app_for_a_gtd_system.html devel gtd perl unix Sun, 18 Nov 2007 14:00:51 +0100 Gtd

Feeling really comfortable with my outline based gtd system, I decided to go one step further. I have a bunch of cards, one for each project I'm working on, so I looked for a nice way to managed them. Some kind of interface that helps me browse, filter and edit the cards.

I haven't found anything suitable on the net, so I decided to go my way and code a little helper from scratch. The result is a cards browser with some filtering capabilities; it is project oriented rather than action oriented, simply because that's how I feel comfortable in managing my tasks.

Information, a screenshot and download links can be found on my personal web site.

]]>
embedding a flash video in a web page /blog//post/embedding_a_flash_video_in_a_web_page.html /blog//post/embedding_a_flash_video_in_a_web_page.html devel tools web Thu, 08 Nov 2007 21:54:47 +0100 Tools

Today I've been asked to embed a video in the home page of a website I maintain. They were looking for the usual nice looking flash player to perform playback, just like YouTube and other similar web sites.

I decided to look for something flexible and - more important - open source. I found flowplayer, a really nice, really flexible and incredibly easy to set up flash-based video player.

The documentation on the project web site is complete, and you can simply cut-and-paste to have something working out of the box. Tweaking is also easy and fun.

Great stuff.

]]>
color schemes /blog//post/color_schemes.html /blog//post/color_schemes.html devel graphics web Mon, 22 Oct 2007 23:02:02 +0200 Devel

Finding a suitable color scheme is always an important thing anytime I have to develop some web site or work with graphics. Today I found the following web site: Colr.org, which has a nice set of applets to fetch color schemes from a website or extract them from a particular picture. It also allow to browse ready-to-use color schemes as well, or submit new ones.

You can see the result in the image below; it's the color scheme I used for my personal web site.

hyboria color scheme

]]>
curses e perl /blog//post/curses_e_perl.html /blog//post/curses_e_perl.html devel geek perl Tue, 07 Nov 2006 23:11:28 +0100 Dopo aver lavorato, con una certa soddisfazione, con il binding per perl di GTK2, ho provato ad avventurarmi nella selva delle interfacce terminale. Sono incappato nel modulo Curses::UI, che fornisce una semplice interfaccia ad oggetti per creare un certo numero di widget di uso comune. La libreria è ben documentata, ed il codice di esempio fornito molto utile per realizzare in breve tempo qualcosa di funzionante.

Purtroppo la gestione keyboard driven è leggermente meno intuitiva di quella basata su mouse, per cui ho riscontrato tutta una serie di comportamenti buffi a cui non ero preparato (specie nella gestione del focus dei vari oggetti).

Altra cosa che mi ha spiazzato non poco sono state le difficoltà in fase di debugging. Per come viene gestito l'output, il debugger perl è praticamente inservibile. Per fortuna è possibile ridirigere lo standard error su un file e, attivando l'opzione di debug della libreria, si riesce a creare un file di trace tutto sommato utile.

Al di la di questi piccoli inconvenienti, sicuramente superabili con una lettura più approfondita della documentazione ed una maggior pratica nell'utilizzo, Curses::UI mi sembra un buono strumento per realizzare qualcosa che consenta un minimo di interazione con l'utente. Magari non adattissimo per cose particolarmente complesse, ma comodo da avere a portata di mano.

]]>
maneggiare vcard /blog//post/maneggiare_vcard.html /blog//post/maneggiare_vcard.html devel geek perl Thu, 21 Sep 2006 21:18:30 +0200 vCard è un formato di scambio di dati personali abbastanza diffuso e supportato da una certa varietà di dispositivi. Risulta quindi molto comodo per gestire il proprio archivio di contatti e mantenerlo sincronizzato, ad esempio, con il proprio telefono cellulare.

Se siete interessati a dare un'occhiata approfondita al formato utilizzato dalle vCard potete fare riferimento alla RFC2426, che ne descrive in modo esaustivo tutti gli aspetti.

Ho passato un paio di giorni fa un'oretta a giocare un po' con alcune delle vCard che, nel tempo, mi sono state inviate per posta elettronica da amici e corrispondenti vari. In particolare, ero interessate a costruire un qualcosa che mi permettesse di visualizzare una card in modo più agevole rispetto al formato nativo (testuale e comunque leggibile).

Avendo voglia di scrivere un po' di codice perl, ho utilizzato il modulo Text::vCard - facilmente reperibile su CPAN. La libreria in questione è ben fatta e, per quanto non ancora completa, molto semplice da usare. Non è ancora possibile gestire le informazioni di tipo binario (foto, sample sonori etc.), e l'export nel formato vCard non gestisce (ancora) correttamente l'escape dei caratteri, ma se il vostro obiettivo è la sola visualizzazione, questo modulo semplifica di molto il lavoro.

Se avete voglia di vedere un po' di codice reale, scaricate vcfreader.pl e giocateci liberamente. Penso che possa essere un buon punto di partenza.

]]>
fogli di stile e selettori di attributo /blog//post/fogli_di_stile_e_selettori_di_attributo.html /blog//post/fogli_di_stile_e_selettori_di_attributo.html devel web Sun, 13 Aug 2006 23:27:36 +0200 Penso che sia capitato a chiunque abbia provato a fare un sito web che avesse un minimo di verve in più rispetto al solito, di doversi confrontare con il fatto che alcuni browser hanno un supporto dei fogli di stile più completo rispetto ad altri prodotti. La cosa è parecchio frustrante; ogni minima fighezza rischia di diventare un serio mal di testa, oltre che un discreto spreco di tempo nel tentativo di trovare dei compromessi funzionanti e non troppo penalizzanti.

Una cosa che non sapevo (un grazie a Luca per la segnalazione) è come sia possibile usare un selettore di attributo di questo tipo:

Elemento[attributo="valore"]

per definire classi specifiche per i diversi browser.

Definire uno specifico id per l'elemento body, ad esempio, permette di usare regole più semplici per gli elementi a favore di quei browser che non supportano il selettore, e regole complesse per tutti quelli che, invece, lo supportano.

Per vedere un esempio reale della cosa, date un'occhiata a questo design e a come viene visualizzato con Internet Explorer e con Firefox...

]]>
grafi con perl /blog//post/grafi_con_perl.html /blog//post/grafi_con_perl.html devel perl tools Sat, 05 Aug 2006 15:57:43 +0200 Ho dedicato un po' di tempo a giocare con graphviz, oggetto alquanto simpatico per la realizzazione di grafi di vario genere. Ho anche scoperto che esiste un modulo perl che permette di utilizzare graphviz direttamente da script, in modo assolutamente facile.

graphdir.pl è una minuscola demo che ho realizzato per provare le funzionalità di suddetto modulo; genera un grafo a partire da una directory specificata come parametro.

Ecco il risultato:

graph

]]>