Setup Nginx reverse proxy for Node-red

  • 20 Oct, 2020

I setup Node-red to use HTTPS and everything works fine. All HTTPS requests go to default port of Node-red.  Today i need to setup a communication with a client that not support HTTPS, just HTTP. The solution i found was to setup Nginx as reverse proxy.  Nginx receives the HTTP requests and then forward them to Node-red. On my Nginx server i just add the following lines server { listen 80; location /reddata { proxy\pass https://:port/reddata; } }

Setup Nginx reverse proxy for Node-redRead More

Importing packages in Jupyter notebooks and avoid ImportError

  • 16 Oct, 2020

“ImportError: No module named tensorflow” but you know you installed it? Sometimes you can import packages from the console, but not from the Jupyter notebook? !pip install tensorflow sometimes just does not work? Googling about similar issues made me realise people are suggesting the thing that won’t work most of the time. If you are installing packages by running !conda install tensorflow or if you want to use pip !pip install tensorflow you are using very fragile commands (if run in notebook) and that’s the reason packages you installed can’t be imported. It is not fine this time Instead, use these commands: import sys !conda install --yes --prefix {sys.prefix} tensorflow or

Importing packages in Jupyter notebooks and avoid ImportErrorRead More

IoT Knife Sharpening

  • 04 Sep, 2020

Sharpening a knife is a skill that everyone who enjoys cooking needs to have. I have several stones for sharpening my knives. In addition to having the correct stones one of the most difficult things is to maintain the angle between the knife and the stone during the sharpening process. There are many videos and even YouTube channels on the subject. A video that caught my attention is below. It shows how to create and use an electronic device to maintain the sharpness angle.

IoT Knife SharpeningRead More

Node-red 1.1 released

  • 01 Jul, 2020

Node-red 1.1 released with several new features

Node-red 1.1 releasedRead More

Xsp Initialization error - Could not load class or methods after upgrade from Domino 11.0 to 11.0.1 on Linux

  • 18 Jun, 2020

Today i upgrade one server to Domino 11.0.1 from Domino 11.0 on linux.  When the server starts the HTTP  the console show the error bellow: \103028:000002-00007F2CD562E740\ 06/18/2020 10:40:45 AM JVM: Java Virtual Machine initialized. \103028:000002-00007F2CD562E740\ 06/18/2020 10:40:45 AM HTTP Server: Java Virtual Machine loaded \103028:000002-00007F2CD562E740\ 06/18/2020 10:40:50 AM HTTP JVM: java.lang.reflect.InvocationTargetException \103028:000002-00007F2CD562E740\ 06/18/2020 10:40:50 AM HTTP JVM: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) \103028:000002-00007F2CD562E740\ 06/18/2020 10:40:50 AM HTTP JVM: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcc

Xsp Initialization error - Could not load class or methods after upgrade from Domino 11.0 to 11.0.1 on LinuxRead More

Secure Nginx server with LetsEncrypt

  • 12 Jun, 2020

You need A Fully Qualified Domain Name (FQDN) pointing to a dedicated IP address of the webserver. This needs to be configured by your DNS administrator or provider. 1 - Install Certbot in Centos 8 sudo curl -O https://dl.eff.org/certbot-auto chmod 0755 /usr/local/bin/certbot-auto 2 - Configure Nginx server\name on nginx.conf Edit nginx.conf an change the variable server\name to the same FQDN of your server for example: server\name www.mysphere.com.br; 3 - Run the certbot command: Execute sudo /usr/local/bin/certbot-auto --nginx and follow the instructions Test if your Nginx server using https://

Secure Nginx server with LetsEncryptRead More

Node-red. & NGINX on Centos 8

  • 11 Jun, 2020

I am creating a server (Centos 8) to develop a system that will use an application using REACT as a front end to show data from different sensors.I will use NGINX as a webserver and Node-red as a back end.In this first post I describe how to install NGINX. Install nginx package using the yum command on CentOS 8: sudo yum update sudo yum install nginx Update firewall settings and open TCP port 80 and 443. Run: sudo firewall-cmd --permanent --zone=public --add-service=https --add-service=http sudo firewall-cmd --reload Enable nginx service by running systemctl command so that it starts at server boot time: sudo systemctl enable nginx start the service, run: sudo systemctl start nginx

Node-red. & NGINX on Centos 8Read More

Installing MongoDB with Homebrew on MAC

  • 29 May, 2020

When i execute brew install mongodb the error message above appears : Error: No available formula with the name "mongodb" ==> Searching for a previously deleted formula (in the last month)... Warning: homebrew/core is shallow clone. To get complete history run:git -C "$(brew --repo homebrew/core)" fetch --unshallow Error: No previously deleted formula found. ==> Searching for similarly named formulae... Error: No similarly named formulae found. ==> Searching taps... ==> Searching taps on GitHub... Error: No formulae found in taps. How i solve this problem: The formula mongodb has been removed from homebrew-core.  So i need to use a custom tap made by mongodb team I used the fol

Installing MongoDB with Homebrew on MACRead More

Securing SMTP sessions using the STARTTLS extension

  • 15 May, 2020

Just setup this on a customer today. Befor this setup you need to install a certificate on your server. SMTP sessions conducted over a standard TCP/IP channel are vulnerable to eavesdropping because the unencoded transmission can be easily intercepted. To protect SMTP communications, servers can use transport-layer security (TLS), more commonly known as SSL encryption, to provide privacy and authentication. Some servers support SSL for SMTP communications by sending and receiving SMTP traffic through the SSL port (port 465 by default) only. However, because this requires that both the sending and receiving servers support SMTP over SSL, this solution isn't always practical. To provide SSL

Securing SMTP sessions using the STARTTLS extensionRead More

OneDrive is unable to access keychain

  • 31 Jan, 2020

I have this problem today after i change my account on my macbook. The solution that worked for me was to delete the OneDrive Cached Credential key from the Keychain. The procedure was the following: 1. Launch Spotlight Search (shortcut: command + space), type keychain, and press return. This should launch the Keychain Access app. 1. Type OneDrive into the Keychain Access search box. This should show a short list of keys related to OneDrive. 1. Click on the key called " OneDrive Standalone Cached Credential" or some variant thereof. 1. Press the delete key (or use the menu item Edit > Delete) to delete the cached credential key. 1. Restart  OneDrive. 1. Enter your user and password again.

OneDrive is unable to access keychainRead More

IBM Watson Tutorials

  • 03 Jan, 2020

I found today this link https://ibmcloud-watson-day.mybluemix.net/. There are several tutorials about IBM Watson API's

IBM Watson TutorialsRead More