Search Results: "sf"

19 July 2006

Andrew Pollock: [tech] All I've ever wanted was a networked printer

Sad, but true. Well, not so much networked, as attached to my Linux box... With Sarah going back to school, we needed a working printer. Numerous attempts at step-up transformer technology had met with failure, to the point where it was rapidly becoming more economical to buy a new printer. So we did. Today it arrived. We got a Brother HL-5250DN, for the princely sum of $230 from Amazon. Main reasons for going for it were it had built-in duplexing, like the Panasonic KX-P7100 it was replacing, but unlike the Panasonic, which I unfortunately discovered after purchasing, was a WinPrinter, the Brother is a full-blown PostScript/PCL printer. And it's network-ready to boot. Very sweet. It's very important to be able to telnet to your printer. It does the whole gamut of networky things (naturally the first thing I did after plugging it in was run nmap over it): FTP, Telnet, HTTP, SMB, LPD, IPP and JetDirect support. Oh, and SNMP. Awesome. It gave me a good excuse to have a quick tinker with CUPS, and now we can print from Linux, MacOS X, and Windows. Very nice. Much better than the stupid WinPrinter. Hopefully the consumables won't cost a fortune, and I wonder if A4 paper exists in this country?

John Goerzen: Air Traffic Controllers Quotes

I found this amusing page today. My favorite is the one in Frankfurt.

18 July 2006

Jordi Mallach: Seventy years of the Spanish Civil War and the Spanish Revolution

A few months ago I wrote about the 75th anniversary of the proclamation of the Second Spanish Republic which was celebrated throughout the state. That weekend I visited a fantastic exposition of Republican and Revolutionary war propaganda posters, in Segorbe.

Today, Spain remembers the beginning of the end. During the evening of the 17th of July and morning of the 18th, a group of generals of the Spanish regular army raised against the democratically elected left-wing government of the Republic. History says that the murdering of Calvo-Sotelo, a right-wing leader, was what finally provoked the conflict. It was no secret that the same right-wing and some elements in the army had been conspiring for weeks about an uprise. The only question was when, but the government was fooled by general Mola and didn't take really effective measures to prevent it.


Warning from sanitary authorities against venereal diseases Mola and Sanjurjo planned to start taking over official buildings and army quarters and quickly seize control of the major cities. During the first hours of their rebelion, they managed to take over most of the southern regions in Andalusia, Extremadura and parts of the Northwest, plus most of the islands and the Moroccan protectorate area. Meanwhile, the Republic did not manage to react quickly due to the weakness of the government, and in the first days of the crisis, the government changed a few times. Finally, the Republican parties decided that to defend the state they should give arms to the unions, and soon after many militia groups were getting organised in the cities, and columns sent off to liberate other towns.


Solidarity of Catalunya to the Basque front The insurrection was suffocated in Barcelona after some heavy fighting against the military in the Montju c castle; the Anarchists of the CNT grew strong in Catalunya and Arag n, and offered good resistance in those fronts. After the first days of the coupe d'etat, it was clear neither the legitimate government or the rebels calculated how things would go after the first days. The government was confident in being able to end the rebelion as they did four years before; the fascists thought they would have quickly brought down the government with a successful coup. But after the first week, the country was divided in two halves, and both sides of the conflict were keen on fighting, due to the big social fracture during the last months of the government. The Republic asked for help to the League of Nations, but the United Kingdom and France decided not to intervene, scared about the conflict trespassing the Spanish borders and becoming another bloody war in European fields. The only official external aid came from the USSR and the International Brigades, formed by volunteers of more than 50 nations. Some well-known personalities like Ernest Hemingway or George Orwell came to aid as well. Orwell wrote about his life-changing experience in a Barcelona immerse in the social revolution, where he joined the anti-stalinist socialist party POUM. Badly wounded in the neck, he left the front and went back to Barcelona, and witnessed the assault of the Telef nica by the communists against the anarchists, during the fets de maig, after which the POUM was declared illegal. Orwell captured his experiences in the frontline and Barcelona in his book Homage to Catalonia.


To defend Madrid is to defend Catalunya Franco and Mola, aided by the Northafrican troops and soon after by their fascist allies of Italy and Germany, didn't have big problems seizing the Basque Country and Asturies in the North, but not before making the town of Gernika disappear below the nazi Condor Legion bombing, in what would be a test for the massive aereal bombings of Word War II. The battle for Madrid was fierce, and the city wasn't occupied until the very last days of the war. The long defence of the capital made was immortalised in the famous phrase No pasar n.


Madrid's No pasar n During the war, anarchist groups controlling fields and towns in Arag n and Catalunya managed to bring a Social Revolution to the area. The people collectivised the land and industries, administered by local assemblies. This experience is regarded as the time when Libertarian Communism has been successful. The experience ended dramatically when the anarchists were treasoned and blocked by the communists, and eventually defeated by Franco at the front.


Each bullet for a target After the first and a half years, the fronts had stabilised in Madrid and the East of Andalusia, until early in 1939, Barcelona fell in Franco's hands, after the bloody Batalla de l'Ebre, being followed by Girona and the rest of Catalunya. The fate of the democratic state was clear. Two months later, Madrid fell and Val ncia and the small area still under Republican control surrended.


Robert Capa's Muerte de un miliciano Franco declared a totalitarian regime to, according to the fascists, reconcile the two Spains. In the first five years of the regime, up to 100.000 were executed in the franquist repression, including the Catalan president, Llu s Companys and many intellectuals. The dictatorship continued executing people until two months before Franco's death, 36 years later. Hundreds of thousands also had to exile in M xico, France and other destinations, leaving Spain in ashes, road gutters full of scattered bodies and the population facing famine. The cultural elite left the country, making the state's clock go back at least a decade. Their reconciliation really meant humiliation and repression. Many people were also murdered during the war behind republican and rebel lines, but the genocide of the aftermath had was unmatchable.


The Republic promoted education among the troups It is a bit late to restore the dignity of the victims, but not too late. Some associations have been fighting since the end of Franco's regime to get some kind of public recognition for their suffering, for their priceless fight for the legal and democratically elected Republic, for the people who didn't make it.


Excellent anarchist poster rejecting the politisation
of children by any of the three loyal groups Other people reject these efforts banning them of "revisionism". Not too surprisingly, these are the sons or grandsons of the people who won the war. The current government is about to pass a Historic Memory law which aims to give recognition to all these people who gave their lives for an ideal and freedom. Unfortunately, due to pressures from the right, it is probable that the text will be ammended to make it more acceptable by them. I fear it will end up not pleasing the victims at all. I have a passion for Spanish Civil War related matters, and in the last years I tried to use any opportunity to listen to my Catalan grandmother talk about war affairs in Barcelona, and my grandfather, from a town in the middle of the Republican side of the Teruel front, but born in a very catholic family, about how the war went on in Vall and the nearby mountains.


From the defensive No pasar n to the encouraging Pasaremos! I know my grandfather only told me the less compromising stories, like how he was sent to dig refuges until he was 16 and apt to fight in the Front, or how he was put in charge of hiding the church's valuable relics in a few barns. He never told me about how life was after the war in the small town. It is dramatic to see that all the people who were old enough to have a sense of what was going on at the time are so old that these unvaluable memories and stories will be mostly gone in ten years. (Most of the pictures are taken from the Sociedad Ben fica de Historiadores Aficionados y Creadores' website, which has a huge documented catalog)

Ben Armstrong: XPilot change of upstream growing pains

XPilot development has changed hands over the past several years. While the original website at www.xpilot.org continues to be run by the original developers, XPilot-NG (xpilot.sf.net) is where all of the new development has been happening. But xpilot.org still performs an important function for the user community: they run the meta servers1 that list all public xpilot servers around the world. Recently, we (the XPilot-NG developers on #xpilot at irc.freenode.net) noticed quite a number of uncontactable servers popping up on the meta servers. This is annoying, to say the least. Users don’t know they can’t connect until they’ve tried (unless they’ve bothered to try pinging the server first) and besides which, having all those “junk” servers in the list makes it harder to locate contactable servers. Now, naturally, we wanted to know where all of those servers were coming from, and why now, at this particular time? I knew my Debian package (and presumably any derivatives) do not report to the metaserver by default. Any admin starting an XPilot server would have to explicitly configure it to do so, so the incidence of uncontactable Debian XPilot-NG servers should remain relatively low and have a constant growth rate. Then I found the Fedora package, and started poking around inside. After a shallow review of the package, I concluded there was a good chance it was the culprit2, especially since it recently (FC5) had an init script added. Such a bug, coupled with the relatively recent release of FC5, would account for the sudden spike in number of permanently running non-contactable XPilot-NG servers. Bingo! I found some helpful folks at #fedora-games at irc.freenode.net, including the XPilot NG maintainer, which led to filing this bug. I subsequently invited the maintainer over to #xpilot and had a nice time introducing him to the other upstream devs and chatting about our current issues. Ultimately, we know we need to fix the problem at the metas, but in the meantime, I am pleased to have established contact with my counterpart in the Fedora project, expanding the diminishingly small XPilot developer community by one.

1 They deliberately never released any source code for those metas to try to keep the user community unified at the centralized servers. While I see the reasoning behind the decision, given the problems we’re facing now, it’s clear the XPilot community would be better off with meta server source that is actively being maintained.

2 Admittedly two problems with the +reportMeta option upstream set us up for this problem. First, counterintuitively, +reportMeta disables reporting to the metaserver (following the rule ”+” negates the meaning of an option starting with ”-”). Second, -reportMeta is a stupid default. Most people starting servers are behind firewalls these days, so unless they consciously decide to make their server public, making the corresponding adjustments to their firewall, the option should not be set (not to mention the security implications of making a server public by default).

Enrico Zini: Fifth day in Addis

Setting up a mail server
Background Some terminology:
MTA
Mail Transport Agent
MUA
Mail User Agent
MDA
Mail Delivery Agent
SMTP
Simple Mail Transfer Protocol
MX
Mail eXchange
POP
Post Office Protocol
IMAP
Internet Message Access Protocol
With SMTP you connect to a server and send two things: envelope and message. The envelope looks like this:
MAIL FROM: <enrico@enricozini.org>
RCPT TO: <rms@fsf.org>
RCPT TO: <linus@linux.org>
The message looks like this:
From: <enrico@enricozini.org>
To: <rms@fsf.org>
Cc: <linus@linux.org>
Message-ID: <1234567@enricozini.org>
Subject: Test mail
Hi Richard,
this is a test mail.  I'm also writing
Linus to show how to send to more people.
Cheers,
Enrico
There is no authentication. There is no encryption. Two usual types of access control:
  1. Outbound e-mail is normally only accepted from an internal network
  2. Inbound e-mail is normally accepted from anywhere
The DNS is used to find the SMTP server to use to send a message:
$ host -t MX yahoo.com
yahoo.com MX 10 smtp1.yahoo.com
yahoo.com MX 20 smtp2.yahoo.com
yahoo.com MX 20 smtp3.yahoo.com
The process of sending an E-Mail:
  1. Enrico writes an E-Mail:

    From: Enrico Zini <enrico@enricozini.org>
    To: Richard Stallman <rms@fsf.org>
    Subject: Hello from Addis
    Hi Richard,
    Addis is a wonderful city, even if
    it rains a lot.
    Bye,  Enrico
    
  2. Enrico's MUA connects to the SMTP server (for example, port 25 of smtp.aau.edu.et):

    HELO enricozini.org
    200 OK Hello enricozini.org
    MAIL FROM: <enrico@enricozini.org>
    200 OK Mail from enrico@enricozini.org
    RCPT TO: <rms@fsf.org>
    
    Here, the SMTP server performs relay control: "do we relay mail to rms@fsf.org?":
    • Outbound e-mail is normally only accepted from an internal network
    • Inbound e-mail is normally accepted from anywhere
    A target address could be refused:
    413 ERR I don't relay for rms@fsf.org
    
    In this case, the destination is not local but the recipient is accepted because I'm inside the local network:
    200 OK Destination rms@fsf.org
    DATA
    200 OK Please send message body
    From: Enrico Zini <enrico@enricozini.org>
    To: Richard Stallman <rms@fsf.org>
    Subject: Hello from Addis
    Date: Mon, 17 Jul 2006 09:49:45 +0300
    Message-ID: <124372643@enricozini.org>
    Hi Richard,
    Addis is a wonderful city, even if
    it rains a lot.
    Bye,  Enrico
    .
    200 OK Message accepted
    QUIT
    200 OK Bye.
    
  3. The SMTP server needs to find out where to send the message, using the DNS:

    $ host -t MX fsf.org
    fsf.org MX 10 mail.fsf.org
    fsf.org MX 20 mail.gnu.org
    
  4. So the SMTP server tries the first one and connects to port 25 of mail.fsf.org:

    HELO smtp.aau.edu.et
    200 OK Hello smtp.aau.edu.et
    MAIL FROM: <enrico@enricozini.org>
    200 OK Mail from enrico@enricozini.org
    RCPT TO: <rms@fsf.org>
    
    The destination is accepted because it's for a local user:
    200 OK Destination rms@fsf.org
    DATA
    200 OK Please send message body
    From: Enrico Zini <enrico@enricozini.org>
    To: Richard Stallman <rms@fsf.org>
    Subject: Hello from Addis
    Date: Mon, 17 Jul 2006 09:49:45 +0300
    Message-ID: <124372643@enricozini.org>
    Received: by mail.aau.edu.et
      on Mon, 17 Jul 2006 09:55:53 +0300
      from 10.4.15.158
    Hi Richard,
    Addis is a wonderful city, even if
    it rains a lot.
    Bye,  Enrico
    .
    200 OK Message accepted
    QUIT
    200 OK Bye.
    
  5. Now, mail.fsf.org will invoke a MDA to write the mail in Richard Stallman's mailbox.

Example of problems with mail handling:
  • Accepting inbound connections:
    • Malicious input:
      • logic errors
      • buffer overflows
      • DoS (Denial Of Service) attacks
      • Connection floods
  • Performing outbound connections:
    • Programming errors:
      • Flooding of connections
  • Performing routing:
    • Unauthorised relays
    • Mail loops
  • Writing to the local hard drive:
    • Filling up the hard drive
    • Writing to the wrong files
  • Writing to the local hard drive as root:
    • In case of error or attack, any file in the system can potentially be compromised
RFC-822 is the original standard for E-mail. RFCs are standard Internet documents. Have a look at RFC documents released the 1st of April.
postfix Common setup: "Internet site with smarthost". More difficult to maintain: "Internet site". A smarthost is a machine that will relay e-mail for you. Questions asked with "Internet site with smarthost":
  • Mail name: aau.edu.et (name used to publicly identify the mail server)
  • Smarthost name: smtp.telecom.net.et (SMTP server that will relay our e-mail)
To test a mail server:
$ telnet localhost 25
HELO me
MAIL FROM: <a@b.c>
RCPT TO: <mail@of.a.local.user>
DATA
hi
.
QUIT
By default, you find locally delivered mail in /var/mail/username. Postfix configuration files:
/etc/postfix/master.cf
configures how all the postfix components run together (man 5 master)
/etc/postfix/main.cf
Main postfix configuration (man 5 postconf)
To rewrite addresses:
  1. In /etc/postfix/main.cf:

    canonical_maps = hash:/etc/postfix/canonical
    
  2. Then in /etc/postfix/canonical you can add the rewrite rules, like:

    enrico   enrico@enricozini.org
    
  3. When /etc/postfix/canonical is modified you need to regenerate the index:

    sudo postmap canonical
    
    (same is when you change the alias file: sudo postalias /etc/aliases)
(see file:///usr/share/doc/postfix/html/ADDRESS_REWRITING_README.html) Manipulating the message queue:
mailq - List the mail queue.
Example:
mailq
postqueue - Postfix queue control
Examples:
# Like mailq
postqueue -p
# Tries to send every message in the queue
postqueue -f
# Tries to send every message in the queue for that site
postqueue -s site
postsuper - Postfix superintendent
Examples:
# Deletes one message
sudo postsuper -d 7C4D2EC0F5D
# Deletes all messages held in the queue for later delivery
sudo postsuper -d ALL deferred
Different mail queues in postfix:
incoming
mail who just entered the system
active
mail to be delivered
deferred
mail to be delivered later because there were problems
hold
mail that should not be delivered until released from hold
Mail logs are in:
/var/log/mail.log
/var/log/mail.err
/var/log/mail.info
/var/log/mail.warn
Mail delivery Mailbox formats:
  • mbox: single file, mail separated by "From " lines
  • maildir: one directory per folder, one file per mail
  • mh: similar to maildir, but not really used
Alternate MDA: procmail: allows to filter mail automatically into different folders. Mail forwarding with ~/.forward: allows to redirect mail to a different address: just put the address you want to send to in the file ~/.forward.
POP or IMAP server Installation:
apt-get install dovecot
Configuration is in:
/etc/dovecot/dovecot.conf
The main thing that is needed is to enable the mail protocols you want:
protocols = imaps
Server monitoring To make all sorts of graphs:
apt-get install munin munin-node
Example: http://munin.ping.uio.no To compute more statistics:
  • anteater
  • isoqlog
  • mailgraph
Monitor system logs: logcheck:
  • sends you mail with abnormal log lines
  • It's important to customize what is normal and you do it with regular expressions
Filtering viruses and spam clamav - Virus scanner Virus scanning:
  • Postfix gives the mail to clamav that scans it and gives it back if it's clean.
  • Strategies for infected mail:
    • silently delete it
    • refuse the mail and send a notification to the sender
    • refuse the mail and send a notification to the receiver
    • quarantine the e-mail
    • refuse delivery with a SMTP error
    • deliver with an extra header that says that it's a virus
spamassassin - Spam filter Spam scanning:
  • Postfix gives the mail to spamd that scans it and gives it back with some spam information.
  • Strategies for spam mail:
    • silently delete it
    • refuse the mail and send a notification to the sender
    • refuse the mail and send a notification to the receiver
    • quarantine the e-mail
    • refuse delivery with a SMTP error
    • deliver with an extra header that says that it's spam
  • New techniques:
    • greylisting: when you receive a mail from a host you've never seen before, refuse it with a temporary error, and accept it the second time (after some time delay). Spammers normally don't retry, and implementing retry would increase their cost of sending e-mail.
    • crossassassin: if more than some amount of your users receive a mail with the same message ID, throw it away. Sending mails with different headers would increase the cost of sending e-mail.
Man pages and sections Man pages are divided in sections:
  • man man shows all the sections of the manpages
  • man 5 postconf shows the postconf manpage in the "configuration file" section
  • Normally manpages are referred as manpage(section) (e.g. postconf(5) )

Erich Schubert: Flow oriented programming?

I've been preparing on my exam on programming and modeling languages. The usual classification of imperative, functional, oop and logic programming is kind of inconsequent, since there are e.g. functional oop languages. To me, oop is more of a software engineering thing, usually applied to imperative programming with a load of syntactic sugar. The usual OOP examples suck. They're so basic that all the OOP and modeling stuff is just a complete waste of time. So I was considering more complex examples, and ended up at common design patterns. A couple of design patterns in OOP seem like workarounds to me; a new language (well, maybe C# has addressed some of these, I don't know) could probably add some more syntactic sugar to ease their use. I hate UML diagrams. To me they just emphasize all the obvious stuff, while they quickly get too complex to be of use for "seeing" the important things. Even UML activity diagrams in my opinion don't properly depict the flow of information/data in the program, which is what I really care about. Activity diagrams basically show you a sequence of methods are being called. But often you'll have a method being called thousands of times, with the actual relevant information being in the parameters passed. And some stuff might be done asynchronously, too. For certain problems (well, not for stuff like e.g. the train door used in OOP examples), it could be much more useful to abstract away from the involved classes - which are often just wrappers for data, "records", "datagrams", tcp packets - and instead model flows of data. Think of drawing conveyor belts transporting data, filtering it, duplicating it, ... The gstreamer framework seems to employ such a model for audio and video processing. You build pipelines by placing e.g. sources and sinks there. But you can interpret dozens of code examples with this model. SAX transform a stream of charaters into a stream of XML nodes. UI mainloops are basically a stream of UI events. Network data obviously is easy to model as a data flow; the "obvious" mapping into "packet objects" however often useless. Even when doing a select on a database, the result has an obvious representation as a data flow (a flow of records in this case). You probably only need a couple of "primitives". Sources and sinks, obviously. Filters, Y and Tee modules. Queues and Caches could be interesting, too. Note that data flows can work in two ways: push and pull. Maybe sometimes the same code could be used for pull and push operations, too. When push and pull driven flows meet you often need threads to connect. For example, a SAX parser usually will pull character data from a stream and push a stream of XML nodes as output. One way to get a pull-able output stream out of this (I'm ignoring e.g. the existing XMLpull API for this example) is to use a cache (which will eventuall contain the whole document as Nodes), another is to use two threads and just block the SAX thread until the other pulling thread has requested another node. Of course you can do all this in existing languages (you know, this doesn't give you anything new beyond turing completeness) - just like you could do OOP in assembler. You can, but it would be nice if the compilers offer you an easier syntax. Also it would be nice if I wouldn't have to write different code for pull-driven and push-driven operation. Also note that push type operation is rather typical for imperative programming languages - for i in range(0,10): print i - whereas pull type operations are typical for "lazy" functional languages - take 3 (repeat 'a').

16 July 2006

Erich Schubert: On programming contests (ACM ICPC etc.)

Bart Massey and Mike Vanier talk about programming contests such as the ACM International Collegiate Programming Competition. Well, since I'm being told that I love ranting, I have to join this one. ;-) I never participated in a contest except the Bundeswettbewerb Informatik back in (pre-university) school. In my opinion that contest was quite different for a number of reasons: most of the participants didn't have any IT classes at school. And noone "trained" for that contest. Also the contest isn't a speed contest, but you have a couple of months to solve a number of problems that most of us would find rather easy - for pupils aged 15-18 with no real CS classes they aren't that easy. Even in the later rounds, time isn't the main constriction - you have several weeks - and the programs are also judged by their code quality, documentation and design. I think you were allowed to participate in teams during the first and maybe second round. A friend of mine pointed out the ACM chellege to me; but we never really managed to form a team since everybody was too busy. We never actually did a training session (though I myself solved a couple of the valladoloid online judge problems), and we didn't submit our participitation. Though we would have automatically won our local contest, since I'm not aware of any teams by our universities here (despite them being top-ranked universities). In general, Germany isn't very much involved in this contest, despite being an "international" contest. This has various reasons. On one hand, CS teaching in germany is not much about just writing code. You'll of course learn the basics, but even when they've finished their degree, most will be really slow in writing code. Instead, the focus is on modeling and the theoretical background. In my opinion, that is very good. You'll always be able to improve your "basic" code writing skills later; that is mostly experience and routine. But you won't be learning much theoretical background in your job later on. Having worked on a number of the old, archived, training problem sets, I'm not convinced that this contest makes much sense. To succeed with the problem sets you need to be able to I agree with the others that I don't think team-play is of much value in this contest; nor will you be doing much creative work. In my opinion it's all about reducing the given problem to one of the known problems (e.g. longest common subsequence, shortest path, maximum flow), then adopting an algorithm to it. I'd call that reproductive work. In my opinion, they're rather boring. Basically you're expected to solve them using a certain algorithm. You aren't judged by good or smart solutions either. Just by speed. The (high-school) programming contest mentioned earlier was more interesting. For example there was the task of navigating a robot on a factory floor without any state information, and only a limited view. The robot was not allowed to keep any information. Such as "I need to go out of this dead end" or "that is a dead end". It would easily walk into a path just to notice after a few steps (it had a limited view!) that this is a dead end, then try to walk out - just to walk in again, having forgotten that it's a dead end. You of course can't judge solutions without inspecting the code. Smart programmers found a few ways to "cheat" here - and got extra credit here. For example one robot, when noticing that it's in a dead end it might forget, would step up to the wall. And whenever it was close to a wall, it would follow it, and thus walk out of the dead end. Some heuristics making it step away from the wall again made it much more successful than others. Another "cheat" involved calculating "remaining steps allowed - distance to destination mod 2". It then could be programmed with two alternating behaviours and switch between them by just not moving for one turn. I don't think there is any room for such great ideas in the ACM contest.

15 July 2006

Eric Dorland: The Damage So Far

So I've spent the last 8 days at Fantasia, neglecting friends, family, my health and Debian work. Probably a good time to look back at what I've seen so the memories don't melt away has they have other years. So only 8 movies left to see. So far it's been pretty good.

12 July 2006

Sergio Talens-Oliag: Back from the V Jornades

As others, last week I was not waiting for the Pope and I managed not to be affected by his visit to Valencia; I left on Thursday at 15:30 to go to Barcelona for the V Jornades de Programari Lliure and didn't came back until Saturday at 20:00; at that time the show was still going on but I was not directly affected by it, as I live on a village that is about 5 Km. away from the city and probably around 10 Km. from the Pope's stage. Anyway, this post is about what happened on the JPL, so here we go. On Friday I gave a tutorial about Debian Packaging using liw's slides, it was planned for an hour and a half but I ended up using two. I believe that the tutorial went more or less OK, although they were not able to start doing anything on the computer. If I'm asked to give a similar tutorial again I'll try to have more time or to do a talk about the Debian Project and how it works before the tutorial, as that could reduce the time needed for the practical part (i.e., some of the people attending to my tutorial had no experience with the BTS or was not really aware about the available distributions). On Saturday I had a half an hour talk about Agile Documentation Tools; unfortunately I had not finished my article, but I had eight pages of reStructuredText and I transformed them into a S5 presentation in 20 minutes (the talk was about agile documentation tools, wasn't it?). As usually happens to me I had a lot of material and I ended up giving a two hour talk based on an unfinished article (I wanted to add a table comparing the features of different lightweight markup languages, but I was unable to complete it before leaving to Barcelona)... my excuse for doing such a long talk is that I asked to the public if they wanted me to stop, but they were interested and participative and I ended up using all the slides. As I talked so much I was unable to attend other talks, but I had a good time at the Jornades and met a lot of good people. I imagine that I'll probably will come back if they invite me again next year, it seems that they already had some requests for talks... :)

Simon Law: GCC Summit 2006


Forklift
Originally uploaded by sfllaw.
I look forward to going to Ottawa every June for the GCC Summit. I've gone every year since it started in 2003 and have no intention of stopping. That's because it feels so much like a family reunion. Let me explain. The core people who have worked on GCC have been doing it for years. They're people who used to work for Cygnus Solutions, back before they were bought out by Red Hat. They're people who work for CodeSourcery. And they're people working for Intel, HP, and IBM who are compiler writers first and employees second. And they all know each other like dysfunctional family. When I first showed up at the first Summit, Jim and I were the new kids. We had just finished typesetting the Using GCC manual that was published by GNU Press. So I went around absorbing compiler technology by osmosis, and trying to get as many developers to sign by pre-press draft. The nice thing about the GCC Summit is that there is only one track of talks. So you never have to choose between two talks that you're interested in. It's a little bad though, since you're always tempted to check your e-mail when there's a lull in the interestingness of the presentations. This year, the focus seemed to be on profiler-driven optimizations. I'm not really sure those are very profitable, as they actually require developers to run their applications as part of the build system. And we all know that humans are lazy. But perhaps I underestimate the heroics that build-systems people will go through to squeeze out that extra ounce of performance. Danny Berlin and Kenneth Zadeck talked about dataflow analysis and getting rid of the terrible implementation inside GCC. I had heard horror stories about flow.c before, but have yet to actually look inside it. Their talk has disuaded me even more. The last thing that sticks in my mind is the GDB talk, which seemed to be the only toolchain talk this year. But these things wax and wane. I skipped out on the afterparty this year, which meant that I couldn't help with the monumental challenge that awaits us after each summit. But I shall return.

Sergio Talens-Oliag: Back from the V Jornades

As others, last week I was not waiting for the Pope and I managed not to be affected by his visit to Valencia; I left on Thursday at 15:30 to go to Barcelona for the V Jornades de Programari Lliure and didn't came back until Saturday at 20:00; at that time the show was still going on but I was not directly affected by it, as I live on a village that is about 5 Km. away from the city and probably around 10 Km. from the Pope's stage. Anyway, this post is about what happened on the JPL, so here we go. On Friday I gave a tutorial about Debian Packaging using liw's slides, it was planned for an hour and a half but I ended up using two. I believe that the tutorial went more or less OK, although they were not able to start doing anything on the computer. If I'm asked to give a similar tutorial again I'll try to have more time or to do a talk about the Debian Project and how it works before the tutorial, as that could reduce the time needed for the practical part (i.e., some of the people attending to my tutorial had no experience with the BTS or was not really aware about the available distributions). On Saturday I had a half an hour talk about Agile Documentation Tools; unfortunately I had not finished my article, but I had eight pages of reStructuredText and I transformed them into a S5 presentation in 20 minutes (the talk was about agile documentation tools, wasn't it?). As usually happens to me I had a lot of material and I ended up giving a two hour talk based on an unfinished article (I wanted to add a table comparing the features of different lightweight markup languages, but I was unable to complete it before leaving to Barcelona)... my excuse for doing such a long talk is that I asked to the public if they wanted me to stop, but they were interested and participative and I ended up ussing all the slides. As I talked so much I was unable to attend other talks, but I had a good time at the Jornades and met a lot of good people. I imagine that I'll probably will come back if they invite me again next year, it seems that they already had some requests for talks... :)

11 July 2006

Enrico Zini: First day in Addis

First day in Addis Ababa, after the introductory session for this 10 days Linux training. Interesting new quotes I picked up from the excellent presentation of Dr. Dawit:
Much that I bound I could not free
Much that I freed returned to me
(I didn't manage to transcribe the attribution)
And this one for Bubulle, about translation:
When you speak to me in my language
you speak to my heart
when you speak to me in English
you speak to my head
(sb.)
Incomplete list of questions I've been asked, in bogosort -n order:
  • How do I get support?
  • Are the configuration files always the same accross different distributions?
  • What is the level of interoperatibility between the various Linux distributions? And between different Unix-like systems?
  • Does plug and play work well when I change hardware?
  • Can I access NTFS partitions?
  • How do I play multimedia files in restricted formats?
  • I heard that NFS has security problems: can it be secured, or are there other file sharing alternatives?
  • Can I access a desktop remotely?
  • Can I install Linux on a computer where there's Windows already? Do I need to partition?
  • Can I be sure to find drivers for my hardware?
I'm happy to find that we've been successful in building more and more good answers for these questions.

Clint Adams: Where's Max Headroom when you need him?

[Coca-Cola disfruta]

Joachim Breitner: GNU make instead of AxKit

Now that my laptop has returned from the support, I just had to do some things, even if I should be in bed since a few hours...Until now, my personal website was run by AxKit, a mod_perl based framework that serves xml files after a server side XSLT transformation. As AxKit needs apache1, I had proxied all requests via my apache2 server to the old apache1 installation on a different port. Understandable, this is not very nice.So today, I looked at how I can create the html files using the same XML and XSLT code locally and have apache2 serve the files statically. With xsltproc, this was pretty easy, you can see the result in this Makefile. Note that I have a small XSLT script that lists all "pages", which are sections of one big xml file. Apache's Multiviews allows my visitors to enter the URLs without .html, so that old links continue to work.My other AxKit based site, the German parody news "Heisse News", had some difficulties, as it is based on AxKits ability to create XML directory listings. I solved this with a index.xml which is created directly by this directory's Makefile. The old ".xml" links are internally rewritten to ".html" links using mod_rewrite. This was also a good time to re-activate the rss feed, which has it's own XSLT stylesheet. To make that feed valid, I had to do some ugly stuff to create a proper RFC2822 date, but using xsltsl's date-time.xsl, this works now, too.As always, comments welcome.

9 July 2006

Evan Prodromou: 20 Messidor CCXIV

No honking today; I guess there just isn't a big German population in Montreal. But, y'know, fourth place is pretty damn good, Portugal! Nothing to sneeze at. Still ahead of Brazil, for what it's worth. Tomorrow's the big finale, of course. The Paramount Famous Players on Ste. Catherine downtown is going to have a live showing, free for the first 300 people. I dunno... I guess it could be fun, but it seems a little impersonal. I think I'll be watching from Niko's again. It's easy to walk to Little Italy, or Barouf, from there. tags:

Grillr I spent the day putting together household furniture. We stopped by Canadian Tire on Tuesday to buy lawn furniture, and we got a shipment from Ikea on Wednesday. This afternoon cleared out a lot of cardboard boxes from our house. First up was Amita June's big girl bed, which she got as a present for her month birthday. Yeah, Amita turned the big one-oh yesterday (10 months!), and although we've been doing wp:co-sleeping, we want her to start learning to sleep in her own bed. (Most co-sleeping babies want to move out after about 1 year.) She got a toddler bed, which is actually pretty cute, and fits perfectly in her room. Building Ikea furniture isn't really all that fun. First, they optimize for shipping size and storage, not for ease of building (or stability), so you get some really shaky stuff. Second, the instructions have no words -- assumably to avoid translation costs -- so you have to interpret their graphical V lapuk into some kind of reasonable instructions. Fortunately, just about the time I finished building it, Maj and Amita came home from a walk. Amita had just fallen asleep, so we put her in to see how it fit. Looks pretty good to me! [image] After that, I watered my new lawn. The grass seeds I spread on Tuesday are coming up in teensity-tinesity leaves. Huzzah! Then I turned my attention to the wt:Muskoka chairs we got from Canadian Tire. These turned out to be a lot easier, and they were made from cedar wood, so they were pleasant to work with. Maj had invited over some friends for grilling, so she went to the store to buy food while I worked on the Muskokas. The baby hung out with me outside in her playpen. The chairs turned out great, and we had a nice grill. Brenda, Parise and Tony all came over. Brenda and Tony are librarians, and Brenda and Parise grew up together in wt:Moncton. The Muskokas were a hit; here are Brenda and Amita enjoying one. [image] tags:

Fireworks I can hear right now the dull thump thump tha-thump-thump of fireworks going off down at La Ronde, the amusement park in the middle of the St. Laurent River. They're the hosts of the International Fireworks Festival, which happens every summer. It's one of the great things about living in Montreal -- fireworks every Wednesday and Saturday from early June until the end of July. The festival is a competition -- national pyrotechnics teams each provide a half-hour long show on one of the nights, and then at some point after the festival they decide on a winner (I think... I've never actually checked who "won"). The fireworks are first-class, and it's just fun to have explosions over the city all the time. Tonight's team is wt:South Africa -- it's the first time there's been an African national team. Go SA! tags:

Best show ever One of the best music shows I ever went to was a "surprise" event by Camper Van Beethoven at the now-defunct Mint Platter record store on Telegraph Avenue in wt:Berkeley, California around 1990. Probably one of the next best music shows I ever went to was a surprise (for me) when Maj took me to see CVB at the Just pour Rire Theatre in Montreal in 2004, one week after we were married. (The band had recently reformed, and that night their equipment was stolen out of their tour bus in Mtl. Such a shame.) I'm just thinking about it because so many of the shows I love are on the etree section of the Internet Archive. Secret message to every taper I crabbed out because their big boom mike was blocking my view of the stage: sorry. You were right. Thanks. And what reminded me of that? The NPR Live Concert Series, aka All Songs Considered. Man, there's a lot of good music in there. tags:

One So, has anyone offered Kyle Macdonald of One Red Paperclip a marketing job yet? Guy knows his marketing. tags:

Bignose strikes again I'll be honest -- most of the time, I totally don't understand fellow piglogger Michael Bakunin's blog. Here's an excerpt from Gasoline: FD: small short position in one US refiner, and thinking about crack spreads. Does that mean something to some species of animal? I dunno. tags:

MJ Ray: Debian-Legal Package List June 2006

I hope this time doesn't include any misfiled reports like last month... June 2006 traffic discussed packages domainkeys ipv6calc ircd-irc2 ktorrent libapache-mod-proxy-html libjlha-java opencascade open-xchange postfix postgresql pygaim shc sofia-sip sun-java5-jre truecrypt xfonts-scalable xfonts-utils [link to my index]

8 July 2006

Hanna Wallach: more mind mapping

Kathy Sierra on the importance of using mind maps (as opposed to a linear format) and drawings when taking notes and why this is hard to do using a (non-tablet) computer. (Thanks for the link, Daf!) I’ve said it before—we need a mind mapping program in GNOME. If people like Kathy are considering buying a tablet PC and running Windows just so they can use MindManager and include sketches in their mind maps, we’ve got to think about how we can make this experience possible under GNOME. (A side note: I’d love to be able to write equations on a tablet PC and have them automatically converted into LaTeX. That, as part of a mind mapping program with an “export to LaTeX” facility, would totally transform the way I work.)

Uwe Hermann: ASCII art spam

Whoa, those spammers are getting really desperate now, aren't they? Today in my inbox:
apy8       0lyk   b8xvdtfa        glb13            0uurqjl     5xju3p0jb            1uk9z
 yhak     o3vl    tytjx4ui        m6frp           64zx9238iq   128lkxk2wh           fzqpv
 mkqj     g1tn    wgd293sv       s3mnhaq        y1vvng731dsy   f39iqddc65f         5fgnwcx
 t9ba4   wg8j1      ucq8         uviyoz6        4k2g4     fo   wz0i   q7pn         hqblemz
  pu9t   1dwr       mocp         nlihfws       mm3w0           j4zb   0fzh         o6nljyq
  0luy   to8a       ljd0        5bi8 zpfh      93ab            tbpr   hztc        foza p7sf
  5vw7t a4nce       2fjr        oxto 2t0r      37v3   mxvfq0   x6qtw1j6me         ye51 b7pt
   pwtx gg5l        mtfr       h7390 0voxg     btc8   t7vj3n   twn72qv80         92sj8 8qhuc
   4xoq 9m3u        r3i0       4dgf   2k8l     o6u8   eegabt   70vrl5ukj         6bpp   u336
    9p5tqyo         ixkj       7mkcss82ko2     6dgtj    tdei   eayi tnjgi        ujh0x073p63
    jbxotva         alrs      ubvdw9kele9rs     ed7bi   vbjz   0tlb b1svn       15xh90ojyj56u
    zzfla7m       3o1jnrrc    kvlxt74rl46l1     yy5mng2kl7dj   8bmq  793jb      qzqkjf00glzsf
     e6doi        hfcqgi2t    w8bd     vydk      elqfyxtdk7g   upqf   ippbf     ca5l     cgrm
     npnrd        dzsgo4jz   q9zo       co4g       6kabvxc     sqpy    5ds54   qhpb       krpw

Carlos Villegas: LSB- howto, status list and check script (SoC 2006)

A guide for debian package maintainers to make the scripts LSB compliant is available in here. It is not a substitute of the LSB 3.1 but intends to be used as a quick reference to create LSB-compliant init-scripts.

The script to check the LSB compliance was changed to reflect the init script status according to:
+No LSB headers - If "### BEGIN INIT INFO" is not found.
+LSB compliance - If the headers Provides, Required-Start, Required-Stop, Default-Start and Default-Stop exist and have arguments. Besides, if Default-Start is equal to 0 or to 6, LSB compliance is satisfied only with Provides, Required-Start and Default-Start.
+Missing LSB headers in the other cases.

Finally, a list with the current LSB-compliance status of Debian init-scripts is available here. It was automatically generated using a modified version of the script mentioned above and includes a link to the bug report filed to correct the scripts. The aim of this webpage is to give an overview of the work that needs to be done in Debian for LSB compliance.

7 July 2006

Martin F. Krafft: Returning the E60

I went back to the shop today to return the Nokia E60 I had previously sought out. There were just too many gripes with the phone, and even though I could have possibly worked around (some of) them, I was looking for a phone that works, not one that I could tweak to work. Among the most prominent problems were:
  • Lack of STUN support, which means that you cannot do VoIP behind a NAT router without configuring a port-forward (which is often not possible). Nokia is also unlikely to add STUN support because the phone's target audience is clearly large businesses equipping their employees with phones that will work with VoIP locally, and "fall back" to GSM when on the road.
  • Broken WPA2 implementation. I could not get my phone to associate with my WPA2 router. Reasons may be the AES implementation, which seems broken (see below), or just a faulty WPA2 implementation. I can get other devices, including my Palm, to talk to the router over WPA2 just fine.
  • Broken AES (or VPN) implementation, meaning I could not get a VPN connection to either of a Cisco router, a Check Point VPN-1 gateway, a Linux host running FreeS/WAN, or OpenVPN when AES was used. I could connect to all but the OpenVPN client using 3DES.
  • No WLAN reconnects. If your WLAN connection drops while you're using it, you have to exit the programme (or reassociate with the VoIP gateway) to get it back up. This sucks when browsing the web!
  • Sucky battery lifetime. I was playing around with the device, using a fully-charged but two year old battery. After about 2.5 hours, it displayed the first low battery warning. Obviously, WLAN consumes a lot of power, but that's just too much and too fast.
Other than that, the phone seems to have the usual features you expect from an advanced phone that tries to also be a PIM. Believe it or not, I could make phone calls, but there was weird crackling noises to be heard; I am not sure whether the phone's at fault, I do have crazy power lines around my place. One thing that did drive me up the walls was the configuration. To set up VoIP, I had to first configure a WLAN connection (which you cannot do in the "Connection Manager" -- that one seems to be only used to kill connections and associate with unencrypted WLANs) in the system settings (which are to be found under Menu/Tools), then set up a SIP profile, then set up a VoIP connection, and then make sure it's active. If you change WLANs, you have to modify the VoIP connection, it cannot use an existing WLAN connection, or the current best default. I want a VoIP/GSM combo not because I want to spend two minutes to configure VoIP in a foreign network. Also, while we're on a topic related to WLAN: the device does not allow you to connect to a WLAN without starting an application that uses it. Sure, it's power-optimised, but still. Also, neither ESSID nor encryption status are shown anywhere when you're connected, and I did not find out a way to display the phone's IP address. Another beef was with the general device speed. There's a quick access button to write SMS. If you press that, it takes 5-6 seconds until you can type the SMS. I don't need to say more... The display of the E60 (and E70), however, do warrant their own paragraphs: it's gorgeous! Simply gorgeous. Unfortunately, that's not a selling factor for me. So I decided to wait for the next generation of WLAN/VoIP/GSM combos (or at least firmware updates to the E60), and especially the Motorola A910, which runs Linux. I am grateful to the shop manager for being so patient, making sure that I am satisfied rather than trying to make money, and generally just giving me a pleasant shopping experience the way it really should be these days -- given that there are shops out there that won't let you try electronic devices before you buy them. So, if you're ever in Zurich and in need of mobile communication devices or paraphernalia, visit the mobilezone shop in Oerlikon (Einkaufszentrum Neumarkt) and ask for Andreas Iseli! Apart from being next door to my flat, I'm definitely going to go back there next time I need something. PS: to all those who have been toying with the idea of buying (or otherwise drooling over) the E70, do note that the two run the same software, so most of these issues will apply to the E70 as well. However, it's always best to make up your own mind, so find a shop as professional and fair as mine and get your hands on it.

Next.

Previous.