JavaScript fucntions

Slice & Splice function frankenSplice(arr1, arr2, n) { var tmp = arr2.slice(); tmp.splice(n,0, arr1) return tmp.flat(); } frankenSplice([1, 2, 3], [4, 5, 6], 1);     Full information on JS can be obtained: Javascript.info

Java + tomcat setup

Install Java https://linuxize.com/post/how-to-install-tomcat-9-on-ubuntu-18-04/ https://www.hostinger.com/tutorials/how-to-install-tomcat-on-ubuntu/ https://tecadmin.net/install-oracle-java-8-ubuntu-via-ppa/ Tomcat, often called Apache Tomcat, is one of the most popular applications designed to execute a Java servlet and render web servers with Java page coding. It is an open source application released by Apache Software Foundation. It’s favored by many developers! That’s why in […]

Playing with HTTP Requests

Few of the ways to deal with HTTP requests I have to retrieve temperature from  http://www.rssweather.com/ nc -v rssweather.com 80 GET http://www.rssweather.com/wx/gb/london+city/wx.php HTTP/1.1 Other options … nc — arbitrary TCP and UDP connections and listens curl – transfer a url Wget – The non-interactive network downloader   Of course you […]

Java Object Initialisation

Algorith for creating objects: 1.Init static variables for base class. 2.Init static variables for inherited class. 3.Init nonstatic vars for base class. 4.Fire class contructor. 5.Init nonstatic vars for inherited class. 6.Fire constructor in inherited class  

Certbot

Certbot is a free, open source software tool for automatically using Let’s Encrypt certificates on manually-administrated websites to enable HTTPS. Need to set up for certbot and autorenewal. So if you set up a new site you can just run: certbot –nginx And it’ll let you automatically generate and deploy the cert and […]

Docker Machine – Create VM

Working with Docker-machine When working with containerized applications, important to be able to easily deploy them in the cloud, not only running them locally using Docker for Mac/Windows or from a Linux box locally. The tool to be able to create a remote VM easily and manage those containers is […]

VirtualBox – command line

Before you start up a VM In order to get the networking of your headless VM up and running, you have to install the VirtualBox extension pack. Here’s how. Download the extension pack that matches your VirtualBox release. Open the VirtualBox GUI. Click File -> Preferences. Navigate to where you […]

JavaScript HTTP Requests

In this guide, I’ll show you how to use the Fetch API (ES6+) to perform HTTP requests to an REST API’s REST API – jsonplaceholder  Rest API – Grepper Usefull tool for HTTP Testing is Postman   Here’s what we’ll address Dealing with JS’s asynchronous HTTP requests What is AJAX? […]

CSS Transitions Basics

Change property values smoothly, over a given duration   .animate-opacity{animation:opac 0.8s} @keyframes opac{from{opacity:0} to{opacity:1}} transition transition-delay transition-duration transition-property transition-timing-function     Example HTML <div>This is cool </div> CSS   div { background: yellow; padding: 5px 5px; transition: border 2s, transform 1s,margin 1s, width 1s; border-bottom: 1px solid #ff000000; } div:hover […]

CSS Website Fonts

Font Face Rules Good for using on computer , and also across the web. Custom fonts are defined within the CSS with  a rule:@font-face Font Format Types TrueType Fonts (TTF) TrueType is a font standard developed in the late 1980s, by Apple and Microsoft. TrueType is the most common font […]