środa, 30 listopada 2011

Fedora 15 bugs

Fedora Desktop variant #1
XFce variant #1
Fedora Desktop variant #2
XFce variant #2

As I've found Gnome 3 unusable I've switch to Xfce which is much better than Gnome 3 but not perfect:

  • Freezes frequently if save session is active. This problem was solved by switching off save session feature.

  • Changes workspace layout from time to time. Most of time it displays variant #1 of the Desktop but sometimes the desktop switches to variant #2. Have no idea why. Unsolved.

  • Problems (fortunately very rarely) with The Workspace Switcher panel plugin (which allows one to switch between virtual desktops and/or display workspace layout in the panel)---number of displayed workspaces is suddenly reduced to 1 (or even 0). Unsolved as well.

Both unsolved `features' are annoying.

Finally I cannot update Fedora:


## LANG=C to switch to English
LANG=C yum update

Error: Package: ffmpeg-libs-0.6.90-0.2.rc0.fc15.i686 (@rpmfusion-free)
Requires: libx264.so.114
Removing: x264-libs-0.0.0-0.29.20110227.fc15.i686 (@rpmfusion-free)
libx264.so.114
Updated By: x264-libs-0.0.0-0.30.20110620.fc15.i686 (rpmfusion-free-updates)
Not found
You could try using --skip-broken to work around the problem

I have downgraded ffmpeg-libs (/etc/yum.conf contains exclude=ffmpeg-libs ffmpeg), otherwise I was unable to play AVI files. But sopcast insists on packages which are in conflict with my setup. In result I haven't sopcast installed.

I've been using Linux as my desktop operating system for about 12 years. I have started with Red Hat 4.0 (or 5.0) in 1989 or 1990 and since then I've stuck with Red Hat/Fedora. Actually I have never used MS Windows except version 95 (for starting DOS box) or when forced to do so. Looking back at all the Fedoras/RedHats I have used I am disappointed. Bugs were in every distributions, but with the help of Google I was able to cope with them. For the first time I cannot...

piątek, 18 listopada 2011

Problemy z updmap w TeXlive 2011

Powtórzyłem procedurę opisaną w Próbowanie fontów STIX, tj.:


otftotfm -a -e qx.enc STIXGeneral.otf STIXGeneral--qx

Powyższe generuje pliki vf/tfm/pfb w odpowiednie podkatalogi katalogu /home/tomek/.texlive2011. Uruchamia nawet program updmap, ale coś tam jest nie tak:


otftotfm -a -e qx.enc STIXGeneral.otf STIXGeneral--q
I had to round some heights by 18.0000000 units.
I had to round some depths by 3.0000000 units.
I had to round some heights by 18.0000000 units.
I had to round some depths by 3.0000000 units.
Config file: "/home/tomek/.texlive2011/texmf-config/web2c/updmap.cfg"
/home/tomek/.texlive2011/texmf-config/web2c/updmap.cfg unchanged. Map files not recreated.
/opt/tex/bin/updmap: Updating ls-R files.
otftotfm: warning: `updmap --nomkmap --enable Map \
/home/tomek/.texlive2011/texmf-var/fonts/map/dvips/lcdftools/lcdftools.map;
updmap >/dev/null 2>&1' exited with status 1;
otftotfm: warning: run it manually to check for errors

Powtarzam zatem:


$ updmap --nomkmap --enable Map /home/tomek/.texlive2011/texmf-var/fonts/map/dvips/lcdftools/lcdftools.map
updmap --nomkmap --enable Map /home/tomek/.texlive2011/texmf-var/fonts/map/dvips/lcdftools/lcdftools.map
Config file: "/home/tomek/.texlive2011/texmf-config/web2c/updmap.cfg"
/home/tomek/.texlive2011/texmf-config/web2c/updmap.cfg unchanged. Map files not recreated.
/opt/tex/bin/updmap: Updating ls-R files.
## nie wiem o co chodzi, ale jedziemy dalej
##
$ updmap
updmap
Config file: "/home/tomek/.texlive2011/texmf-config/web2c/updmap.cfg"
.. .. ..
ERROR: The following map file(s) couldn't be found:
/home/tomek/.texlive2011/texmf-var/fonts/map/dvips/lcdftools/lcdftools.map
Did you run mktexlsr?

updmap nie może zatem odszukać pliku lcdftools.map zadeklarowanego w pliku ~/.texlive2011/texmf-config/web2c/updmap.cfg

Próby ustalenia co jest nie tak zawiodły:


kpsewhich -expand-path '$TEXFONTMAPS'

Wydruk z powyższego zawiera ~/.texlive2011/texmf-var/fonts/map/dvips/lcdftools a wykonanie mktexlsr nie pomaga.

Skopiowałem zatem lcdftools.map do katalogu systemowego /usr/local/texlive/2011/texmf-var/fonts/map/dvips/updmap. Potem


## jako root
mktexlsr ;
## jako zwykły użytkownik, bo pliki tfm/vf/pfb są w moim katalogu domowym
updmap

Teraz działa. Wygląda na błąd w TL 2011. Znalazłem nawet w google radę zdesperowanego użytkownika, który radził wywalenie updmap.

Słuszną linię ma nasza partia

Podatki w górę, świadczenia budżetowe w dół, ,,bierzemy się do roboty'' z Nowakiem i Arłukowiczem, no i najważniejsze -- 300 PLN/łeb funkcjonariusza PP (Policji Państwowej) od lipca przyszłego roku.

Mam tylko jedno pytanie czy te 300 PLN to nie za mało i czy od lipca to nie za późno?

świnie
Snowball (pierwszy od prawej)

Dopisane 20 listopada 2011: Teraz jest moda na zwiększające klikalność zwykle kretyńskie mini-ankiety dodawane obok tekstu. To ja też dodam, tyle, że taką fake:

Dlatego ministrowie, niezależnie od dziedziny, jaką będą się zajmowali, będą musieli precyzyjnie planować i zdawać raporty...

Kto powiedział powyższe: 1. Premier Nikodem Dyzma w powieści Kariera Nikodema Dyzmy Tadeusza Dołęgi-Mostowicza; 2. Premier Donald Tusk w expose wygłoszonym 18. listopada 2011 r.; 3. Obaj wymienieni w pytaniach 1 i 2; 4. Świnia Snowball w powieści Animal Farm George'a Orwella.

wtorek, 8 listopada 2011

Data sets for statistical education

IMHO there is acute lack of interesting data sets for statistical education purposes, particularly cross-sectional in nature and not related to biology/medicine/astronomy. The domains I am looking for are management, demography and economics but sport is OK too as many students are interested in sport.

I agree there is a lot of data published (mainly) by various government agencies but its almost 100% time series data. There are many test datasets too (like UC Irvine Machine Learning Repository), but they are usually boring, often categorical and short:-)

To remedy a little the lack of good data I compiled myself a few databases and I intend to add more in the future. At present my repository consists of 4 datasets concerning: -- 1100 or so German WW2 U-boots; -- 2200 or so Titanic passangers/crew members -- 1200 or so Rugby Union players who took part in RWC 2011 and RWC 2007 tournaments.

The repository is available at my github account.

niedziela, 6 listopada 2011

Zmarł John McCarthy

Aż wstyd, że dopiero dziś się dowiedziałem.

24. października br. zmarł John McCarthy, twórca języka LISP (1958 r.), drugiego po Fortranie języka wysokiego poziomu powszechnie używanego do dziś. Ja też -- nie chwaląc się -- czasami go używam, choć go prawie nie znam:


(defun My-count-words (&optional begin end)
"count words between BEGIN and END (region); if no region defined,
count words in buffer"
(interactive "r")
(let ((b (if mark-active begin (point-min)))
(e (if mark-active end (point-max))))
(message "Word count: %s" (how-many "\\w+" b e))))

Nieoficjalna nazwa LISPa, to Lots of Irrelevant Silly Parentheses.

środa, 2 listopada 2011

Ostatnie prosta

Dziś przejeżdżając skromne 30 km, dociągnąłem do 149,925 km życiowego przebiegu... Zostało zatem zaledwie 80 km do okrągłej liczby 150 tys...