Does the Jersey Client Close the Connection when there is an Exception

Refer: https://stackoverflow.com/questions/25674220/does-the-jersey-client-close-the-connection-on-exception

No. Neither does Jersey call client.close() in case of an exception nor does the JerseyClient implement AutoCloseable.

You can easily test this. A client throws a IllegalStateException if you invoke a method after closing:

Client client = ClientBuilder.newClient(); client.close(); client.target("http://stackoverflow.com").request().get(); // IllegalStateException

But you can invoke a method after catching an exception:

Client client = ClientBuilder.newClient();
try {
    client.target("http://foo.bar").request().get(); // java.net.ConnectException: Operation timed out
} catch (Exception ex) {
    client.target("http://stackoverflow.com").request().get(); // works
}

So closing is your job.

Update: JAX-RS 2.1 will use AutoClosables.

Akamai Book2 Required Fix

From: Girish Keshav <gkeshav@akamai.com>
Date: Wednesday, March 21, 2018 at 1:23 AM
To: "Van, Johnna (HA Group)" <JVan@HollandAmericaGroup.com>
Subject: Re: eCommerce issue

Book2.hollandamerica.com  origin does not likes/honors requests from www.hollandamerica.com but likes from book2.hollandamerica.com and beta.hollandamerica.com

So all I did was to forward the request to book2.hollandameirca.com and modify the host from www.hollandamerica.com to book2.holland America.com

So in short

Instead of receiving https://www.hollandamerica.com/cruise-ecommerce/brand/HAL/v1/cruise/O873/price/payment

It receives

https://book2.hollandamerica.com/cruise-ecommerce/brand/HAL/v1/cruise/O873/price/payment

Linux Lite turn off Num Lock for Vostro 1520

Linux Lite kept turning on Num Lock and making logon confusing, because numbers were accidentally being used.

Refer: https://www.linuxliteos.com/forums/installing-linux-lite/don%27t-want-numlock-enabled-on-login-screen/

$ nano /etc/lightdm/lightdm.conf

Change this line to off:
greeter-setup-script=/usr/bin/numlockx on

How To Install New Fonts In Ubuntu 14.04 and 16.04

Refer: https://itsfoss.com/install-fonts-ubuntu-1404-1410/

In Ubuntu Lite 3.0 - I installed Font-Manager but it might not be necessary but I opened the fonts after copying them into ~/.fonts

Ubuntu does come with a bunch of fonts installed by default in it. But at times you might not be satisfied with the available lots of fonts. So, what you can do is to install additional fonts in Ubuntu 14.04 and Ubuntu 16.04, or any other Linux system such as Linux Mint.

Step 1: Get fonts

First and foremost, download your choice of fonts. Now you might be thinking from where can you get new fonts. Don’t worry, a simple Google search will provide you with several websites that have new fonts available for free. You can start with fonts at Lost Type. Fonts Squirrel is also a good place to download fonts.

Step 2: Install new fonts in Ubuntu

The downloaded fonts might be in a zipped file. Extract it. Most of the fonts are either in TTF (TrueType Fonts) or in OTF (OpenType Fonts) format. Whichever it may be, just double click on the font file. It will open it in Font Viewer. In here, you can see the option to install the font in top right corner:

Install New fonts in Ubuntu 14.04Save

You won’t really see anything being installed as you see when installing a software. Couple of seconds later, you’ll see the status has been changed to Installed. No prizes for guessing that the font has been now installed.

Installing additional fonts in Ubuntu LinuxSave

Once installed, you can see the newly installed fonts in any application that uses fonts such as GIMP, Pinta etc.

Step 2: Install several fonts at once in Linux

No, it is not typo. This is still step 2 but just an alternative. The method we saw above to install fonts in Ubuntu is just fine. But there is a little issue with it. What happens when you have like 20 new fonts to install. Installing all these fonts, one by one, by double clicking on them is cumbersome and inconvenient. Don’t you think the same?

To install several fonts at once in Ubuntu, all you need to do is to create .fonts directory, if it doesn’t exist already, in your Home directory. And extract or copy paste all those TTF or OTF files in this directory.

Go to your Home directory in File manager. Press Ctrl+H to show hidden files in Ubuntu. Right click to make a new folder and name it .fonts. That dot at the beginning is important. In Linux, if you put dot ahead of the file name, it hides the file from normal view.

Alternative:

Alternatively, you can install Font Manager application and manage fonts in GUI. To install Font Manager in Ubuntu, open a terminal and use the command below:

sudo apt-get install font-manager
Open the Font Manager from Unity Dash. You can see installed fonts and option to install new fonts, remove existing fonts etc here.

font manager in Ubuntu 14.04

To remove Font Manager, use the command below:

sudo apt-get remove font-manager
I hope this quick helped you to install fonts in Ubuntu and other Linux systems. Do let me know if you have questions or suggestions.

ZZU City Codes in POLAR

From: "Harris, Tyrone (HA Group)"
Subject: Gateway codes
Date: January 22, 2018 at 3:15:47 PM PST

ZZU is still a valid code for Polar. It is a code that was made up by the business to reflect US booking online without conflicting with any regional promotions. Canada is ZZC

DAIR is the Polar command to see the air codes built in Polar.

Git Cert Error

Use the following to accept a self-signed certificate:

$ git config --global http.sslVerify false

Refer: https://confluence.atlassian.com/fishkb/unable-to-clone-git-repository-due-to-self-signed-certificate-376838977.html