When setting up an HTTPS server for development purpose, you probably don’t want to buy a certificate. However you still need to run with HTTPS locally to develop/test if your web application works under HTTPS connections. You can create a self-signed certificate for free using OpenSSL. Generate a private key This command is to genetate a 4096-bit private key using SHA512 algorithm: openssl genrsa -out localhost.key 4096 -sha512 -out <filepath> : path of the output file that will contain private key -sha[number] : the algorithm applies for private key, it can be sha1, sha256, sha512; default value is sha1 if this parameter…

Problem Element identification lies at the core of automating web tests because without it, your test automation tool has no clue about how to locate and interact with the correct web elements on your application under test. As recommended by W3C, XPath is today’s solution of choice widely adopted by many web automation solutions including the famous Selenium framework. However, just like mastering a katana, making use of XPath up to the proficient level requires quite some time and deliberate effort. This article aims to help you take full advantage of XPath by unveiling the 3 common yet deadly misconceptions which novice testers might pick up while learning this powerful…

MetaTrader is a popular platform used for forex trading, and other financial products trading (stock, commodity…) It provides to user the ability to add more features to the platform using its own language MQL. You can program your own indicator and your expert advisor to work with MetaTrader. The powerful of MQL is that it can call a Windows DLL library, so that you can add any feature to your program. Passing strings to exchange data between MQL and Windows DLL is the most difficult problem. How to exchange data buffer without causing MetaTrader crash? This can achieve by allocating buffer memory…

Compile Nginx with Pagespeed Module From Source is not hard as you may think. Below NGINX setup is fit for NGINX + FastCGI Cache. It means you don’t have to use WP Super Cache or W3 Total Cache or any cache plugin. Basic Setup Keep CentOS 7 up to date Disable Root access Firewall Timezone configuration Install Dependencies yum install wget curl unzip gcc gcc-c++ pcre-devel zlib-devel make openssl-devel You may also check out How to upgrade OpenSSL on Centos 7 or RHEL 7. Compile NGINX From Source First download ngx_pagespeed Check the release notes for the latest version NPS_VERSION= cd wget…

A friend of mine recommended WD drive My Passport (4TB) for me because I need one. The current one (SeaGate) is not stable, sometime it is not recognizable. I suspect it is due to the cable. Anyway I need more space for my massive data so I grabbed WD My Passport Ultra Metal Edition. NTFS vs. Mac OS Extended (Journaled) I use Windows at work, MacOS and sometimes Linux (CentOS) at home. Everything went smooth, I copied to backup 50+ GB of data in about 20 minutes. The problem happened couple of minutes ago. I couldn’t copy files from my Mac…

As web site admin, I am so happy when receiving this kind of email, user registration notification. By default, WordPress will send web site admin notification email upon user registration. However I received none since I’ve used WooCommerce Custom Fields on REGISTER form. The web site didn’t notify admin (me) on user registration. Notify Admin On WooCommerce User Registration If we are using WooCommerce, user registration will done through process_registration action in WooCommerce. At that time, WordPress never send email notification to admin about new user. It only sends notification email for new orders. So to sort this out, we are going to…