jLuger.de - Blog

Owncloud in a container: container and namespaces

As docker became more and more popular I've started to get my hands on it. For that I've searched the web after documentation and examples. While on that I've came across the following presentation: Anatomy of a Container: Namespaces, cgroups & Some Filesystem Magic - LinuxCon. It introduced me to the concept of namesapces and how they are used to separate conatainers from each other and the host system.

Owncloud in a container

As I've mentioned in my last post I've got a new computer. It required a newer version of Ubuntu which broke my Owncloud installation. To be fair I've used a "very stable" version of Owncloud. I was already planing about updating to the latest edge version as I've remembered a story about my scanner I've told to my coworker a few days ago.

FreeBSDBackup Update 2017

In 2012 and 2014 I've blogged about my FreeBSD based backup system. Lucky me didn't need it until now. But this month I've got a new computer and took this as a chance of testing the full  restoring of all data. I've learned two lessons I've want to share here.

Video reencoding

All started when I've got a new toy: a GoPro Hero 5. So I went out and took a 37 minute video. It turned out to be 13GB splitted in multiple chunks of 4GB. That is a lot of memory especially when you do make serious backups. As I knew that the were encoded in H.264 and that H.265 should reduce the file size about 50 percent I've started to look for a way to reencode.

JavaFX: Printing TextView content

This post is about printing in JavaFX. To be more precise: About printing the contents of a TableView. While printing the screenshot of any node is quite easy I was struggling with the TableView and a google search told me that others have difficulties too. After some more search I found the reason on the OpenJFX wiki:

"Rendering of large tables etc is not best handled by rendering a TableView directly. A reporting package might be a better approach."


JavaFX: Text rendering in TableView

This post is about text rendering in JavaFXs TableView. The TableView uses TextCells that descend (indirectly) from Labeled. You may expect that this way it should support text rendering but unfortunately this is only true when you have basic requirements. As soon as you want fancy things, like displaying long lines of text completely, you are out of basic support.
Please note that all samples were created and testet with jdk1.8.0_102. I hope that later versions won't have this bugs and thus this post may become irrelevant.

Editable combobox with jqueryui

For one of my projects I needed an editable combobox in a web app. As I had already included the date picker from jqueryui I've searched there for it. There was no obvious solution but when going to autocomplete there was an example that looked and felt like the needed editable combobox. Unfortunately it turned out to be only a code sample and not a ready to use component. As the sample includes a lot of code I made this post to point the two important issues and to show my implementation.

The two import issues are:



Firefox error: No element found

Today I've got a strange error message in my JavaScript console in Firefox: No element found. It appeared while a GET that was done in the callback function of a POST and had the first line and first character of my script file as source.

Fun with Java EE, JavaScript and date

Recently I had some fun with dates while developing an app with a JavaEE Backend and a JavaScript Frontend. Here are my notes about it.

Ubuntu 16.04 and Owncloud

Today I've updated my ubuntu 15.10 to 16.04 and wanted to start my owncloud. It didn't start. The error was pretty obvious. There was no php5. To get it back working I've looked up my install instruction and replaced the version 5 packages with the one from version 7. That didn't help at all. Now you need more packages. The complete list:

The last three are new. I've found out about php-zip and php7.0-xml by installing a fresh copy of owncloud. The last one (php7.0-mbstring) is only needed for contacts.