How to open the default mail client in Java

Open standard mail in JavaIn the following post there is once again a small Java code snippet, by means of which the standard mail program can be called/opened.
In order to open the standard mail application in almost any operating system, a URI with the mailto protocol is suitable. Therefore, the following Java code must be able to compose the mailto URI format.
The second difficulty is to resolve this URI (or in simple words – to execute this URI). Unfortunately, this can not be executed directly using the Runtime.getRuntime().exec()-command, but must be started as a parameter via a system-specific program. Our Java-Snippet must therefore be able to distinguish between the operating systems.
Open standard mail in Java
The sample code can be run as it is and opens the default mail program with a […]

How to detect operating system in Java

Detect operating system in javaIn the following article, there is a short Java snippet that can be used to read the operating system of the computer running the Java program.
In addition, it is the first Java snippet at all here in the blog. Although I have been writing a few lines of Java code again and again for a couple of years, I really couldn’t befriend myself (especially with regard to my C # passion) with Java so far yet. But since I have to deal more and more with Java on the job, however, this will soon be reflected in the blog. But let’s come to the Snippet now…
Read operating system in Java
In order to identify the computer’s operating system in Java, the getProperty-method of the system-class is suitable. […]

Windows 10: Fix wrong time

Fix-Win-10-wrong-time-problemFor some time, I was plagued by a small, but not less annoying, issue on Windows 10. The system time drifted intermittently one hour off. A manual changeover of the time brought success only in the short term. After a while the clock went wrong again.
The correct time zone and summer/winter time (daylight saving time) were selected in the Windows time and date settings and the automatic synchronization of the time was activated. Nevertheless the Windows clock did what it wants, but not what it was supposed to do.
Finally I found the solution to the problem inside the Windows services menu. The automatic time synchronization service was disabled. Now, after I activated the Windows Time service, the system time is correct again. You can activate the service as follows.

Press Win-Taste + R key
Enter services.msc and click ok, to […]

Windows: How to increase the maximum screen resolution

Recently, I bought a netbook for my workshop to control a laser engraver (the DK-8 from Neje). Unfortunately, I had overlooked a small detail. The display of the netbook has only a native resolution of 1,024 x 600 pixels. However, the window of the control software requires at least 800 pixels in height, so that some of the software is not visible and thus can not be operated.
But remedy could be created by a small adjustment to the operating system. (In my case Windows 7 Starter.) By changing a key in the registry, the resolution can be increased beyond the native resolution. That’s how it works…
Increase maximum resolution in Windows
In order to support higher resolutions than the display’s native resolution, a registry key must be adjusted. Therefore open the Registry. (Either via the search in the start menu with the term “regedit” […]

WordPress self-hosting – what has to be considered?

 
self-hosted-wordpressI’ve been working with WordPress for over 9 years now and have already created, set-up and driven some blogs at this time. My own blogs all run on their own vServer. But if a friend or one of my family circle says “I want to start a blog, can you help me with the installation?”, then the blog usually ends up on a webspace.
But which webspace package is suitable? What are the installation requirements for WordPress and can not you simply take a free provider? I would like to clarify these and other questions.
WordPress self-hosting or ready to take-off solution?
If I am asked what I would recommend to a beginner – host the blog himself or use a complete solution like wordpress.com – then my answer is always always hosting itself. (If you don’t […]