Embed PERL in Kotlin or call PERL from Kotlin in Windows using MSYS2

Submitted by Dickens A S on Thu, 07/15/2021 - 07:01

This article demonstrates how to call PERL from Kotlin using C APIs

PERL is very old platform. But it is still being used in libraries like GIT and firewall and admin software.

If the developer knows how to invoke a PERL function then from a GUI based software the developer can invoke the function.

Below code explains how to do it.

Kotlin Code

Connect SQLite from gnu COBOL in Windows

Submitted by Dickens A S on Mon, 07/12/2021 - 08:37

This article demonstrates how connect SQLite3 from COBOL using MSYS2 in WIndows

get sqlite3.c from the sqlite amalagation zip can be found in sqlite.org download.html

and put that file in the same place where your cobol code is compiled

"test.db" is pre created with DBeaver plugin in eclipse

Install sqlite3 in MSYS2 using

$ pacman -S libsqlite libsqlite-devel mingw-w64-x86_64-sqlite3

Compile the C code

Run COBOL / gnuCOBOL using MSYS2 in Windows

Submitted by Dickens A S on Mon, 07/12/2021 - 03:55
Run COBOL in windows

Why COBOL in 2021?

The reason is, many migration still happening from mainframe COBOL to Java or .NET

If the developer knows how test the COBOL in his local machine, then it benefits the migration to speed up

This article demonstrates the Cygwin dependencies to compile gnuCOBOL from source code

Mainframe is going through another refresh cycle to make mainframe available in Cloud based IDE like Eclipse CHE

It is important to learn to COBOL

What is this article?

Cucumber text copy paste editor automation

Submitted by Dickens A S on Thu, 10/08/2020 - 18:58

Kick start notepad or text editor automation in cucumber

You need to keep a notepad or any other text editor with some text and keep you cursor any one line

The automation will press the below sequence of keys to do a entire line copy paste 

  1. HOME
  2. SHIFT + END
  3. CTRL + C
  4. END
  5. ENTER
  6. CTRL + V

Source Code

End Of Article

Kickstart Kotlin Open JavaFX 14 Minecraft Game like UI

Submitted by Dickens A S on Sat, 09/19/2020 - 10:53

Easily create Kotlin based JavaFX Minecraft game using boilerplate Gradle DSL

Below code explains how to write grid pane to create many small size buttons and keep then close without padding.

This is allows the developer to assume games like minecraft, terraria etc.

gridPane.add is the function allows the buttons needs to added.

Kotlin Code

Kickstart Kotlin Open JavaFX 14

Submitted by Dickens A S on Fri, 09/18/2020 - 17:14

Easily create Kotlin based JavaFX using boilerplate Gradle DSL

A Simple JavaFX code without installed JavaFX can be done.

In gradle the library marked with a name openjfx(<library>)

openjfx("org.openjfx:javafx-base:14:${platform}")

This openjfx can be used in Copy step as below

from(openjfx)

Kotlin Code