Search Results: "mak"

21 April 2006

Jose Carlos Garcia Sogo: GCompareFunc...

or why C++ sucks. I am wondering if someone could be able to explain me why this piece of code fails when I try to compile it:
  1. GMJabberClient *GMJabberManager::GetClient (GmAccount *ac)
  2. {
  3.   GMJabberClient *client = NULL;
  4.  
  5.   client = g_slist_find_custom (jabber_client_list, ac,
  6.                                 (GCompareFunc) compare_clients_by_account);
  7.   return client;
  8.  
  9. }
  10.  
  11. gint GMJabberManager::compare_clients_by_account (gconstpointer a,
  12.                                                   gconstpointer b)
  13. {
  14.   GmAccount *client_ac;
  15.  
  16.   GMJabberClient *client = (GMJabberClient *) a;
  17.   GmAccount *ac = (GmAccount *) b;
  18.  
  19.   client_ac = client->GetGmAccount();
  20.   if ( strcmp(client_ac->aid, ac->aid) )
  21.      return 0;
  22.  
  23.   return 1;
  24. }
It fails at g_slist_find_custom call, why GCC saying:
endpoints/jabber.cpp: In member function GMJabberClient* GMJabberManager::GetClient(GmAccount*):
endpoints/jabber.cpp: 6 error: invalid use of member (did you forget the & ?)
make[1]: *** [jabber.o] Error 1
I have been only able to fix this by declaring compare_clients_by_account () function a static function, while it actually should be private method of GMJabberManager client. Ideas?
Update 04-21-2006 11:31:34.- First of all, thanks to everybody who have replied to me by mail. Fot those who wonder why I don't have comments enabled, the answer is easy... it is another place to look at, to keep clean of spam, and to care. Those who suggested using constructions like this->compare_clients_by_account or &compare;_clients_by_account that won't work, as other people explained to me (and GCC says a bit more clearly if you try to compile that). As this is C++, when using such constructions you get a member function which gets passed a pointer to the class instance. This way, the prototype for what g_slist_find_custom expects and what it is actually being passed is not the same. This is where static member functions enter in action. Those are functions belonging to a class that not get passed the this pointer, avoiding the problem. Please, follow next week our "C++ sucks / what the hell" show!

20 April 2006

John Goerzen: Debian From Scratch 0.99.0 Is Out

At long last, I've finally updated Debian From Scratch (DFS). For those of you not familiar with DFS, it's a single, full rescue CD capable of working with all major filesystems, LVM, software RAID, and even compiling a new kernel. The DFS ISO images also contain a small Debian mirror subset that lets you use cdebootstrap, along with the other utilities on the CD, to perform a manual, "Gentoo-like" installation. It also serves as an excellent rescue CD, with a full compliment of filesystem tools, backup/restore software, and a development environment complete enough to build your own kernels.

DFS also refers to dfsbuild, the tool that generates DFS images. dfsbuild is available as a Debian package. dfsbuild is designed to make it trivial to build your own custom DFS images. You can have your own set of Debian packages on your images, your own kernels, etc. Unlike many other systems, you can go from the example dfs.cfg to a customized DFS build in just a few minutes, even if you've never used dfsbuild before.

Version 0.99.0 is a from-scratch rewrite and port to Haskell. You can read the full list of new features in the announcement, but the biggest is that it now supports standard Debian initramfs kernels in addition to ones that have enough drivers statically linked to be able to read the CD-ROM.

You can also download my DFS images or browse the docs online.

19 April 2006

Jesus Climent: bookmark server/client

Dear lazyweb. I want a client/server solution for my bookmarks. I want a way to use the same ones from any web browser (even if I need to install plugins in all of them) that every time I save a bookmark, it stores it on a server, and every time I start the browser (or make a special request via keyboard combination) it refreshes the bookmark list. XBEL and delicious might be a solution but I need to keep some bookmarks internal at work, so no public service can be used. A small client/server solution (with or without network capabilities, but of course with authentication and encryption if it can work over the net) would be perfect. Thanks.

Martin F. Krafft: Last days in Chiang Mai

Our time in Chiang Mai is nearing an end, and with the end my lonely adventure to Burma is coming closer. Having had three days left in the city when I last wrote and deciding that a two day trek would just be too stressful, and the chance of it not meeting our expectations too high, we chose to stay put and get the most out of the city. We hired a motorcycle Monday night and rode around the town for a while, finally ending at an Italian restaurant for dinner. Aline is half Italian, and not quite as promiscuous as myself when it comes to Thai food, and had I known how much joy even my willingness to eat Italian in Asia would have caused in her, I may well have gone easier before on my motto not to eat anything but the local food. Dinner was quite good, although the wine (they only had one open white, red wine was not an option for me in the heat) again met confirmed my dislike of Chardonnay: it's oily and sour, or at least I have not yet had a taste of a different one. With the motorcycle waiting for us downstairs, I was unable to stay in bed for long, and we got up early the next morning to head to the Mae Sa waterfalls in a national park just 30 kilometres north of Chiang Mai. After a bit of zig-zag navigation, trying to get out of the city which has just a little too many one-way streets for foreigners, we didn't have any more problems reaching the site, disembarked and hiked around a bit until after about 30 minutes we got to one of the falls with a lot of Thai (no tourists whatsoever) bathing and trolling about in the water. We joined, of course. With the plan to drive further north to visit the "Hmong Lodge" and another waterfall, we walked back and I could not believe it when my pocket did not contain the motorcycle keys anymore. Damn. Once again I felt foolish that I just cannot seem to keep my stuff together, and I punished myself running back to the falls while Aline was already making arrangements for our rescue. Fortunately, I eventually did find the keys just in time to call off the arrangements, and -- soaked in sweat -- we were on the road again. I really should exercise more. About 30 minutes of a beautiful ride down into the park, we reached the "Hmong Lodge", only to find it to be nothing more than an overpriced lodge, offering its guests "local culture" in the form of shows and displays of Hmong handicraft work. We enjoyed the most expensive beer of our trip up there, then turned around and stopped at another waterfall, where a bunch of Thai youth had assembled. With a subtle intention to crash their party, we joined, but the heavy rain that started after a few minutes drove those intentions away. After spending 15 minutes-or-so sheltered in a hut with some of the Thai and making almost no contact, we took off and rode the bike back to Chiang Mai, stopping by one of the cinemas and deciding to spend the evening watching "Ice Age 2". We got back to the hotel just in time to meet our tailor to fit the shirts, trousers, skirt, and jacket we had ordered, sending her back with quite a few changes to be made. Then, with an hour left to kill, we opted for a massage before the movie and headed into the shop we thought the hotel owner had recommended. Turns out that we took the wrong door, and while Aline was getting a good knead, I found myself under the incapable hands (and feet) of an overweight Thai woman, who apparently seemed to think that litres worth of massaging oil would somehow obscure her inability to massage muscles and instead apply moderate pressure to my bones only. I told her a bunch of times but really only made it worse -- in the end I must have upset her to a point where she started bouncing up and down on me with the clear intention to torture and eventually murder me... but fortunately the 60 minutes were over just in time. The movie theatre itself wasn't spectacular (and I didn't think the movie was either), and if it hadn't been for the national anthem and some low-budget film flashing pictures of the King, while everyone stood and paid due respect to him, I'd have said it was just another cinema night I'll quickly forget. At 70 Baht entrance fee (about 1,40 EUR) it didn't hurt either. The evening ended as we met some folks from a bar back in Ayutthaya and chatted for a while, learning that the Thai elections are on today (Wednesday), and as a result, no alcohol is served in the city throughout that day, as well as after 18:00 o'clock the night before. Tough luck for them, especially after we succeeded in getting another can each while they did not. The trick is simply to take the beer out of the fridge and hand over the money without asking questions. So today, our last day in the city, was supposed to be museum day, with the tribal museum, the national museum, and possibly even the insect museum on our list. Negotiating with a tuk tuk driver for the right price, it then occured to us that it's cheaper anyway to hire a motorcycle at 200 Baht/day (4 EUR) -- and way more fun -- so we again hired a bike and drove off to find the museums closed due to the elections. Not that this upset us in any way; we rode back to the hotel, spent the hottest hours of the day reading by the pool, and went for another cruise in the afternoon, returning again just in time to meet the tailor a second time; while my shirts and trousers are fine (and beautiful), Aline's skirt needed yet another modification, so we are expecting her again tomorrow. By the way: yesterday we rode a Yamaha Mio 125cc automatic bike, and today I settled for the Honda Dream 125cc manual, which I had ridden before in Laos and which seemed like a good bike. If I ever have the choice again, I would certainly go with the Yamaha, which was a joy to ride, especially since this has been only my third time on a bike. Now, the last night in Chiang Mai will probably see us dining somewhere, packing, running the last errands, and sleeping in, so we can actually make it to the airport tomorrow in time and rested. I hope I'll be able to continue writing from Burma. Apparently, network access is restricted, so I fear I may have some difficulty logging into my servers. However, I bought a USB stick today, and with that, and maybe A Little Help From My Friends back in Zurich, I can publish entries nevertheless. Stay tuned.

Robert McQueen: Summer of Telepathy

I put a few ideas on the wiki page for some Summer of Code projects based on getting the Telepathy Framework used on the GNOME desktop. We’ve hacked out a spec for doing most IM & VOIP stuff via D-Bus so that you can add whatever functionality you want into any program like Nautilus, Evolution, Gossip, etc, and share the use of your server connections from wherever in the desktop makes the most sense. We’ve been working hard on our flagship XMPP backend implementation, telepathy-gabble, and Rapha l Slinckx & Adam Lofts have been working on some UI implementations in Python and C#, but we need to get some more people looking at different backends and integrating frontend functionality into the desktop. Get those SoC applications going if you think this sounds cool… :) As well as my ideas, I should also mention I’d be happy to mentor for other deserving ideas such as eikke’s CDIS plans, and I’ve also got some ideas about how cross-program (and cross desktop) music databases should be achieved. I’m particularly keen on helping people with D-Bus related projects because I know that not enough people understand how all this stuff works, so I think it’s worth spending a bit of my time to spread the love (and pain) which I’ve learnt working on Telepathy.

Steve Kemp: You ve got to manage

Large Scale Automation I’ve been revisiting CFEngine recently in anticipation of installing it on around 50 notes. Matthew Palmer has given me a lot to think about, suggesting that maybe CFengine isn’t the right tool for the job and suggesting I look at Puppet. It seems very new, and I’m not overly fond of the Rubyness - but otherwise it looks good. There are some things that CFEngine gets right, and some things it gets wrong. One of the biggest “right” things is the split of the code: That strikes me as being a perfect split. The “script” file which is executed cfagent.conf is really a ruleset which is executed once on each host. The rest of the CFEngine setup is mostly concerned with distributing this file, handling updates, logging, security etc. If I were to code a similar system that is exactly how I’d seperate it. Now we come to the rules themselves. What do we do inside them? Well in my use of it to date I’m mostly doing a small number of things: So those are my primitives. They can actually be reduced further. Assume that the central server runs a HTTP server - then “copying a file” becomes “execute a command (wget/curl)”. None of these jobs is complex. None of them are things that couldn’t be written with a simple scripting language such as perl, lua, etc. It is almost tempting to write a simple rule-file-intepretter/parser. But down that path lies madness. I’m going to install Puppet tonight and play with it. Gotta love Xen :) If that works out nicely I might switch to using it, despite my concerns that it isn’t mature and is Ruby based. If it doesn’t it becomes a choice of writing a simple intepretter + deamon which accepts SSL connections with client certificates, or living with CFEngine.

18 April 2006

Josselin Mouette: That's how the X strike force fixes bugs

"It's kind of cute that you just attempt to handwave this away as having 'no justification', but please spend your time on other, more productive, pursuits."

I bow before thy knowledge, great and mighty Daniel.

For those who don't follow the X drama, the X.org upgrades can now fail joyfully, depending on your system. You might ask yourself, "what have I done to break my system so much that X cannot be upgraded?", and the answer might be... "nothing!". The upgrade will fail if there are remaining files in /usr/X11R6/bin after APT has upgraded all packages using this location.

Here are the contents of this directory on my system before the upgrade:
  /usr/X11R6/bin/x9407
  /usr/X11R6/bin/#startx#
  /usr/X11R6/bin/startx.dpkg-dist
The first one is a broken application installed by "make install". I guess this is far from an isolated case, especially when there is software built using imake around. The two other ones were obviously left by previous upgrades of X itself. Yes, this means the upgrade can fail just like that, without any real reason whatsoever.

It took several years to move /usr/doc to /usr/share/doc, but we only need a week to move /usr/X11R6/bin to /usr/bin, don't we?

Erich Schubert: Opensource Software on my MP3 player

My iAudio X5 player now runs Rockbox. Installation was fantastic. Just copying some files via mass-storage. I found navigation in rockbox hard to get used to (took me ages to find the full settings menu, the way I've found is like this: while playing, press the joystick a second, then press the record button.), but the info screen is very nice: There are different themes for the playback UI, which include information on the next song to be played. Very nice. I'm looking forward to UIs that make use of the color screen. Rockbox offers tons of features not available in the original firmware. Rockbox is said to have gapless playback, I prefer its crossfading. Replaygain is also available. But even if some of that is not yet working: use the source, Luke! I can't comment on the battery life yet, haven't used it on battery yet. This will obviously be a key factor; but the player has a battery life of up to 15 hours, so I used to recharge it only every other week. ;-)

Andreas Barth: Sarge r2: Done

The point release of sarge is done. Wow. Thanks to all the people who helped much to make the transition from Joey Schulze to Martin and me easier, and thanks to Joey for his long service as Stable Release Manager. An official announcement about the point release will follow.

Jose Carlos Garcia Sogo: Boot Time Enhancements

Does somwbody know what happened to those efforts to increase boot speed? Not long ago, some people started making funny graphics with boot times and some solutions regarding paralellism were given. But I haven't seen them applied, and the discussion about this issue disappeared. If I remember right, the main problem was with hotplug, and I know that this problem has been solved in latest udev packages by preloading some modules, bu tanyway I think that start up time can and should be cut off as most as we can. This is not ony important for desktop users (which have also another point that can be improved in GNOME or KDE, as well as X itself), but also for servers. If some problem occurs that leads to a reboot, the shortest this reboot time is the better, as you will get your services back sooner.

Jacobo Tarrío Barreiro: Vocabulary helper

Every time Manoj writes an e-mail in a mailing list you read, you pick up a unexampled word. Nowadays, if you desire to amend your English lexicon, you needn’t wait until Manoj writes a new electronic mail: merely employ Manojize. Manojize brings together link-grammar and Princeton WordNet to alter some of your nouns, verbs, adjectives and adverbs into some of their synonyms! Instant vocabulary, quick and painless! Make it look like you conceive really firmly of your messages, when it’s precisely Manojize helping you behind the scenes! Download Manojize today with darcs get http://darcs.tarrio.org/manojize

Matt Brown: Desktop with Dual-DVI

I recently aquired a new desktop for work which came with a 17″ Philips LCD screen. Given that I work from home and I already owned a 17″ LCD the scene was set for a nice dual-head setup, or so I thought. Having two LCD monitors side by side, I wanted them both to be running on DVI. This was not to prove an easy task. The first hurdle was finding a video card with Dual-DVI output for a reasonable price. This was made even harder by the fact that I was originally looking for a AGP card to avoid having to upgrade the entire motherboard. Eventually we gave up on this option and I ended up getting an HP dc7600 mini tower with a PCI-e slot to use for my desktop. We also ordered a Power Color card based on the Radeon X1300 chipset to satisfy the Dual-DVI requirement. Unfortunately when the machine arrived (around the end of March) I discovered that the X1300 was not yet supported by the open source X.org drivers and, even worse, there was no support for it in the latest fglrx release from ATI either! This was sloppy checking on my part really. I’ve become so used to hardware “just working” thanks to Ubuntu that I didn’t even consider that the card might not be supported. I filed a support request with ATI asking when support for the X1300 was expected and received the standard “Linux isn’t supported, not aware of any upcoming revisions, we’ll support it when we get around to it” style response. Eventually we found an Radeon X850 based Dual-DVI PCI-e card for around twice the price of the X1300 and ordered that. I limped along with a single screen using the VESA driver until the card arrived. Initial impressions with the X850 card were not promising. Although it is supported by the radeon driver in X.org 7.0 there seems to be a bug that prevents it from working correctly in Dual-head mode. There are numerous tickets in the X.org bugzilla and the problem appears to be solved if you use DVI+VGA, but its still broken for DVI+DVI unfortunately. Next step was to try the fglrx drivers to see if I could get Dual-head working with them. More problems! fglrx doesn’t play nicely with Xen (I run my desktop in a Xen dom0 with other testing domains (for sid, etc) in domU’s). After reverting back to the standard Ubuntu kernel (eg. no Xen) I’ve managed to get a nice Dual-DVI Dual-Head setup working with the X850. However, in the process of installing the fglrx drivers I discovered that there had been a new release made on the 12th of April that among other changes added support for the X1300 chipset!!! Needless to say I’m not particularly impressed with the response from ATI’s helpdesk, given that only one week prior, they had disclaimed any knowledge of when support for the X1300 chipset would be available. As it turns out, its a bit of a non-issue anyway as I couldn’t make the X1300 work properly in a Dual-DVI setup. The secondary screen suffered all sorts of corruption and ghosting that I couldn’t work out how to remove. Running the second screen in VGA mode (via a DVI-VGA adaptor) was fine, but with a drop in quality due to the VGA connection. So after several months of waiting, almost a day of configuration twiddling and the loss of Xen. I finally have a Dual-head, DVI based desktop setup. Its very nice, but the cost is certainly high. I can’t believe that Dual-DVI doesn’t seem to be widely used, am I really that fussy about my monitors? Now that I’ve had to give up Xen, I’m trying to get VMware setup to do the job, but I’m already running in to problems there. VMware refuses to use LVM devices for raw disk access and the LD_PRELOAD solution provided by vmware-bdwrapper is not playing nicely with dapper’s multiarch setup at the moment. Hopefully with another days worth of twiddling I can get it working!

John Goerzen: New Terrorist Threat: ANTS

I made a shocking discovery today.

Terah called me in from outside to inform me that the washing machine was just sitting there. No action. Just stalled in the middle of the cycle. I poked around a bit, and sure enough. It's stuck.

I then turned on the water faucet next to the washing machine. Nothing came out. So naturally I thought: the terrorists have attacked our water supply! Run for the hills! (which in Kansas are a 3-hour drive)

(Actually, what I thought was we want to put this house on the market next week, and the last thing we need now is a lack of running water. But I'm sure if I watched the cable news channels, I'd think of terrorists first.)

Now before I can explain how SUICIDE ANTS were the cause of our water problems, we need to take a small diversion into the fascinating realm of rural plumbing. When you have a well supplying water to your house, there's a pump connected to a pressure tank, which is then connected to the house's plumbing. When you turn on a faucet, you drain water out of the tank. When the pressure reaches a certain minimum, a pressure switch turns on the pump. The pump pumps water into the tank until the pressure reaches a maximum, at which point the pressure switch turns the pump back off.

Now, inside the pressure switch are little metal plates. To turn on the pump, the plates snap together, completing the circuit. To turn off the pump, the plates snap apart.

So, back to our story.

I went out to the well house (the small outdoor structure that houses the tank and switch) with my usual well-adjusting tools: pliers, screwdriver, gloves. I open up the well house and cut the power. I take the cover off the pressure switch and stare at it for a minute.

Hmmm I think to myself. The system pressure is 0 PSI, so the pump should have been running... And indeed the pressure switch plates had snapped together....

...or had they?

No! There was -- and I am not making this up -- a cake of DEAD, PARTIALLY SINGED ANTS between the metal plates. In fact, there were ants crawling around all over the pressure switch. So I used my screwdriver to scrape the plates off as well as I could. I couldn't get them perfectly clean because of the angle, but I figured it'd be enough to make contact.

I turned the power back on. Little blue sparks appeared at the pressure switch (burning up the last of the SUICIDE ANTS), and then half a second later, the pump sprang into action.

Now this raises some alarming questions:

Why didn't our government do anything to stop the SUICIDE ANTS from attacking our water supply?

And more importantly, who is behind this sudden sinister interest in pressure switches on the part of our hill-building friends?

I can see the headlines now:

"Ants attack water supply in Kansas... Is New York far behind?"

"Gitmo Intelligence Links Suicide Ants to bin Laden"

"Price of Raid Hits $200 A Barrel Amid Fears of Ant Attacks"

"5 Troops Deployed With Cans of RAID to Terrorist Ant Training Camps in the Pakistani Mountains"

"Thirsty Latchkey Children Forced To Scrape Dangerous Terrorist Ants From High-Voltage Switches Before Using Faucet"

"Is Your Water Safe? Watch the story about the latest threat tonight at 11"

"Small-town Kansas man detained for posting instructions for attacking rural water systems using ants"

Erich Schubert: Bad plug + bad adapter + el cheapo adapter = works

I bought my MP3 player in the US, so it obviously came with an US charger. Figures I didn't think of buying an adapter there, and somehow I couldn't find a cheap adapter here yet. The charger doesn't say it can do 230 V, but according to the manufacturer it does. And someone has opened one, the chips can. We have some standard adapters here, but they don't fit. You can plug in some US devices, but not this one: the charger's plug (crappy US electrocute-yourself "standard"...) is just two metal stripes coming out of it. The adapter's socket however is inset about 1 cm (which is reasonable for safety purposes, and common, if not required in Europe), and the charger obviously is too wide to fit into the adapter... The workaround I've found is funny: I still have an adapter I bought to plug European devices into US sockets. This cheap adapter ($1 or so) can also take US plugs. If I put it inbetween I can make up for the inset. So it's US-Device goes into a tiny most-to-US adapter, which goes into most-to-European adapter. Wikimedia Commons on power plugs and sockets, including the sane german/french models (aka CEE 7/7 "Schuko" plug, CEE 7/17 Europlug)

17 April 2006

Andree Leidenfrost: mindi 1.07 & mondo-2.07 Packages

are available from the Debian unstable repository. It's i386 only atm, but amd64 is hopefully going to follow soon. In fact, I'm writing this from a restored amd64 installation.

The upstream ChangeLog can be seen here: http://www.mondorescue.org/.
.

The main Debian changes are:
  • package reorganisation to adjust for upstream changes
  • fix for #357785
  • fix for #331060
  • fix for broken '-I' and '-E' parameter handling (from SVN r468)
  • fix for verify via NFS not working
  • fixed compiler warnings on i386
There is still a handful of 64 bit related compiler warnings because the code wrongly assumes that pointers are 32 bit and can thus be cast to int that I am not sure about how to best fix:

newt-specific.c: In function 'popup_changelist_from_file': newt-specific.c:1651: warning: cast to pointer from integer of different size mondo-rstr-newt.c: In function 'redraw_filelist': mondo-rstr-newt.c:1007: warning: cast to pointer from integer of different size mondo-rstr-newt.c: In function 'edit_mountlist_entry': mondo-rstr-newt.c:1374: warning: cast from pointer to integer of different size mondo-rstr-newt.c: In function 'redraw_disklist': mondo-rstr-newt.c:2506: warning: cast to pointer from integer of different size mondo-rstr-newt.c: In function 'redraw_mountlist': mondo-rstr-newt.c:2538: warning: cast to pointer from integer of different size mondo-rstr-newt.c: In function 'redraw_unallocpartnslist': mondo-rstr-newt.c:2575: warning: cast to pointer from integer of different size mondo-rstr-newt.c: In function 'redraw_varslist': mondo-rstr-newt.c:2610: warning: cast to pointer from integer of different size

Other than that things have been tested successfully on amd64 with kernel 2.6.16-1-amd64-k8 using NFS as backup media and on i386 with kernel 2.6.16-1-k7-smp using both NFS and DVD as backup media.

With the etch freeze still some time away, I'll try to focus on the following issues in the given order:
  1. get RAID and LVM to work - this is by far the most important task and there are numerous bugs in BTS
  2. improve FHS and other compliance, in particular default the location of the scratch and tmp directories to something sane (cf. #312546) and move the location of floppy and ISO images away from /root and make it configurable (cf. #222065)
  3. fix things so that NTFS restore leaves Windows in a bootable state rather than requiring the workaround using gparted - this may require switching things from fdisk to parted which Bruno doesn't like much...
  4. IA64 support for mondo - depends largely on what happens upstream and probably also on whether I can get my hands on an Itanium box that I can actually reboot and restore...
  5. general clean-up and wishlist stuff
I think I'll be quite happy if 1. and 2. are done before etch freezes (and all new bugs are addressed as well). We'll see.

16 April 2006

Lars Wirzenius: Debian: Flames you never see

Sometimes there's e-mail that makes me quite angry. I then write a reply, and it is often a very angry reply. A flame. A scathing argument that annihilates the argument, persona, ancestry, future, and in fact entire existence of whoever angered me. Much of my best writing happens this way. Nobody ever sees these e-mails, though. The flamees will never know how utterly, totally, excruciatingly helpless they would have been under the scalpel that is my e-mail. I'll know, and I'll be quite smug about it, too, sitting in a dark room with my laptop in my lap, giggling. Not entirely unrelatedly: David Nusinow, you are owed a drink of your preference. No giggles for you, only respect and understanding for mistakes.

Brett Parker: bpgallery.sh v1.0.2 released

Just tagged up the latest version of bpgallery which is my rather light bash script for generating static gallerys, this version fixes a couple of (minor) bugs, removes some duplication of code (to make it easier for me to maintain, and because I'm going to need to extend that part of the code for the next release), and fixes an outstanding part of the todo list (i.e. regenerate thumbnails if the required width changes). It's also added a per gallery config file option, so now putting in a file called .bpgallery.rc with the right variables in it (WIDTH, TITLE, BPGALLERY_THEME), will use that file as the last one to get settings from, overriding previous settings (well, unless they're set readonly, in which case it won't ;). Next release should have some extra themes in the release as a demonstration, medium sized images (and the pages to go with them, and an extension to the themeing for this), next and previous 'buttons' on the autogenerated pages, and should generally just be a nice release! Sometime I'll get round to finishing off writing the documentation for it, but until then, if you're using it and get a problem, mail me (or find me on IRC!).

Kenshi Muto: CUPS 1.2rc2 aka cupsys 1.1.99.rc2-0exp1 is uploaded

After long time working together with Martin Pitt, I uploaded CUPS 1.2rc2 to experimental archive. This version introduces and improves many features; IPv6, LDAP, localized PPD, hardware detection, etc. Plus, it may make an another bunch of bugs :) For example I noticed KDE-control-center complained by ABI incompatibility around IPP. CUPS 1.2 provides better i18n support. If you're interested in the translation, see upstream's document. (AFAIK Swedish translation is been working by Daniel Nylander.)

Wichert Akkerman: Using a seperate Data.fs for the catalog

It has been argued that it makes sense to use a seperate ZODB to store a catalog for Zope sites. So far I have not been able to find any benchmarks that substantiate this claim. Without doing any benchmarks I can think of three reasons why this makes sense: It would be nice if someone can extend this list and do benchmarks proving that this ZODB split indeed helps (or that it does not in which case a lot of us can simplify our setups). Update: alecm mentioned a very good reason: catalog searches, which can wake up a large amount of small objects, should not cause other objects to be pushed out of the cache.

15 April 2006

Wouter Verhelst: OpenBSD sucks!

Last FOSDEM, I snatched one of the free OpenBSD 3.7 CD-ROMs with me. Not that I was planning to switch to OpenBSD or anything; but I have this spare 10G partition on my laptop that I use to play with all the time. There's never anything on that partition that is insanely important; and usually I change it to something else after a few months. It had been containing MacOS for a fair number of months, since there was an issue with my kernel that made changing my screen brightness impossible for some reason; but that has been fixed now. I wouldn't know what the problem was, but switching from my own-built kernel.org kernels to the Debian-precompiled kernel fixed it. Heh. As it happened, this weekend I was looking for something in my backpack, and stumbled upon that OpenBSD installation set again, which I'd completely forgotten about. Since I'd grown tired of MacOS by now, I thought about installing OpenBSD on the play partition. Obviously, their installer is a slight bit more spartanic than the Debian installer. Heck, they're a BSD system. One of the first questions was whether I wanted to use an OpenBSD-specific partition table or an HFS-based one. Since Linux uses the latter, and I didn't want to lose the Linux partition, I chose HFS. Next, it threw me into a partitioner, telling me that I needed to end up with (at least) one partition that had 'OpenBSD' as its type and name. So I made sure to do it that way, which took me a few tries to get it right. After that, I had to create a BSD-style "disklabel". I happen to think those things are pretty crazy, but, well; it's how the BSD systems work. First, I made a 4.3BSD slice for my data (slice a), and next a swap slice (slice b) that was 10% of the size of the partition that I'd created for OpenBSD. Or so I thought. The problem was that none of the above steps used gigabytes, megabytes, or even kilobytes, as its unit; instead, I had to create partitions and slices in blocks. Not that I don't know what a block is, but it's not as easy to spot issues that way. After I'd written the new partitions and slices, and started to format the a slice, suddenly the system decided to show me the size of the thing it was formatting after all. I didn't notice it immediately. But then it dawned on me... It was formatting my entire hard disk. That's right, even though I had clearly and explained that it shouldn't touch anything besides these 10 gigabytes that I set aside for the thing, it still decided to go on and format everything. Aaargh! I quickly switched the thing off, and rebooted it to check the damage. Of course, I didn't reboot it by using the system that I'd just corrupted; that would only make matters worse. However, since the Linux partition is near the end of the disk, it could just as well have been so that there was nothing wrong. Unfortunately, that was not the case; my ext3 partition had been corrupted. Luckily, not entirely; I've been able to rsync most of my data to another system, including the list of packages and most of the files in my home directory. But the OpenBSD disk is sooo toast. No, really.

Next.

Previous.