How to get the timezone in Ubuntu Linux?

If you are using a GNU/Linux distribution based on Ubuntu the easiest way to get the timezone is by using following command: timedatectl The output should look similar to this: Local time: Tue 2018-07-24 11:27:00 CDT Universal time: Tue 2018-07-24 16:27:00 UTC RTC time: n/a Time zone: America/Mexico_City (CDT, -0500) Network time on: yes NTP…

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…

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…

Solving Drupal error: PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away

The problem After downloading a Drupal project I am working on, and importing its database I got this kind of message related with a PDO Exception: Additional uncaught exception thrown while handling exception. PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT s.lid, t.translation, s.version FROM {locales_source} s LEFT JOIN {locales_target} t ON s.lid = t.lid…