Categories
Scala

Extract text between two strings with Scala regex

Scala as a very light syntax compared to Java. To extract the text between two strings tag1 and tag2 from the string content, we can use the Scala regex syntax. We only need 2 lines of code: You can print extracted in a main: When you execute the code above, you will get the following […]

Categories
Java

Deploy a Java Tomcat war on AWS with SSL in 5 minutes

In this tutorial we will deploy a Java Tomcat war to AWS Elastic Beanstalk. Also we will plug it to our own domain, with full SSL support. Finally we will add HTTP to HTTPS redirection, so that no unsecure connection to our app can happen. If you want to deploy a Python Django webapp on […]

Categories
Python

Merge Word documents automatically with Python

Merging Docx files is complicated Docx is a complicated document format made of multiple XML files zipped together. Concatenating Word documents that only contain text is straightforward and can directly be done using Word. However if your Word documents contain more complicated objects like pictures or tables then you need to add their style/content to the internal structure of […]