Taekwondo at the Beach in Costa Rica

Lynn took some great pictures. While I was practicing at the beach a few Korean people showed up, watched and took pictures. One guy even spent some time explaining Hangul (Korean Alphabet) to me.

Previous Image
Next Image

info heading

info content

Indoor Herb Garden

I was looking for an indoor herb garden solution that does not take up to much space. And I also wanted the option to move it to the garden in spring or summer. I checked out various options, for example this Vertical Garden. It looks fantastic, but it has a high price point and a large footprint.

So I ended up buying with this stackable solution. It’s affordable and made in the USA. There are two color options. Hunter green is a bit prettier, but the stone colored one allows me to label what I planted on the pot with a dry erase pen.

I added a herb seed kit and a seed starter.

Everything arrived faster than expected so after I picked up my daughter from daycare we went to home depot to get some herb and vegetable soil. We were lucky and got a great deal ($2.30 instead of $12 a pack) so we got a few since we plan to plant mint in a few days, too. Fall/Winter is a good time to purchase these things.

So we were good to go…

Great little helper
Planting the seeds
And now: Waiting!

USA – A country in burgers

Over the last 2+ years I have been traveling a lot through the United States and Canada. During that time I tried a lot of burger places. It took me a while to go through my photos, to sort and annotate them. Here are my top three locations. A lot of pictures and impressions are featured in the gallery below. I will continuously update this post, add new pictures and maybe expand the list of top locations.

#3 Paradise Pup, Des Plaines, IL [Facebook | Yelp]

I am not the first reviewer to rate this as a top location for burgers. Every time we landed at O’Hare International Airport we made sure to have cash since there are no cards accepted here.

#2 Octave Grill, Chesterton, IN [ Website | Yelp]

This place features craft beers on tap and one of the best burgers I have ever had. Loved the goat cheese on it. I can’t wait until I can come back. The only downside is that this place is not open every day during lunch hours. However, their sweet potato tots with the honey mustard sauce are unmatched.

#1 The Thurman Cafe, Columbus OH [Website | Yelp ]

Seriously the best burgers in North America. I went there several times and every burger I tried was fantastic.

Photo Gallery

Previous Image
Next Image

info heading

info content

Bierstadt Trail – Rocky Mountain National Park

Yesterday we hiked the Bierstadt Trail at the Rocky Mountain National Park. It is an about 5 km long loop trail with an elevation gain of 200 meters.

The elevation starts right and at the beginning and is there-and-back. Once you climbed up the 200 meters there is an even loop trail on the plateau around Bierstadt lake.

Here’s a screenshot from AllTrails.

You’ll find the most amazing view.

Dragon Brew: Unboxing

I just received my Kickstarter copy of Dragon Brew – Make Beer, Not War from August Games.

Here’s how it looks:

Previous Image
Next Image

info heading

info content


Here’s a video by Daniel George that shows how to play the game:

Making clang default compiler in Ubuntu

I recently upgraded my Ubuntu 16.04 LTS to a pre-release of Ubuntu 17.10 since it comes with recent compilers. The clang compilers currently create faster binaries than gcc does. Also I wanted to use latest C++ features since I started playing around with libint (electronic integrals library) again.

With a new compiler, I want to be able to easily switch back. Here’s what worked for me:


sudo update-alternatives --install /usr/bin/cc cc /usr/bin/clang-5.0 100
sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-5.0 100

C#: Finding consecutive list items violating an upper or lower limit

Here’s some code I have written today to find segments of a list that violate upper or lower limits. The minimum size is given as a parameter.

I know there are more elegant ways to do this, but the scripting language that I used features only a subset of C#, that is why I had to keep it simple, e.g. without Predicate.

var sequence = [0.25,0.5,0.5,0.5,0.7,0.8,0.7,0.9,0.5,0.5,0.8,0.8,0.5,0.5,0.65,0.65,0.65,0.65,0.65,0.65,0.65];
double lowerLimit = 0.1;
double upperLimit = 0.6;
int minWindowLength = 3;

// return type is a list of lists
var windows = [[0.0]];
windows.Clear();

int consec = 0;
int index = 0;

while (index < sequence.Count){

// store segments here
var window = new System.Collections.Generic.List<double>();

while ((index < sequence.Count) && (sequence[index] > upperLimit || sequence[index] < lowerLimit)) {
window.Add(sequence[index]);
consec = consec + 1;
index = index +1;
}

if (consec > minWindowLength) {
windows.Add(window);
}

window = new System.Collections.Generic.List<double>();
consec = 0;

index = index+1;
}

return windows;

Converting Microsoft Word Files (doc, docx) to reStructuredText (rst)

This article describes how to convert Microsoft Word documents to reStructuredText. Everything should be done within a temporary directory with simplified filenames. So let’s assume you want to convert ‘am.docx’ to reStructuredText. The Word document can contain images.
You need:
A few simple steps:
  1. On the command line (either the old cmd or the PowerShell) go to the temporary directory that contains the Word document (e.g. C:\temp):
    cd c:\temp
  2. Convert ‘am.docx’ to ‘am.rst’ using pandoc
    pandoc.exe -f docx am.docx -t rst -o am.rst
  3. Extract the media files (e.g. images) from the Word document
    unzip .\am.docx

    and move it to current working directory

    mv .\word\media .
  4. All image files should be in the same file format, so convert eml and gif files to png.
    cd media

    to jump into the directory

    dir (to list all files)

    a) Either by hand:

    convert .\image2.gif .\image2.png
    convert .\image1.emf .\image1.png

    b) Or automatically by using mogrify (also part of ImageMagick):

    mogrify.exe -format png *.emf
    mogrify.exe -format png *.gif

    And clean up:

  5. rm *.gif
    rm *.emf
  6. Do not forget to search and replace .emf and .gif with .png in the .rst file with the editor of your choice (gvim or notepad++)
  7. Check the build by creating a quick Sphinx:
    run sphinx-quickstart (and follow the instructions)
    copy the file over the main doc in the source dir
    copy the media folder to source
    run “make.bat html” to create the a website and check the result.

Boosting OwnCloud’s Performance with APCU on Ubuntu with Plesk

Memcaching boosts the performance of OwnCloud dramatically. Read about this here. My server is running Ubuntu 12.04 LTS. PHP 5.6 and 7.0 is handled by Plesk. In my experience 5.6 is the most stable running with OwnCloud. APCU is supported by OwnCloud but was not present as a module in PHP (Only on the Sytem providing PHP 5.4). So here’s how you install it.

This is a follow up to my previous post on installing custom modules for PHP handled by Plesk. So I assume that all required software to build the modules is installed.

No ACPU module available
No ACPU module available

For PHP 7.0 simply run:

$ /opt/plesk/php/7.0/bin/pecl install apcu

PHP 5.6 is a bit more stable for running OwnCloud. However you will get an error that you need at least PHP 7.0 for installing ACPU. This is true for the current release (>5.0). So simply install the stable 4.x release:

$ /opt/plesk/php/5.6/bin/pecl install apcu-4.0.10

Register the module with PHP:

For PHP 7.0.x:

$ echo "extension=apcu.so" > /opt/plesk/php/7.0/etc/php.d/apcu.ini

For PHP 5.6.x:

$ echo "extension=apcu.so" > /opt/plesk/php/5.6/etc/php.d/apcu.ini

Reread the config:

$ plesk bin php_handler --reread
ACPU module available
ACPU module available

Now the only thing left is to add

'memcache.local' => '\OC\Memcache\APCu',

to your configuration file of OwnCloud (e.g. /var/www/owncloud/config/config.php).