Search Results: "spa"

3 August 2006

Andrew Pollock: [tech] New computer

Since I lashed out on a metric fuck-ton of disk the other week, I figured I might as well continue with the trend, and get the PC that will be the MythTV box. Last week there was some spam in the snail-mail from Dell, the offer that caught my attention was a Dimension 3100 for under $500. I got a RAM upgrade to 1Gb, and the cheapest nastiest shipping available (which incidentally got rebated away to nothing) and the thing still turned up in two days and only cost me around $500. Gotta be happy with that. I installed Etch on it via a netboot installation with no dramas at all. I really like the automatic LVM partitioning. Very slick. My only complaint would be not to use all of the free extents, just because you can, and to put swap on an LV as well. Oh, and I think calling the VG consistently "Debian" is going to result in pain for people down the track when they try to move disks around. GNOME 2.14 is also looking pretty slick. The only specific problems I've had with running Debian on the machine so far have been that the hardware clock (/dev/rtc) seems a bit screwy, and the sound didn't work with the 2.6.16 kernel that was installed by default. (But works fine with 2.6.17). Oh, and I'm having some weirdness with audio CDs. Now all I need is to get a TV tuner card, a four-port USB 2.0 controller for my old 1RU server, and the right right-angled PCI riser, and I have everything I need.

2 August 2006

Roland Mas: File set split utility, or the backpack problem

Joey Hess is looking for a tool that allows him to split sets of files across subsets with a known maximal size, for archival on DVD. That sounds a bit like what my ~/bin/prepare-gallery-backups.pl script does. Actually, my script doesn't operate on a per-file granularity, but per-directory (think photo gallery albums), but I suppose it would be rather simple to adapt. Also, there's no guarantee of optimality, and it may well be that you'll end up with a few subsets more than what is strictly needed. I'm not trying to solve the notoriously hard "backpack problem", just looking for a "good enough for me" solution. Now if Joey wants to recode that properly and add it to moreutils, I'll be a happy man. I was about to paste just the relevant excerpt of my script, but since only a few lines would have been omitted, I figured what the hell. Here's the whole script, licensed under a "send me a lot of money if you like, otherwise do what you want" license.
#! /usr/bin/perl
use File::Find ;
$maxsize = 700000 ;
$remote_dir = "/srv/www/gallery.placard.fr.eu.org" ;
$rsync_dir = "/space/backups/gallery-backup/rsync/" ;
$albumsdir = "/space/backups/gallery-backup/rsync/gallery.placard.fr.eu.org/albums" ;
$backupdir = "/space/backups/gallery-backup/backups" ;
# system "rsync -avL --rsh=ssh --delete clodomir:$remote_dir $rsync_dir" ;
system "rsync -avL --rsh=ssh --delete mirobole:$remote_dir $rsync_dir" ;
if ( (defined $ARGV[0])
     && ($ARGV[0] eq "--make-isos") )  
    File::Find::find( wanted => \&wanted, follow => 1 , $albumsdir);
      for $i (@alist)  
    $fname = $i ;
    $fname =~ s,.*/,, ;
    $du = qx/du -hk $i/ ;
    $size = $du ;
    $size =~ s,\s.*,, ;
    $albums $fname size  = $size ;
    $albums $fname path  = $i ;
       
      foreach $album (sort  $albums $b size  <=> $albums $a size  keys %albums)  
    $size = $albums $album size  ;
    $name = $album ;
    $name =~ s,.*/,,;
    if($cur + $size > $maxsize)  
        my @bplist = @curlist ;
        my %entry = ('list' => \@bplist,
             'size' => $cur) ;
        push @backpacks, \%entry ;
        $cur = 0 ;
        @curlist = () ;
     
    $cur += $size ;
    push @curlist, $name ;
       
      my @bplist = @curlist ;
      my %entry = ('list' => \@bplist,
         'size' => $cur) ;
      push @backpacks, \%entry ;
      $i = 1 ;
      foreach $bp (@backpacks)  
    print "Backpack $i (size $bp-> size ) :\n" ;
    $bpdir = $backupdir . "/backup-$i" ;
    system "mkdir -p $bpdir" ;
    foreach $n (@ $bp-> list )  
        print "\t$n\n" ;
        system "cp -a $albumsdir/$n $bpdir/" ;
     
    system "mkisofs -quiet -r -o $backupdir/backup-$i.iso $bpdir" ;
    system "rm -rf $bpdir" ;
    $i++ ;
       
   
sub wanted  
    my ($dev,$ino,$mode,$nlink,$uid,$gid);
    (($dev,$ino,$mode,$nlink,$uid,$gid) = lstat($_)) ;
    # print "$File::Find::name ; $File::Find::dir\n" ;
    if ((-f $File::Find::name) && ($File::Find::dir eq $albumsdir))  
        # print "Keeping file $File::Find::name\n" ;
        push @alist, "$File::Find::name" ;
     
    if ((-d $File::Find::name) && ($File::Find::dir eq $albumsdir)
      && ($File::Find::name ne $albumsdir))  
        # print "Keeping dir $File::Find::name\n" ;
        push @alist, "$File::Find::name" ;
     
 

Roland Mas: Gforge in Debian, June 2006

...or, "Bits from a Gforge maintainer", if you'd like. After being neglected for way too long, the Gforge packages have finally started moving again. Packages for the most recent upstream release (4.5.14) are available in experimental, with quite a few improvements over the version currently in unstable: From a Debian maintainer's point of view, my Gforge-related TODO list now mainly sports three items. I suppose I could also try and migrate to the webapps-common framework, but I'll keep that for later. Of course, any help is welcome. Remember: the sooner I get the Gforge packages into a reasonable shape, the sooner they'll go to unstable, then testing, and the sooner I'll be backporting them to sarge, which means Alioth can be upgraded. But since I've heard a few complaints about Alioth being too damn slow or broken or whatever, I expect I'll get lots of patches (in bug reports, please) from disgruntled users eager to help.

Simon Law: Hacker bike ride


Tall bike
Originally uploaded by sfllaw.
What do you do with a sunny, summery Sunday in Ottawa? Biking and barbequing, of course. It's traditional to hold the Hacker Bike Ride right after the Ottawa Linux Symposium. The local cycling enthusiasts are, by and large, also pretty geeky so many of them join in on this event. We gathered in the park across from the conference centre. People were milling about, so I had time to rent a bicycle, and soon we were off. This year, I chose to take the long route with everyone else. Richard, on his tall bike, led the way through the streets of Ottawa and on to the bike paths. We went over some very scenic hills, had two people fall off their bikes, and enjoyed ourselves immensely.

OCLUG
Originally uploaded by sfllaw.
I spent a lot of time riding quite dangerously, with camera in hand. The most challenging pictures were those taken over the shoulder, as I had to do that blind. A couple of them seemed to turn out. In the process of photographing things, I managed to get my wheels stuck in a rut. It sounded like someone falling over, which caused a few people to look around, but I managed to stay in control. This surprised me, as I haven't ridden a bike in about a year. We finished one leg of our ride in Vincent Massey Park, where the local LUG was holding their annual picnic. I grabbed a hamburger, sat down on a blanket, and inhaled it. There's nothing like hot food after a good bike ride. After lunch, we did a bit of exploring. That's how we found a cicada hiding under a picnic table. Then [info]ostraya did nothing to prevent the penguin from viciously attacking me.

Terri blows bubbles
Originally uploaded by sfllaw.
There were more silly antics, including penguins on heads and bubble-blowing. But then it was time to pack up and leave. We helped the organizers stow the picnic things away before riding off to Hogs Back Falls. I climbed around on the slick rocks while other people ate their ice cream. We crossed the bridge and then we rode alongside the canal on our way back. This allowed me to see the canoe innovation of brilliance. A canoe with a hitch up front and bicycle wheels mounted on back. I waved to these people and told them they were geniuses. I think they might have thought me a tad weird. By the time we reached the park, it was starting to get late. I returned my bike and said goodbye to people, which was good because I had postcards to send. There's nothing like sending postcards hours before you leave a city.

Jordi Mallach: Asturies

Tomorrow I'll be going with Bel n to Asturies, one of the northern regions of the Spanish state. The plan is to spend the weekend in Ribadesella during the celebration of the Descenso Internacional del Sella and then move around the area and walk all over the beautiful Asturian mountains, during four days, until Friday. The plan for those four days is pretty loose right now, so if anyone has suggestions about must see places, I'm very interested in hearing them in comments. My idea is to do daytrips of several hours (6 or 7), coming back to our base camp to sleep, but if there's something we really should visit and it involves a two day stage, we'll probably bear with carrying the heavy tent around too.

Aigars Mahinovs: Dell Inpiron XPS M1710

Well, now I am a proud owner of a one of the most powerful laptops available under two grand. Core Duo 2.0 Ghz, 2 Gb RAM, 120 Gb HDD, 1900×1200 17″ screen and NVidia 7900 GS. I am just loving it. It did come with Windows and lots of ther crap which I removed right away. I did reinstall Windows (XP Media Center) to see how it works (it’s been a long time :P ) and for some gaming (HL2: Episode One in particular, it’s been a long time :P ). I also installed Ubuntu Dapper as the primary workspace (as something stable, quick to set up and boringly non-experimental). Debian as the development platform and primary experimentation base and one more 5 Gb partition stayed free so that I can try out other stuff (like Gentoo) when I feel like it.
I must say that installing Ubuntu, Debian and Windows in quick succession was a very, very interesting experience. I am considering repeating that and writing down everything with plenty of unusual screenshots to trully compare the experience. I must say that Ubuntu fared the best with Debian following in a very close second (mostly due to minor laptop problems on installation) and Windows being waaay behind on usability and installlability with all kinds of wierdness.

Isaac Clerencia: Debian + KDE deployment for elderly people

Hundreds of elderly people living in Zaragoza, Spain, will find a Debian-based KDE desktop in their elderly centers. The Zaragoza City Hall has just deployed a thin-client solution using PXES, Debian and KDE in six elderly centers with more than ten computers each. The number of elderly centers will grow up to some dozens in the future. We have dealed with the installation details. It has been officially presented today and people have already started using the desktops, browsing the web with Konqueror and enjoying the last annular eclipse using KStars.

Isaac Clerencia: Beach, driving license exam, books, Akademy

So I was having these great holidays in the beach with some friends, getting a tan, swimming in the sea, chasing some fish wearing really-big-nose water goggles, drinking beer by the seaside, … but I had to come back to Zaragoza to take my driving license exam. I’ve gone to the driving school today to ask what time was the exam taking place exactly, and I’ve been told that the exam has been moved to Monday (can this happen in any other European country besides Spain?). As I only have holidays this week, I can’t attend my exam next Monday, and thus, the whole thing sucks, specially the getting-back-from-holidays-sooner bit. To keep my karma up and given the fact that I’d some free time to spare as I no longer needed to study for the exam, I’ve visited some bookshops and purchased some books (namely, The Ages of Lulu, Fahrenheit 451, The adventures of Huckleberry Finn and Notes from a Small Island), and then I’ve gone to the park and read for a while (actually, I’ve finished reading Wilt, by Tom Sharpe, which I started reading yesterday in my way back from the beach). I’ve thought about blogging about the books I read, although I’m not sure if I’ll manage to do it. In the end, it has been a nice day and I’ve come home quite relaxed again. With regard to free software stuff, Wesnoth 1.2 is going to be released really soon now, as well as KOffice 1.5.2, I’ve already registered for Akademy 2006 in Dublin, I created my first attempt of flake plugin some days ago, …

Christine Spang: SIGGRAPH 06: can you feel the culture?

It’s true: you never know when you may end up bringing home a teapot. Like, for instance, when attending an international graphics conference. A teapot The reason for this apparently had to do with the large exhibit of teapot-based digital art in the International Center section of the conference, inspired by this guy whose name I don’t remember who was drinking tea with his wife one afternoon and looking for a cool object with lots of curves to render. And she told him to use the teapot. There’s nothing quite like Boston Skyline rendered in teapots. Served with a slideshow presentation of the history of the most popular beverage in the world (including, of course, many references to the Boston tea party), SCONES, tea, SCONES, and free teapots from Upton Tea Imports–at least for four minutes or so until the buzzing hordes got through with snatching them up. I’m really quite pleased, since I, being a poor college student and only recently having started collecting my own kitchenwares, didn’t own a teapot before and am now able to conduct devious experiments with loose tea instead of relying on teabags all the time. The pot’s not big but it’ll do fine for one person!

Jaldhar Vyas: Like If Vorlon Starts Drawing Anarchy Symbols On His Trapper-Keeper I Am So Going To Hurl

Duffman thrusts in the direction of the problem. Oh yeah!
On Debian Policy
When your package contains GDFL docs
or when it break other programs
it stores passwords in mode 666
has incorrect dependencies
that's RC.
When you think that rpath is justified
just because libtool inserted it there
and don't use -fPIC,
libtool is a fool
and you are retarded.
When you have to use Minix
and there are conf files in /usr/local/etc,
Lintian will say,
you had it coming.

1 August 2006

Roland Mas: Migrated to Ikiwiki

I finally took some time to migrate my blog from a (very old) Wordpress to a fairly new Ikiwiki. As I write these lines, the version of Ikiwiki I'm using isn't even released, and it includes two patches made by yours truly (and submitted upstream, of course, as bugs #380680 and #380743), allowing the creation of monthly archives and the possibility of making these archives RSS-less (it doesn't make much sense to have an RSS feed for something that's supposed to be static). The whole blog is now static, since I haven't investigated the comments system. I will probably enable the comments eventually, and I will of course migrate the existing ones (much like I migrated the existing articles, with a combination of a Perl script and some hand-tuning). In the meantime, I'll enjoy a spamless blog. The other regression is the lack of a search facility, but from what I can see it was hardly ever used anyway. Note to readers: old URLs should still work (thanks to Apache's magic mod_rewrite), but please update your bookmarks and feed readers and agregators and so on to use the new ones, since I'll probably disable URLs at some point. Update: I also hacked a new plugin, linkbar.pm, which appends a static Markdown string to all *.mdwn pages before they are rendered. So you should now see the lovely navigation menu on all pages, including the article pages.

Simon Law: 2006 Ottawa Linux Symposium


Penguin and his boy
Originally uploaded by sfllaw.
The Ottawa Linux Symposium is arguably Canada's biggest conference about Linux and its associated technologies. It happens every year, right after the Kernel Summit, which virtually guarantees that some famous people stick around afterwards to attend OLS. Now the Kernel Summit is a small gathering of Linux developers where they hash out big issues in the kernel. After all, it's a lot easier to get your point across when you're sitting in the same room as the person you're talking to. Mailing lists are just not the same. OLS, however, is a free-for-all. If you pay in time, you get to show up. This makes for an astoundingly large conference, about 850 people in total. I brought along [info]wlach, who had never been to OLS before. So I was doing my part in inflating the number of people there. I think he ended up in the right crowds. Which is difficult, because there are a lot of crowds there. People walk past in a blur and you can never quite remember if you've met someone before.

Bowtied
Originally uploaded by sfllaw.
At the conference, there are four tracks of presentations, at any one time. Some of these are perennial talks, like the tutorial on writing your own kernel module. And others change as the years go by. The big topic this year was Xen, the free virtualization software that really got huge in the past two years. Xen allows people to run multiple copies of their operating system inside one computer, with very little overhead. This makes it attractive to a lot of people, be they system administrators, software developers, or people who like fiddling with their machine. I met a consultant from Chicago that sells Xen-based solutions. She builds a big server and runs various virtual servers for small business inside that one box. It's very cost effective and is a good way to make server maintanance easy. Whenever I wanted to find her, I'd just pop into one of the ubiquitous Xen talks. The amount of work that gets done at this conference is astounding. You'll see people sitting around at tables hashing out designs and beating out flaws. Hackers huddle around laptops in an attempt to get the C library building on PA-RISC again. That's because the bandwidth to communication is very high and the latency is inconsequential. There were times when I wanted to pull out my laptop and do some work. But then I remembered that I left it in the hotel. Because it's heavy. There's actually a lot of space at OLS, because it's spread across the three floors of the Ottawa Congress Centre. It's really easy to miss someone for weeks before bumping into him at a party. Like [info]opalmirror, for example, who I was very glad to meet in person. And are there ever parties.

Super balls
Originally uploaded by sfllaw.
Ostensibly, you go there for the talks. And talks there are: some of them quite good and the vast majority are rather mediocre. They're the results of a year of hacking, months of academic research, or inspired observation. I have to admit that I get a bit lax when attending speakers. It reminds me too much of the classroom. And just like university, I buy the course notes to mitigate my guilt. They make for good reading when finals come along. It's the conversation that you go there for. When you get to sit down with Alan and have a good laugh about geeky topics. Or buy Donald a drink for working on those ugly network cards all those years ago. You get to connect with people that you've only seen online, or read as their names flashed past in the boot messages. That's that kind of bonding that people yearn for. I'm looking forward to next year already.

Jeff Bailey: Je viens de manger un hippopotame pour le d jeuner!


The stick
Originally uploaded by jbailey.
Second Doctor's appointment. Review of previous bloodwork, generally things good, a bit low on potasium.

Apparently February 20th is what we're aiming for...

(Snoopy Dance!)

Gunnar Wolf: Israeli mistakes

Reading Jordi's blog, I cannot but agree with him (in most points): I plainly cannot understand Israel's actions in the last weeks. I can sadly understand how some people defend them, specially people not living in Israel - I was talking with a friend today, a friend who does not share a single political viewpoint with me, but still... The world seems to be completely polarized. Some have the impression that Israelis live under constant shelling, that life is unsustainable in that poor country, the last corner of civilization in that mess called the Middle East, and that the Arab countries (which are huge and petroleum-rich) just want to throw Jews to the sea or worse. The rest of the world think that Israelis are mass-murderers who decided to take a heavily populated bit of land and martyrize its originary population by any possible means, establishing an Apartheid.
Both views are false. But of course, both views hold their bits of truth.
I cannot claim to be neutral on this: Although I lived there in total for ~18 months, I am an Israeli by choice (I adopted the Israeli nationality in 1996 and wanted to live my life there - I came back to Mexico for personal reasons, and I later decided to stay here). I have not been to Israel since then - But I try to keep myself informed. And, living in a Jewish family, it's hard not to be somewhat informed - and of course, shocked at your relatives' opinions. Jews outside Israel tend to be right-wingers. I lived in a kibbutz, and I still sympathyze with Meretz, the most leftwing Zionist party.
I won't restate what Jordi eloquently said. I know not everybody who reads my blog reads Jordi's as well - Please do. If you missed it some lines above, here is the link. I insist: I agree with most of what he wrote. What could Israel do to protect itself from its enemies? The answer is simple: Don't give them a reason to hate you.
One year ago, I was optimistic because Israel was heading the right way. Of all people, Ariel Sharon (one of Israel's most hawkish, right-wing strongmen of all times) decided to withdraw from Gaza, and hinted that areas in the West Bank would follow. No, not the best way possible, not as his predecessor Menahem Begin did with Egypt leading to a strong and long lasting peace, and certainly not in the very notable way Itzhak Rabin did with Jordan, getting peace and even friendship. But at least, Sharon accepted the reality, and seemed he meant to let Palestinians build their state. When he organized a new party which reduced Likud to a shadow of its past, one of Israel's most prominent figures for the peace camp, Shimon Peres, joined. Amazing.
But still, there is too much hatred. Of course, life in Gaza is plainly not sustainable. You can walk the Gaza strip side to side in less than one hour, and North to South it's less than 50 Km long. Still, over 400,000 people live in there. The area is simply unsustainable.
Gaza depends for everything from Israel. Of course, according to the never-stable security status, the border between Gaza and Israel opens or closes every day. When I lived in Zikim, mostly every day there were five or six Arabs working with us... Except for the days when they weren't there. And, of course, Israel also depends on the Arabs for much of its hard labor jobs (as it's always the case when two economically disparate populations live together).
Anyway, back on track: Besides giving the Arabs their slice of land (which in a squeezed area as Israel is always hard; people have fought for such small spaces it's hard to believe), the only thing Israel can do is help them. It has worked before: Israeli Arabs (the Arabs living inside the internationally recognized borders of Israel) are full citizens. Yes, there is racism in the country towards them, and yes, they are not really equal with Jewish Israelis - But they have voting rights, they have the right to be elected, they can optionally join the army (it's not compulsory as it is with the Jewish population), and they get government aid. Arab towns are poorer than Jewish towns, yes, but they have their dignity.
The problem in Gaza and South Lebanon (somewhat less so in the West Bank, but also) is that it's plainly all made up of refugee camps. Refugees that were born there, and whose parents were born there as well. And, let me emphasize this, they are not Israel's fault. The refugees fled the newborn Israel because the Arab states said (in May 1948) they would enter Palestine and butcher everybody, inviting Arab civilians to flee and then get back home - of course, 700,000 (out of 1,300,000 who lived in Palestine by then) Arabs did so. And when the Arabs lost the war, the Palestinians were denied citizenship by all the Arab countries except for Jordan (not surprisingly, the most stable of them all, and with which Israel has the closest relation). They were given refugee camps to live, one over the other. When Egypt signed the peace with Israel, it demanded back every inch of the Sinai - But not an inch of Gaza. And not a single Palestinian refugee.
I agree here with Jordi as well: There is a huge military operation in Gaza, but it's more spectacular in Lebanon today. The media talks about Lebanon, but not about Gaza. And the crisis in Gaza is not easier. But how can it be solved in a permanent way? Israel does neither have land to spare to give to the Palestinians - and even if it did, most of Gaza is surrounded by the Negev, a desert where it would not be easy for them to get anything better than what they have inside Gaza. As desirable as it would be to have a completely independent Palestinian state, Gaza would just remain a concentration camp. There is too much hatred, and neither Arabs nor Israelis want to keep working together, not trusting each other. The only solution I can find to this is to have an agreement with Egypt, where Egypt opens its border with Gaza, gives either nationality or work permits to Gazan Palestinians, and Israel injects capital to develop Northern Sinai, to give some hope of survival to the almost half million people.
The same in Lebanon: Israel was widely applauded to withdraw from South Lebanon in 2000. The area is mostly peaceful - For $ DEITY 's sake, what is the kidnapping of two soldiers in a six year period compared to soldiers being killed in the occupation army every week or two? Israel did well to leave Lebanon. Lebanon was starting an incredible national rebuilding process, as Robert Fisk tells us (Spanish only. I could find only the first paragraphs of the original English version, which appears to require subscription) of the wonders of the rebuilding process, reduced to rubble again. Of course, Israeli and Syrian armies left Lebanon. The Lebanese government and army are plainly too weak to care for the country. Hezbollah (which, indoubtely, is a terrorist entity, no matter how many benefical aspects it does have) have poured tremendous amounts of money to rebuild its area of influence, South Lebanon. Of course, they rebuilt, healed and educated with a strong ideological inclination, and that's not good for Israel. What can Israel do to leasen the Islamist influence? Simple: Send aid. Don't just leave. Don't leave a void, don't invite bad people to loot, don't invite extremist people to recruite future bombers. Turn occupation into aid. Build hospitals. Build houses. Give money, give infrastructure. Do it behind your back, as you gave money to the South Lebanon Army for almost 20 years. But make the people see you don't want to kill and rob them - Make the Lebanese Arabs feel their neighbour as a friend, although different. Bring back the good border. What's that? That's the nickname for the Lebanese border between +- 1950 and 1970 - The only border that was stable, that was not filled with hatred, where Israeli doctors treated Lebanese patients across the fence. And still today, the border is just a simple fence.
How can you convince a people of not killing themselves to kill the invasor? Don't act as an invasor. Act in all your best self-interest - Save them from poverty and from indignity.

31 July 2006

Jordi Mallach: Qana, Lebanon

I've been watching the Lebanese bloodshed since it started. It really makes me sick. I have discussed this with many friends. There was little discussion though: we all thought this is a plain war against civilian targets. I tried discussing with people who could maybe be more supportive of the Israeli points of view. I tried talking to some of my right-winger relatives... and I haven't been able to find anyone that can say a word of support of what Israel is doing in Lebanon. In three weeks, I have seen how Hizbullah killed some Israeli soldiers in some area around the border between Lebanon and Israel. As far as my (as an international online paper reader) judgement can tell, the location where this happened is disputed. Some say it was inside Lebanese territory, the others say it was an Hizbullah incursion into Israeli soldiers. I really don't care. The immediate result of this action was a campaign of air strikes against Beirut and other Lebanese cities aiming to give a measured response (cache, and beware this is explicit) to Hizbulla's aggression. This, apparently, included destroying any vital infrastructure in heavily populated areas of Beirut, including bridges, power plants, hospitals and apparently random buildings. While the Israeli army said the military operations were aimed to get rid of the Hizbullah camps and infrastructures around the border where they fire their rockets against Haifa and other Israeli cities, and their headquarters in Beirut and other southern cities, what the world espectated during the first three or four days of air strikes was pure horror. Hizbullah-controlled areas were like ghost quarters, so any bombing of those were very unlikely to take any Hizbullah victims. On the other hand, the rising number of civilian victims was the first bits of news that I could hear in my radio as I woke up every morning. All of this, with a great amount of cinism and unlimitted cruelty. The Israeli army declared that the civilian population in the South should be leaving their homes (measured response), while they knew they were doing exactly what was needed to prevent this, by locking them up around destroyed bridges, harbours, airport and roads. The first columns of the lucky refugees who could afford fleeing to the North were greeted by Israeli bombs, leaving a good number of scattered bodies. In Spain, the news shocked the public opinion and Zapatero, along with Chirac (IIRC), declared those actions were untolerable and unproportionate, and should be stopped immediately. This brought some local politics fun, when on one side the Israel ambassador in Spain accussed Zapatero of being antisemitic, and the right-wing leader Rajoy called the thousands of people who spontaneously demonstrated against the war in a few cities "clowns" and "ignorant". Watching what the UN has done to stop these warcrimes, I really think it's a great moment to shut down that useless organisation and let some big corporation buy their nice building in New York City to build their offices in it. Once again, when some countries tried to come up with some resolution that forced Israel to stop, the United States waived their vetto flag. Once again, the Security Council has done nothing to put an end to another chapter of violence in the Middle East. The vettoing powers of some of the members is so ridiculous that it makes it totally inoperative. So, as the UK and US governments were not going to do anything to stop the air strikes, Israel had carte blanche to do whatever they wanted for a week. And then, Israel's measured response destroyed one of the UN's buildings in Lebanon, killing four annoying observers, despite their calls warning that the bombs were falling too near their location. Only then, the United States decided to send Condie to have a look around the area, surprise visit to Beirut included. I wonder, what phone number must the innocent women and children who cannot escape their cities and towns dial in order to warn the Israeli army about the proximity of their bombed targets? After two visits of Condie to the region, nothing has changed, as the fourth week of operations starts. This is getting on my nerves. I don't, and won't, justify any of the Hizbullah attacks on civilian targets using Katyushas, or the kidnapping of soldiers, or whatever. What I see is that unless Israel takes a radically different approach to their problem, nothing will change either. Violence isn't at least. Apparently, their military operation isn't going well at all, and is not damaging much of Hizbullah's military capacity. What are they going to do? Will they occupy southern Lebanon for 20 more years? The social movements this kind of actions are generating is also very, very worrying. On one hand, I read that around 85% of the Israeli population approve this war and think this is what their government needs to do to make them safe. This is pretty shocking. On the other hand, everyone still in Lebanon, even the Christian community, are united against the attack, helping each other in their survival quest, while the popular support to Hizbullah is rising, with big concentrations of people cheering them in the streets. This is just two years after similar demonstrations in Beirut forced the Syrian military out of the country. While the Israeli war against Lebanon (I won't buy the "It's against Hizbullah" bullshit), sadly all the media, cameras and journalists have given their back on Gaza, which is under similar, but probably more brutal and savage military operations by Israel, as another soldier was kidnapped just one week before all of the Lebanon stuff started. The press doesn't have any news of how things are going in Gaza. The last thing I remember is that the UN was warning about the threat of a humanitarian disaster due to the lack of any kind of supplies in Palestine. If Palestinian kids are starving, the media are not letting us know. Yesterday, 54 civilians were killed in an improvised underground bomb shelter in Qana, most of them being children. The Lebanese civilian death toll must be well over 500 as of this writing, with a ratio of at least 1:10 compared to Israeli military victims. When will Olmert have enough? The only way I see this will end up for good is when the Israeli public realises being at war in three fronts is quite expensive and damages their home economies. Maybe, at that point, people start hearing what the Meretz party minority in the country have been saying for years. Israel has the right to defend itself. This is the official motto of Israeli and American leaders. When this right is extended and abused to the point the main targets and victims are civilians, Israel walks quickly away from a perdurable solution. Today, hostility against the state of Israel is even greater than last month. Hizbullah in Lebanon, Hamas in Palestine, will probably be the winners of the conflict when the bombings end. Not the best recipe for a peaceful future.

Enrico Zini: ninth-day-in-addis

Ninth day in Addis SSH To enable remote logins with ssh apt-get install openssh-server Then you can login with:
$ ssh efossnet@proxy.dream.edu.et
To verify the host key fingerprint of a machine:
$ ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key.pub
Note: you need to verify it before logging in! More information at http://www.securityfocus.com/infocus/1806 Example ssh usages To log in:
    $ ssh efossnet@proxy
To run a command in the remote computer:
    $ ssh efossnet@proxy "cat /etc/hosts"
To copy a file to the remote computer:
    $ scp Desktop/july-18.tar.gz efossnet@proxy:
To copy a file from the remote computer:
    $ scp efossnet@proxy:july-18.tar.gz /tmp/
Beware of brute-force login attempts Warning about SSH: there are people who run automated scans for ssh servers and try to login using commonly used easy passwords. If you have an SSH server on the network, use strong passwords, or if you can it's even better to disable password authentication: in /etc/ssh/sshd_config, add:
    PasswordAuthentication no
To log in using public/private keys:
  1. Create your key:
    ssh-keygen -t rsa
    
  2. Copy your public key to the machine where you want to log in:
    ssh-copy-id -i .ssh/id_rsa.pub efossnet@proxy
    
  3. Now you can ssh using your RSA key
If you use ssh often, read these: proxy Problems we had today with the proxy: ssl does not work Reason: squid tries to directly connect to the ssl server, but the AAU network wants us to go through their proxy. Ideal solution: none. There is no way to tell squid to use a parent proxy for SSL connections. Solution: update the documentation for the Dream university users telling to setup a different proxy for SSL connections. Longer term solution: get the AAU network admins to enable outgoing SSL connections from the Dream university proxy. Other things that can be done: Browsing normal pages returns an error of 'Connection refused'. In the logs, the line is:
1153294204.912    887 192.168.0.200 TCP_MISS/503 1441 GET http://www.google.com.et/search? - NONE/- text/html
That "/503" is one of the HTTP error codes. Explanation of the error codes: Reason: the other proxy is refusing connections from our proxy. Solution: none so far. Will need to get in touch with the admins of the other proxy to try to find out why it refuses connection to our proxy, and how we can fix the problem. postfix on smtp.dream.edu.et Basic information is at http://www.postfix.org/basic.html. Difference between mail name and smarthost: Quick way to send test mails:
apt-get install mailx
echo ciao   mail efossnet@localhost
To configure a workstation not to do any mail delivery locally and send all mail produced locally to smtp.dream.edu.et:
  1. install postfix choosing "Satellite system"
  2. put smtp.dream.edu.et as a smarthost.
To setup a webmail: apt-get install squirrelmail (on a working apache setup). To setup mailing lists: apt-get install mailman, then follow the instructions in /usr/share/doc. Mail server issues we encountered When a mail is sent to efossnet@localhost, the system tries to send it to efossnet@yoseph.org Investigation: Cause: the user efossnet had forgotten that he or she had setup a .forward file in the home directory. Solution:
 rm ~efossnet/.forward
Apache To add a new website:
  1. cd /etc/apache2/sites-available
  2. sudo cp default course
  3. sudo vi course:
    1. Remove the first line
    2. Add a ServerName directive with the address of your server: ServerName course.dream.edu.et
    3. Customize the rest as needed: you at least want to remove the support for browsing /usr/share/doc and you want to use a different document root.
  4. sudo a2ensite course
  5. sudo /etc/init.d/apache2 reload
More VIM Undo: u (in command mode) Redo: ^R (in command mode) You can undo and redo multiple times. To recover a lost password for root or for the ubuntu admin user Boot with a live CD, mount the system on the hard disk (the live CD usually does it automatically), then edit the file /etc/shadow, removing the password:
enrico:$1$3AJfasjJFHa234dfh230:13343:0:99999:7:::
becomes:
enrico::13343:0:99999:7:::
You can edit the file because, in the live CD system, you can always become root. After you do this, reboot the system: you can log in without password, and set yourself a new password using the command passwd. Installing packages not on the CDs To get a package for installing when offline:
  1. apt-get --print-uris install dnsmasq
  2. Manually download the packages at the URLs that it gives you
Otherwise, apt-get --download-only install dnsmasq will download the package for you in /var/cache/apt/archives. You can install various previously downloaded debian packages with:
dpkg -i *.deb
Backups There are various ways: Some data requires exporting before backing it up: You can schedule these dumps to be made one hour before the time you make backups. Scheduling tasks As a user:
crontab -e
As root: add a file in one of the /etc/cron.* directories. In cron. hourly,daily,weekly,monthly you put scripts. In the other directories you put crontab files (man 5 crontab). If the system is turned off during normal maintainance hours, you can do two things:
  1. Change /etc/crontab to use different maintanance hours
  2. Install anacron (it's installed by default in ubuntu)
For scheduling one-shot tasks, use at(1):
$ at 17:40
echo "Please tell Enrico that the lesson is finished"   mail efossnet@dream.edu.et
^D
When and how to automate
  1. First, you manage to do it yourself
  2. Then, you document it
  3. Then, you automate it
Start at step 1 and go to 2 or 3 if/when you actually need it. (credits to sto@debian.org: he's the one from which I heard it for the first time, said so well). Interesting programs to schedule during maintanance Important keys to know in a Unix terminal These are special keys that work on Unix terminals: Therefore, if the terminal looks like it got stuck, try hitting ^Q. Problems we had today with postfix Problems found yesterday and today

Aigars Mahinovs: Spot focus

For a long time I have considered F-Spot to be a nice concept application, but not really fit to be the center of Linux digital photography experience due to general bloat and (most importantly) due to the lack of many important features that would compensate the interface lock in that this application demands. In this post I will try to list all the deficiencies and lacking features of F-Spot that I have found while using it to manage my photo flow.
First let’s talk about the bloat. I will compare F-Spot to GThumb. There are few points of comparison: first start up, viewing a bunch of photos and importing a bunch of photos. When starting up GThumb uses 17 Mb RSS memory (10 of them shared with all other Gnome programs) while F-Spot uses 33 Mb RSS memory (17 of them shared with other Mono programs, of which I do not have any). When viewing a folder with couple hundred photos GThumb uses 25 Mb RSS memory while F-Spot grows to 55 Mb RSS. On import GThumb calls gphoto that adds 3-5 Mb RSS to the memory usage, while F-Spot seems to implement some/most of the photo protocol internally and can easily grow in memory up to the size of the photos being imported (which is kind of problematic while importing a gigabyte of photos), but usually the memory usage on import hangs around 250-300 Mb and hovers around that level for some time after the import is complete. For me personally it does not make much a difference (I have 2 Gb RAM now), but conservative memory usage is still critical for a good Linux application because people expect Linux to be faster and high memory usage can slow down anything. In my opinion no photo management operation should take more then 50 Mb of private RSS memory (even importing several gigs of RAW files from the camera).
Now let me try to describe the optimal work process of a (semi)professional photographer, so that we can see what is missing in F-Spot to accommodate such work-flow and what is done right.
  1. The photographer takes one (or several) cameras, lenses, flashes, memory cars, spare batteries and tripods and goes to an event/photoshoot/modelling session/walk in the park/wedding/…
  2. He takes 3-5 Gb of pictures from lots of different angles with different cameras, different lenses on different memory cards with different settings. Most of them will be the highest quality available on the camera, usually those will be RAW images.
  3. Upon getting back to his computer, the photographer wants to drop all the data to a staging place dedicated to this event. He wants to do it fast and simple without sorting trough the photos at the moment, but at the same time he might want to split the staging areas (multiple models within one session) or join them (one model from different cameras). Sometimes he might not even have time for that and would just want to dump the data now and run to another event.
  4. After several shooting events the photographer finally has reserved the time to sift trough some of the photos from the staging area (modelling jobs first, then the friends wedding and the walk in the park as last)
  5. First the photographer decides to check if the times on the photographs are correct and discovers that at some shooting sessions one of the cameras was set to another timezone. He select all shots from that camera across several (but not all) staging areas and adjusts the time.
  6. Now he rechecks the logical groups of photos (which photos should be in which staging area) by dragging the photos around, splitting and joining the staging areas
  7. When the overall structure is clear, the photographer selects one (most important) staging area and starts working with images in that staging area not caring about any other images
  8. First he browses in full screen trough all the photos rating them in quality scores form 1 to 9 by pressing corresponding number keys. Rating a picture automatically advances to the next picture, which happens very fast because the software precaches several photos ahead for speed and displays without any flicker. Speeds in the order of 2 photos per second are expected on good enough hardware. One key operations for “view 100% zoom”, “rotate”, “view exif” and “quick note” are available. RAW images are automatically translated for preview with default settings.
  9. With couple clicks bad photos (with score of 4 or under) are selected and erased
  10. Now the photographer starts working with individual photos
  11. First step is the RAW->Jpeg conversion. An appropriate tool is brought up with default setting already applied and a preview of the photo showing up (like in dcraw). The photographer adjusts the conversion parameters (including and option to make a HDR-like effect by compressing the dynamic range of high bitness pictures). The converted Jpeg is saved as a version of the original photo and becomes the default for operations that do not understand RAW.
  12. A separate plugin is used to reduce digital photo noise from the pictures (new version)
  13. Photographer makes adjustments to the image inside F-Spot. Each modification makes a new version.
  14. Still not satisfied, the photographer starts Gimp from inside F-Spot and make further edits. Each time Gimp saves the file, F-Spot makes another version.
  15. The photographer erases some versions of the picture and also joins multiple near-duplicate shots into one picture as versions of that picture. One version is always marked as the top version and the photographer can easily change it.
  16. The good photos are tagged and imported to the main collection
  17. A subset of the photos is exported to: Flickr, personal Gallery installation, plain html photo album, a zip file with small (1024x…) versions of the photos, … Only the top versions of photos are exported. If unconverted RAWs are top versions, then they are converted to Jpeg with default settings. In most cases photos are also downsized before export according to the preferences. Highest quality downsizing is used (anti-aliasing) and also additionally small unsharp mask is run on each photo
  18. The photographer does advanced searches and advanced tag selections to select and display or export subsets of his main collection
  19. The photographer has three instances of F-Spot: his laptop, his main work PC and a backup hard drive that can be attached to either of them. He needs to keep his F-Spot photographs synchronised between the three locations for backups and for distributed work. Also after some point the main photo archive becomes too big to store it (with all versions) on the laptop or even on the main PC, so the photographer selects a set of older photos and selects an option to archive them. The next time a connection is established with the backup drive, all versions of archived photos are copied to the backup harddrive and the laptop and the main PC only keep 90% quality Jpeg format picture of the top version of each photo downsized to exactly fit the display resolution of the device. If even that takes too much space then “Archive Only” option is selected which insures that the backup harddrive has the copy of the photo and then erases it from primary data stores completely.
  20. When the backup harddrive is connected it is also very simple to make DVD/HDDVD/Blueray backup copies of subsets of photos from the archive with all the metadata and versions in such a way that other software (and even dedicated media devices) could easily browse the top versions of photos directly from the backup media. Of course, restoring from such backups also must be tested.
So, to summarise, the changes needed for F-Spot are: As you can see, many of those issues are already reported to F-Spot bugzilla, but have recieved little attention. So what shall we do about it?

Eric Dorland: Fantasia Roundup

I'm a little behind having seen my last film on Monday, but here we go:

29 July 2006

Joerg Jaspert: Little changes

Today aj applied two patches to the dak code running on ftp-master i supplied. One got the part in dak that processes NEW up to reality for non-free (well, non-main) debian-installer components, they are now able to go in. The other, more interesting one, affects the mails people receive when a NEW package is accepted. Those now contain an added paragraph, basically looking like the following:
   Override entries for your package:
   foo.deb - optional devel
   bar.udeb - extra admin
   foo2.0-1.dsc - source interpreters
That means you can now directly see if you have a different opinion of the override entries and change your package, avoiding a “Override disparity” mail with your next upload. And just because it was a nice rainy (and cold!) day today, I also went and rejected those two old packages we had in the queue. rte, real time encoder, was the first, and looks like it wont ever get included in Debian, containing non-free code. The other, more flame-attached package, is mplayer - which may get into the archive in the future, but needs a lot of work before that can actually happen. Now - people only need to stop uploading NEW packages, and we are all fine. :) Update: And after aj applied my fix to my override patch people now get the right data mailed…

Christine Spang: Activism

Copley Square in Boston is a busy place on Fridays, it seems, though I would guess it depends on the Friday. Today there was a whole bunch of people gathering to protest Israel’s recent actions towards Lebanon, a couple hundred people on bikes for Critical Mass (which I was there for), and a couple Green Party members handing out “fruit for free,” “soybeans, cherries, and strawberries in the bag!”, wearing some shirts that said something about voting for Ralph Nader. So, the Green Party handed out food to the bikers while we were circling up and getting ready to head out, and the bikers and protesters cheered each other on as we rode by, in a sort of bizarre, random symbiotic relationship. Today was also the first time I rode through the heart of a thunderstorm. We were passing through Harvard Square when the worst of it hit, though it was really obvious that we were heading into the storm a good deal of time beforehand. Some parts were a little like riding blind into a sheet of pins, but it really made the whole thing just a little more exhilarating. Especially when you get to ride through six inches of runoff on Mass Ave. Mmm, puddles. Luckily, I had the foresight to check the forecast and pack my laptop into a plastic bag since I didn’t go home before riding out with a couple friends from the Media Lab. Really, that’s amazingly lucky on my part. I never think of these things in advance. I think, however, that the laptop was the only thing dry in the bag by the time I got home. The ride petered out in the middle of Brighton somewhere, and a guy from BU and I broke off to head back. Neither of us really knew exactly where we were, or how to get back to our respective residences. There is nothing quite like the feeling of being completely lost at dusk, with the whole night before you to find your way back home. It’s a good feeling. IMHO. Provided you’re not lost in a sketchy neighbourhood. After a little while of based-off-the-sun-setting-in-the-west wandering, I was about to break out the laptop and go wifi hunting. Somehow, we just ended up asking for directions at a 7-11. I love friends made in really weird and random ways.

Next.

Previous.