<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>Advogato blog for hulten</title>
    <link>http://www.advogato.org/person/hulten/</link>
    <description>Advogato blog for hulten</description>
    <language>en-us</language>
    <generator>mod_virgule</generator>
    <pubDate>Fri, 10 Feb 2012 16:27:14 GMT</pubDate>
    <item>
      <pubDate>Sun, 31 Oct 2010 14:28:55 GMT</pubDate>
      <title>31 Oct 2010</title>
      <link>http://www.advogato.org/person/hulten/diary.html?start=5</link>
      <guid>http://www.advogato.org/person/hulten/diary.html?start=5</guid>
      <description>I had accidentally deleted /var/lib/dpkg/info/ from one of my Debian &#xD;
GNU/Linux &#xD;
systems, with the consequence that APT misses relevant metadata.  I &#xD;
vaguely remember having done this before and I might do it stupidly again.  &#xD;
Therefore I wrote a script which seems &#xD;
to fix this.&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; &lt;code&gt;&lt;pre&gt;&#xD;
#!/bin/sh&#xD;
# Repare dpkg database in /var/lib/dpkg/info/ from /var/lib/dpkg/status.&#xD;
# &#xD;
STATUS=/var/lib/dpkg/status&#xD;
INFO=dpkg-info&#xD;
BASEDIR=`pwd`&#xD;
echo File ${STATUS} will be used to read which packages you have &#xD;
installed.&#xD;
echo New info/* files will be moved into ${INFO}/.&#xD;
mkdir ${INFO}&#xD;
for PACKAGE in `grep ^Package ${STATUS} | awk '{print $2}'`; do&#xD;
    echo Processing ${PACKAGE}...&#xD;
    aptitude download ${PACKAGE} || continue&#xD;
    dpkg-deb -e `ls ${PACKAGE}*.deb` || continue&#xD;
    cd ${BASEDIR}/DEBIAN/&#xD;
    for CTRLFILE in *; do mv ${CTRLFILE} &#xD;
../${INFO}/${PACKAGE}.${CTRLFILE}; done&#xD;
    cd ${BASEDIR}/&#xD;
    rm ${PACKAGE}*.deb&#xD;
done&#xD;
&lt;/pre&gt;&lt;/code&gt;&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; This can be ran as a normal user.  If you then move all files from &#xD;
dpkg-info/ &#xD;
to /var/lib/dpkg/info/ APT should work well again.  You should change the &#xD;
script if you already have a large amount of deb files in &#xD;
/var/cache/apt/archives/.&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; Do whatever you want with the script.  The script is as-is, without any &#xD;
waranties.&#xD;
&#xD;
&lt;p&gt; &lt;b&gt;Update: &lt;/b&gt; This method does not restore the *.list files, thus &#xD;
leaving me without all necessary dpkg metadata.</description>
    </item>
    <item>
      <pubDate>Thu, 27 May 2010 15:54:12 GMT</pubDate>
      <title>27 May 2010</title>
      <link>http://www.advogato.org/person/hulten/diary.html?start=4</link>
      <guid>http://www.advogato.org/person/hulten/diary.html?start=4</guid>
      <description>&lt;p&gt;&lt;b&gt;More free access to medicines&lt;/b&gt;&#xD;
&lt;p&gt;&#xD;
Pharmacy multinational Glaxo decided to &lt;a href="http" ://www.guardian.co.uk/science/2010/jan/20/glaxo-malaria-drugs-public-&gt;offer&#xD;
free access to several potential malaria cures&lt;/a&gt; (that is, the patents).&#xD;
On the &lt;i&gt;Wall Street Journal&lt;/i&gt; they call it &lt;a href="http" ://online.wsj.com/article/SB100014240527487033419045752665834&gt;a&#xD;
Linux Approach&lt;/a&gt;.  Now certainly this is wrongly put in&#xD;
multiple ways.  While using the term &lt;i&gt;Linux operating&#xD;
system&lt;/i&gt;, they actually mean &lt;i&gt;GNU/Linux&lt;/i&gt;. &#xD;
Furthermore they use the term &lt;i&gt;open-source&lt;/i&gt; instead of&#xD;
&lt;i&gt;free software&lt;/i&gt;.  This kind of language is very common&#xD;
nowadays.  If people know exactly what is meant by it, it&#xD;
might not be that relevant.  People do know &lt;i&gt;which&lt;/i&gt;&#xD;
software is meant when the term &lt;i&gt;open-source&lt;/i&gt; or&#xD;
&lt;i&gt;free software&lt;/i&gt; is used and because of the fact that the&#xD;
set of OSI approved licences are almost identical to the FSF&#xD;
approved licences, these software are mostly the same.&#xD;
&#xD;
&lt;p&gt; &lt;p&gt;&#xD;
However, this kind of language neglects an important issue,&#xD;
namely that of freedom.  The GNU system was originally&#xD;
created with the idea that users would have freedom to use,&#xD;
adapt and redistribute the software in anyway they feel&#xD;
like, and this still is the core idea of free software. &#xD;
This is why it is important to use the terms &lt;i&gt;free&#xD;
software&lt;/i&gt; and &lt;i&gt;GNU/Linux&lt;/i&gt;.&#xD;
&#xD;
&lt;p&gt; &lt;p&gt;&#xD;
It seems that I digress... but I'm not.  Also in the case of&#xD;
patents it is important that people have the freedom to&#xD;
derive other work from inventions.  A temporary monopoly on&#xD;
an invention, with the intent to develop it for the good of&#xD;
society, is morally allowed under certain conditions.  In&#xD;
this way inventors feel the urge (a financial stimulance) to&#xD;
produce more inventions and also to develop them and make&#xD;
them public (through a patent registration).  But there are&#xD;
several things which should never be patented so that a&#xD;
single company has a monopoly on that patent.  One type of&#xD;
such an invention is medicines.&#xD;
&#xD;
&lt;p&gt; &lt;p&gt;&#xD;
But at this point it is allowed to patent medicines.  As&#xD;
long there is no legislation against these kind of moral&#xD;
practices, we should do something to help make patents more free. But &#xD;
pharmaceutical companies want to make a&#xD;
profit.  What should these companies do when they want to&#xD;
make money and be moral (give to society) as well?  Glaxo&#xD;
did a first move to get back the respect of society.  The&#xD;
medicines that they liberated (as it seems) can now also be&#xD;
used by other pharmaceutical companies for the development&#xD;
of derivative medicines, probably without making it free! &#xD;
In the &lt;i&gt;Guardian&lt;/i&gt; &lt;a href="http" ://www.guardian.co.uk/science/2010/jan/20/glaxo-malaria-drugs-public-&gt;article&lt;/a&gt;&#xD;
I cannot find anything which shows that they thought about&#xD;
this problem.  Maybe they did and will use that only for&#xD;
other medicines (for instance against HIV).  So, is there a&#xD;
solution for this problem?  Yes, there is.&#xD;
&#xD;
&lt;p&gt; &lt;p&gt;&#xD;
In the &lt;i&gt;Wall Street Journal&lt;/i&gt; &lt;a href="http" ://online.wsj.com/article/SB100014240527487033419045752665834&gt;article&lt;/a&gt;&#xD;
not only the words &lt;i&gt;Linux&lt;/i&gt; and &lt;i&gt;open-source&lt;/i&gt;&#xD;
should not have been used, but it should also have made&#xD;
clear that copyright is something different from patents. &#xD;
Copyright is used for works of art, while patents are for&#xD;
inventions.  But it did make me think about certain aspects&#xD;
of free software and free patents (read for both:&#xD;
&lt;i&gt;Free&lt;/i&gt; as in&#xD;
&lt;i&gt;free speach&lt;/i&gt;, not &lt;i&gt;free beer&lt;/i&gt;).  In free software&#xD;
we use the concept of &lt;i&gt;copyleft&lt;/i&gt;, like in the GNU GPL. &#xD;
Now, such a thing should be used for medicines as well. &#xD;
Then such an invention may be freely used for anyone, as&#xD;
long as all derivative inventions are also free in precisely&#xD;
the same way.  Also they must not be trade secrets and the&#xD;
license must be non-revokable.&#xD;
&#xD;
&lt;p&gt; &lt;p&gt;&#xD;
As long as patents on medicines are allowed by governments,&#xD;
this is a good way to make available more and more medicines&#xD;
for low costs, so that everyone can pay for them.  Also this&#xD;
kind of patent license can be used for all types of&#xD;
inventions, giving even more to society than their health. &#xD;
But let's start with that.&#xD;
</description>
    </item>
    <item>
      <pubDate>Mon, 10 May 2010 11:55:13 GMT</pubDate>
      <title>10 May 2010</title>
      <link>http://www.advogato.org/person/hulten/diary.html?start=3</link>
      <guid>http://www.advogato.org/person/hulten/diary.html?start=3</guid>
      <description>&lt;b&gt;The &lt;i&gt;real&lt;/i&gt; ocean&lt;/b&gt;&#xD;
&lt;p&gt;&#xD;
For half a year I work at the KNMI now, working an modelling&#xD;
of the ocean biogeochemistry, tending to use only free&#xD;
software. Now for something in the context of my work which&#xD;
is mostly unrelated to computing: a cruise over the Atlantic&#xD;
to collect measurements!&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; &lt;p&gt;Two cruises have been planned for the GEOTRACES project&#xD;
for this year. One will cover the course&#xD;
Reykjav&amp;iacute;c--Hamilton&#xD;
and the second the course Hamilton--Fortaleza. Before the&#xD;
start of these cruises the equipment had to be tested on a&#xD;
shorter cruise, which I joined. This small cruise started&#xD;
from Texel and the original plan was to go to Reykjav&amp;iacute;c&#xD;
(Iceland). Here the researchers for the bigger cruises would&#xD;
get on the ship. However, in view of the volcanic activity&#xD;
on Iceland and all the air traffic problems resulting from&#xD;
it, it was decided to go to Scotland instead.&#xD;
&#xD;
&lt;p&gt; &lt;p&gt;&#xD;
We planned to leave the port at Texel on the 22nd of April&#xD;
but, as often&#xD;
happens with preparations, things got delayed. Added to&#xD;
this, we needed&#xD;
high tide to sail out to sea.  This is why we left on Friday&#xD;
the 23rd of&#xD;
April. The North Sea was calm and the sun was shining.  It&#xD;
was my&#xD;
birthday, so we ate pie and I got a book which was later&#xD;
signed by&#xD;
everyone on board.&#xD;
&lt;p&gt;&#xD;
The next day the weather was grayer and I got sea sick in&#xD;
such a way&#xD;
that I did have a chance to participate in or observe any&#xD;
activities on&#xD;
board.&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; &lt;p&gt;&#xD;
On the third day, April 25, the Very Large and the Ultra&#xD;
Clean sampling&#xD;
systems were let down and pulled up successfully. Both&#xD;
systems contain&#xD;
24 samplers, each twelve litres in volume.  The Ultra Clean is&#xD;
especially useful for the measurement of metal&#xD;
concentrations, because&#xD;
the system is mostly made of plastic to prevent the water&#xD;
from getting&#xD;
into contact with metal.&#xD;
&lt;p&gt;&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; Leslie and Steven explained the CO2 measurements to me. &#xD;
They measured&#xD;
the alkalinity and DIC (Dissolved Inorganic Carbon), from which&#xD;
concentrations of carbon dioxide, bicarbonate and carbonate&#xD;
can be&#xD;
calculated.  The most ingenious I found the measurement of&#xD;
DIC, for&#xD;
which first all ions are converted to carbon dioxide by&#xD;
means of an&#xD;
acid.  The resulting liquid is radiated by light with the&#xD;
specific&#xD;
wavelength where carbon dioxide molecules are ionised.  Two&#xD;
electrons&#xD;
are measured per molecule.  The electric current is&#xD;
integrated by a&#xD;
measurement device.  The resulting charge can then be used&#xD;
to calculate&#xD;
the number of mole of carbon dioxide, which is the same as&#xD;
the DIC&#xD;
concentration from the sample.&#xD;
&lt;p&gt;&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; In the evening there were two lectures; one presented by me&#xD;
about the&#xD;
modelling of trajectories in the ocean, and the other by&#xD;
Gregory about&#xD;
the measurement of concentrations of silicium.&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; &lt;p&gt;&#xD;
On the fourth day the sampling systems were let down a bit&#xD;
deeper: about&#xD;
one kilometre.  An electric connector of the Very Large&#xD;
sampling system&#xD;
seemed to be leaking.  After the replacement of a rubber&#xD;
ring there was&#xD;
no more leakage.&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; &lt;p&gt;&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; In the end we managed to test everything with success. &#xD;
It was&#xD;
interesting to see how the samples were taken, what can go&#xD;
wrong and how&#xD;
some of it is analysed.  This gives insight in how difficult&#xD;
it can be&#xD;
to determine the properties of the ocean and how sparse data&#xD;
points are&#xD;
compared to the enormous size of the ocean and the number of&#xD;
available&#xD;
data in models.  Also it gives an idea where errors in&#xD;
measurements can&#xD;
arise.  In the morning of the fifth day, April 27, we sailed&#xD;
into&#xD;
Scrabster, a harbour on the far North of Scotland.  Half a&#xD;
dozen people&#xD;
went off board and new scientists went on board for the&#xD;
cruise to Bermuda.</description>
    </item>
    <item>
      <pubDate>Mon, 9 Nov 2009 20:22:23 GMT</pubDate>
      <title>9 Nov 2009</title>
      <link>http://www.advogato.org/person/hulten/diary.html?start=2</link>
      <guid>http://www.advogato.org/person/hulten/diary.html?start=2</guid>
      <description>A month ago I started a PhD at the KNMI (Dutch wheather and&#xD;
climate institute).  Before this I&#xD;
worked as an workstation administrator at the KNMI.  Now I&#xD;
am a &lt;i&gt;user&lt;/i&gt;.&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; During my time as an administrator I wrote a few articles&#xD;
for the IT department.  These were about the introduction of&#xD;
more free software, open hardware, the configuration&#xD;
management tool &lt;i&gt;Puppet&lt;/i&gt; and a bit about the new&#xD;
GNU/Linux distribution.  This entry is an update to the&#xD;
practical status of a few of these subjects.&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; At least the users of my department, Mondial Climate, are&#xD;
proponents of the introduction of free software.  It seemed&#xD;
that my paper about free software was received well at a&#xD;
meeting between end users and administrators.  Probably it&#xD;
will take a while before we can say goodbye to all&#xD;
proprietary software, but I believe that we will be making&#xD;
progress in the near future.&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; The open hardware issue is likely to be rediscussed as soon&#xD;
as new hardware is needed.  At this moment the IT department&#xD;
has enough new workstations, unfortunately all equipped with&#xD;
Nvidia cards.&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; The introduction of the new GNU/Linux distribution goes&#xD;
slowly.  I for one am already running the new distribution,&#xD;
with much more free, as well as up-to-date, software than&#xD;
any other user at the KNMI.</description>
    </item>
    <item>
      <pubDate>Thu, 20 Aug 2009 18:32:26 GMT</pubDate>
      <title>20 Aug 2009</title>
      <link>http://www.advogato.org/person/hulten/diary.html?start=1</link>
      <guid>http://www.advogato.org/person/hulten/diary.html?start=1</guid>
      <description>&lt;b&gt;The government and Free Software&lt;/b&gt;&#xD;
&lt;p&gt;&#xD;
I work at the Dutch Wheather Institute (KNMI), a&#xD;
governmential institution.  The Dutch government several&#xD;
times said that they wished to use more Open Source&#xD;
Software and Open Standards, but forces seem to exist which&#xD;
prevents the embracement of this.  I was asked to write a&#xD;
plan concerning our troubles with the Linux-driver for the&#xD;
Nvidia cards that are build in the workstations of the KNMI.&#xD;
&lt;p&gt;&#xD;
Obviously, the problem is the use and acceptance of non-free&#xD;
software.  However, users want 3D acceleration (Google&#xD;
Earth, Nexuiz, visualisation of models).  Is ATI a viable&#xD;
alternative?  They went open spec.  No, the free (as in&#xD;
speech) drivers are not completed yet.&#xD;
&lt;p&gt;&#xD;
The obvious alternative is the onboard Intel GMA X3000 and&#xD;
higher series.  Even with the newest GMA X4500 series the&#xD;
performance is not nearly as good as of recent Nvidia and&#xD;
Ati cards.  However, I am sure that it is more than enough&#xD;
for most users.  I will convince them that it is better to&#xD;
buy Intel GMA's, so that we can use Free Software!</description>
    </item>
    <item>
      <pubDate>Tue, 28 Jul 2009 20:27:02 GMT</pubDate>
      <title>28 Jul 2009</title>
      <link>http://www.advogato.org/person/hulten/diary.html?start=0</link>
      <guid>http://www.advogato.org/person/hulten/diary.html?start=0</guid>
      <description>&lt;strong&gt;Play a movie on TV through an Nvidia card&lt;/strong&gt;&#xD;
&#xD;
&#xD;
&lt;p&gt; Even in these days of RandR and the modular Xorg, some&#xD;
people still have trouble playing a video through their&#xD;
computer on their television.  Specifically the proprietary&#xD;
Nvidia cards cause problems.  There are even users who&#xD;
think that using proprietary drivers for their Nvidia cards&#xD;
is the only way to use TV-out.  That is not true and I for&#xD;
one even find it less troubling when you use the nv driver,&#xD;
which is free software.&#xD;
&#xD;
&lt;p&gt; &lt;p&gt; While running Xorg with the nv display driver, I installed&#xD;
the little utility &lt;i&gt;nvtv&lt;/i&gt; (slightly patched).  Put&#xD;
nvtvd in your default runlevel.  I wrote the following shell&#xD;
script, called &lt;i&gt;mplayot&lt;/i&gt; for playing a movie on my&#xD;
television:&#xD;
&lt;pre&gt;&lt;code&gt;&#xD;
#!/bin/sh&#xD;
echo mplayer-on-tv v0.3.7&#xD;
# Pause your music&#xD;
mpc pause&#xD;
nvtv -r 800,600 -s Large -t -C CONVERT --set \\&#xD;
    TVPositionX:-3,0 || echo Problem with nvtv!&#xD;
XSCRSAV=NO&#xD;
if ! [ `ps -C xscreensaver | wc -l` = 1 ]; then&#xD;
        killall xscreensaver&#xD;
        XSCRSAV=YES&#xD;
fi&#xD;
# Put xorg blanking of display to two hours&#xD;
xset s 7200&#xD;
mplayer -fs -osdlevel 1 -vo xv -spuaa 4 \\&#xD;
    -screenw 800  -screenh 600 -ao alsa "$@" &amp;amp;&amp;amp;\&#xD;
# Put it back to 10 minutes&#xD;
xset s 600&#xD;
# This fixes some display problems&#xD;
xrandr -s 640x512&#xD;
xrandr -s 1280x1024&#xD;
if [ $XSCRSAV = "YES" ]; then&#xD;
        xscreensaver &amp;amp;&#xD;
fi&#xD;
&lt;/code&gt;&lt;/pre&gt;&#xD;
This just works.</description>
    </item>
  </channel>
</rss>

