Unleashing the Power of Hugo: Integrating Config Parameters with JavaScript

The Challenge: Using a config.yml Parameter in a JavaScript File Lately, I found myself in a predicament. I wanted to use a config.yml parameter in a JavaScript file, and apparently, it’s not that easy since most .js files are static as far as Hugo is concerned. Why would you like to do that? Well, let’s say you have a separate JavaScript file for Google Analytics that needs to be loaded at page start/end, but you don’t want to hardcode the Google Analytics ID....

April 20, 2023 · 2 min · Alex Popescu

How to find Proclib concatenation in z/OS

The easy way of Proclib concatenation in z/OS is to use the command $dproclib in master console (or in SDSF prefixed with /). The response is something like this for ADCD: RESPONSE=S0W1 $HASP319 PROCLIB(PROC00) $HASP319 PROCLIB(PROC00) STATIC LIBRARY, $HASP319 DD(1)=(DSNAME=USER.Z24C.PROCLIB, $HASP319 VOLSER=C4CFG1,UNIT=SYSALLDA), $HASP319 DD(2)=(DSNAME=FEU.Z24C.PROCLIB, $HASP319 VOLSER=C4CFG1,UNIT=SYSALLDA), $HASP319 DD(3)=(DSNAME=ADCD.Z24C.PROCLIB, $HASP319 VOLSER=C4SYS1,UNIT=SYSALLDA), $HASP319 DD(4)=(DSNAME=SYS1.PROCLIB, $HASP319 VOLSER=C4RES1,UNIT=SYSALLDA) Documentation and links Display a PROCLIB concatenation - https://www.ibm.com/docs/en/zos/2.3.0?topic=section-d-proclibxxxxxxxx-display-proclib-concatenation

April 19, 2023 · 1 min · Alex Popescu

Simple Rest API with GO and gin

This is the first part of a series of blog posts about embedding ReactJS front-end app with Go REST API back-end. Let’s start first by creating a REST API in GO and Gin - a web framework for APIs written in GO. Requirements To get started, you need to install Go and Gin on your machine. You can follow the official instructions for installing Go here: https://golang.org/doc/install. REST API Implementation First, let’s initialize the application module with:...

April 12, 2023 · 4 min · Alex Popescu

How to use Java 17 on IBM Cloud Code Engine

In the previous articles here I used IBM Cloud Code Engine do deploy a Quarkus REST web service, but on Java 11. Now it’s the time to use Java 17. First, let’s update pom.xml to Java 17: <maven.compiler.source>17</maven.compiler.source> <maven.compiler.target>17</maven.compiler.target> Then create a new file in the root of the project with the name .buildenv and set the content: BP_JVM_VERSION=17 There are more variables to be set in the documentation. Then, commit, push the change to GIT, and rebuild the image and deploy it to IBM Cloud....

February 7, 2023 · 1 min · Alex Popescu

How to investigate Code Engine problems

Let’s say that the build proccess is successfull, but the deploy is not. As a result, the IBM Cloud portal is not very helpfull. The error is Revision failed You may wonder why ? Well, the IBM Cloud portal is not all that helpful in this regard. In order to investigate, you need to install and configure IBM Cloud console - or use the one from IBM Cloud portal. First, let’s see if we can get any more informations about our app:...

January 12, 2023 · 4 min · Alex Popescu