Test: node"" TechScreen Revised

File got corrupted on Fileserver, Permanent way to avoid this issue

In my network I have a Fileserver with 2x4 TB disc capacity. I run debian on it. The initial configuration was to put the two HDDs on Software RAID 1. This setup worked perfectly fine for about 3.5 years. It worked until I needed a large zip file containing a game. A friend was at my home and we wanted to play this game. I allready had the file on my computer, he copied it from the Server. When he wanted to unzip it, WinRar throw some errors. He did not have any write permissions, so it was not possible that he or I had modify the file by mistake.

File got corrupted on Fileserver, Permanent way to avoid this issue

In my network I have a Fileserver with 2x4 TB disc capacity. I run debian on it. The initial configuration was to put the two HDDs on Software RAID 1. This setup worked perfectly fine for about 3.5 years. It worked until I needed a large zip file containing a game. A friend was at my home and we wanted to play this game. I allready had the file on my computer, he copied it from the Server. When he wanted to unzip it, WinRar throw some errors. He did not have any write permissions, so it was not possible that he or I had modify the file by mistake.

Do NOT forget to delete your web.xml and applicationContext.xml

Creating a war file in Spring Boot is not difficult.
It already supports by default 2 plugins for traditional deployment:
1.spring-boot-gradle-plugin
2.spring-boot-maven-plugin
The first step for the migration is to provide a SpringBootServletInitializer subclass and override its configure method. All of that is done in your @SpringBootApplication class.

The Second step is to set up you build file e.g. pom.xml, build.gradle, with the correct extension for the war file:
Maven: war
Gradle: apply plugin: 'war'

Migrate from Spring MVC Restful Web Service to Spring Boot

Every single day technologies are changing and new frameworks are coming making developers lives easier. Migrating project framework is not easy and sometimes it does not depend just on the developers decision, but also teams decision or even maybe interdepartmental decisions. Spring MVC is a complete HTTP oriented MVC framework managed by the Spring Framework and based in Servlets. The most popular elements in it are classes annotated with @Controller, where you implement methods you can access using different HTTP requests.

Using Easy Thumbnails

Easy Thumbnails is a freeware software tool. The installation and usage are very simple. The user just needs to pick the pictures and set a few simple parameters, such as size, brightness, contrast or resizing algorithm. He can also set a new naming convetion for the newly created files. The tool is very fast and is perfect not only for webdevelopers but for anybody who wants to shrink a higher number of pictures, without having to open them separately or uploading them to third party website.

Creating a lot of thumbnails

It happens often that on the homescreen there are many images representing the content of the subpages. The images can not be the same as the ones in the subpages, since the homepage would take too long to load, especially for users with poor internet connection. Therefore for every single image, a thumbnail must be created. When wanting to create a thumbnail, the easiest possiblity is to open the image in a graphics editor and change the size manually. Nevertheless, when creating tens or hundred of thumbnails, this is not a solution.

Using LightShot tool

LightShot tool is a screen capture tool which makes this whole process much easier. It can run on different systems and is very efficient. The downloading and installation of the tool takes just a few seconds. The user doesn`t even know that the tool is running, it is started automatically on startup. When pressing prtsc key, the user is asked to choose the screenshot area and can even draw or write in the given area. Afterwards, he just presses an upload button and the screenshot is automatically uploaded and url of the picture is generated.

Sending printscreen images

If I want to describe how to do something on a website or just point out something interesting there, I am always using printscreen images. Sometimes one image can save a lot of words and it is more descriptive and understandable. However, when using the default prtsc function and some graphic editor, the process takes too long and the images are saved in my computer, even when after sending them, I do not need them anymore. This whole process can be very annoying when sending many screenshots everyday.

Opening phpmyadmin in an incognito window

If phpmyadmin is open in a new incognito window, the user has to login again. Then he can kill the running processes in Status tab under Processes (see http://prntscr.com/df4ydl). Unless the user has the proper rights, he can only kill his own processes. After killing the process, the user can use the incognito window or the window he was using before to run another query.

Cancelling query in mysql phpmyadmin

When running query in phpmyadmin, the user is not informed about the progress of the query. When dealing with tables with milions of items, even very simple select can take tens of minutes. After submitting the query, the process is running and it can not be killed. Even when I close the browser window or try to open phpmyadmin in a new window, the process is still on and I can not find a way to kill it.

Pages

Subscribe to TechScreen Revised RSS