Thanks mostly to
David Berry and
Karl Fogel, there is a debate unfolding in the
comment section of my post on whether it makes sense to open source books and in what ways the model of free software is transferable (or not) to book publishing.
It is worth reading if you are interested in this debate as the back and forth volley is pretty illuminating.
Somewhat independent of the content, Karl Fogel wrote something that I love, mostly because I often try to remind people of this, although I have not said is as eloquently and tersely as Karl:
I do not understand how you can have libre freedom without free as in beer freedom. While the latter does not necessarily imply the former, the former always implies the latter. If everyone can share X freely with others, than the cost will always be driven down to zero (hence X will have both freedoms); if people cannot so share, then X is, by definition, not libre free.
Much more there, so check it out.

I’ve spent a bit of the bank holiday weekend by probably violating the warranty of a
new 15” Macbook Pro (MBP) from
work. I also was at the
Debian bbq 2007 in Cambridge and met some friendly faces. :)
- I halved the HD to make way for Debian with Bootcamp and rEFIt. (I wonder how easy it is resize things again if needs be. Bootcamp does not seem to want to run again…)
- Unfortunately Debian’s grub isn’t patched for gpt (thanks cjwatson for the tip), so the install failed…
- The install CD got stuck inside and I discovered from mjg59 that holding down the mouse button whilst turning on the MBP ejects the CD. Phew…
- I’ve since installed Ubuntu Feisty, though since the X was failing to start with the nVidia video device, I decided to upgrade to gutsy. It works. :)
- Unfortunately a lot of other things do not work (without some tweaking), like sound, wifi and flash so…
- I’m now booting into the Ubuntu partition from MacOSX via VMware’s Fusion product. Niiice.
- I did try Debian lenny inside Fusion, but it doesn’t seem to do fullscreen at 1440×900. However, Ubuntu does. I guess the VMware guys tweak things.
More MBP & X40 porn
So now I can boot into MacOSX and run Ubuntu or boot straight into Ubuntu from rEFIt. There are a couple of problems.
- I need to sudo dpkg-reconfigure xserver-xorg between vmware and nvidia drivers when I boot between
- Nevermind the right click, how the hell do I do a middle click for a paste?? (Fixed)
- The keyboard on the MBP does suck. For example if I click the bottom right edge of the key ‘t’, no ‘t’ shows up. It feels wrong, though I guess I have to get used to it.
- The MBP runs hotter and louder than the X40. Of course the MBP is heavier too, hence the MBP isn’t what I class a ‘laptop’
- Effectively Ubuntu under VMware will be much slower than X40 with Debian lenny. So, this hardly feels like an upgrade. ;)
- I really don’t like the windowing MacOSX interface. I need to figure out how to compile (Xlib.h not there) and run a “tabbed WM” dwm on the MBP natively.
- A lot of the Apple software just sucks!
There are some things I quite like about the
MBP compared to the
X40:
- Bigger screen 1024×768 -> 1440×900
- Wifi that remembers the connection details
- Faster bootups
- I actually like the glossy screen (when there are no reflections on it)
Currently I remain not totally convinced about the Apple
MBP. I’ll keep my Debian
X40 my personal machine and the
MBP for work. Now I can
compile Webkit on Apple OSX (Debian can too) and see what’s happening in Ubuntu.
Gotta have a first time for everything, I guess...
I took the 20:24 train home last night. This connection isn't an
immediate one; it requires me to switch trains in Antwerp Central.
Usually, that train arrives there right after the one to Essen—the
next one I have to take—has left, requiring me to wait in Antwerp
Central for the next train, half an hour later. I usually avoid the :24
for that reason, but this time I thought I'd do a walk through the
Antwerp city center to spend the time waiting.
As I arrived in Antwerp, I saw that the train to Essen hadn't left
yet, so I thought I'd hurry up and make it for that train. As it turned
out, there was no need for me to hurry...
Just as I had found a seat on the train, some staff member arrived in
our coup to tell us that the train would be significantly delayed
because an accident
had happened somewhere before Kapellen (read:
someone had been ran over by a train). After some half hour or so, it
was announced that we'd be driven to Antwerp Berchem, and that we'd
there switch to buses.
Now this isn't the first time that my train is delayed because of an
accident
, suicidal or otherwise, which needed to be cleaned up;
but it was the first time that they put me on a bus
instead.
Interesting experience, that. The trip took only 20 minutes, whereas
it usually takes 10 to 15 minutes by train (depending on the exact train
you take), or 30 minutes by regular bus service. Those 20 minutes
include a significant detour that the bus made for some reason
which isn't entirely clear to me.
I sure hope I never have to experience this type of delay from the
cause
side of the event, though...
Karl Fogel’s recent
comment asking why Samir Chopra and Scott Dexter did not publish Decoding Liberation with some sort of open licenses, especially since they are such unabashed advocates of open licensing, spurred a flurry of further comments from the authors on my blog as well as some more thought out
blog posts and
commentary.
I don’t have too much to add except perhaps to state the obvious: the economics of book publishing and software are quite distinct creatures. When it comes to software, one can pull in revenue from support and services, while this is pretty much impossible for most books. Software also has a much shorter shelf life, which is why making it open access, fast, is key.
Books however have a longer shelf life, which is why I am personally not opposed to some sort of limited copyright for books (around 5 years, give or take a couple) so that publishers can recoup their costs (and in academic publishing, no one is making a bundle of money, that is sure) but then it should be made free to the world, never to die that awful death of “out of print” (in so far as it can be thrown on the web, legally).
Journal publishing is another matter and I firmly believe that articles should spread far and wide and quick because of their shorter shelf life, which tends to be shorter mostly because there are just so many articles… As Alex Golub has informed us, my own professional association has really
failed not only in providing more open access journals, they are not even allowing the members of the organization any say in the matter.
But thankfully other disciplines and academics are taking open access and the possibilities afforded by new media a little more seriously and here is an edited volume by CT Watch Quarterly
The Coming Revolution in Scholarly Communications & Cyberinfrastructure that provides an important node in what is an important conversation.
When I discussed the
deprecation of cvs.debian.org, I forgot to mention that planet’s CVS repository was also part of the last users of this service.
Thanks to mako, the move to Alioth is underway. The CVS repository has been disabled (crude hack, if you know a proper way to forbid commits to a CVS repository, please leave a comment) and its history has been imported in a
new SVN repository
As usual DD have write-access on this repository so that they can add/update their feeds and hackergotchis. Mako will change the live setup from CVS to SVN somewhat later today.
Please start updating any documentation that refers to the CVS repository.
There is a lot of career advice related to writing CVs in books and floating around the net. Unfortunately almost all of it is tailored to permanent positions.
Some advice that I have seen includes researching the company you are applying for and emphasising your experience in related fields. This probably makes some sense if you have targetted a major company to be your employer for the rest of your life. But if you are after contract work (which incidentally tends to pay better than permanent positions) then it’s not going to work. About half the time when applying for contract work you won’t know the name of the company that is receiving your CV until after they have decided whether to grant you an interview.
Contractors therefore need to write their CVs to have broad appeal (emphasising common technologies such as C programming and skills such as debugging), and to appeal to a
recruiting agent.
Some people recommend writing your CV in MS-Word to support agencies and potential employers who are not competent enough to open other file formats (such as PDF and HTML). I strongly disagree with this advice, most contract positions are advertised by multiple recruiting agencies and it would be best for you to be represented by the most competent agency. Therefore having an agency staffed by incompetent people not represent you because they can’t figure out how to read a HTML or PDF file is a good thing! The same applies for employers, while applying for the best paying contracts will often result in some strange and unpleasant working conditions having a manager who can’t open a PDF or HTML file is likely to result in something that is unusually bad - run away!
Recruiting agents will often give specific requirements for a CV. Sometimes these requirements are a little odd (such as demanding that references to C programming be removed from a CV when applying for a Unix sys-admin job), but being merely a little odd is no reason to boycot the agency. To solve this I wrote my CV in M4 macros to generate HTML code. When I wanted to apply for a position I would just type make to compile the M4 source into five or more different CVs. Sometimes a recruiting agent would request two versions when applying for one position, it’s a strange request but when five versions were compiled in one pass it was easy to satisfy it. If I liked PDF I could have written M4 macros that generate TeX and have the make process convert TeX to PS and then PS to PDF.
Unfortunately I can’t share any macros because the code was not of particularly high quality (which is a little ironic) and because it’s tightly tied in to my CV. The best piece of advice that I can give to anyone trying this is to get columns sorted out as the first issue. If you want to have some lists of programming languages, lists of OSs, and lists of hardware, etc in your CV then it usually works best to have two columns in the page. If the largest list is removed then the other lists need to be shuffled around to get the column lengths to match. Doing this in HTML required some ugly M4 macros. There probably is a better way of doing this in TeX (but I’m really not good at TeX and can’t give advice about it).
James has some interesting advice about writing CVs. I think that his most useful points are:
- Use file names based on your name so that agents can find your CV in the directory full of CVs
- Include complete contact details. One thing he doesn’t mention is that you should buy a mobile phone for the purpose of getting a job even if you don’t want one for any other reason. A 5% difference in pay for a year’s work would cover the cost of many mobile phones and the difference between a good job and a bad one is likely to be more than 5%. If you are afraid of brain cancer then don’t worry, if you only spend a few minutes a month talking to recruiting agents then you are at no risk.
- Don’t start a sentence in the career history section with the word worked - everything in that section will be related to where you worked in the past. It seems obvious in retrospect but I realised that I have made this mistake on my CV.
Share This
Filtering Debian Packages file
pkgprune - Filter a Packages file
Usage: pkgprune Packages > Packages.filtered
Filters a Debian Packages file by removing either a list of packages (and
their reverse dependencies) or the packages that have given tags.
Dependencies in the filtered Packages file will still be satisfied.
Available via:
wget http://people.debian.org/~enrico/2007-08/pkgprune/pkgprune
or:
hg clone static-http://people.debian.org/~enrico/2007-08/pkgprune
The top of the script has a configuration section:
#
# Configuration
#
# Set of packages you don't want to have (the reverse dependencies will be
# removed as far as it's possible)
blacklist_pkgs = set(['gconf2'])
# List of sets of tags; the packages whose tag sets contain one of these tag
# sets will be removed
blacklist_tags = [ set(['implemented-in::php']) ]
Edit that before running the script. The idea is to be able to configure a
system to run such a script after
apt-get update, both to make dpkg faster on
slow arches and to reduce the amount of packages displayed by an interface.
Ben Fowler blogs about the issues related to running IRC as root. Google searches for (
irc client exploit) and (
irc client “buffer overflow”) give a number of interesting web pages. Many of the exploits require the user to perform an action that’s slightly unusual, but why take a chance?
The advice to not run as root while generally sensible (run everything with minimum privileges as much as possible) is IMHO not very useful in recent times (and probably was never very useful). Generally when a user is worried about system compromise they are not worried about attackers having direct hardware access, the ability to corrupt system files, etc. They are worried that the attacker might read their email and access other personal files.
Therefore the instruction should be “don’t run IRC as root or as any account that has access to data which is important to you“. It’s not difficult to start an X-term that runs “exec su - ircuser irc” or “ssh -t ircuser@localhost irc“. Note that the -t option is required for ssh to make it allocate a pty even when receiving a command to run. Note also that in the case of su you need the exec option so that if the irc client is compromised and tries to perform a ioctl(0, TIOCSTI… based attack then it won’t succeed.
In any of these methods make sure that X access is not granted. Until we get Security Enhanced X working in a viable manner any process that can display an X window on your screen can own you totally. There are of course relatively safe ways of doing X,
I have previously documented how to configure the Xephyr X server (replacement for Xnest) to allow a process with a different security context to safely display a graphical window on your desktop.
Generally I recommend not using a graphical X client on an untrusted network (IE anything other than an Intranet IRC server). I prefer to do my IRC in an account that’s not even on a machine that I care about and have it run screen so I can disconnect and re-connect from anywhere in the world.
When I first got SE Linux in Debian to be useful (when I could boot and run all programs without problem) I logged on to some IRC channels related to Debian with the security context of root:user_r:user_t. I admit that my actions in this regard could possibly be described as trolling, but I wanted to demonstrate what SE Linux can do. Unfortunately of the many people who told me off for logging in to IRC as root, none of them wanted to hear an explanation of why user_r is safe in this regard. I expect that most of them were running their IRC client in the same Unix account that was used for their email etc (and probably most of them had GPG keys accessible from such an account).
Sigh, it’s so easy to run IRC as a different user - in fact it’s probably the easiest of all network client programs to run in such a manner. There’s no reason not to.
Share This
A few days ago,
Joe Reagle was telling me about the rise of (sometimes very arcane) policies and bureaucratic imperatives that now characterize Wikipedia. A few days later I stumbled across a few interesting
posts on the topic, posts (especially Nick Carr’s) seeping with almost celebratory gloom and doom:
‘But, given human nature, is it really so “incredible” that Wikipedia has evolved as it has? Although writers like Yochai Benkler have presented Wikipedia as an example of how widescale, volunteer-based “social production” on the Internet can exist outside hierarchical management structures, the reality is very different. As Wikipedia has grown, it has developed a bureaucracy that is remarkable not only for the intricacies of its hierarchy but for the breadth and complexity of its rules. The reason Deletionism has triumphed so decisively over Inclusionism is pretty simple: It’s because Deletionism provides a path toward ever more elaborate schemes of rule-making - with no end - and that’s the path that people prefer, at least when they become members of a large group. The development of Wikipedia’s organization provides a benign case study in the political malignancy of crowds.”
It is without question that a problem has arisen in Wikipedia, a problem composed of a thick web and net of rules that can be helpful as guidelines but often are often confusing and clearly work to ensnarl new users.
But can we so quickly put blame on so-called human nature? Or is it not a problem of human organization, which as the anthropological and sociological record shows, can take many forms? And is it not just that: a problem begging for a solution instead of an opportunity to declare the fundamental nature of wikipedia (and that of human nature?). Not only may history prove him wrong, other large scale collaborative projects at least prove that solutions can be found to deal with problems of growth and scale.
It is as if Carr just wants to see a project like Wikipedia fail, which somehow, this morning hit a raw nerve. What I find exciting about large scale projects of (at times unwieldy) collaboration are not just the explicit outputs of the projects (an encyclopedia or operating system) but the social worlds they create. And there is no inevitable path they *must* follow. These groups have a choice to react to and respond to these sort of problems and enact solutions that will hopefully solve them and allow these projects to change.
Debian, a slightly older project than Wikipedia, has gone through many growing pains and there was even a period when the the whole process of integrating new Debian developers was shut down and if my memory serves me correctly, for 2 years! At the time, it could have been possible to say: “This signals the end of Debian” but eventually a solution was found, the New Maintainer process, which while not perfect (what is?) allowed the project to grow and produce a great operating system for years to come.
Debian today faces new problems and is working to find solutions. I hope that Wikipedia can and will do the same. And instead of declaring its death, why not wait and see, and offer something a little more constructive and illuminating, than destructive?
After much wading through possible names, none of which really excited me, I have finally chosen "DAViCal" as the new name for my CalDAV server that was previously called RSCDS, or the "Really Simple CalDAV Store".
In the end, I chose DAViCal because it:
- seems easy to pronounce.
- combines the 'Cal' and 'DAV'.
- returns < 1000 results on google.
- doesn't make me cringe.
- didn't have a domain name registered.
That was about the hardest part of preparing for the 0.8.1 release, and now that I've done that I should manage to make the changes to the packaging, though I have no doubt that the old name will appear in all sorts of places for a while yet.
Choosing names is an important business, and I should know that from the length of time we spent agonising over names for our children, discarding all sorts of things because they had silly abbreviation collisions (like the "Royal Scottish Country Dance Society" :-) Even then, I think we got the kids names wrong, and the big one should be called "Thumper" with the little one called "Sly", but perhaps that's just a temporary annoyance and in time the names that we registered for them will fit them better.
I also recall
Grant once saying that you should never use the word "Simple" in the name of your project, and
he should know. DAViCal is no longer particularly simple, although I have attempted to hide the complexity from the user as far as that is possible, and will continue to do so.
Once I get out version 0.8.1 of DAViCal I will finally upload it to Debian, proper. This version has some important enhancements to its DAV spec compliance which are going to be needed by some future versions of Mozilla, and probably other things too, so it's important to push it out as soon as possible now.
The Australian has a new Environment writer named
Matthew Warren who has a history of doing PR work for the coal industry. This has the potential for insightful articles based on knowledge of what the industry is doing or for PR work for the coal industry masquerading as journalism. Unfortunately it seems like the latter is what we are getting.
Matthew’s latest effort is an article claiming a $6.5 billion cost to home-owners because of an “effective ban” on electric hot water systems that Labor might impose. Unfortunately he doesn’t clearly state what an effective ban is, but does note that apartments are exempt.
The specific claim that is used as the basis for the article is that solar hot-water systems cost $2,800 more than electric systems, and that after the solar hot-water rebate ($1,000) the additional cost would be $650,000,000 per annum, and that a period of 10 years would be required to replace all hot-water systems thus giving a cost of $6,500,000,000. So I presume that he expects that there would be 650,000,000/1,800 hot water systems installed per year which would be about 361,111.
According to the
Australian Bureau of Statistics there were 6,744,800 households in Australia in 2003. Matthew’s article states that about 40% of homes can have gas hot-water systems fitted that comply with the proposed new regulations, given that and the exemption for apartment buildings let’s assume for the sake of discussion that 50% of homes would require a solar hot-water system. Assuming that each household has a separate hot-water system that means that for these claims to hole we need an average expected lifetime for a hot water system of 6,744,800/2/361,111 = about 9.3 years. If the currently installed hot-water systems are expected to be replaced in 9.3 years then we can expect that hot water systems tend to survive for an average of about 18.6 years. I wonder if that number is correct (some google searching didn’t turn up an answer). One of the disadvantages of old-fashioned media is that they tend not to include calculations or cite sources adequately so we can’t easily verify or disprove their claims, I wonder if this is deliberate…
Matthew admits that using a solar hot water system can be expected to save households $300 per annum in electricity expenses, I presume that this is based on current energy prices and that the savings can therefore be expected to increase as energy prices increase (we have a lack of water which is increasing the cost of producing electricity from coal).
Let’s assume for the sake of discussion that the typical home-owner has a mortgage,
the Commonwealth Bank is currently advertising mortgages with a rate of just over 8%, the way things work is that there are various criteria for getting a discount rate which most borrowers can meet so the result will be slightly below 8%. If a solar hot water system costs $1,800 extra to install and the money comes from a mortgage then every year it will cost the home owner about 8% of $1,800 which is about $144 (a saving of $156 per annum). If the solar hot water system saves the home owner $300 per annum then at any interest rate below 300/1800 (16.66%) they will make money.
If there was no government subsidy and the entire $2,800 extra was paid by the home owner then at 8% interest it will cost $224 per annum (a saving of $76 per annum) and the interest rate would need to increase to 300/2800 = 10.7% to make it break even.
So for solar hot water to not save the home-owner money we need to have a significant increase in interest rates (which incidentally would bankrupt many home owners), AND to have electricity prices remain the same (which would require even more of our tax money to be spent on supporting the coal industry).
Finally Matthew complains that the solar hot-water rebate could cost the government $4 billion over the course of the scheme (the next 10 years). This sounds like a lot of money until you think about
the 9 billion dollars a year that the government spends on subsidies for the coal, oil, and gas industries! On the current course the government would spend 90 billion dollars of our tax money subsidising polluting industries that cause climate change, but Matthew opposes spending 4 billion subsidising technology that prevents pollution and reduces climate change.
Share This
I just completed a very successful and long overdue dist-upgrade of
my unstable machine, using mainly
DebTorrent for downloading
the packages, so I thought I'd post some of my thoughts and
experiences.
The download consisted of 1294 packages to upgrade, totalling 1350
MB and taking 2h12m to download. Here are some of the good and bad
things I observed.
Good things
There was a single other peer with me in the same torrent, and I
managed to download 182 MB from him, which is about 13.5% of the
total download. This is the first time I have noticed this
downloading from peers occurring, as usually there are too few
peers, too many torrents and too many possible packages to download
for any sharing to occur. This will hopefully change in the future
when more people start using DebTorrent, and when
unique piece
numbers are introduced to make the torrents last longer.
However, it does show how the use of the backup HTTP downloader can
seamlessly integrate with downloading from peers to provide a good
user experience, even for early adopters.
The CPU time used was only 10m46s, which translates to an average
CPU usage of 8%, which is very reasonable.
The average download speed was 174 KB/s, which is 58% of my maximum
download speed. Though this may seem like a bad thing, my goal all
along has been to make sure that the download time would not be more
than twice as long as using HTTP. Of course, using DebTorrent may
never be as fast as a straight HTTP download from a well-provisioned
server, but that it not the point. The idea is to reduce the
bandwidth needs of hosting a debian archive. But in the future, when
there are many peers in a single torrent the download speed may be
even faster than using HTTP, especially for peers with very high
download rates that could not be matched by a single server.
Things that need improvement
The completion percentage reported by APT during the download was
fairly inaccurate. Here are some sample readings I noted, compared
with the actual completion percentage from the DebTorrent status
page:
| APT Reports |
Actual Completion |
| 10% |
40% |
| 20% |
70% |
| 30% |
85% |
| 40% |
90% |
| 50% |
93% |
| 60% |
96% |
| 70% |
97.5% |
| 80% |
98% |
| 90% |
99% |
The discrepancy occurs because larger packages are broken up into
pieces, so they can be partially downloaded without APT knowing
about it (since only fully downloaded packages are passed to APT).
Clearly this situation is far from ideal, and can lead to the user
feeling that the download is progressing very slowly, or not at all.
There are
some plans to add status updates to the
communication between APT and the DebTorrent client, but they
require changes to the APT code to support them, so it may take some
time to implement.
Another problem is the memory usage I saw during the download, which
was approximately 213 MB. This is obviously unnecessarily large,
though the metainfo that DebTorrent needs to be aware of is quite
large (stored in a text file it is about 3 MB). There does seem to
be a
memory allocation bug in Python 2.4 which causes
increased memory usage, so moving to python 2.5 might help. However,
my preliminary tests show this only saves you about 20% for
DebTorrent. I think I will have to delve deeper into which parts are
using all this memory, and unfortunately python doesn't seem to have
a good memory profiler to help with this. I will be looking at both
PySizer and
Guppy/Heapy to start, but if anyone knows of
a better solution, please
let me know.
I was recently talking to a client about the lack of guidelines for acceptable personal use of office resources in his company. He rejected the suggestion that he provide any real rules or guidelines (apart from some old rules that most employees were not aware of and of which there was no procedure to remind them to periodically read). He said that he only wanted to hire motivated people who wanted to work, and that people who need rules should work elsewhere.
The results of his approach seem reasonable, everyone who works for him works really hard. In return his attitudes towards employees are more relaxed than most employers, among other things he is very supportive of employees who desire career opportunities greater than his company can offer.
I have been wondering whether rules alone can make people lose interest in working, or whether it’s the type of person who doesn’t want to impose rules that inspires hard work.
My experience is that when working for people who have a rule-free environment I tend tend to work really hard, and that when working for companies that have lots of rules I find it difficult enough to get out of bed in the morning - let alone become motivated to do any work.
I am interested to see comments from other people, both workers and managers. Is my experience common in this regard?
Share This
The Google Summer of Code coding period has ended earlier this week, so it seems to be a good time to stop and look what was done (and what wasn't). Let's start with an objective analysis, following the list of planned features:
Advanced query of bugs on the Debian BTS
In a 1-10 scale, I would give myself something like 6 or 7 here. bug-triage can query bugs by number, source package, package, maintainer and submitter. These parameters can be combined to make an query (reports must match all parameters) and more than one query may be added, subtracted and and'ed. A clearly missing feature is querying by usertag, support for it has been added on btsutils already and is just a question of adding a new input box on the query builder dialog (it should work if you enter the query manually in the bug-triage query line AFAICT).
Show all the information related to a bug report
bug-triage has a "goto" button which opens the bug in the user's preferred browser. Missing is the support to open the bug in a MUA, which I have promissed to Lo c.
Send additional information to a bug report
bug-triage has a "followup" button which opens the user's MUA with the right address. Maybe setting the subject would be nice...
Manipulate the tags of a bug report
I haven't had time to implement this at all. I've started it, the bugs have a context-sensitive menu which have each of the available tags as checkboxes on the right current status, but clicking on them does nothing currently.
Search for similar bugs in upstream developer BTS
This one would value something like 3 or 4 in a 1-10 scale. It searches upstream bugzillas by product and component, but doesn't do any cool trick like searching words in the bug subjects. The plus is that it does support KDE bugzilla, even though I haven't been brave enough to promisse it before SoC :P
Forward a bug report to the upstream developer BTS
There isn't really a good interface to report bugs programatically on GNOME bugzilla, which was disappointing. <rant>There is the bug-buddy xmlrpc(?) interface, but the developers say they will actively break anything using it, which I find very free-software-unlike.</rant>. The current bug-triage solution opens a browser with some of the fields filled. It would be nice to fill the full bug description, but its limited by the maximum size of an URL, so it fills only an introductory text (something like This bug was filled on Debian BTS #XXX) currently. Let's hope bugzilla 3 get on the GNOME world soon.
Conclusions
Unfortunately, this project hasn't evolved as much as I would like in the second half of the GSoC. As I said elsewhere, a lot of stuff has happened, some good, some bad, but on the end everything I hadn't been able to dedicate myself to anything I should. Even so, I think the project may be considered sucessful.
Maybe the more interesting product of this project, at least currently, is still on python-btsutils. As I said in the middle-term report, it'll be integrated in the debian_bundle soon, and might be powering important stuff like the devscripts in the future.
The bug-triage application has a lot to evolve yet, but is also an interesting tool IMHO. There are a lot of hurdles in the way to get different BTSes integrated, but the effort will for sure pay in the future. I plan to keep developing it (evon though keeping the GSoC pace is impossible) and am anxious to see the results ;)
Finally, as I said before, one of the main things on GSoC for me was the potential to learn cool stuff. The best choice I've made during all of this was to use Python. Even though it's still a new language for me, and i still have to search embarassingly simple things in the tutorial/reference, it was a lot more productive than if I was developing in C. Learning to use git was also a great. This goal was the more fulfilled one, I've really learnt a lot of things which will surely be useful in the future. BTOH, I still can't get used to glade :/
I have been wondering why xpdf rendered some pdf files really really bad.
(Check out this
example screenshot for
comparison of xpdf, evince and Adobe reader on etch.) The
error message Error: PDF version 1.6 -- xpdf supports version 1.5
(continuing anyway) should have given me a hint. But I just did not
think that going from 3.01 to 3.02 would make a big difference. However it
does; the sid versions of evince and xpdf render as well as Adobe reader.
[Updated 2007-08-25 19:05 CEST] I have uploaded a backport to
http://www.backports.org/ and less
than two hours later it has already gone through bpo's NEW processing and is
available for download. Thanks, ftp-master.
Around three months ago, I received my IBM/Lenovo X60s laptop (that has been fantastically well supported under Sid). As I was going to be doing a lot of travel in the future, I decided to go for the model with the built in 3G/GPRS radio... However, what I did not realise was that it was hardware locked to work only with Vodafone sim cards.
Considering I am moving to Norway in about a month; where Vodafone does not exist, it is obviously a drawback only being able to use a Vodafone SIM; so following the gude at thinkwiki.org; I proceeded to phone [UK] IBM/Lenovo technical support. This is where the problems began.
After waiting about 10 minutes, I got through to one support tech that didn't know they were shipping laptops with 3G modems built in, who then put me through to another, and yet another. Finally, I got through to a competent tech; who contacted Lenovo for the unlock code, and called back as promised the next day. However, this code did not work; returning an incorrect code error; and being the start of Debconf, I have had no time to call back the support people until now.
It makes me angry to think that all this hassle could have been spared by Vodafone not being utter cretins and locking hardware to their network! There was no mention of this network lock on the laptop retailer's page; and had I known of this, and how much hassle it would be, I would probably have bought a different model!
Dell just sent me a letter advertising their new Vostro line “especially for small business“. They say “we listened, then we listened some more” and explain that it’s based on feedback from people in small companies. The problem (which should be familiar to everyone who has ever done any consulting work) is that people don’t ask for what they need! Ask someone what they want in a computer system and the first thing that they will ask for is a fast CPU and a low price, the colour of the box will probably be higher on their priority list than the option of a backup.
Dell have proved this by advertising their small business machines by advertising cheap desktop machines for small business use.
Here is a list of the features that I consider essential in small business systems (based on my experience working for dozens of small companies):
Reliable operation. Using a relatively inexpensive machine as both a desktop machine and a server for the company network is very common in companies with less than 10 people. The Dell PowerEdge Tower systems are reasonably cheap (as little as $800AU - $100 more than a low-end Vostro in the base configuration, although the Vostro includes a bundled monitor). The PowerEdge machines have ECC RAM as a standard feature (avoids data loss due to memory errors) and can be delivered with hardware RAID support (SATA-2 or SAS) and a variety of backup options. A low-end tower PowerEdge server with 250G of hardware SATA RAID-1, a 160G removable disk for backup, and an extra gigabit-ethernet port costs $2015. Such a machine would do really well as a server for a small company while also being quite good as a desk-side workstation (the cooling fans would probably be louder than on most workstations but the money saved would be worth-while for most small businesses). If Dell was to promote PowerEdge tower machines (maybe under the label “Vostro Servers”) it would be good for customers and should be profitable for them.
The next thing that Dell should consider is a laptop with ECC RAM. Many small businesses start out as a sole trader with a laptop. Data loss on such a machine would be catastrophic. At the design stage ECC RAM would not be difficult to add - if there was a company that produced such RAM (I expect that Dell could purchase enough volume to drive the creation of new memory modules).
Another laptop issue is the reliability of mass storage. Laptops tend to get dropped and hard drives tend to break when dropped. Lenovo sells a “ThinkPad Serial ATA Hard Drive Bay Adapter” which allows two hard drives in a Thinkpad which could be used for RAID-1 (if you don’t want a built-in DVD drive). I chose to use regular backups instead of buying the extra hardware for RAID-1 but it would be good if other companies offered such options - especially when promoting their products to small businesses (who often don’t do regular backups). Even Lenovo could improve things in regard to their potential RAID-1 support in Thinkpads by promoting this feature (instead of just having the hardware listed as an optional extra with no mention of why you would want it) and offering a default install with RAID-1. Better still would be hot-swap RAID-1 in a laptop (which would be quite easy to do if the expansion bay was changed to use USB as it’s method of connection). Of course RAID-1 only covers you in the case where the drop is only enough to destroy one disk or if it causes partial damage to both disks but doesn’t destroy the same section of data on both disks.
The next big thing for laptops will be flash storage. One of the major advantages of flash is that it’s almost impossible to destroy it by dropping it. I would rather have my important data on a flash storage than a hard drive (it also saves electricity and therefore makes the battery last longer). The option of having flash as the primary storage device and a hard drive for files that are larger and less important would be useful to most small businesses. Of course hardly any small business owners will ask for this, they will probably ask for a machine that has a fast CPU.
Sometimes when developing a product you have to design something with the features that customers need and get the sales and marketting people to convince the customer of the benefits of the features. Even though the number of people who understand the technology and will jump at the opportunity to buy good things (such as me) is rather small, the number of people who can understand once it’s explained to them is quite significant. I’m sure that if Dell released a new line of computers with the slogan “reliable machines that don’t lose your data” instead of “good-looking new machines” then they would get some interest.
After writing this post but before publication time I happened to be speaking to the owner of a small business on the topic of choice of computers for a company such as his. He seemed convinced of the benefits of a better machine to replace his current desktop PC that is running as a server (it’s yet to be seen whether he considers the benefit to be worth the cost).
I wonder if Matt Domsch reads my blog…
Share This
This is the first post of a series on componentization, starting with a brief explanation of the problem(s) we are trying to solve. I expect some familiarity with programming in general, but no specific knowledge of any particular system; the terms "DLL" and "shared library" are used interchangeably.
When you are writing a DLL, you are essentially committing to support whatever interface you are exporting forever. So it better be good on the first try. DLL hell is what happens if it was not good, and you end up making an incompatible change.
The obvious way an interface can be "not good" is when you need to touch the header files that define it in order to implement some new functionality. You can get away with a few things, like the addition of new functions, if you can somehow make sure that users will always have a recent enough version of your DLL around, but in general any change to the interface is going to be incompatible.
The traditional Unix way of solving the issue has been renaming the library. When you link a program against a shared library on a system that uses the ELF format, the linker looks inside the library for the SONAME field, which tells it what name the library wants to be known under, and the program will then attempt to load this file at startup (which usually is a symlink to the latest compatible version). This "official" name of the library usually contains a number (sometimes more than one), and when there is an incompatible change, you simply change that number, and the new version of the library can be installed in parallel with the old. There are additional mechanisms, like symbol versioning support, that allow a single library to provide different "versions" of exported functions, and have the program specify the desired version for each symbol.
To run a system like this, one generally needs to keep track of programs' dependencies; this generally happens in the package manager with more (Debian) or less (Red Hat) support from package build scripts. If you built your system from scratch, you end up doing this work yourself. That's why you had highly paid system administrators in the old days, and very short shell scripts to replace them (with various degrees of success) in the current age.
In the Windows world, things have been a bit different, because except in large installations, you generally do not have a clueful, benevolent system administrator who will take care of these things; rather, you have users that expect your software to work without having an insight into the inner workings. In general, software developers have not been taking chances and simply shipped all the DLLs they needed along with the main program. When they installed these DLLs into the same directory as the program, things were fine, if they installed them into the WINDOWS directory, not so much, because when you had two conflicting versions of the same DLL, you had to decide which one to keep, and a program that would only work with the one that you threw away would simply fail in curious and interesting ways. This is the original definition of DLL hell — you cannot do it right.
To make matters worse, this is not the only way an interface could change. When you define a platform, you write up an "Application Binary Interface" (ABI) document that details conventions that should be followed; for example, the ARM processor does not have a dedicated stack pointer register, so the ABI document for Linux on ARM says that R13 is to be used as a stack pointer, functions may thus expect it to point to memory that is readable and writeable, and memory with an address lower than the stack pointer is considered "free". When the function is done, it is supposed to jump to the address in R14, which happens to be the register the ARM's "Branch with Link" instruction sets to the address of the instruction following it. If the function takes arguments, the ABI says where to find them, and if it returns a value, it also tells where to place that.
For everything not in the ABI document, the compiler author gets to choose. The ABI document usually attempts to be rather minimal, so it defines how C functions are to be called, and calls it a day. Anything not in the C standard is not guaranteed to work between different compilers (or even different versions of the same compiler). That includes C language extensions such as the "long double" data type, language features in C++ and Java such as namespaces, nested types and exceptions, and the data structures used by the C library's malloc() function. The latter makes life difficult even for pure C programmers, as it disallows releasing memory from a different module than the one it was allocated in, because the different modules may link to different C libraries.
In essence, this means you are not supposed to export anything from a DLL that is not a C function, and even then, there are additional requirements. You could in theory export data objects, but that is discouraged, as it exposes an implementation detail.
Now, we're in a bit of a dilemma here. There is lots of interesting code out there that is not necessarily written in C, we'd like to reuse it and we don't want stuff to break.
The Linux approach so far has been "we simply pretend the problem does not exist", and this has been working to a large extent, simply because everyone uses gcc, and when the ABI extensions the gcc people had made changed, recompiling everything that uses these extensions makes the problem go away.
This has several drawbacks. For one, it mandates that the tools used to rebuild everything and keep the installation consistent be written in C or handle the transition gracefully (for the curious who have a Debian system handy: look at libapt-pkg's SONAME), and it also requires that we have the full source code for everything not just available but buildable in an automated way. Within the context of a Linux distribution, both of these are true, so we have survived the last major ABI transitions without too many losses.
So we need an extension of the ABI document that specifies how modules written by different people and compiled with different compilers can interact. These are commonly called component models, and, to quote Andrew Tanenbaum, "[t]he good thing about standards is that there are so many to choose from".
Next: "componentization tutorial #2: CORBA and COM"
There's this Brit named Steve. Steve loves strip clubs. Now, being
a Londoner, he has the requisite interest in talk of sex, boozing,
and sport, three topics that bore me numb, but I have only ever seen
Steve get truly excited about two things in life. The first is the
culture of strip clubs, best exemplified by a sex act Steve calls
(complete with pantomime) feeding the pony . The other has to do
with Ali G. Steve (remember Steve?) is tickled pink that people
wanted to sue Sacha Baron Cohen for racism but could not, for since
he is a Jew, he is incapable of bigotry. This made no sense to me,
but after witnessing the insanity of the UK legal system, I see no
reason to doubt it.
I am standing up to my nipples in salt water.
I saw someone who looked remarkably like Steve yelling
with a mildly impressive accent but poor grammar.
I knew it wasn't Steve because he wasn't being tailed by
an Eastender shouting blimey .
I am standing up to my neck in salt water.
J rg points out the reasoning for why normal peon developers
don't have access to NEW. This makes perfect sense once you
realize that each member of the ftp team is both a citizen
and resident of the United States of America.
The sea is rough. It is difficult to keep the laptop dry, and,
well, the Piers Anthony book in my other hand is going to smell
like ocean for weeks. That's precisely why I brought it, though;
it would take extreme effort to keep it from getting wet.
As it stands, or as I stand, there are three options available
to me. I can retreat to the beach, where I will be mostly safe
from the water. You could call this turning tail and running,
or you could call it mastering my environment. It's all in the
marketing. I'm going to succumb to this option anyway, and now
is not the time for it. So I could also keep doing what I'm
doing, keeping my head and laptop and book above water by
expending near-constant effort. It's a little easier than
in Puerto Rico at the place some random passerby kindly
informed me that i was going to die a horrible death just like
the 12 other people who had died in that spot that year.
In essence though, it's like the futility of continuing living
when you're surrounded by INTPs. Then there's the most appealing
option: to be as the reed in some Taoist metaphor. I can just let
go, and let the tides have their way with me, coolly caressing my
face, washing over me, drenching my book, short-circuiting my
keyboard, and filling my lungs with plant matter and some kind of
0.479M NaCl solution. My lungs see a problem with this
otherwise-logically-sound philosophy.
There's an old Middle Eastern proverb that goes something like
Be as the date palm, above the spites. When she is hit with
a rock, she strikes back with her sweetest fruits. Disthrust!
Dilute! Disthrust!
There may have been some corruption in the intermediate
language.