How to parse Javascript-generated tables in a headless R server?

05.10.2014
by Esa Turtiainen
tags: R Javascript HTML

Some sources where I want to read information easily using R have turned into Javascript tables. That means that the data what I am looking for is not available easily in the HTML source any more.

The old trick:

t = readHTMLTable("http://www.epexspot.com/en/market-data")
DE = t[[6 ...
lisää…

Android "Insufficient storage available"

16.03.2014
by Esa Turtiainen
tags: Android cyanogenmod

I am using CyanogenMod 10.2. (Android 4.3.1) in my Galaxy S3. Now a dozen of applications fail to update. They try again and again but the result is always "Insufficient storage available".

Some of the problematic applications were major, like Google Chrome, Netflix and Lync.

It starts ...

lisää…

Modem manager disturbs adb

13.08.2013
by Esa Turtiainen
tags: Android

I updated an old Galaxy S (the old original i9000) to CyanogenMod 10.1 (Android 4.2.2) which, by the way, works excellently in this old smartphone.

However, when uploading the update file cm-.zip with adb push, I always got an error:

adb protocol fault (no status)

When ...

lisää…

s3cmd and wrong MIME types

23.07.2013
by Esa Turtiainen
tags: S3 MIME

I uploaded a full HTML site to S3 using s3cmd and wondered why CSS did not load at all and even though most HTML files worked, some did not.

It turned out that the MIME types of the files were wrong.

MIME type is a string that tells what type ...

lisää…

Dropbox backup of a headless server

12.07.2013
by Esa Turtiainen
tags: Dropbox Linux

It is possible to use Dropbox as ~/Dropbox in a headless Linux server for backups. However, it is not possible to see all Dropbox files normally but prevent them to be downloaded. Sooner or later, the unattended Dropbox fills all the local disk of a small server.

I have a ...

lisää…