What is semantic versioning?

Have you seen how a project like Angular is versioned? You have maybe noticed when a brand-new release of that framework is created they release  it with three numbers, e. g. Angular 5.0.0, now the question is: what those three digits mean? The answer is simple: they are using a system called Semantic Versioning or mostly…

How to Install Node.js on CentOS 7

The Problem Today, I was testing the new Angular 4 Scripting Application sample provided by IBM as a starting point for creating Script Portlet based Apps. However, my development environment is a CentOS 7 computer, and I usually don’t work with Node.js in that computer, so here the simple steps to install Node.js in a…

Enable CORS in a Node.js Application

The Problem So… you are creating an awesome Single Page Application with your favorite front-end framework (Vue.js, Angular, etc…) you need to connect your app with an external service; you have selected a JavaScript library to make the AJAX calls (like Axios), everything seem to be perfect, you create your method to get the remote…

How to use the Plugin Otherwise in IBM WCM 8 and 9

The challenge Imagine you want to run a kind of conditional if with a fallback (else) for example: you would like to have some custom HTML markup when there is no description set on a piece of content. Let’s see following pseudocode: IF is_There_A_Description(current_Content) DISPLAY description ELSE DISPLAY a default text So, how could we emulate this…

How to know if a user is authenticated or not in WCM 8 and 8.5

This is pretty simple way to check if any user has a session started or not; this is useful in cases where you want to display or execute an specific code depending on the user session. To create this kind of validation we can take advantage of the WCM plugins Equals and NotEquals [Plugin:Equals text1=”true” text2=”[Plugin:RequestAttribute key=’userLoggedIn’…

Update Node.js using the terminal

These are just the steps to update Node.js by using your terminal: sudo npm cache clean -f sudo npm install -g n The n package represents a Node helper, and running this command upgrades node to the latest stable version. sudo n stable Just to confirm we can check our version: node -v // Output…

Could not open input file: composer.phar error in Symfony 2. SOLVED.

This is a common issue that is related to bad installation of our favorite PHP package manager: Composer. Let’s fix it: Open your terminal and run following comand in order to get the latest version of Composer: curl -sS https://getcomposer.org/installer | php I recommend you to move the composer.phar file to a global “bin” directory,…