Search Results: "dom"

7 April 2006

Julien Danjou: NetBSD 3 in Xen

It works. I just installed a NetBSD 3 as Xen 3 DomU using this kernels.
NetBSD thor.adm.naquadah.org 3.99.17 NetBSD 3.99.17 (XEN3_U) #5: Sat Mar 25 19:01:14 CET 2006 bouyer@blues.lip6.fr:/Volumes/data/bouyer/tmp/i386/obj/Volumes/data/bouyer/current/src/sys/arch/i386/compile/XEN3_U i386

Gerfried Fuchs: untangle

/me wonders why people seem to prefer a webbased, flash game when we have the very same thing in our sgt-puzzles package called untangle. Wasn't Debian and sort of Planet Debian about mainly free software, back then, somehow?

6 April 2006

Mike Beattie: Planarity

Seriously, I'm not just responding to only you Erich.. Anyway, that's an evil thing to post on a Friday (for me). I can see I'll get no work done now. *sigh*. Oh, I found an example of your solution: Planarity Solution

Erich Schubert: Planarity

Planarity is indeed an addictive flash game. I just did level 13 in 19:30 minutes. What are your scores like? This game was also featured in that cool Multi-Touch touchscreen video you might have seen some month ago. There is however a rather generic approach that will lead you to a solution rather reliably. Don't just move around random vertices, instead pick one and move it into the center, now grow the solution from that center node. The higher the level, the less space you'll have, so keep it dense! Always look at all "new neighbours" first, where to place them best to avoid having to swap them later. But by just walking around clockwise around the "convex hull" of what you've built so far, you get a pretty good network. I guess you can even prove it that you'll be able to solve it in O(n) that way when done right. In level 13 I this worked quite good for me, except I ran out of space some time. I then picked a random outer node, moved it to the very upper left, and moved the "covex hull" to the borders of the screen. From time to time you'll see you've made a mistake, but this can usually be solved by mirroring some group in your network. Update: Level 14 in 18:13 Minutes. Looked like this: Planarity screenshot with a small problem at the top edge of screen due to lack of space there. Update: Level 15 in 14:01 Minutes. The schema works perfectly, you have to touch each node at most twice (once when discovering, and maybe switch place with a sibling when discovering the new neighbours). All changes are local, and you don't actually look at the lines, just at the colored nodes. Unless of course you run out of space and have to rearrange.

Mike Beattie: And now for something completely Clich d..

Check this out... (As I write this, it's about to tick over the 2,000,000 he's wanting.) I'm not entirely sure what to think.. Not a bet I'd take, I don't think. (Yes, I am a male, but I just couldn't do that...)

5 April 2006

Raphaël Hertzog: Leader election: last chance to vote

Given the low participation, it looks like the choice of a DPL is difficult this year. It probably means that the platform of the candidates do no suit everybody… however with DPL teams, there’s more than just the DPL and in theory each member should have their own platform. That’s not the case for me because writing a platform is a big job… which I can avoid since I’m not candidate. :-) However I now do feel the need to tell what I would like to propose (and do) if I’m part of a team so that you know better what to expect if you vote for a team where I’m involved. I’d just like to give a warning, those items are quick notes and are in no way full- and flesched out solutions, they will need to be discussed and refined in all cases, and somes ideas may be dropped of course. This list is neither complete nor definitive. Not all items will be achieved but each of them is a real progress IMO and I’d like to be able to work on them. For people who are concerned by those changes, I’m sorry if you discover my ideas by this post even before I had the opportunity to talk to you… I’m posting those ideas now because they may be considered by people who are currently voting, but it does not mean that I’m not interested to discuss them with you. It’s also true that some of those ideas can be implemented without being part of the DPL team and I’ll certainly try to implement some whatever the outcome of the election, but I really believe that being part of a DPL team helps greatly because you have access to some important informations, and you can effectively discuss with core teams which are otherwise difficult to approach for non-technical discussions when you’re a random DD. And last but not least, the trust of the developers is a big motivation (at least for me) to work effectively on those problems. See this post for my personal vote recommandation and see you in 3 days for the result of the election !

4 April 2006

Lars Wirzenius: Random thought: I've finally touched OS X

I played around with a friend's Apple Powerbook for a while today. It is nice, weird, confusing, and intriguing all at the same time. This was my first real experience with Mac OS X, but it was clear that the user experience is quite different from what I'm used to with GNOME and Linux. Some things were clearly better, others clearly worse. For example, Safari's "back" button and the window close button are right next to each other so it was easy for me to repeatedly accidentally close a window when I wanted to go back. It would be quite interesting to see what it would be like to use OS X as my primary computer for real, for a month or three. I don't think I it would be quite interesting enough to buy an Apple laptop just for that, though.

Gunnar Wolf: Mr. Fox should have abolished the Congress five years ago

...If that is what it would have taken for his mediocre term to be positive for our nation.
Today he says that it's because of the congress that he could not solve the conflict in Chiapas (a deed he promised in his campaign that would take not more than 15 minutes). The congress didn't vote the correct laws to solve the conflict, it seems. Of course, the promised 15 minutes seemed not to be the time it would take for him to mediate, negotiate and agree with the unhappy indigenous population, but just to sign the needed paper. The Congress did not send the right law, it seems... Strange, I would say, as the Law for Indigenous Rights and Culture that was approved was approved by PRI, PAN and PVEM almost five years ago. That law, instead of fixing the problems requested by EZLN and many other groups, ignored the proposed beginnings of a solution. It was voted by PAN (Fox's party), PRI (the historical dominant party, now shrinking every day more) and PVEM (so called ecologist party). Of course, had Fox wanted to solve the problem, it would have taken him over 15 minutes to read the proposed law - but he would have been able to ask his party not to vote for it.

Matthew Palmer: Rewriting in Rails -- A Practical Examination

[Note: this article was mostly written some weeks ago; I left it in my "to be edited" box and then promptly forgot about it. So any and all temporal references are way out of whack. Since originally writing this article, I have commenced an incremental rewrite of an in-house business management application from crazy-PHP (a common -- some may say overwhelmingly so -- dialect of the language noted for it's complete lack of any sort of good software development practices, such as the creation and use of functions (!)) into Rails. Articles on this effort will be appearing presently.] Almost immediately after I'd finished writing my previous discussion on why rewriting software is evil, I decided to make a little experiment. What I did was take a fairly well factored PHP application, and rewite (a portion of) it in Rails. My intent in this was not to produce a production-quality rewrite. I have no interest in proliferating yet more functionally equivalent clones on the world. Instead, I undertook the work simply to get a feel for (a) writing a whole, traditional, Rails app in a short space of time, (b) how quick Rails really was to produce an application, and (c) whether wholesale rewrites really are as boring and life-sucking as I imagined them to be. My methodology was this: with a small amount of knowledge of the target application (SysCP), the existing database schema and templates, and a weekend, rewrite as much of SysCP as I could in a close-as-possible reproduction of critical SysCP functionality. My summary results are: rewrites are as boring as I thought they would be, Rails is powerful but fairly complex and slightly buggy when you get down into it (especially if you're working from an existing -- possibly suboptimal -- database schema), but overall, Rails is Way Good Stuff. On the boredom aspect -- I had two days to write code. I had some domestic duties to attend to (walk the dog, visit the hardware store, help my wife with attaching a new bag rack to her bike, mow the lawn, etc) but on the whole, it was dedicated to programming. I've spent whole days (hell, 40 hour marathon stretches) cutting code before. I knew this wasn't a six-month deathmarch, but only a weekend experiment. Despite that, I feel that my motivation levels were lower than they normally are when coding. I can only imagine what it must feel like, two weeks into several months of hard core coding, knowing that you'll end up with what you had before, functionally speaking. If you are going to do the rewrite thing (and may the Flying Spaghetti Monster have mercy on your soul if you do), then pick the right project. SysCP is large masses of tangled PHP (is there any other kind?) but it has a fair amount of local and global structure once you get down to it -- for instance, it's quite well factored into business logic and display, and the code is broken down fairly logically by action handler, so you get entire source files that look like this:
  if ($action == 'edit')
   
    // 150 lines of twisty passage PHP
   
  else if ($action == 'new')
   
    // Another 150 lines
   
  // repeat for another few actions
and so on. The nice thing about this is that, if you have to look for how something works, you can almost certainly find it in one place in the source. Deciphering it might be another matter, but at least you've got something to start from. As I mentioned, the display in SysCP is pretty nicely split off from the logic -- a large number of templates, with common header/footer files, with some small parts in common templatettes. Some HTML is still generated within the actions, but due to the above action-based structure, it's usually fairly easy to identify all of the HTML that will be associated with a particular action and turn it into a coherent Rails template. I would dread doing a rewrite of the presentation layer of, say, IRM. It's idea of well-factored presentation is to separate print statements from logic by a blank line. To my great shame, I've had the reins of IRM for a year, and it's still this bad. I claim it's because I hate HTML coding with a vengeance, but I think I'm actually just scared to try and tame that particular monster. (Update: Martin Stevens has been doing some good work turning IRM's HTML into Savant templates. The only downside is that I can hear his manic laughter -- caused by IRM's insanity slowly infecting him -- all the way from England, and it's keeping me awake at night). I also had to re-learn that most hated but most important of lessons -- that, no matter how much reading you may have done, until you've cut chunks of code in a language or environment, you have no idea how it actually behaves in your brain. Specifically, I spent a fair amount of my alloted rewrite time learning a few little lessons in how Rails actually behaves, and all of it's cool little features. Of course, everyone is going to have this pain, and I've suffered it in every language that I've done any appreciable amount of programming in, but it's always a shock to the system that -- after all this time programming -- a new language still makes my brane tingle curiously for a while. Luckily, I'd read and digested all of both the Pickaxe (Programming Ruby) and AWDWR (Agile Web Development with Rails) so I knew what was possible, I just usually wasn't sure how exactly, so I spent a lot of time with my head in the books. Rails' little foibles also bit me in the bum more than once. For example, I spent over an hour (a no foolin' hour) trying to hunt down what I was doing stupid in my code to make Rails completely forget about the value of a couple of my fields. The answer turned out to be to restart Webrick (Rails' internal webserver for development testing), and the problem cleared right up. You could hear my screams of anguish from the moon (even through the vacuum of space -- it was a lot of anguish). Rails isn't the Final And Ultimate Solution To The Webapp Problem, but it's a good start. There is near-zero administrative bumf when you're writing a Rails app. Rails is fairly intelligent about working out what you want done from the world around it. Code generators (which produces sensible, minimalist templates -- not the ugly, unmaintainable behemoths produced by Visigoth Studio, which has given the whole code generation world a bad name) handle a lot of the low-level "oh bugger, I have to add a new file" feeling. It's very, very anal about project structure, but (in contrast to many other bondage-and-discipline frameworks I've looked at in the past) this structure seems almost comforting (maybe I'm just getting old and turning into a satisficer). What all this means is that you (a) don't write much code unless it moves you toward your goal, and (b) Common structure means that any Rails app will be fairly familiar to an incoming programmer. Unfortunately it also means that cunning wankers will, sooner or later, work out a whole pile of ugly tricks and contortions to get themselves out of Rails' comfortable-but-no-doubt-incompatible-with-many-people's-ways-of-thinking straitjacket, which I will (sooner or later) end up maintaining. Like many of Rails' (and Ruby's) features, though, I don't see them being any more abusable than most features of any programming language or environment -- and at least they're powerful and useful (unlike, say, register_globals, magic_quotes_gpc, magic single-character variables, mandatory indenting, or banning tabs as indent characters -- I thought I'd spread the slagging amongst lots of languages). Productivity-wise, although I was only just kicking off my Rails webapp knowledge, I felt I was doing fairly well. From experience, what I produced in my weekend was roughly on par with what I could produce in PHP in the same amount of time, had the situation been reversed. Considering that I have about 3 weeks of Ruby/Rails knowledge, and about 5 years of PHP experience, I think that's a big win. (Update: I've since produced a DNS management applet for work in about 6 hours billable time, and a virtual mail account application in about 12 hours, both using Rails. There isn't a hope in hell that I could have performed a similar feat in PHP, especially with the same amount of inherent flexibility that the Rails solutions contain). Overall, my impression of wholesale rewrites as being soul-sucking experiences stands. I suggest they be approached with the greatest of care, and only be permitted after an appropriate period of psychological counselling. There is plenty of code that needs rewriting (but why do I always have to find it?) but replacing it by doing an rm -rf on the source tree and starting again is not the answer.

3 April 2006

Pierre Habouzit: @debian.org and Spam (#3) alioth

Following my recent posts about SPAM in our wonderful project, Rapha l Hertzog asked me to improve alioth mail configuration to use my suggestions. Thanks to him, the improvements I've suggested are now all in place, since roughly 12 hours. Alioth Exim's configuration had a couple of problems, and was in a not very satisfying shape. Here is the list of the improvements I've suggested, and that now are in place (hopefuly for our best comfort) : Moreover greylisting has been made more efficient: before, we only greylisted on the pair (sender_ip, sender_domain) which is suboptimal: spammers always forge sender addresses from the same domains (aol, hotmail, ). So in half an hour, aol.com, hotmail.com, were whitelisted, and spammers could just get through, unannoyed. Whereas occasionnal senders on not very widespread domains were always caught. Now, greylisting uses the full sender_address, which is the mildest way to do greylisting. The hard way would be to use the usual triplet (sender-ip, sender-address, recipient-address), but given the fact that alioth does not delivers to that many recipients, not taking it into consideration is a good compromise to avoid a too huge database, with almost the same results. I hope to be able to deliver some nice curves based on alioth's traffic in about 10 days, to see if that worked as expected. Thanks again to Rapha l that made it possible.



for those who are interested, the exim4.conf snipplet to do conditionnal greylisting is :
    # acl that tell if we will greylist or not
    acl_greylist:
        # Check if EHLO greeting is resolvable
        deny
            !verify = helo
        # Deny if the host is blacklisted
        deny
            log_message = match $dnslist_domain
            dnslists = cbl.abuseat.org : dul.dnsbl.sorbs.net : dynablock.njabl.org
        # Deny if the sender address can't be verified
        deny
            !verify = sender/callout=30s,connect=5s,defer_ok
        accept
        accept
            acl = acl_greylist
Notes [1] I really think we sould also check that the helo line is either an IP or a FQDN, but that can come later

Uwe Hermann: HOWTO: Disk encryption with dm-crypt / LUKS and Debian

A few weeks ago I published a small HOWTO for using loop-aes to encrypt your hard drive, usb thumb drive etc. As I have bought a new 300 GB external USB disk drive on Friday, I have tried something new this time: disk encryption using dm-crypt / LUKS. It has been suggested to me multiple times that dm-crypt is superior to loop-aes, however I didn't get a real reason. Yes, it doesn't require any kernel patches and is easier to setup. But has any serious cryptographer looked at it sharply, yet? Did it withhold his eye contact? Anyways, here's how I encrypted my 300 GB drive. I largely followed the guide at the EncryptedDeviceUsingLUKS wiki page...
  1. Make sure you run Linux 2.6.16 or better. Previous versions suffer from an implementation problem which affects the security of dm-crypt, see Linux Kernel dm-crypt Local Cryptographic Key Disclosure.
  2. Enable the following options in your kernel:
    • Code maturity level options
      • Prompt for development and/or incomplete code/drivers
    • Device Drivers -> Multi-device support (RAID and LVM)
      • Device mapper support
      • Crypt target support
    • Cryptographic options
      • AES cipher algorithms
  3. Overwrite the whole drive with random data in order to slow down attacks on the encryption. At the same time perform a bad blocks scan to make sure the hard drive is not going to die too soon:
    badblocks -c 10240 -s -w -t random -v /dev/sdb
    Replace /dev/sdb with whatever is correct on your system. If you're really paranoid, and are willing to wait one or two days, do this:
    dd if=/dev/urandom of=/dev/sdb
  4. Install the required packages:
    apt-get install cryptsetup hashalot
    The current cryptsetup in Debian already supports LUKS, which was not the case a while ago, if I'm not mistaken.
  5. Create one or more partitions on the drive:
    cfdisk /dev/sdb
    I created one big 300 GB partition, /dev/sdb1.
  6. Setup LUKS:
    cryptsetup --verbose --verify-passphrase luksFormat /dev/sdb1
    Enter a good passphrase here. Don't spoil the whole endeavour by chosing a stupid or short passphrase.
  7. Open the encrypted device and assign it to a virtual /dev/mapper/samsung300gb device:
    cryptsetup luksOpen /dev/sdb1 samsung300gb
  8. Create a filesystem on the encrypted device:
    mkfs.ext3 -j -m 1 -O dir_index,filetype,sparse_super /dev/mapper/samsung300gb
    I used ext3 with some optimizations, see mke2fs(8).
  9. Mount the encrypted partition:
    mkdir /mnt/samsung300gb
    mount /dev/mapper/samsung300gb /mnt/samsung300gb
    That's it. Everything you write to /mnt/samsung300gb will be encrypted transparently.
  10. For unmounting use:
    umount /mnt/samsung300gb
    cryptsetup luksClose /dev/mapper/samsung300gb
After unmounting, nobody will be able to see your data without knowing the correct passphrase. Drive is stolen? No problem. Drive is broken, and you want to send it in for repair without the guys there poking in your data? No problem. You leave the USB drive at home and some jerk breaks into your house, steals your drive, rapes your wife, and kills your kids? No problem. Well, sort of, but you get the idea ;-) There's more things you can do, thanks to LUKS: have multiple passphrases which unlock your data, change/add/remove passphrases as you see fit, etc. Comments?

1 April 2006

John Goerzen: Today's Public Service Announcement

You've just arrived in the country in some quiet midwestern state. You know, one of those flat ones. You're in the kind of place where the sky is black at night, not orange. The kind of place where you can see stars, planets, and galaxies at night. The kind of place where the loudest noise at night comes from insects.

Sounds peaceful, right?

Then all of a sudden, you hear a frightful noise. Sounds like somebody is screaming. What's going on? Then more people start screaming. Are you in danger? Are there some redneck muggers out there?

Nope. Chances are you're hearing several of these:


This is a coyote. It's rare to see one, but common to hear them at night. On a calm night in Kansas, you can probably hear them from almost a mile away.

The sounds that they make can sound amazingly human-like at times. I tried to find some good recordings, but I couldn't. The closest I could find was this page -- try listening to the long howl and the coyote pack. (Unfortunately, there's a lot of background noise on the coyote pack recording)

Terah was scared the first time she heard these, and didn't believe me for awhile that they were coyotes.

So why am I telling you this?

Well, mainly because I'm surprised at how many people have never heard coyote packs howling. If you've lived all your life in a city, that's quite possible.

Plus, Cliff provided some inspiration. (Great post, Cliff)

PS... For those of you not keeping track very closely, this story was posted on March 31 local time, and is not an April Fool's joke.

This photo is public domain from the Wikipedia entry on coyotes.

31 March 2006

Dirk Eddelbuettel: RQuantLib updated

A new RQuantLib package 0.2.2 has just been released to CRAN and Debian. As with 0.2.1, Dominick did all the lifting and further improved on the C++ interface between R and QuantLib using his RcppTemplate package.

30 March 2006

Jos Parrella: auto-eject-cdrom 0.3

Today my boss asked me for a method to clearly umount and afterwards eject a CDROM media on the event of trying to eject the tray using the drive button. I googled around a bit and found auto-eject-cdrom, in the public domain, and originally written by Jens Axboe, from SuSe, and Peter Willis, in 2001 and 2005 respectively. The problem with this little application is that it was unable to eject both my boss drive and mine. It did umount the filesystem but did not eject the tray. So I dig into the code and found that it used plain, old cdrom events, handled by the cdrom kernel module. The event was, in fact, defined in <linux/cdrom.h> as:
#define CDROMEJECT 0×5309 /* Ejects the cdrom media */ I found out that using system (”eject”); as my quick and dirty solution after the umount was working ok, but I was losing performance because eject is used for ejecting floppy disks, tapes and several other media. In fact, eject can figure out which media is he working with so he selects the proper method of ejecting, but I was bitten by the curiosity. So I implemented both the cdrom commands and the SCSI commands for ejecting the tray, in two functions, copypasted from the eject.c, previously apt-get source‘ed and I’m putting this interesting piece of code to the public domain (most likely it should go with a GPL license, since I used GPL’ed code on it) here: auto-eject-cdrom v0.3. A relevant and important piece of code goes now:
        /* Here I use two different methods for ejecting the CDROM. This is for fun only,
           since I could use system(\"eject\"); but this is the dirty hack. Here I use the only
           two CDROM-related eject functions from the eject.c file of the eject program
           by Jeff Tranter (tranter@pobox.com) - Note by Jose Parrella  */
Installing is just a matter of compiling and copying to /usr/local/sbin and running it as auto-eject-cdrom &. I hope it’s useful for those of you who can not afford to use one of the keys of your keyboard to assign the eject command to it. Enjoy!

Jos Parrella: Meme: What s in my bag?

I’m really conservative about bags. I’ve got three backpacks, one for school, one for the laptop and one for travelling, a laptop messenger bag and a small messenger sidebag. These accomplish different duties, mostly carrying books, tools, magazines, random stuff and of course the laptop. Starting 2006, I use to carry only the laptop backpack, which fits all my needs. When I go out I use to carry the messenger bags. Anyway… I have this stuff in my bag. What’s in your bag? (no, I’m not a Capital One representative)

29 March 2006

John Goerzen: I've chosen Serendipity

I wrote the other day that I was considering Serendipity, and had a few concerns about it.

Those concerns have now been pretty well resolved.

I also looked at WordPress. It looked like it had more features, but the whole lack of a central plugin store bothered me. I'd have to scour all over the net to find plugins, and half of them are just on a random person's blog. Very few mentioned support for WordPress 2.0; most were for 1.5.

Then I looked at anti-spam options in both. The major anti-spam plugin for Wordpress had two big strikes against it, in my mind: it's not Free software, and it doesn't work with PostgreSQL.

I am really ticked off by webapps that only support MySQL. There is no reason not to support PostgreSQL (especially when WordPress itself does).

So I am going with Serendipity.

Now, I have to write a Drupal to Serendipity conversion tool.

MJ Ray: Software Patents: They're back: SPLT

As predicted, the protectionism interests are pressing for software patents again. The European Commission is consulting until the end of March. Please tell them what you think. Here is some background material:

28 March 2006

John Goerzen: I've chosen Serendipity

I wrote the other day that I was considering Serendipity, and had a few concerns about it. Those concerns have now been pretty well resolved. I also looked at WordPress. It looked like it had more features, but the whole lack of a central plugin store bothered me. I'd have to scour all over the net to find plugins, and half of them are just on a random person's blog. Very few mentioned support for WordPress 2.0; most were for 1.5. Then I looked at anti-spam options in both. The major anti-spam plugin for Wordpress had two big strikes against it, in my mind: it's not Free software, and it doesn't work with PostgreSQL. I am really ticked off by webapps that only support MySQL. There is no reason not to support PostgreSQL (especially when WordPress itself does). So I am going with Serendipity. Now, I have to write a Drupal to Serendipity conversion tool.

Luciano Bello: Happy Anniversary, Pyro!

Today is an special day.

One year ago we (yes, you and me), started a beautiful path together. A long path with wisdoms and mistakes. I learned about Debian and you about correcting me, but both learned to wait each other.

Dear Pyro, for not to many years together, with this wonderful relation ApplicationManager-Applicant, I say you: Happy Anniversary!



PD: don't get angry, I'm just joking (c:

Uwe Hermann: People should not be afraid of their governments. Governments should be afraid of their people.


Voil ! In                                                       view, a humble
 vaudevillian                                                  veteran, cast 
  vicariously as both                                         victim and
   villain by the                                            vicissitudes of Fate. This 
    visage, no mere                                         veneer of
     vanity, is a                                          vestige of the
      vox populi, now                                     vacant,
       vanished, as the once                             vital
        voice of the                                    verisimilitude now
         venerates what they once                      vilified. However, this 
          valorous                                    visitation of a bygone
           vexation stands                           vivified, and has
            vowed to                                vanquish these 
             venal and                             virulent                   Remember, remember the 5th of November
              vermin                              vanguarding
               vice and                          vouchsafing the
                violently                       vicious and
                 voracious                     violation of
                  volition. The only          verdict is 
                   vengeance; a              vendetta held as a 
                    votive, not in          vain, for the
                     value and             veracity of such shall one day
                      vindicate the       vigilant and the
                       virtuous.         Verily, this 
                        vichyssoise of  verbiage 
                         veers most    verbose
                          vis- -vis an introduction,
                           and so it is my
                            very good honor
                             to meet you
                              and you may
                               call me
                                  V.
Yes, I've seen V for Vendetta today. Very impressing movie, highly recommended! Makes you start to think...

Next.

Previous.