cameroom (ξανά!)

Διαβάζω στο OWASP blog:

σύμφωνα με τις δηλώσεις του αναπληρωτή υπουργού Εσωτερικών κ. Μαρκογιαννάκη ότι “για την αντιμετώπιση του σύγχρονου εγκλήματος είναι αναγκαία η χρήση καμερών βάσει της ευρωπαϊκής εμπειρίας όπως συμβαίνει και σε άλλες χώρες”.

Οι κάμερες στην καλύτερη περίπτωση θα βοηθήσουν να βρεθεί αυτός που διέπραξε κάτι. Οι πολίτες οφείλουμε να αποφασίσουμε τι μας ενδιαφέρει περισσότερο:

– Να βρεθεί ο κλέφτης ή να μην μας κλέψουν;

Εγώ προτιμάω να γίνονται επενδύσεις ώστε να μην εγκληματούν εις βάρος μου (παιδεία και ανεργία κανείς;). Η κάμερα δεν είναι αποτρεπτική επένδυση, επικουρικός μηχανισμός στη διαπίστωση της πράξης είναι. Η εμπειρία από τα γήπεδα θα έπρεπε να μας έχει διδάξει σχετικά.

(previous)

re: Applications Meme

I got tagged from kargig. Let’s see the Q and A:

  1. Which desktop manager do you use more often ?

    xfce

  2. Which desktop application you would not like to see implemented again on linux? And why?

    Something that tries to offer the functionality of, and even more troubles than, Microsoft Exchange. Not a desktop application, but this is what I do not want to see again.

  3. Which desktop application you definitely would like to see implemented on linux? Describe it briefly or point out to a similar application.

    Microsoft Excel. The original one.

  4. Write the name of the last project (not the very best, the last!) that made you wish to thank their developers so you can thank them now!

    I donated to OpenSMTPd. I now publically thank the developer.

  5. (Optional) Link the blogs of 1-3 people you’d like to take part to this meme. (no more than three). you can skip this question if you like.

    I tag Panagiotis, Hermes and Vaggelis.

(In-Reply-To:)

Hipster PDA

[ Ξέθαψα το post αυτό από τα drafts εξαιτίας αυτού του tweet ]

Πρωτοδιάβασα για το Hipster PDA στο αντίστοιχο section του Lifehacker. “Wow!”, σκέφτηκα. “Η γυναίκα μου το κάνει αυτό κάθε μέρα”. Και να σκεφτεί κανείς πως είναι αρχαιολόγα. Μπορεί η Wikipedia να γράφει πως η μόδα του hPDA ξεκίνησε από το SF Area, ξέρω όμως πολλούς αρχαιολόγους που μπορούν να ισχυριστούν κάτι διαφορετικό.

Το μικρόβιο του PDA μου το κόλλησε ο chstath. Ξεκίνησα με ένα Palm IIIx, συνέχισα με ένα Dell Axim X3, το οποίο συνεργαζόταν άψογα με το MPx200 (και τώρα με το Communicator 9500). Παρόλαυτά, ένα μικρό Moleskine είναι ήταν σχεδόν πάντα μαζί μου. Μπορεί στο PDA (και από εκεί μέσω του συγχρονισμού και στο τηλέφωνο) να έχω όλο τον κατάλογο, τα περισσότερα ραντεβού και επετείους, αλλά όταν θέλω να γράψω μια σκέψη, ποτέ μα ποτέ δεν μπορώ να καταφύγω στο PDA. Χρειάζομαι μολύβι (όχι στυλό) και χαρτί.

Και για αυτό το hPDA, αν και ρετρό, είναι ελκυστικό. Άρχισα να σκέφτομαι προσαρμογές:

  • Να είναι άραγε το ίδιο βολικό με απλό συνδετήρα αντί για binder clip; Μπα. Γρατζουνιούνται οι κάρτες.
  • Αν χρησιμοποιούσα ένα money clip; Ούτε αυτό δουλεύει καλά. Το money clip που έχω κρατάει μέχρι 6 και όχι 12 που είναι ένας προτεινόμενος αριθμός καρτών.
  • Σε συνδιασμό με ένα binder clip και ένα Swiss Card ή το αντίστοιχο card της Tool Logic; Μπα.
  • Με το money clip της Tool Logic; Ούτε.

Πριν το μικρό Moleskine (squared) δοκίμασα και τα PocketMod και re:PocketMod χωρίς ικανοποιητικά αποτελέσματα. Μετά από περίπου ένα χρόνο με το Moleskine, άλλαξα σε ένα Filofax Personal όπου μπορώ και υλοποιώ τη δική μου παραλλαγή του Cycle System του Tom Limoncelli. Το μόνο που μπορώ να πω πως μου λείπει, είναι η όμορφη αίσθηση του χαρτιού του Moleskine σε σχέση με αυτό του Filofax.

Update 2011/12/28: Είναι λίγος καιρός που ξαναχρησιμοποιώ το PocketMod. Όχι τόσο ως organizer, αλλά ως σημειωματάριο και καταφύγιο σκέψεων, ειδικά σε μέρη που δεν είναι βολικό να κουβαλάω το Filofax. Δουλεύει μια χαρά και με ένα διακορευτή κάνει και καλό integration με το Filofax.

αλύπητα

tsmede-533

Είναι προφανές πως ο μετρητής έχει “μηδενίσει”. Την ώρα που βγήκε το εισητήριο απλά δεν μπορούσα να υπολογίσω εάν χρειαζόμουν 110 ή 210 λεπτά αναμονής. Προσέξτε επίσης την ώρα και ημερομηνία του σημερινού εισητηρίου (το οποίο κόπηκε γύρω στις 11:30).

(previously on ΤΣΜΕΔΕ) (next episode)

re: Ο πιο μεγάλος Ελληνας;

Ρωτάει ο HSOC για το δικό μας Top-10. Αν και διαφωνώ με το πως δίνεται το ερώτημα, αυθόρμητα έρχεται στο μυαλό μου πάντα ως απάντηση ο Παπανικολάου. Έτσι λέω να δώσω μια πεντάδα που δεν έφτασε στο Top-100:

Όποιος θέλει να συμπληρώσει, ευχαρίστως.

(In-Reply-To:)

Using Net::IMAP::Simple to move mailboxes around

In the past I have described using Net::POP3 (combined with tmail from UW-IMAP and a Perl script) to move inboxes from an old (and proprietary) mail server to a new one. However, if your users keep folders like Sent, Drafts and Trash on the mail server, you have to move these also. And this is where Net::IMAP::Simple enters the picture:

#!/usr/bin/perl

use Net::IMAP::Simple;
use Sys::Syslog;

$host = shift or die;
$user = shift or die;
$pass = shift or die;

openlog("imapcat-tmail", 'pid', 'mail') or die;
syslog('info', 'fetching mail for user %s', $user);
closelog();

# When debugging experiment only on myself
## if ($user ne "yiorgos") { exit 0; }

# Folders that we migrate.  CAUTION:  The Trash folder has to be the last in
# line!  That is because $imap->quit expunges the last open folder.  We want 
# this to be Trash and no other.

# For the time being, INBOX is being carried over by pop3cat-tmail.
## push @folder_list, "INBOX";
push @folder_list, "Sent";
push @folder_list, "Drafts";
push @folder_list, "Trash";

$imap = new Net::IMAP::Simple($host) or die;
$imap->login($user, $pass) or die;

while ($folder = shift(@folder_list)) {
        $nm = $imap->select($folder);
        next unless $nm;
        for ($i = 1; $i < = $nm; $i++) {
                $msg = $imap->get($i);
                open T, "| /storage/bin/tmail2 -I $folder $user";
                print T for @{$msg};
                close T;
                $imap->delete($i);
        }
        $imap->expunge_mailbox($folder);
}

$imap->quit;

## print "Bye.\n";
exit 0;

Some notes:

  1. tmail2 is a local version of tmail with a local quota function implemented in tquota.c. It also allows for the -I switch to be used by ordinary users.
  2. This script should be used with caution. When using it to move mailboxes around, keep in mind that all messages will be marked as new when moved.
  3. I must find time to do the same thing forking a version of mailutil that accepts the user password via a command line switch instead of the terminal.

O AliasFile=null: and Lenny’s sendmailconfig

As is described in the bat book, when you set:

O AliasFile=null:

no aliases will ever be found. However, if you put in your sendmail.mc:

define(`ALIAS_FILE’, `null:’)dnl

and the run sendmailconfig on a Debian Lenny, update_db will complain because it cannot handle the null: declaration. If you are bothered by this warning message, the solution is simple. Do not declare null: and instead:

# cp /dev/null /etc/mail/aliases
# newaliases