jLuger.de - Blog

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.


Setting up owncloud and your android device to sync

This post is about syncing data between owncloud and your android device. With data I mean contacts, calendar and backing up pictures.

Creating your own CA and certificates to sign with

As I was taking actions to increase my privacy I found it wrong to use unencrypted connections. It is a proven fact now that everything that can be intercepted will be intercepted. I had already used self signed certificates and knew all the trouble you get with them. I expected things to get worse as I planned to set up some services on other computers in my home network. The solution for this is to be my own CA (Certificate Authority). This sounds difficult but I've found plenty tutorials explaining everything in detail. I've decided to start with https://jamielinux.com/docs/openssl-certificate-authority/index.html.

Owncloud in home directory

This is the first of three blog posts about moving data back from the cloud to my local network. With the rising of smartphones and tablets more and more people got the need to synchronize data between computers (yes, I see tablets and smartphones as computers). Even the tech-savvy user got troubles as the traditional ways of syncing didn't work with the new devices. Cloud providers where happy to get a chance for business and offered solutions. There is only one big problem. As FSFE says it There is no cloud, just other people's computers. Putting data on other peoples computer means to give other people access to your data. Here I describe my effort to keep some of my data in my own network and not to just switch the person to which I give them (as other articles about Google tend to do it). As a tool for this I've chosen owncloud.

Serve a video with golang

In my last two posts I've shown how to generate a mp4 video file. In this post I show some go code to serve the generated file via http. It basically boils down to a call of ServeContent in the http package.