Embedded Documents in MS Word

Recently I had trouble opening PDF documents embedded in Microsoft Word. I speculated about the following reasons for this problem:

  1. Adobe Acrobat not installed, I use MuPDF
  2. Embedded document simply not “really” embedded but just an icon

There is an easy solution. Microsoft Word 2007 documents are just zip-files. Just look at output of

7z l WordDocument.docx

The folder word/embeddings contains the embedded files, regardless of its type.

By the way, LibreOffice/OpenOffice files are also just zip-files.

Youtube 500 Internal Server Error

As noted in Youtube 500 Internal Server Error today I again noted an “500 Internal Server Error”. Normally you would not expect these kind of errors from Google. It says:

Sorry, something went wrong.

A team of highly trained monkeys has been dispatched to deal with this situation.

If you see them, send them this information as text (screenshots frighten them):

    AB38WEP9RIHTGdxNtBfImnlMom5s3lkgT0Pd9IPM4PX12fXVCTkn-N6Q
    9PEISpvD8J4mcARci_19UlNwXlHCYj6Btis5y0TVjGmYExWNr4lVuCVn
    ab9uvgiYv0d5rKU1Hyj6qud2g03K1V8IIFElKtFnfpQhCKQHAa9mNMrP
    EZolrhQAczv8wxZG8-p9IhjEoLHKJNCg3dCvx5lPYvuVzRSA9q9cg7iZ
    WOzDew1HKMN6zpImEWdfu_uwUUZ2wWmye4dQzCdEpeQEzX0Kk1_QBKH6
    H-rZ1uQd0GNfTIQgzmiQRrr68J9-dYiWpFV0brnBAlh-Cizd8idlu8u-
    mtGnk2QrelOPwD9QMD2abezyCx46NS7oDZrjaoOI1rFzAq-4Ho5svCM1
    x2xyqwDP_ySBeZQmL2x5TRd-NfX9IsUWzs5Mn9RydrcM5IfrPV4YJnP7
    Dbdi0gV9cIwhIX6IYb9AtjlubRUNra9FLlxieTJZen2saWrVa5BMmNgo
    zEvY5P-mtx8QOLBKe6VuTsMmeEUwnG8gC5pwK07GCPaYY4V319xzNEc-
    p7XSwEB4q6t06IWoSKsZohXuwBUCKtBa7LdtwVssF27x-UlyWkVIssPA
    zYz27wsDAUgbMz2N4T7dsVnSk3bmmKeKBKUXcxug-z4_6VQyiD5nnq8l
    yUDwIl_3bG9SlaPAt7uNYSXt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TjdfE
    lzo0WhRnfD1KmZUZteSPgP0ctykBdtjHghV62ufrQYx4PHXdwwvDwtvV
    6YgqsuVQ-_lbmgXKWPq0FKt5O_G1IIePVomIL6cExLc0_AApAx-M9j-d
    Hvrbcdl48kfH9NPc4VBREib2D0xrYLDizl7QEV8h7w

Converting WordPress Export File to Hugo

I have written on the Hugo static site generator here. Now I have written a migration program in the Go programming language to convert from WordPress export format to Hugo format. This program wp2hugo.go is in GitHub. It can be freely downloaded and does not need any further dependencies, except, of course, Go. The Go software is in Arch Linux or Ubuntu.

To convert a blog from WordPress you have to create an export file.

If the blog is not too voluminous one downloads a single XML-file which contains all posts and pages. If the blog in question is larger then you will receive an e-mail from WordPress.com that you can download a ZIP which contains two or more XML files in them. If you have such a ZIP-file, then unpack it, for example by using p7zip. Then run

go run wp2hugo.go XML1 XML2 ...

Continue reading

Using Odroid as IP Router

I purchased an Odroid-XU4 for ca. 80 EUR including power-supply and case from Pollin. The original manufacturer is hardkernel. I intended to use this small ARM computer as a router and firewall. In the past I had used routers from multiple vendors, e.g., Linksys/Cisco, TP-Link, AVM/FritzBox, Netgear, and so on. There is a rule of thumb with all these devices: Usually you have to reboot them once or twice a month, otherwise they misbehave somehow. At least three of these device went completely catatonic. Now I had enough of this, I also wanted a command line interface to the router, ideally a real Linux system with bash, cron, gcc, etc. Although I already own an Intel NUC and I am very happy with this computer, an Intel NUC is a little bit too expensive to be used as just a router.

I recommend to additionally purchase a RTC backup battery. The Odroid has a realtime clock, but looses all date and time information once powered off. This way the log of the computer is garbled.

Continue reading

Exceeding 10.000 km with E-Bike

As described in Commuting to Work with an E-Bike I drive to my work place using an e-bike. As I found out that using a bike is a viable alternative to public transport I bought a better e-bike after about a year. I bought my first e-bike in March 2015, my second in December 2015, and used it since January 2016. With this second e-bike I now exceeded more than 10.000 km within a year, as shown in below photographs from the odometer. In total I have now travelled about 20.000 km with my two bikes within two years, i.e., I cycled half the earth perimeter.

Continue reading