Exactly 10 years ago, early in the morning of the April-08-1999 (according to my perception at that time, it's been 8:30 AM), I entered a room with some 25 or so boys and girls, most of them between 20 and 30 years. My task was to act as a Unix trainer for a professional development class. I didn't know any of them. In particular, I had no idea that, just 7 months later, I'd be married to the girl sitting on the 6th chair in the left row.
It wasn't exactly love at first sight. As for my side, I thought "nice girl" immediately. But, to be honest, there's been more than one nice girl. As for Anja ..., well, read on.
Being a Linux and Unix devotee, my intention was to start with a little Unix history, with the exciting times of people like Ken Thompson, Dennis Ritchie, Brian Kernighan, Alfred Aho, or Peter Weinberger at Bell Labs who managed to contribute both operating systems, programming languages, and other practical tools as well as new and exciting ideas and theories in the field of computer science.
I do not know, whether I managed to share some of my feelings with the other boys and girls. As for Anja, I failed completely: At some point, I managed to confuse Ritchie and Kernighan, naming the latter as one of the Unix inventors. With the experience of lousy trainers before me, she settled on her opinion about me and wrote, after one or two hours, to a friend that I had "absolutely no clue of Unix".
With my experience of 10 years or so of Unix administration and programming before, I can only assume that this hasn't changed in this following 10 years. So, todays my anniversary of having no clue.
To Anja with love,
Jochen
Wednesday, April 8, 2009
Thursday, March 26, 2009
Git takes the lead
So far, I have been reluctant to use a DVCS. We have got Subversion and it does an excellent job, at least for me. Ok, the idea of local commits while travelling in the train is compelling, but we might as well have inexpensive UMTS flat rates in the future. Maintaining a local branch over a long time is not what I usually do.
But that's not the overall point, if you are curious to try something new (which I still am, at least from time to time). The killer argument against DVCS has been, IMO, that there isn't the DVCS: We've got Git, Bazaar, Mercurial, to name just the most important ones, not to mention Arch, Monotone, or Darcs. I'd be ready to learn using either, but definitely two or even three. And, until now, I never had the impression that learning one of them would be sufficient. For example, SourceForge does support no less than three different DVCS (as well as grandpa CVS and SVN).
That has changed: The ASF has now a read-only Git repository. Ok, currently it seems to be a one man effort by Jukka Zitting (while writing this, it just came to my mind that I owed him a Kudo on Ohloh), but the interest is obvious, as projects are already requesting to be added. Gnome has recently decided to move to Git completely. If you look into Bug 257706 on the Eclipse bug tracker, then you can't fail to notice that it sounds like Eclipse will have it's first Git repositories soon. (Also note the Git BoF.)
Similar news from Bzr or Hg are missing. Ok, Max Kanat-Alexander is pressing Bugzilla to Bzr (he deserved yet another Kudo, btw), Widelands has moved at least its web site to Launchpad, but the list of projects using Git (including Linux Kernel, Perl, Rails, Fedora, or X.org) tends to become more and more impressive.
Nough said, I'll give it a try. My main reservation will be the quality of JGit and EGit (in fact, these will be the most likely candidates for reasons to withdraw), but I should keep in mind that I refused to use Subversion because of the Subclipse quality as late as 2004. Let's see what the future brings.
But that's not the overall point, if you are curious to try something new (which I still am, at least from time to time). The killer argument against DVCS has been, IMO, that there isn't the DVCS: We've got Git, Bazaar, Mercurial, to name just the most important ones, not to mention Arch, Monotone, or Darcs. I'd be ready to learn using either, but definitely two or even three. And, until now, I never had the impression that learning one of them would be sufficient. For example, SourceForge does support no less than three different DVCS (as well as grandpa CVS and SVN).
That has changed: The ASF has now a read-only Git repository. Ok, currently it seems to be a one man effort by Jukka Zitting (while writing this, it just came to my mind that I owed him a Kudo on Ohloh), but the interest is obvious, as projects are already requesting to be added. Gnome has recently decided to move to Git completely. If you look into Bug 257706 on the Eclipse bug tracker, then you can't fail to notice that it sounds like Eclipse will have it's first Git repositories soon. (Also note the Git BoF.)
Similar news from Bzr or Hg are missing. Ok, Max Kanat-Alexander is pressing Bugzilla to Bzr (he deserved yet another Kudo, btw), Widelands has moved at least its web site to Launchpad, but the list of projects using Git (including Linux Kernel, Perl, Rails, Fedora, or X.org) tends to become more and more impressive.
Nough said, I'll give it a try. My main reservation will be the quality of JGit and EGit (in fact, these will be the most likely candidates for reasons to withdraw), but I should keep in mind that I refused to use Subversion because of the Subclipse quality as late as 2004. Let's see what the future brings.
Saturday, March 14, 2009
As fast as it can get
It's sometimes surprising to find your own name at a place where you really didn't expect it. But in this case it is even more surprising, because I wrote the mail in question not even three hours before a) Yoav wrote his article and b) I detected it on Planet Apache. :-)
Wednesday, February 11, 2009
When dog food isn't good enough
Recently a proposal came up on the Apache infrastructure list (Sorry, AFAIK, the list isn't archived, thus no pointers from here.) to install Nexus Professional on one of the Apache servers as a repository server. The idea was, in particular, to use Nexus' staging facilities for pushing Apache software releases.
The proposal was posted by Brian Fox, with support by Jason van Zyl. As you can see from my links, both are employed by Sonatype, the company producing Nexus. (Jason is founder and CTO). Obviously, the ASF won't be a bad reference for them. The proposal seems to be rapidly acceptet, almost without objection. (There was some discussion, but mostly about technical details or Maven at all.) As a result, you can view the installed Nexus live today, which is what I did.
In all honesty, I'm going to like it. Having had my share of release management and the related trouble, this is going to help: Pushing some 30 or 40 files to people.apache.org (the number seems big, but you have to consider various signatures, like .md5 and/or .sha1 files as well as GPG signatures, aka .asc files) via SSH to a common place and later distributing it manually to various places is error-prone. But that is like it is: Placement in the common place (typically a users public_html directory) allows the review and vote by fellow developers. Once the release is accepted, the files are being moved to the final target locations. Nexus can help with that and the UI is, of course, very neat.
But that is not the reason for todays entry. What strikes me as rather odd is the fact, how easy a commercial product can make its way into the Apache server park. This is not the first such product: Apache is hosting a Jira server for issue tracking as well as a Confluence Wiki. I observed the discussions when these have been introduced. Jira is basically the successor to the Apache Bugzilla (at least more and more Apache projects leave Bugzilla in favour of Jira) just as well as Confluence is quickly replacing the Apache MoinMoin wiki. In both cases the question was raised, whether an open source product wouldn't be preferrable. Ideally, whether there couldn't be an Apache project to use: "Eat your own dog food" has some tradition within the ASF. The Apache web servers are frequently relatively stable development versions. In both cases there have been no such projects, and the open source alternatives had their share of problems. So I understood the decision.
Which is what I don't do in the case of Nexus as an Apache repository server. There is Archiva, an Apache project, which could do the job. Ok, it doesn't have the bells and whistles, but it does its job. I can tell, because I am using it in my daily work. It is a mature project in active development, obviously also sponsored by commercial companies. Ok, it can't support staging right now, but that wouldn't be overly difficult (Brett Porter has offered to add it, should the ASF require) and within a reasonable time frame. Should be enough at least to consider it as decent dog food.
Alas, noone seemed to be interested in the Nexus discussion. So its Nexus. I can live with it. Understanding is a different matter.
The proposal was posted by Brian Fox, with support by Jason van Zyl. As you can see from my links, both are employed by Sonatype, the company producing Nexus. (Jason is founder and CTO). Obviously, the ASF won't be a bad reference for them. The proposal seems to be rapidly acceptet, almost without objection. (There was some discussion, but mostly about technical details or Maven at all.) As a result, you can view the installed Nexus live today, which is what I did.
In all honesty, I'm going to like it. Having had my share of release management and the related trouble, this is going to help: Pushing some 30 or 40 files to people.apache.org (the number seems big, but you have to consider various signatures, like .md5 and/or .sha1 files as well as GPG signatures, aka .asc files) via SSH to a common place and later distributing it manually to various places is error-prone. But that is like it is: Placement in the common place (typically a users public_html directory) allows the review and vote by fellow developers. Once the release is accepted, the files are being moved to the final target locations. Nexus can help with that and the UI is, of course, very neat.
But that is not the reason for todays entry. What strikes me as rather odd is the fact, how easy a commercial product can make its way into the Apache server park. This is not the first such product: Apache is hosting a Jira server for issue tracking as well as a Confluence Wiki. I observed the discussions when these have been introduced. Jira is basically the successor to the Apache Bugzilla (at least more and more Apache projects leave Bugzilla in favour of Jira) just as well as Confluence is quickly replacing the Apache MoinMoin wiki. In both cases the question was raised, whether an open source product wouldn't be preferrable. Ideally, whether there couldn't be an Apache project to use: "Eat your own dog food" has some tradition within the ASF. The Apache web servers are frequently relatively stable development versions. In both cases there have been no such projects, and the open source alternatives had their share of problems. So I understood the decision.
Which is what I don't do in the case of Nexus as an Apache repository server. There is Archiva, an Apache project, which could do the job. Ok, it doesn't have the bells and whistles, but it does its job. I can tell, because I am using it in my daily work. It is a mature project in active development, obviously also sponsored by commercial companies. Ok, it can't support staging right now, but that wouldn't be overly difficult (Brett Porter has offered to add it, should the ASF require) and within a reasonable time frame. Should be enough at least to consider it as decent dog food.
Alas, noone seemed to be interested in the Nexus discussion. So its Nexus. I can live with it. Understanding is a different matter.
Tuesday, December 9, 2008
VMWare and key maps on Fedora 10
I am one of those poor souls who require Windows for some tasks. I wish, this weren't the case, but that's how things are. Fortunately, VMware Server comes to my rescue: A comparatively small VM of about 15GB is sufficient.
However, after my recent upgrade to Fedora 10, I suddenly noticed that some of my keys were no longer working in the VM: This included the arrow keys, but also some keys, which have been reachable via "Alt Gr" only, like '@', or '\'.
A quick search on Google revealed that I am far from being the only one bothered with that problem. In fact, the difficulties are more likely related to a Kernel upgrade. Users of Ubuntu 8.10 with a similar new kernel seem to suffer the same trouble. Fortunately, solutions were always at hand. For example, the VMware support suggests to use
or
in ~/.vmware/config. Other sources proposed a list of explicit code settings instead, like
In my case, none of these solutions worked completely. The hex codes were refused by VMware Server and the usekeycodemap stuff was fixing some keys, but not all. It turned out, that I had to convert the hex key codes to decimal in order to get it working. For the convenience of those who share my trouble, I post my settings here:
However, after my recent upgrade to Fedora 10, I suddenly noticed that some of my keys were no longer working in the VM: This included the arrow keys, but also some keys, which have been reachable via "Alt Gr" only, like '@', or '\'.
A quick search on Google revealed that I am far from being the only one bothered with that problem. In fact, the difficulties are more likely related to a Kernel upgrade. Users of Ubuntu 8.10 with a similar new kernel seem to suffer the same trouble. Fortunately, solutions were always at hand. For example, the VMware support suggests to use
xkeymap.usekeycodeMapIfXFree86 = true
or
xkeymap.usekeycodeMap = true
in ~/.vmware/config. Other sources proposed a list of explicit code settings instead, like
xkeymap.keycode.108 = 0x138 # Alt_R
xkeymap.keycode.106 = 0x135 # KP_Divide
xkeymap.keycode.104 = 0x11c # KP_Enter
xkeymap.keycode.111 = 0x148 # Up
xkeymap.keycode.116 = 0x150 # Down
xkeymap.keycode.113 = 0x14b # Left
xkeymap.keycode.114 = 0x14d # Right
xkeymap.keycode.105 = 0x11d # Control_R
xkeymap.keycode.118 = 0x152 # Insert
xkeymap.keycode.119 = 0x153 # Delete
xkeymap.keycode.110 = 0x147 # Home
xkeymap.keycode.115 = 0x14f # End
xkeymap.keycode.112 = 0x149 # Prior
xkeymap.keycode.117 = 0x151 # Next
xkeymap.keycode.78 = 0x46 # Scroll_Lock
xkeymap.keycode.127 = 0x100 # Pause
xkeymap.keycode.133 = 0x15b # Meta_L
xkeymap.keycode.134 = 0x15c # Meta_R
xkeymap.keycode.135 = 0x15d # Menu
In my case, none of these solutions worked completely. The hex codes were refused by VMware Server and the usekeycodemap stuff was fixing some keys, but not all. It turned out, that I had to convert the hex key codes to decimal in order to get it working. For the convenience of those who share my trouble, I post my settings here:
xkeymap.keycode.108 = 312 # Alt_R
xkeymap.keycode.106 = 309 # KP_Divide
xkeymap.keycode.104 = 284 # KP_Enter
xkeymap.keycode.111 = 328 # Up
xkeymap.keycode.116 = 336 # Down
xkeymap.keycode.113 = 331 # Left
xkeymap.keycode.114 = 333 # Right
xkeymap.keycode.105 = 285 # Control_R
xkeymap.keycode.118 = 338 # Insert
xkeymap.keycode.119 = 339 # Delete
xkeymap.keycode.110 = 327 # Home
xkeymap.keycode.115 = 335 # End
xkeymap.keycode.112 = 329 # Prior
xkeymap.keycode.117 = 337 # Next
xkeymap.keycode.78 = 70 # Scroll_Lock
xkeymap.keycode.127 = 256 # Pause
xkeymap.keycode.133 = 347 # Meta_L
xkeymap.keycode.134 = 348 # Meta_R
xkeymap.keycode.135 = 349 # Menu
Thursday, November 27, 2008
Fedora PreUpgrade
You've got to learn every day, that's for sure. Sometimes it's tedious (yes, I admit to being so old as no longer love learning for its own sake), but sometimes it's nice. An example of the latter was today when I read about Fedora PreUpgrade.
A while ago, I wrote about UNetbootin, a very nice utility for starting Linux installation or live cd's like GPartEd from a running system without burning a CD or DVD. I've been using it since then and will do so in the future. However, in the case of Fedora, CentOS or Red Hat Enterprise Linux upgrades, using UNetbootin has its limitation. (Which is, of course, not the fault of UNetbootin, but a limitation of these distributions, in the latter simply referenced as Fedora.)
For upgrade of Fedora, there are basically two options:
In other words, you either got to do it safe (Anaconda) or nice (Yum). No longer: Use PreUpgrade.
It's a small python utility with a UI. You start it. It connects to the Fedora server and gathers a list of releases, which are available for an upgrade. (This might include alpha and/or beta releases, if you like.) Proxy servers are supported, btw., I did not check, whether it uses http_proxy, yum.conf, or both. You select a release and click on "Apply". After that, it automatically calculates dependencies and loads the required RPM's to your hard drive. So far, you' ve got the advantages and the comfort of Yum.
But that's not all. In the next step, PreUpgrade is loading a kernel image, a ram disk and similar stuff to your hard drive and configures your system for using them at the next reboot: In other words, it does what UNetbootin would, for you.
All this is happening in the background. You can continue your work, no downtime so far. Finally, when PreUpgrade is finished, you may click on Reboot: Anaconda comes up, performing a safe installation without downloading anything or using a slow CDROM drive.
By using PreUpgrade, I have just upgraded from Fedora 9 to Fedora 10. My downtime was about 10 minutes. (Excellent possibility to get some coffee!) Aint this magic?
A while ago, I wrote about UNetbootin, a very nice utility for starting Linux installation or live cd's like GPartEd from a running system without burning a CD or DVD. I've been using it since then and will do so in the future. However, in the case of Fedora, CentOS or Red Hat Enterprise Linux upgrades, using UNetbootin has its limitation. (Which is, of course, not the fault of UNetbootin, but a limitation of these distributions, in the latter simply referenced as Fedora.)
For upgrade of Fedora, there are basically two options:
- The officially supported way is using the Anaconda Installer. That means booting from a CD, DVD (or via UNetbootin :-). That's nice, if you have a DVD ready and also have direct access to the system.
- The officially unsupported way is using Yum. Much better in some aspects: You can do it from within a running system, even remotely. However, if you are reading the Yum Upgrade FAQ, then you cannot fail to notice that there seem to be a lot of traps and possible problems. I have had my share of these in the past, for example when the IDE devices have been renamed from /dev/hdx to /dev/sdx: At that point you could bet your house on Yum upgrades failing.
For similar reasons, the Yum upgrade should not happen with a UI running. If you are actually using the machine (for example on your own desktop), then that means a lot of more downtime than you want. (Ok, you might use the download-only plugin... I am ranting, but there's a reason for this Blog's title...)
In other words, you either got to do it safe (Anaconda) or nice (Yum). No longer: Use PreUpgrade.
It's a small python utility with a UI. You start it. It connects to the Fedora server and gathers a list of releases, which are available for an upgrade. (This might include alpha and/or beta releases, if you like.) Proxy servers are supported, btw., I did not check, whether it uses http_proxy, yum.conf, or both. You select a release and click on "Apply". After that, it automatically calculates dependencies and loads the required RPM's to your hard drive. So far, you' ve got the advantages and the comfort of Yum.But that's not all. In the next step, PreUpgrade is loading a kernel image, a ram disk and similar stuff to your hard drive and configures your system for using them at the next reboot: In other words, it does what UNetbootin would, for you.
All this is happening in the background. You can continue your work, no downtime so far. Finally, when PreUpgrade is finished, you may click on Reboot: Anaconda comes up, performing a safe installation without downloading anything or using a slow CDROM drive.
By using PreUpgrade, I have just upgraded from Fedora 9 to Fedora 10. My downtime was about 10 minutes. (Excellent possibility to get some coffee!) Aint this magic?
Sunday, November 16, 2008
Authors to remember: Robert Sheckley
In the last years, I tend to find that books I'd like to obtain are out of print or generally unavailable. No surprise: With 45, you and the time of your youth definitely tend to become part of the scrap heap. In some cases, thats simply sad, because these authors did an excellent job at their time and absolutely deserve being read nowadays. We should not forget them. Don't know whether I'll be able to start a series here, but let's begin with Robert Sheckley.
Robert Sheckley had his best times in the fifties, when he wrote, in particular, a series of short story collections. These short stories were usually published in science fiction magazines. When reading his books, you'll find everything that makes science fiction: Space ships, as much as you like, roboters of all kinds, and so on. (I don't want to reduce him to that: He wrote detective stories, fantasy, or adventure stories as well as scripts for TV and films, but let's forget about that today.) At that time, SF was quite popular.
But his stories were different: Witty, surprising, absurd, and sometime hilariously funny. They were not so much about predictions, but about humans and how they are. For example, in "A ticket to Tranai" a young man receives the chance of his live: He's able to rule a world, an Utopia. Surprisingly, things are not as they should be and in the end he hardly manages to escape back to earth. The story ends with him visiting the same bar where the story began, void of all illusions and proposing Tranai to others. Why should they be better off than him?
In "Bad Medicine" a man is "cured" by a mechanic psychiatrist. It turns out, the "mechanotherapist" wasn't made for human minds, but martians. Of course, the result is not the expected.
An almost prophetic example is "Price of Peril": A TV show proposes a high sum of money to a man, if he can manage to survive the next week. His opponents are a bunch of (also hired) criminals. Of course, the TV cameras are watching him 24 hours a day. And of course, they have their own view how the game should end...
To quote Douglas Adams (from the cover of Hunter/Victim): "I had no idea the competition was so terrifyingly good."
Robert Sheckley had his best times in the fifties, when he wrote, in particular, a series of short story collections. These short stories were usually published in science fiction magazines. When reading his books, you'll find everything that makes science fiction: Space ships, as much as you like, roboters of all kinds, and so on. (I don't want to reduce him to that: He wrote detective stories, fantasy, or adventure stories as well as scripts for TV and films, but let's forget about that today.) At that time, SF was quite popular.
But his stories were different: Witty, surprising, absurd, and sometime hilariously funny. They were not so much about predictions, but about humans and how they are. For example, in "A ticket to Tranai" a young man receives the chance of his live: He's able to rule a world, an Utopia. Surprisingly, things are not as they should be and in the end he hardly manages to escape back to earth. The story ends with him visiting the same bar where the story began, void of all illusions and proposing Tranai to others. Why should they be better off than him?
In "Bad Medicine" a man is "cured" by a mechanic psychiatrist. It turns out, the "mechanotherapist" wasn't made for human minds, but martians. Of course, the result is not the expected.
An almost prophetic example is "Price of Peril": A TV show proposes a high sum of money to a man, if he can manage to survive the next week. His opponents are a bunch of (also hired) criminals. Of course, the TV cameras are watching him 24 hours a day. And of course, they have their own view how the game should end...
To quote Douglas Adams (from the cover of Hunter/Victim): "I had no idea the competition was so terrifyingly good."
Subscribe to:
Posts (Atom)