Results tagged “web” from The Cattle Grid

Ultimamente c'è molto fermento nella comunità Perl: ciò si manifesta, tra l'altro, nel crescente numero blog più o meno dedicati al linguaggio (ancora pochi in italiano, purtroppo), nonché dal successo di iniziative tipo l' Iron Man Challenge.

Fino a qualche mese fa, tuttavia, l'immagine che fornivano i siti "istituzionali" della comunità Perl era un po'... obsoleta. Guardate ad esempio questo, fortunatamente ora visibile solo su Web Archive. ;-)

Recentemente sono stati completamente ridisegnati questi siti:

http://www.perl.org/
http://lists.perl.org/
http://www.perl6.org/

che forniscono una prima immagine decisamente più ordinata e coerente del linguaggio.

Quindi... quale momento migliore per approfondire la conoscenza di Perl? Visitate perl.org, iscrivetevi alle mailing list oppure... se preferite l'italiano, visitate Perl.It.

Sympa version 6

|

Sympa, the mailing list manager written in Perl, reached version 6 last October (latest version is currently 6.0.1)

Version 5 is already far superior to most other mailing list software including the widespread GNU Mailman. Sympa also enjoys a much more active development than Mailman, which has been stuck at maintenance releases of version 2.1 for many years.

Version 6, first of all, features a brand new web interface. You take a look at it here:

http://demo.sympa.org/sympa

The mailing daemon went through a rewrite and it now allows parallel sending of e-mail, both on a single server or with multiple servers. It's behaviour is fully customizable.

Most configuration features are now in the database and not in text files: this makes it possible to edit most parameters directly through the web interface.

Other improvements include stronger security, list cloning, translations in a variety of languages, personalized moderation of messages and improved spam handling.

The Sympa folks also created a VMWare virtual machine which allows you to bootstrap a working Sympa environment - so that you're ready to go within minutes.

It's not really news, but I haven't talked about it yet: mod_perlite is now usable! ;-)

For folks who don't know what mod_perlite is, take a look at this article on PerlBuzz. Tu summarize, it's a module which embeds Perl into Apache, much lighter than mod_perl, with less features and with some advantages. It makes Perl usable a-la-PHP.

Before October 10 the module was not really usable because of some serious bugs, which were recently solved. Version 0.10 of mod_perlite can run MovableType, which is a fairly complex piece of software so I guess most CGI scripts are supported as of now.

The project still needs help, and the module needs testing. If you're interested, jump in. The mailing list is plagued by spam these days (maybe because of a configuration mistake), so check out the GitHub page.

mod_perlite is a very interesting project which aims to create a lightweight Perl module for Apache which can compete in the market range where PHP dominates.

The project already has something which actually works, but which needs to be polished. If you can and want to help, take a look at the web site!

Italian: per gli italiani, qui c'è un articolo in merito.

After looking at the open source alternatives, I decided the price was worth to buy the MCIMageManager plugin for TinyMCE. This open source (LGPL) Rich Text Editor is probably the best out there: the great image upload plugin, developed by the same folks, is however not free - but definitely worth its money.

The backend of MCImageManger is in PHP or .NET: I decided to stick with the PHP version, as my web server is on Unix, but still had to find out how to integrate it with my web application (which is in Perl) making sure only logged in users would be allowed to upload files. There are code examples for JSP, ASP Classic and several PHP configurations, but nothing related to Perl. So, I ported the authentication script - it was easy enough and here's the result.

If you use Perl and you want to integrate authentication with the one of your system, you need to use ExternalAuthenticator in order to share sessions between Perl and PHP/.NET. It's not that difficult: since the Perl ExternalAuthenticator script is not provided, you can find one I wrote myself here.

MCImageManager configuration

File to edit is likely ''config.php''. If you use ''Web.config'', these instructions still apply.
First of all, you need to enable the ''ExternalAuthenticator'':

$mcImageManagerConfig['authenticator'] = "ExternalAuthenticator";

Scroll down a bit and you'll find the relevant configuration options for ''ExternalAuthenticator'':

// ExternalAuthenticator config
$mcImageManagerConfig['ExternalAuthenticator.external_auth_url'] = "/manage/tinymce_auth.pl";
$mcImageManagerConfig['ExternalAuthenticator.secret_key'] = "TheKey";

tinymce_auth.pl

Put this file at the location you specified in ''config.php''. You need to edit some parth: the secret key and, of course, the part which verifies the user is authenticated.

#!/usr/bin/perl

use strict;
use warnings;

use CGI::Carp qw/fatalsToBrowser/;
use CGI::Simple;
use CGI::Session;
use HTML::Entities;
use Digest::MD5 qw/md5_hex/;

# Must match the one in config.php
my $secretKey = "TheKey";

my $q = CGI::Simple->new();
print $q->header(
    -type   => 'text/html; charset=UTF-8',
);

my $session = CGI::Session->new();

# See if session-id is OK
if ( !$session->param('idadmin') =~ /^\d+$/ ) {
     print "Not logged in";
     exit;
}

# Come configuration variables can be overridden here
my %configuration = (
    #'filesystem.rootpath'   => '/some/path',
    #'filesystem.path'       => '/some/path',
);

my $data = '';
for my $cv (values %configuration) {
    $data .= $cv;
}
my $key = md5_hex($data . $secretKey);

print '<html>';
print '<body onload="document.forms[0].submit();">';
print '<form method="post" action="' . encode_entities($q->param('return_url')) . '">';
print '<input type="hidden" name="key" value="'. encode_entities($key) . '" />';
for my $ck (keys %configuration) {
     my $enc_ck = $ck; $enc_ck =~ s/\./_/g;
     print '<input type="hidden" name="'
        . encode_entities($enc_ck)
        . '" value="'
        . encode_entities($configuration{$ck})
        . '" />'
    ;
}
print '</form></body></html>';

This work is free software, by , and is provided as-is. If you need support, ask in the TinyMCE forums.

Current TV in Italy

|

Peer-to-peer television Current TV launched its Italian version a few days ago. From the first time I saw it, and then visited the website, I thought it was a very interesting way of making TV and learning things.

It's difficult these days to find something which makes some sense on other video sharing sites such as YouTube. In Current it is quite easy, as there's someone behind it who actually cares for what is interesting to publish and what isn't. Plus, what you send can even be aired on Sky channel 130 if other users like it enough!

So, welcome to Italy Current.Com!

Update: this document was edited on 2009-10-02 to match the latest changes in GoDaddy SSL certificates request process.

This short HOWTO explains how to set up the excellent Lighttpd to work with a SSL certificate released from a CA. The whole processis fairly easy, but not completely straightforward.

I'm assuming the host name for which the certificate will be set up is www.domain.ext and the operating system is Gentoo Linux (the process shouldn't be too different with another OS, though). Also, in my example I'm assuming that the certificate is a GoDaddy TurboSSL Certificate.

Tags

Find recent content on the main index or look in the archives to find all content.

Categories

Pages

Powered by Movable Type 4.23-en