What is debugging?
Debugging code is done in order to locate and fix bugs in it. This is an important step towards producing bug free code which in turn creates reliable software.
So now I will explain how to debug tests in IntelliJ IDEA IDE for a maven project in simple steps.
What is a Cron Job?
Cron is a Linux utility where you can setup a task in your machine to run automatically, if required in a repetitive manner at a specific time and date.
Such a task that you schedule is called a Cron Job.
If you happen to be stuck behind a corporate firewall with only HTTP proxies for external access, you might still be able to SSH out through them using the built-in
nc on *nix systems.
This guide will show you how to install Outline Server on an Ubuntu 16.04/18.04 Server, use Outline Manager for Windows and connect to your Outline Server on Windows and Android.
Install Outline Manager
Outline Manager supports Windows, macOS and Linux.
When pushing to a non-default branch, you need to specify the source ref and the target ref:
git push origin branch1:branch2
git push <remote> <branch with new changes>:<branch you are pushing to>
In this post I show how you can tune your Spring Boot application’s logging output – such that it has even more information when you need to troubleshoot. The method is actually so generic that you can apply it to other types of Java applications as well – for example Java EE applications.
Deluge is a free, open-source and lightweight BitTorrent client, available for Linux, FreeBSD, Mac OS X and Windows. It has a rich collection of plugins that you can install to extend its functionality.
Install Deluge BitTorrent on Ubuntu Server
You can install Deluge BitTorrent daemon on a server and manage the program via a Web browser. Using a server to download torrrent is very fast. Today’s server typically has 100Mbit download and upload speed.
If you have ever needed to quickly decode or encode base64, Linux has a command line utility called base64 that works great. I’ll show you how it works!
To encode text to base64, use the following syntax:
$ echo -n 'codediary.net rocks' | base64
To decode, use base64 -d. To decode base64, use a syntax like the following:
$ echo -n Y29kZWRpYXJ5Lm5ldCByb2Nrcw== | base64 -d
Note: if on OS X, use capital D:
echo -nY29kZWRpYXJ5Lm5ldCByb2Nrcw== | base64 -D
Databases are all about saving data. With DBMS and RDBMS, the entire data became relational and all the records became related to each other as in the real world. So came into existence the concepts of primary keys, foreign keys, foreign key constraints and whole bunch of other terms like composite keys, referential integrity, indexes and what not.
Repacking an unpacked JAR is a little frustrating because of the folder structure
When unpacking with:
jar xvf JAR_NAME.jar
you get a
To repack the JAR:
remove old jar
get inside the folder
pack the jar referencing the parent folder
jar cf ../JAR_NAME.jar *
and you will end up with the JAR_NAME.jar in the parent folder, where the original was unpacked from, without the first folder level you would get if you had packed the folder itself.