Docker Swarm

Initialize the swarm docker swarm init –listen-addr 195.122.17.92:3000 –advertise-addr 10.10.0.6 We need the –advertise-addr because there are two IP addresses assigned to the same interface. Create a service docker service create –name my-service –publish 3000:3000 my-image:1.0.0 Set the service to be hosted on two nodes docker service update –replicas 2 my-service

Typescript Web Browser Modules

I started with a question: how can I write Typescript modules to run in a Web browser without using Webpack or some other bundler? I’ve used TypeScript for programming in Nodejs, and for writing user interfaces. These interface run in Web browsers and on mobile devices (mostly using React and React Native). When targeting the […]

.NET Core REST API Notes

In the realm of enterprise software, two programming languages have dominated: C# (c sharp) and Java. Java has a runtime environment – which must be installed on computers that want to run Java code – called the JVM, and likewise C# has a runtime environment called .NET. I have a lot of experience with Java/JVM, […]

Run Maven Project from CLI

This is just a quick not on how to run a maven project from the CLI – command line interface. cd into the root directory of the project. Run mvn compile. Then, to execute a class with a main method (usually the Application class) execute the following Maven command: mvn exec:java -Dexec.mainClass=[your class here] For […]

Ubuntu System Services

This post about systemd has been published from a draft, so it’s not been proofed for publication. I find it useful, so I would like it readily available on-line. If you find anything wrong with it, please Ubuntu, like many GNU/Linux distributions, uses systemd. systemd is a system used by the OS tor manage process, […]

Maven: Setting Compiler Version

I recently started a new JavaFX project. I decided to use Maven because the tool is great for building Java projects in a standard way that conforms with best practices. Unfortunately, I’m not the most well versed in the tool. I’ve used it a few times, and “it just worked”. This evening I got the […]