Signal handling in R

Recently I have been programming quite a lot in R, and today stumbled over the problem to implement a kind of monitoring loop in R. Typically that would be a infinite loop with sleep calls, but I wanted to allow for waking up from the sleep via sending UNIX style signals, in particular SIGINT. After some searching I found Beyond Exception Handling: Conditions and Restarts from the Advanced R book. But it didn’t really help me a lot to program an interrupt handler.

My requirements were:

  • an interruption of the work-part should be immediately restarted
  • an interruption of the sleep-part should go immediately into the work-part

Unfortunately it seems not to be possible to ignore interrupts at all from with the R code. The best one can do is install interrupt handlers and try to repeat the code which was executed while the interrupt happened. Continue reading

Email this to someonePrint this pageShare on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInFlattr the author

TeX Live 2017 hits Debian/unstable

Yesterday I uploaded the first packages of TeX Live 2017 to Debian/unstable, meaning that the new release cycle has started. Debian/stretch was released over the weekend, and this opened up unstable for new developments. The upload comprised the following packages: asymptote, cm-super, context, context-modules, texlive-base, texlive-bin, texlive-extra, texlive-extra, texlive-lang, texworks, xindy.

I mentioned already in a previous post the following changes:

  • several packages have been merged, some are dropped (eg. texlive-htmlxml) and one new package (texlive-plain-generic) has been added
  • luatex got updated to 1.0.4, and is now considered stable
  • updmap and fmtutil now require either -sys or -user
  • tlmgr got a shell mode (interactive/scripting interface) and a new feature to add arbitrary TEXMF trees (conf auxtrees)

The last two changes are described together with other news (easy TEXMF tree management) in the TeX Live release post. These changes more or less sum up the new infra structure developments in TeX Live 2017. Read on for the list of updated packages

Email this to someonePrint this pageShare on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInFlattr the author

山菜の終了:ウドのパーティー

金曜日の夜東京からの帰宅して、土曜日を山菜、特にウドに供えた:午前福井県の友人との集合で、山に向かっていた。雪が沢山残っているから、大丈夫だと思ったけど、やっぱりウドの時期は終わった。本気で探したけど、少しだけを見つけた。帰り道蕎麦屋によって、美味しい昼食を食べた。その後自宅で採った山菜をきんぴらと天ぷらにして、刺身を加えて、いろんな酒(スパークリングワイン、ビール、日本酒など)に合わせて、めちゃ旨いウドパーティーになった。

ウドのくき(?)のきんぴらはスタートだった。ちょっと辛くてビールとLo Spritzに合わせて、前菜ぽくてたべた。

ウドの天ぷらと刺身をメーンとして、つまみの魚(何だかな)。やっぱり山菜天ぷらと美味しい冷酒は僕の天国だ!

毎年一緒に山菜を楽しんでくれる友人のお陰様で、また素晴らしいウドディナーができた。これで今年の山菜季節が終わった。残念です!!和食の中一番珍しく、特色がある山菜は本当に僕に好物だ!好物より、山菜中毒かな?

Email this to someonePrint this pageShare on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInFlattr the author

Calibre 3 beta for Debian

I have updated my Calibre Debian repository to include packages of the upcoming version 3, currently version 2.99.10. As with the previous packages, I kept RAR support in to allow me to read comic books.

The repository location hasn’t changed, see below. Please report your experiences to the Calibre beta support channel at MobileRead.

deb http://www.preining.info/debian/ calibre main
deb-src http://www.preining.info/debian/ calibre main

The releases are signed with my Debian key 0x6CACA448860CDC13

Enjoy

Email this to someonePrint this pageShare on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInFlattr the author

Running in the Kanazawa hills

Sometimes I needed a short break from work, and usually I go a bit running. Normally I run between five and ten km, just around our flat. But yesterday I somehow thought it might be a good idea to run through the hills near by. I usually drive up there to a climbing spot or a cafe, so it will for sure not be that long. Well, my estimation was wrong …

Turned out to be 20km and quite a trip up and down, in fact 560mH running up wasn’t what I could actually do, so I walked the steeper parts. Continue reading

Email this to someonePrint this pageShare on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInFlattr the author

TeX Live 2017 released

TeX Live 2017 has been released! CTAN mirrors are busy updating. Get out bottles of good wine, and enjoy a good long download 😉

Besides the huge amount of package updates due to the 2 month testing hiatus, I want to pick a few changes before copying the complete changelog entry:

Additional TEXMF trees

tlmgr got a new functionality to easily add and remove additional TEXMF trees to the search path. MikTeX had this features since long, and it was often requested. As it turned out, it is a rather trivial thing to achieve by some texmf.cnf lines. The rest is just front end in tlmgr. Here a few invocations (not very intelligent usage, though):

$ tlmgr conf auxtrees show
tlmgr: no auxiliary texmf trees defined.
$ tlmgr conf auxtrees add /projects/book-abc
$ tlmgr conf auxtrees
List of auxiliary texmf trees:
  /projects/book-abc
$ tlmgr conf auxtrees remove /projects/book-abc
$ tlmgr conf auxtrees show
tlmgr: no auxiliary texmf trees defined.

TeX Live Manager interactive shell

tlmgr also got an interactive shell now, that can also be used for scripting. Available commands are all the usual command line actions, plus a few more (see documentation). Again, here a simple session:

$ tlmgr shell
protocol 1
tlmgr> load local
OK
tlmgr> load remote
tlmgr: package repositories
	main = /home/norbert/public_html/tlnet (verified)
	koma = http://www.komascript.de/repository/texlive/2017 (verified)
OK
tlmgr> update --list
tlmgr: package repositories
	main = /home/norbert/public_html/tlnet (verified)
	koma = http://www.komascript.de/repository/texlive/2017 (verified)
tlmgr: saving backups to /home/norbert/tl/2017/tlpkg/backups
tlmgr: no updates available
OK
tlmgr> byebye
$

User versus System mode for updmap and fmtutil

I have reported on this during BachoTeX/TUG 2017, here are the slides, that the two central configuration programs updmap and fmtutil will change their operation mode slightly by disallowing invocations without mde specification. That is, one either needs to call updmap -sys (or updmap-sys, nothing changed here from previous years) or updmap -user (or updmap-user, new in TeX Live 2017). We hope by this and the accompanying web page of recommendations to help users not to shoot themselves to often by calling updmap without knowing the consequences.

The upcoming proceedings of the BachoTeX will also comtain an article fully documenting both updmap and fmtutil including the most recent changes.


These were only a few changes where I had my fingers in the development. For the full list, read on below.

Now get ready for partying, and also for the end of the peace, because daily package updates will restart in the next days.

Enjoy

Continue reading

Email this to someonePrint this pageShare on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInFlattr the author

剱岳:源次郎尾根

もう2週間前やっと剱岳の源次郎尾根を登ってきた。これまでだいたいすべての剱岳の尾根を登ったのに、源次郎尾根はまだだった。そして、今回普通の登山じゃなくて、ガイド仕事としてお客さんを連れて行った。とっても天気で恵まれて最高の3日間だった。

On top of the first peak of Genjiro Ridge

技術的にはそこまで難しくないこの尾根のいい点が一杯ある:景色もちろん、その上剱岳の山頂までの一番直接な尾根だ。とってもキレイ!

Short English summary: Climbing Geniro Ridge on Tsurugidake. Technically not too difficult, this ridge offers one of the best routes onto Tsurugidake. The views and the fact that one reaches directly to the summit, makes this ridge very popular. A GPS track (kml) is available at the end of the page.)

続ける

Email this to someonePrint this pageShare on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInFlattr the author

Debian/TeX Live 2017 is ready

TeX Live 2017 is expected to be released next week, and the Debian packages for it are already uploaded to the Debian servers. Time to prepare for release parties and stack up prosecco!

I have uploaded all the packages matching with the planned release of TeX Live 2017 to Debian/experimental, and most of them should be already available there. texlive-extra has to go through NEW processing, though.

There are too many changes and updates to mention since the last release, but a few things might be worth mentioning:

  • several packages have been merged, some are dropped (eg. texlive-htmlxml) and one new package (texlive-plain-generic) has been added
  • luatex got updated to 1.0.4, and is now considered stable
  • updmap and fmtutil now require either -sys or -user
  • tlmgr got a shell mode (interactive/scripting interface) and a new feature to add arbitrary TEXMF trees (conf auxtrees)

Other changes can be found in the svn repository.

Until the processing of the NEW queue is finished, the package are available at (binaries only for amd64, for other archs please use experimental):

deb http://www.preining.info/debian/ tl2017 main
deb-src http://www.preining.info/debian/ tl2017 main

The packages are signed with my usual Debian GPG key.

Enjoy, and let me know if there are any problems!

Email this to someonePrint this pageShare on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInFlattr the author

Gaisi Takeuti, 1926-2017

Two days ago one of the most influential logician of the 20th century has passed away, Gaisi Takeuti (竹内 外史). I had the pleasure to meet this excellent man, teacher, writer, thinker several times while he was the president of the Kurt Gödel Society.

I don’t want to recall his achievements in mathematical logic, in particular proof theory, because I am not worth to write about such a genius. I want to recall a few personal stories from my own experience. Continue reading

Email this to someonePrint this pageShare on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInFlattr the author

BachoTeX 2017

A week of typesetting, typography, bookbinding, bibliophily, not to forget long chats with good friends and loads of beer. That is BachoTeX, the best series of conferences I have ever been. This year BachoTeX was held for the 25th time, and was merged with the TUG Meeting for a firework of excellent presentations and long hours of brain storming, hacking, music making, dancing, and simply enjoying life!

Symphony of Green

And while it was a bit less relaxing for me than in the last years, mostly due to the presence of my little daughter who requested presence quite often, it is still the place to be during the Golden Week! Continue reading

Email this to someonePrint this pageShare on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInFlattr the author