Martin @ Blog

software development and life.

Flower

Archive for the ‘Linux and OSS’ Category

Google-API should prepare itself

Starting from today I’m going to do my first programming-task for my final project in order to graduate. I’m going to play with Google Webservices. A project which already exists and implements an ontology-based learning environment has to be made ‘internet-aware’. The main goal of this project is to experiment with search-engines in combination with an ontology (implemented in OWL). It is not yet certain that I’m going to use Google API, because there are also alternatives in the form of Yahoo API’s.
But first I have to become familiar with the existing code of the project.

Today I also saw a project where someone developed a tricycle with square wheels. Unfortunately, the road has to be adapted fot this tricycle, but otherwise it would be a very cool gadget I think 🙂

Firefox 1.5

Today Firefox 1.5 has been officially released. This is a major release for the Firefox project, because along with the new version of the browser, a new website is launched (http://www.mozilla.com) which claims to be more userfriendly for less customers with less technical understanding than most of the current Firefox users.
The most important new features of Firefox 1.5 include default support for SVG-images (which is very nice I think, and very important for the adoption of SVG as a general webstandard), improved support for CSS2 and CSS3 and of course the regular bug and security fixes. For Apple users, it is very intersting to know that support for the Mac OS X operating system has been improved.
I have just installed the latest version of Firefox on my Mac mini, and I must say that the improvemts are obvious. First, the rendering speed of websites seems to be dramatically improved. Additionally, there was a problem when filling out webforms. Previous versions of Firefox tend to become very slow when you were typing large texts (such as weblog postings), this seems to be solved. Finally the middle-mouse button now works again when you want to open a website in a new tab.
For Mac users, Firefox 1.5 is definately a big improvement!
I don’t have tried the browser on other platforms yet, because I don’t like to install it on Ubuntu without an official package for it. Because I hardly use Windows, the change that I will try the Windows version of Firefox 1.5 within a few days seems very unlikely.

Firefox 1.5 on Mac OS X

Database backup

Because I already lost one time my complete weblog and some other databases, and very recently almost destroyed another database which was hosted on my server and required for the unversity project of my girlfriend, I’ve decided to implement a decend backup strategy. Because I have no tapestreamer or something similar in my server, I am restricted to ‘online’ backups.
Last few days I wrote a bash shell script which makes a backup of the production databases which are on my server and copy this tar.bz2-file with the SQL-dumps to a computer in Zeeland (geographically about 150 km away from here), my Mac Mini (which is also almost always on, but is in the same room as the server) and e-mails the tar.bz2-file to a Gmail-account which I have created for this purpose.
I think it will be pretty hard now to lose all date. There is 24 hours between the backups, so in a worst-case scenario I lose at most 24 hours of data, which is not a very big problem I think. Every backup is currently about 400KB (compressed, almost 2MB uncompressed), which means that on the Gmail account can at least about 5000 backups, which means that I’m settled for about 14 years :).

Now, I only have to fix some kind of backup system for my data. But that is less urgent, because all data on my server is stored on a RAID-1 mirror, so if one disc crashes, I will not loose everything.

Spam and CentOS

Since I’ve installed CentOS on my server and start using Spamassassin from this distribution for filtering spam out of my e-mail, I experienced a decreased accuracy in comparisation with the Spamassassin-installation which I had when Fedora Core 2 was running on the server. Today I upgraded Spamassassin 3.0.1 to the 3.1.0 version which is included in Fedora Core Development (Rawhide). This required me to rebuild the package, which is very easy. According to Felix this version should work better than the 3.0.1 version of CentOS.

Linux RAID-1

Gisteren en vandaag m’n nieuwe server gebouwd en Linux geinstalleerd. Ik heb besloten Fedora Core 2 erop te zetten aangezien ik dit ook op m’n desktopsysteem gebruik, en dit erg goed werkt.

De server bevat nu de volgende componenten:

  • MSI K7T Turbo Raid (met on-board Promise FastTrack100-lite controller)
  • AMD Duron 1,3GHz
  • 512MB Samsung (SDRAM 133MHz)
  • Intel 100Mbit netwerkkaart
  • 2x Maxtor 6Y080LO 80GB harddisks met 2MB cache en 7200rpm

De twee harddisks zijn in een software RAID-1 configuratie gezet waardoor de data op beide schijven wordt weggeschreven en men dus een exacte copy heeft van alle gegevens op de schijven. De how-to voor software RAID1 onder Linux met moderne (2.4 of nieuwer) kernels is hier te vinden.

Uiteraard heb ik goed getest of de configuratie werkt zoals ik wens. Ik heb beide 80GB schijven op de Promise-controller aangesloten zodat ze beiden een eigen IDE-poort hebben. Zodra er dus een uitvalt, zou de andere gewoon door moeten kunnen werken mits de IDE-controller blijft werken (wat uiteraard nog maar de vraag is bij zo’n Promise ding). Ik heb geprobeerd de computer te starten terwijl er 1 schijf uit het array is verwijderd. Dit werkte perfect. Ook heb ik geprobeerd de schijf op een andere controller aan te sluiten (de onboard IDE-controller die standaard op het moederbord aanwezig is) en de data te benaderen. Ook dit blijkt kinderlijk eenvoudig te zijn, door gewoon de partitie te mounten op een willekeurige directory in het filesystem en de data is gelijk te benaderen. Het is dus vrijwel uitgesloten dat nu nog door een harddiskcrash alle data verloren gaat.

De configuratie van de RAID1-arrays (het zijn er 3 in feite, 1 voor /boot, 1 voor / en 1 voor /home) heb ik gedaan met behulp van het installatie programma van Fedora Core 2. Dit is erg eenvoudig en vergt weinig kennis van RAID en de in Linux aanwezige tools voor dit doel.

Hieronder nog een screenshot van de RAID-configuratie zoals ik in de FC2 setup heb ingevoerd.

RAID1 configuratie FC2

Kapotte computers

Ik zit momenteel met een tweetal defecte computers. Mijn laptop is voordat ik op vakantie ging naar Kroatië reeds gestopt met functioneren. Toen is hij in reparatie gegaan, maar de uitgevoerde reparatie is gewoon slecht uitgevoerd waardoor hij nu dus nog stukker is dan dat hij eerst was. Ik ga hem, zodra ik weer in Eindhoven ben, weer laten repareren.

Daarnaast besloot eind juni de harddisk van mijn server dat hij zijn tweejarig leven erop had zitten en ging dus defect. Dit defect betekent tevens het einde van mijn server in zijn huidige vorm, aangezien er het een en ander gaat veranderen waarover later meer.

Skype voor Linux

Skype, een VoIP-programma wat gebruikt maakt van Peer-to-peer techniek die ook gebruikt wordt in KaZaA, is nu eindelijk beschikbaar in een Linux-versie. Een van de sterke punten van Skype is de gebruiksvriendelijkheid – behalve een username hoeft er niets te worden ingesteld om het te kunnen gebruiken. Helaas is de Linux-versie niet open-source. De software is volledig gratis en ontwikkeld op basis van de QT-library. Op termijn zullen bepaalde onderdelen van het programma betaald worden, zoals de mogelijkheid om te bellen naar fysieke telefoonaansluitingen.

De Linux-versie werkt goed onder Gnome inclusief integratie in het notification-panel. Er is een RPM beschikbaar voor SuSE9.1/Fedora Core2 die ervoor zorgt dat het programma gelijk in het menu terecht komt. De site van skype is te vinden op skype.com.

Skype voor Linux

Python is bedacht door een Nederlander… dus?

Adam Adam Curry wist niet dat Python door Guido van Rossum (Nederlander dus) was gemaakt… Erg interessant om te vermelden (NOT). Waarschijnlijk heeft hij ook nog nooit van Edsger W. Dijkstra gehoord die onder andere verantwoordelijk is voor Dijkstra’s algoritme (wat o.a. wordt gebruikt in veel routing protocollon om de korste route tussen twee hosts te bepalen) en dus in principe voor het huidige internet. Ook heeft hij waarschijnlijk nog nooit gehoord van Tjeerd Hoek gehoord die bij Microsoft werkt aan het design van Longhorn.

Van Wijngaarden en Dijkstra hebben trouwens ook aan Algol60 gewerkt, wat de eerste programmeertaal was met een formele beschrijving wat nog steeds voor bijna alle huidige hogere programmeertalen wordt gebruikt.

Wat wil Adam nu eigenlijk zeggen? 😛

Tanenbaum reageert op aantijgingen Ken Brown

De kwaliteit van een onderzoeksinstituut valt of staat naar mijn mening met de mate van objectiviteit en de kwaliteit van de onderzoeken die het instituut doet. In dit licht is in mijn optiek het Alexis de Tocqueville instituut (AdTI) tot het allerlaagste niveau gedaald. De directeur van het bureau, Ken Brown, heeft namelijk gereageerd op de kritiek op zijn onderzoek waaruit hij concludeerde dat Linus Torvalds niet de geestelijk vader van Linux zou zijn, waarover ik hier al berichtte. Op Tweakers.net heb ik in Tweakers.net – Nieuws [ Tanenbaum reageert opnieuw op AdTI-onderzoek ] getracht een beetje objectief verslag (voor zover dat hierbij nog kan, het is namelijk bijna grappig aan het worden) van de ontwikkelingen proberen te schrijven.

Ken Brown verzint gewoon feiten, en het lijkt er zelfs op dat hij eerst de conclusie verzint en dan op zoek gaat naar mensen of feiten die deze conclusie kunnen onderbouwen. Leuk idee, beetje jammer dat het deze keer niet echt gaat werken. Hij suggereert dat het onmogelijk zou zijn om in je eentje in een jaar een (relatief) eenvoudig besturingssysteem te schrijven wat lijkt op een reeds bestaand besturingssysteem. Ik ben er van overtuigd, evenals Tanenbaum overigens, dat dit zeker wel kan als je er maar genoeg tijd in steekt. Daarnaast verzint hij gewoon uitspraken van Tanenbaum, of rukt ze volstrekt uit hun verband.

Het lijkt Ken Brown er alles aan gelegen om vooral maar proprietaire software te promoten (ok, hij is dan nog wel ‘voor’ ‘echte’ open-source volgens zijn criteria, waarbij het er dus op neer komt dat het niet onder de GPL valt maar onder de BSD-licentie (en bedrijven dus de broncode ongestraft mogen gebruiken in ‘closed-source’ programma’s. Deze quote Brown en dan de reactie van Tanenbaum is ook leuk:

“The disturbing reality is that the hybrid source model depends heavily upon sponging talent from U.S. corporations and/or U.S. proprietary software. Much of this questionable borrowing is a) not in the best interest U.S. corporations …”

Excuse me? A Finnish student writes some software (in Finland) that a lot of people like and he is accused on sponging off U.S. corporations? And last time I checked, quite a few U.S. Corporations, such as IBM, seemed quite happy with Linux. And a very large number of U.S. corporations seem to be using the (open source) Apache web server. And even if open source weren’t in the best interest of U.S. corporations, where is it written that all activities everywhere in the world must be done with the interests of U.S. corporations as their primary goal?

De conclusie van Tanenbaum vind ik ook wel sterk eerlijk gezegd:

All in all, Brown’s only argument is that he, personally, doesn’t believe a 21-year-old kid could have written an operating system kernel in a year, despite the fact that half a dozen other people had done the same thing earlier and the code Linus wrote wasn’t all that great initially. And faced with a whole bunch of people telling him otherwise and the consultant he hired to examine the code saying the code is completely different from MINIX, Brown just ignores all the facts and persists in his belief. I’ll bet he dismisses the widely reported claim that Mozart wrote three symphonies and performed for the King of England when he was nine on the grounds that 9-year-olds don’t normally do this sort of thing.

Het is wel lief dat Ken Brown de Vrije Universiteit en Amsterdam in het algemeen nog wat promoot in zijn reactie.

Ik hoop dat ze nog even doorgaan met het Alexis de Tocqueville instituut afkraken, want dan neemt tenminste niemand deze propaganda machine meer serieus. Niet dat mensen die er een beetje verstand van hebben dit waarschijnlijk nu nog doen, maar er zijn ongetwijfeld genoeg mensen die geen kennis hebben van de onderzoeksmethodiek van dit instituut… Misschien gaan ze ooit nog wel beweren dat closed-source programmateur makkelijker aan te passen is ofzo… of dat de kerstman Linux heeft geschreven….

Plannen van het Gnome-project

Op de site van het Gnome-project is een document gepubliceerd waarin de plannen voor de toekomst van het project uit de doeken worden gedaan.
Het gaat hierbij om de globale koers die het project zal gaan varen en niet zozeer over kleine features/verbeteringen die in de diverse applicaties elke release worden toegevoegd.

Interessante punten zijn de plannen voor een p2p-applicatie, vernieuwing van de audio-server en integratie van de nieuwe Evolution. Helaas komt er vaak niet veel van terecht van de plannen…

You are currently browsing the archives for the Linux and OSS category.