Remote Desktop to VM to check out, investigate issues, deploy things are very common, especially when you are in CI/CD, Agile, DevOps environment. The demand to unlock desktop screen remotely is crucial for automation tests to run. A friend of mine says he struggled with this for 2 weeks. Therefore I am going to put simple and short answer right below. How To Unlock Desktop Screen Remotely Please note that you need to run these commands with administrative rights on remote machine. Below command should work for Windows 7, Windows 8, Windows 8.1, Windows 10 tscon [RDC Session ID] /dest:console Ex. tscon 1…

If you are struggling with below error, this post may help and save you hours. Did you install mysqlclient or MySQL-python? OSError: mysql_config not found ModuleNotFoundError: No module named ‘ConfigParser’ This is my 2nd times try out Django with MariaDB. The 1st one went smoothly. Couple of searches and I find that I only need to add a simple line into “activate” file of Python VirtualEnv 2nd time didn’t go right, when running “python manage.py migrate”, I got “Did you install mysqlclient or MySQL-python?”. Continue trying to run “pip install mysqlclient”, I got “OSError: mysql_config not found”, and sometimes “ModuleNotFoundError:…

Setting up a web server for Django could be challenging and headache. Let’s try to make it simple: Django behind uWSGI and NGINX on CentOS 7 from scratch. At the end, our complete stack of components will look like this: the web client <-> the web server <-> the socket <-> uwsgi <-> Django 1. Install Dependencies 1.1. NGINX yum install epel-release -y yum install nginx -y 1.2. Python 3 & PIP yum install python34-devel gcc -y curl -O https://bootstrap.pypa.io/get-pip.py /usr/bin/python3.4 get-pip.py 1.3. Create VirtualEnv with Python3 pip install virtualenv mkdir -p /var/www && cd /var/www virtualenv -p python3 p3venv If you…

By default, you do not need to install or configure anything else to use Python 2. This article is aimed to serve as a shortcut or references on how to setup Python3 Development Environment. Basically you will need to install the following: 1. XCode & XCode Command Line Tools You can download and install XCode from AppStore. XCode is free and is at least 4.5 GB in size and may take some time to download (must have an Apple account). To install Command Line Tools, you can issue below command “xcode-select –install” 2. Install and Setup Homebrew Type below command on Terminal /usr/bin/ruby…

Spark framework (www.sparkjava.com) is a small Java framework used to build a REST server quickly. You can build a Java web server with only a few lines of code. But adding SSL to your server needs more effort. Java used its own format for the keystore file which contains keys. First of all, you need to generate your private key. Java key tool will store it in a keystore file .jks. The following command creates a key has 2048 bit length for localhost valid in one year: keytool -genkey -alias localhost -keyalg RSA -keystore KeyStore.jks -validity 365 -keysize 2048 Now…

That’s all I need “Add Google reCAPTCHA to WooCommerce Signup Form”. There are ton of plugins out there can satisfy this simple requirement. However they have more than what I need. So I googled the minimum requirement to reach the goal and try it out. Let’s check below and share if you find it helpful. Get Google reCAPTCHA Keys Basically you need Site Key Secret Key You can get the keys as well as learn more about Google reCAPTCHA at https://www.google.com/recaptcha/intro/index.html Make it happens Simply put below script into your WordPress theme’s functions.php https://gist.github.com/hiendnguyen/3aff513bab1bdb274cab82fa34d27e9d Final thoughts You can replace woocommerce_register_form by register_form and woocommerce_register_post…