Search Results: "sto"

3 December 2005

Joey Hess: next debconf

Only 5 months until the next DebConf, in Oaxtepec MX this time. As I read tonight the very well done Final Report for DebConf5, and remember that excellent conference I am already looking forward to the next one. I've been thinking about driving down from Virginis to Oaxtepec instead of flying in. It's a long drive, but maybe I could stop at a few DD's houses and/or travel down with some. In fact, I hope we get a lot of American DDs who have not been able to make recent DebConfs now that it's so relatively near to home. So, time to think about any talks I'd like to give there. The absolute best talk at DebConf5, the one I would most like to emulate, was Enrico's polygen extravaganza. The key things were that a) Dr. Zini rules b) it was a simple talk introducing us to something fun c) large quantities of running code were written on the projector during the talk. I might try to emulate the parts that I can (without taking Enrico-emulation medication) to some degree in one talk, if I can just find the right subject. Since I hate writing papers for talks, I also got an idea for a way to use a talk time slot that will be impossible to write a paper for before time. Gotta hurry, since it turns out talk submission closes amazingly soon: On the 6th!

Aigars Mahinovs: After reading the Final Debconf5 report I suddenly...

After reading the Final Debconf5 report I suddenly saw how this report shows all of us how much blood, sweat, tears and ruined stomachs has really been put into organising the best Debconf ever (so far at least). A lot of Debian Developers were present at Debconf5, even more Debian developers, Debian users and other free software users gained something from this event - a better Debian.
I feel that we should give all organisers of Debconf5 the prise the deserve, but as we can't send them all to a two week vacation to Hawaii, we could at least express our gratitude on a web page.
So, if you feel that Debconf5 has given something good to your life - got to http://wiki.debian.org/Debconf5ThankTheOrganizers and express that in warm words towards the people that made that happen!

P.S. Today I configured my Palm to be a IR remote trigger for my Canon 350D, happy like hell about that.
P.P.S. Number of unique visitors to my photo gallery has reached 575, with one of the photos seen by 475 unique visitors, thanks! (Hint: more comments with constructive critique would be useful to improve quality ;))
P.P.P.S. For me "a1t" will always mean that girl nicknamed "alt" with the shotgun pointed my way, really.

2 December 2005

Steve Kemp: Torrents + Perl

BitTorrent
BitTorrent is one of those applications that most people love. I love it when it works but I find it unnecessarily cumbersome to deal with. One example of what I dislike in the software - you can’t tell when a torrent has finished. Start a download:
btdownload curses headless  foo.torrent
Once the download has finished it doesn’t stop, it just continues to share the files and allow others to download faster. Great 99% of the time. But utterly sucky when you want to download XX files. The natural temptation is to run:
for i in *.torrent; do \
  btdownloadheadless $i
done
That doesn’t work. The first one never finishes. There isn’t even the option of exiting once the download has completed - or running another command, say. (OK my copy has “–at_finish=/bin/foo” - but only because I patched it. This just seems like a basic requirement, right?) Despite that it works well so I can live with it. My other irritation is that there is no functioning Apache mod_bittorrent where files into a directory have their .torrent files created and handled magically. There was a project to do this, but it appears dead now. Shame. Every now and again I get tempted to work on it, then I remember that I have big limits.
ION
Lots of Perl coding today. Simple plugin interfaces, and cleanups of old code. Almost enough to keep me awake.

Martin 'Joey' Schulze: Volunteer LinuxTag Work

Without the vast number of voluntary supporters past LinuxTag events wouldn't have been possible at all. On the financial side LinuxTag has always made only little profit after the event. Without these nearly 100 volunteers who have supported us directly during the event and during its preparation the show wouldn't have been possible. Without the help of so many supporters during the event, the entire show isn't possible. Hence, it is important to either generate more income and be able to pay for hostesses and callboys or manage a proper environment in which many supporters want to help. For this, accepting the importance of the supporters, acknowledging their work and supporting them with food, fluids, fun and other advantages is very important. To my regret, I have to admit that this has not always been the case inside the core team. I have argued in favour of the supporters several times, so hopefully not much of it has been noticed by them. Supporters have worked in several different areas. I'll try to list them below but I'm sure I already forgot half of them even though I have coached most supporters directly or indirectly. We have maintained the parking ground so we were able to ensure that the Festplatz in the middle of LinuxTag is not abused as a parking place during the event. This required us to maintain a gate with at least one gatekeeper from 6 a.m. to 10 p.m. This was a lot of work, and it wasn't that interesting, but good for people who want to read or hack in the gatekeeper pavilion. We have manually built the projects network in the exhibition halls. In the conference building it was built by the KaLUG. All information signs and plans had to be drawn, printed, magnified and fixed at their respective locations. There are a lot of additional signs that we have maintained to help visitors find their way. I'm sure still a lot of signs were missing. I have used the opportunity to prepare most of them after the last event, so that we have less work for the new one. Our own office had to be set up, since we've used naked rooms with only some cupboards, tables and chairs inside. More furniture had to be arranged, the network had to be built up, the server had to be installed or configured, the printer had to be attached, the network configuration needed testing, the desks had to be set up. For some years now one to three volunteers have helped us in the office in order to support the core team and so that we are able to present visitors, exhibitors, the press etc. We've had an an additional human firewall who worked for two or three days usually and was able to support most people already without clogging the office room. The firewall (Arne) himself had the idea to become a firewall several years ago and I have to agree that it was a very good idea. However, with the exhibitor support maintained at a special booth at the entrance less work had to be done for the firewall this year. Several large and self-standing signs had to be prepared or repaired after the had been broken at the last event or their content has been obsoleted. Signs for the gate from above had to be printed and fixed at proper locations so that exhibitors find their way. We have built up the entire audio and video equipment on our own with a service provider from Bremen. Since this affected up to six rooms a lot of equipment and cables had to be moved, installed and dismantled after the show. For this we've helped J rg and Sven with several volunteers. The business congress had to be prepared as well. Stuff for the attendees had to be created and taken to the conference building. The entrance counter for it had to be maintained and staffed. Doors had to be secured. Deliveries had to be maintained in a storage area, since before LinuxTag a lot of stuff is delivered to LinuxTag without the target booth built up already. During setting up the booth, the booth builders also had to be supported and problems detected, discussed and corrected. During the entire time of our siege of the fairground we've had to maintain our own storage of fluids and food. Due to the high temperatures having around enough fluids was very important. In addition to this demands for several goods also required us to send somebody out for shopping each day. In order not to die of starvation during the event we have also organised a delicious lunch for all supporters and core team members. Kudos to Thomas we were able to order large pots of salad and cooked food for two years so that we didn't have to eat unhealthy food (such as fat pizza for six days) and everybody could decide on their own how much they want to eat. In the years before we've had rented a cook and even ordered Pizza. The food had to be fetched from the restaurant, arranged, together with table clothes, cutlery and stuff, and finally taken back at the evening. Cutlery had to be cleaned regularly as well. For the social event the location had to be cleaned and prepared. This year we've had the great opportunity to use the Nancy Caf which was unused for about 10 years, and hence required a lot of cleaning. As it turned out just before the show began, it required a lot more cleaning than expected. However, thanks to the competent and highly motivated supporters the location was cleaned in time. Kudos to Claudia, this year's social event was also one of the most successful. For the legendary KaLUG party the location had to be prepared as well and the food cooked. Looking at the pictures, the pavilions had to be built, tables and chairs arranged, cutlery and fluids organised. In the evening all the stuff had to be cleaned as well. This year KaLUG had organised a so called "Sp lmobil" that helped with doing the washing-up, but somebody had to work in it as well. The KaLUG has maintained the Internet caf in the conference building and has set up the network for the exhibiting projects in the conference building. For this they have acquired a lot of computers and network equipment that had to be built up and dismantled after the show. They have also acquired a number of movable walls for separating booths and providing poster space. During the show we have distributed fluids for the conference rooms and exchanged information posters and flyers with the daily schedules. When you're giving a talk, your throat often gets quite dry, hence, a cup of fresh water is a good cure, but requires the organisator to maintain water and cups. Since the conference program changed daily posters and handouts had to be exchanged during the evening. Project exhibitors were supported directly by us while company exhibitors were supported by a service provider. Additionally all speakers had to be supported as well. The conference rooms were also maintained by a moderator who supported the speaker, announced the talks and speakers, ran (!) around with a microphone, helped in case of technical problems and maintained the schedule. Even though it may look strange for an outsider there are a lot of costs that emerge when such an event is organised at a commercial fairground. LinuxTag has always had the problem of only little yield after all bills have been paid after the show but had to start preparing the event for the upcoming year. In the past years it was always a struggle to continue with only little financial substance trying to get the next event set up properly. LinuxTag has been unique in its configuration, looking at its history, its organisation structure, its size and its components. There are basically only three ways of creating income: commercial exhibition, business congress and sponsoring. All three have obviously been on the descending path for several years now, reducing a lot of flexibility for the organisation. This income has had to be used for all expenses. On the other side there are a lot of areas that just cost money, such as the conference building, exhibition hall, hotel, travel reimbursements, projects booths, advertising. In addition to that we've had two service providers that have taken over some tasks and needed to be paid as well. A very rough overview is in my Howto LinuxTag talk from this summer.

Aigars Mahinovs: Here is my friend lastguru - the second most acti...

Caught in the act!
Here is my friend lastguru - the second most active photographer on the AnimeFest3. He is trying to get a shot of the audience, but while he is doing that, I got a shot of him :)

Yesterday I discovered a great surge in popularity of SBackup - just on SourceForge around 700 people downloaded it in a period of three days (compared to ~250 total downloads before that) and some new bugs were filled.Only then I remembered about the interview I gave over the email, looks that it was published on Monday. Fun. Now the plans for a good rewrite are even more prominent on my ToDo list and I am also thinking about trying to get all developers of similar tools to unite in the context of this rewrite. This will bring all their good features in (encryption, per-user subconfiguration, removable media support, config on server option) and ensure continued development of the project even if I get a bit lazy on it ;) A confederation for simple yet feature complete Linux backup solution?

Also today we have a very good milestone - translation of Debian Installer to Latvian language has just reached 100%. I thank greatly our new contributor - Orvils from Latvian University who did bulk of the work. I still had to spend around 6 hours reviewing and correcting his translations and then updating the translations that changed or were added during the time that Orvils was translating, but it was much faster then it would have been it the translation was only up to me :)

1 December 2005

Matthew Palmer: OOP and the Get/Set issue

Steinar, your comments on the limited utility of Get/Set methods both struck a chord and touched a nerve with me. On the one hand, I completely agree that people need to spend more time writing methods that do something useful to an object rather than just exposing public methods. For example, how often have you seen something like this (in faintly python-inspired syntax):
 obj.count += 1
 [...]
 obj.count -= 1
 [...]
 if obj.count == 0:
 	obj.destroy
Instead of the far more descriptive (and well-encapsulated):
 obj.register_user()
 [...]
 obj.unregister_user()
 [...]
 obj.destroy_if_unused()
(or any one of a thousand other similar idioms). This is a contrived example, of course, and a real example would involve doing at least a dozen operations on an object's public attributes from another class (which results in class-associated logic being located in other classes in the system) instead of putting it in a method and calling that (thus keeping all of the logic with the data it's manipulating -- which is the point of OOP). Anyone who writes code like the first example above and calls it OOP is kidding themselves. Of course, you could make the code even more ridiculous with getter/setters:
 obj.setCount(obj.getCount()+1)
 [...]
 obj.setCount(obj.getCount()-1)
 [...]
 if obj.GetCount() == 0:
 	obj.destroy
Incidentally, if you ever see anyone turn the first example into the last example and say they're "improving encapsulation", please do the programming world a favour and kill them. kthx. On the other hand, Steinar, you say "I'm not denying that getters and setters for a few variables might make sense", which clouds the issue immensely. The idea of routing attribute access through a method is immensely useful. It even has it's own name -- the Uniform Access Principle. A few examples are in order (you might already have thought of these, Steinar, but who knows who reads my dribblings!): In my real-life case, there were few enough places to change all of the calls to a method, and since it's all written in Python I could have played __getattr__ games to get back to a method if I'd had to, but it would have been messy. But imagine a system written in a language that doesn't (somehow) support the Uniform Access Principle, and which was widely deployed (possibly even used by programs outside of our direct control) so the users of the class couldn't be adapted easily. Nightmare. Now, the real solution to the problem is to only use languages which support the UAP (Python can be hacked to do it; Ruby is, IMHO, almost a case-study in How To Do It; and there are other good languages out there). But, in ass-backwards languages that can't transparently map attribute accesses to method calls, I'd rather deal with getX()/setX() everywhere than have to try and perform the necessary gymnastics to later support dynamic value generation from what-was-previously-an-attribute. If, on the other hand, your post was primarily targeted at said ass-backwards languages, or programmers who cargo-cult manual getter/setters everywhere, let me join you in your derision. <grin>

Uwe Hermann: French Government Lobbied to Ban Free Software

From FSF France:
Friday November 18th, 2005, French Department of Culture. SNEP and SCPP have told Free Software authors: "You will be required to change your licenses." SACEM add: "You shall stop publishing free software," and warn they are ready "to sue free software authors who will keep on publishing source code" should the "VU/SACEM/BSA/FA Contents Department"[1] bill proposal pass in the Parliament.
WTF? This has got to be a joke... Please tell me this is a sick joke. (via MJ Ray)

Daniel Burrows: Linguistic Contortions

I thought I had seen everything when it came to ways of resolving the problem of gender-specific pronouns in English. But on the way back from Wisconsin yesterday, I read a copy of David Brin's Sundiver (otherwise an interesting story) and was proved wrong.

Usually the problems you run into with English revolve around the pronoun he: its use in a gender-ambiguous context is disputed and there are various ways of avoiding it. The word man has similar problems, although it's a lot easier to find acceptable gender-neutral replacements. But in this story, Brin actually used man in situations where the person indicated was known to be female! This leads to such eye-popping lines as:
He took her arm and introduced her to Fagin and Jacob.

Sophonts, this is Helene deSilva, Confederacy Commandant here on Mercury, and my right-hand man. ...
And if that doesn't strike you as odd, here's my personal favorite:
Occasionally a man, male or female, would lean forward and peer at some detail on a screen, ...
Ow! I had to read that sentence three times before I was sure I hadn't mistaken the words.

Clint Adams: Creep-y

I've always looked at Radiohead fans with the same sort of non-understanding that comes when Rush fans try to explain to Rush haters that what makes Rush really, really awesome is the deep insight and cleverness in the lyrics. Some small advice: never let a PhD in philosophy do any songwriting. I don't hate Radiohead. I just don't understand why anyone would like them. It was my understanding that there were about as many Radiohead fans as, say, fans of Mudhoney. Imagine my shock and confusion when I discovered that there seem to be quite a few more people on Last.fm listening to Radiohead. Fine, I thought. Everybody's got a copy of Creep sitting around that they listen to every once in awhile for reasons of nostalgia. That does not appear to be the case. There is a group called Extensive Musical Taste . Note that their top artist is Radiohead. There is a group called People with inconsistent musical taste - who yet prove a certain indy-attitude . I don't know what that means, but their top artist is Radiohead. There is a group called Die Hipster Die . Radiohead is tied for number one. Someone else has noticed this particular trend, and has created a group called Radioheads_Not_Our_Top_Artist . Bless these people for not having Radiohead as their top artist. Radiohead is their #2 artist. Whee! Last week the DD group had Radiohead at the top. I have no idea why it fell so far after that. Maybe it's a scrobbler fuckup. I could stop singling out Radiohead, and broaden this to the other bands hovering at the top of nearly every group chart: The Beatles, Death Cab for Cutie, Pink Floyd, and so on. Oddly, this thing isn't very popular. Sure, you may be thinking. Radiohead sucks, but what's the problem? . The problem has to do with the effects of globalization on world cultures. In Jihad vs. McWorld it says that okay, well, I don't know what it says because I've never read it. Nevertheless, Benjamin Barber claims that Democracy is the solution to the evils of both globalism and tribalism. This is a fantastic idea if you happen to be in denial that Democracy is just a perverse form of tribalism. So guzzle down your McDonald's, listen to your Radiohead, wash it all down with some Coca-Cola that you bought at Wal-Mart, put on your Old Navy sweatshirt and head over to Starbucks to drink a frapmooccino while you obsess about American politics even though you live in an obviously-superior country, then go home and watch Friends . That's easier than being someone with musical taste. P.S., Radiohead being on South Park is no excuse. P.P.S., Buttercup is not a Radiohead fan.

David Pashley: Return of Accessors vs. public member variables

Steinar, Imagine a Word class:
class WordA  
   public:
      char * word;
 ;
class WordB  
   private:
      char * word;
   public:
      void setWord(char * w)   word = w;  
      char * getWord()   return word;  
 ;
WordA worda; 
worda.word = "WordA";
WordB wordb;
wordb.setWord("WordB");
printf("%s %s", worda.word, wordb.getWord());
Fine, this works well. Now imagine that you want to change word from a char * to a std::string to stop you dealing with pointers. For the WordBclass you only need to change the getWord function. You don't need to change any of your class's users. For the WordA class, you have a problem because you can't automatically convert from a std::string to a char *, so all your users have to change from object.word to object.word.c_str().
class WordA  
   public:
      std::string word;
 ;
class WordB  
   private:
      std::string word;
   public:
      void setWord(char * w)   word = w;  
      char * getWord()   return word.c_str();  
 ;
WordA worda; 
worda.word = "WordA";
WordB wordb;
wordb.setWord("WordB");
printf("%s %s", worda.word.c_str(), wordb.getWord());
This is the punishment you get for exposing the internal details of your class to your users. Please ignore any specific mistakes in my examples; the principles work the same with different types.

Clint Adams: So I can sigh eternally

I've heard it said that listening to Leonard Cohen can turn one suicidal. I wouldn't know about that. What I do know is that I once listened to Benjy Eisen tell a story about encountering Cohen before a concert. The story ended with the words all the time in the world . I note now that some people are comforted by having all the time in the world, and some people are burdened by the same. For someone who seeks out pain and suffering to distract one's self from one's deeper problems, eternity can be a curse. Luckily, I don't know anyone like that.

Clint Adams: All creativity must stop now

NaNoWriMo is over.

Matthew Palmer: A trace mixin for Python

Although I am by means an expert Python programmer, I do dabble -- at the moment, I'm dabbling fairly heavily in a project for work. I had need, as you do on occasion, for a call trace (I called this method, it returned X, I then called this other method, it returned Y, and so on). Astoundingly, I got no answer when I asked on #python, as I would have expected this sort of thing to be a gimme -- even possibly including it as a core language feature. But nary an answer was forthcoming. Searches for mixins or magic function calls which might solve my problem were similarly fruitless. I resigned myself to manually sticking print wrappers around the function calls of interest, but that got old real fast (especially after I spent about a half-hour chasing my tail because I'd forgotten to return the return value after I printed it). As usual, my subconscious saved the day. On the train home this afternoon, I suddenly had a brainwave, and the code which I've reproduced below appeared almost fully-formed at my fingertips. It's times like this that I really enjoy programming. Now, of course, someone will pop up and say "oh here it is over here", or "you just set the __trace_me_baby__ attribute on your object", but I can console myself with the fact that I know a lot more about grubby Python internals than I did before. The code: (a pre-saved version is also available).
# tracemixin.py
#
# A python mixin to trace the calling of methods.
#
# Copyright (C) 2005 Matthew Palmer 
#
#   This program is free software; you can redistribute it and/or modify
#   it under the terms of the GNU General Public License as published by
#   the Free Software Foundation; either version 2 of the License, or
#   (at your option) any later version.
#
#   This program is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#   GNU General Public License for more details.
#
#   You should have received a copy of the GNU General Public License
#   along with this program; if not, write to the Free Software
#   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
#   or see http://www.gnu.org/licenses/gpl.html
#   
"""
A mixin class to permit the tracing of method calls on an object.
This class, when mixed in, overrides the default operation of method calls
so that requests to call methods which have been listed in the
self._traced_methods list will be printed with their arguments and return
values.  Also included is a simple call depth indication, using indents.
Tracing of particular methods can be turned on and off on a per-object basis
by simply including or removing the method's name in the _traced_methods
list on the particular object.  Whole classes can be traced by setting
the list as a class attribute.
To include this class, simply make it the first class name in the list of
parent classes when defining a new class, like so:
class Something(TraceMixin, RealParentClass):
You could probably leave the TraceMixin in your production code, although
it'll slow execution down by a bit.
Complete usage example:
from tracemixin import TraceMixin
class RandomTask(TraceMixin):
	def x(self):
		print "X!"
	
	def y(self, arg):
		print "%s Y!" % arg
		self.x()
x = RandomTask()
x.x()
x._traced_methods = ['x', 'y']
x.y('why?')
Output:
X!
::y(why?)
why? Y!
  ::x()
X!
  =>None
=>None
"""
class TraceMixin(object):
	_traced_methods = []
	_depth = 0
	def __getattribute__(self, attr):
		if attr in object.__getattribute__(self, '_traced_methods'):
			self.method = attr
			attr = '_trace_proxy'
		return object.__getattribute__(self, attr)
	
	def _trace_proxy(self, *args):
		realmethod = object.__getattribute__(self, self.method)
		if realmethod and realmethod.__class__ == self._trace_proxy.__class__:
			print "%s::%s(%s)" % (self._depth*'  ', self.method, ', '.join(args))
			self._depth += 1
			rv = realmethod(*args)
			self._depth -= 1
			print "%s=>%s" % (self._depth*'  ', rv)
			return rv
		else:
			raise AttributeError

Clint Adams: All creativity must stop now

NaNoWriMo is over.

Clint Adams: So I can sigh eternally

I've heard it said that listening to Leonard Cohen can turn one suicidal. I wouldn't know about that. What I do know is that I once listened to Benjy Eisen tell a story about encountering Cohen before a concert. The story ended with the words all the time in the world . I note now that some people are comforted by having all the time in the world, and some people are burdened by the same. For someone who seeks out pain and suffering to distract one's self from one's deeper problems, eternity can be a curse. Luckily, I don't know anyone like that.

Dirk Eddelbuettel: Mail broken

Comcast, in their infinite wisdom, decided to RBL block (at least one of) Debian's mailhost(s), master.debian.org. As essentially all my mail is forwarded from Debian to Comcast, mail traffic was affected. At first, I noticed dropped posts from mailing list subscriptions relative to the list web archives. I posted the suggested noticed to the Comcast RBL admins, so far to no avail other than a to yield a more complete stop. The mail forwarding has been disabled for now, and I am dealing with this more manually. If you tried to contact me in the last few days and have not gotten a response, please resend your mail. I should now be in a position to receive it. Sorry for any inconveniences. Offers of better mail hosting would be gladly accepted, of course.

30 November 2005

Jonathan McDowell: OpenWRT on the Netgear DG834G

I spent too much time today reading MIPS disassembly of the ADAM2 bootload, as used on the Netgear DG834G. The problem is that the version used on the Netgear performs a checksum over most of the flash device on every boot. This makes the use of JFFS2, as done by OpenWRT, somewhat problematic. In an ideal world I'd try to compile up a newer, less restrictive version of ADAM2 but there's no JTAG on the Netgear that I've found and the thought of frying the bootloader and bricking the device wasn't appealing. So what I've ended up doing is finding where the checksum is done and changing the branch instruction that aborts the boot to a nop. It's still scary, but it appears to do the job. PLEASE NOTE THE BELOW COULD PERMANENTLY BREAK YOUR ROUTER First, obtain your ADAM2 image. This is 128K and is mtd2 from the bootloader view. It should have an md5sum of 0530bfdf00ec155f4182afd70da028c1. If it doesn't, stop. The version I'm talking about is 0.18.01 as distributed by Netgear. Assuming you have the right md5sum you want to go to offset 0x3944 where the 4 bytes should be 44 09 00 0C (representing a jal 0x90002510 during execution). Replace these 4 bytes with 0 (representing nop) and you should end up with a new image with an md5sum of d8a2f4623bf6f64b7427812f0e849aa7. You'll then need to do something like dd if=adam2-fix.bin of=/dev/mtdblock/2 on the device (I don't believe you'll be able to rewrite the bootloader from the bootloader for some reason...). After that ADAM2 will still checksum the flash, but will continue to boot it after printing a checksum error message. This means you can go off and build yourself an OpenWRT AR7 based image and install it on your Netgear. Rock.

Antti-Juhani Kaijanaho: I won

Antti-Juhani Kaijanaho has won National Novel Writing Month in 2005 with his novel THE MAIL SHIP I won. I completed 50,000 words in time. Of course, only about 13,000 words are directly usable if and when I end up editing the story, the rest will have to be removed – they were imposed by the strict timetable and the explicit leave to lower one’s standards. But, bottom line: I WON! Ps. Please don’t ask to see the manuscript. It’s not that good :) Pps. My mother won, too. Conga rats!

Erich Schubert: Pyroman V0.1 finished

I just finished rewriting an old firewall tool from Perl to Python. Since it's in Python and about firewalling I dubbed it Pyroman. I investigated a dozen of firewall-tools before, including shorewall and firehol. Each had it's stength and its weaknesses. After writing iptables rules in a shell script every now and then for a more complex project (with like 6 networks of which 3 are bridged together) and two dozen of differently configured hosts, NATs, VPN, everything. My predecessor had written a shell script to configure the firewall, but this was really bad to maintain. So I ended up writing a perl application to generate the rules from a modular configuration (read: usually one file per host, containing a perl hashmap) Well, after happily using this script for two years, I dedcided it's about time to rewrite it and document it extensively. I chose python for the rewrite. You can get the result here: Pyroman 0.1.1. The good: The bad: To tease you a little more into testing, here's an example host configuration: ("dmz" is an interface alias - where the web server is connected to -, as are "INT", "DMZ" and "ANY" for clients on these interfaces)
"""
A really simple webserver configuration.
These examples are just boring... ;-)
But without NAT they would be even more boring. ;-)
"""
# web server
add_host(
        name="web",
        ip="10.100.1.2",
        iface="dmz"
)
# offering, well, web service.
allow(
        client="ANY DMZ INT",
        server="web",
        service="www ssh ping"
)
# internal hosts may access FTP, too
allow(
        client="INT",
        server="web",
        service="ftp"
)
# setup NAT
add_nat(
        client="ANY INT",
        server="web",
        ip="12.34.56.80"
)
(Yes, this is a python script. No, you probably won't care to write your configuration in a programming language, will you?)

Jeff Bailey: Nope, nothing secret here.

From CBC News: Harper reopens same-sex marriage debate:
Some observers say the Tory stance against gay weddings cost the party crucial support in urban Ontario and among younger voters. But Harper may have raised the issue to pre-empt his critics, who say he's intolerant and has a secret agenda.

Next.

Previous.