Keyboard code “KeyCode” and how to use it in JavaScript
To work on HTML5 canvas to develop a tool similar to paint or free draw on an image, JQuery and Javascript are often used on the browser client side to perform simple tasks that would otherwise require a full postback to the server. There’re a set of keycode associated with each character on the keyboard. To use this on your canvas on an html page, add JQuery and JavaScript to detect the key that user pressed as follow: Key Code backspace 8 tab 9 enter…
JWT on NodeJS
We’re trying to install JWT on NodeJS but the dependency node-base64 is missing. The issue has been reported. Hopefully they can fix it soon so that we can implement to our current project.
Standard Mail function is broken if MX Record is changed
Most of Contact Us form or other types of form on your website are using standard PHP mail function if it’s not set for SMTP Server (using WP-Mail-SMTP plugin). So if you move MX Record of your domain name from Godaddy to Google Mail Server, you’ll need to set the MX Entry to “Remote Mail Exchanger” option in order for the PHP standard Mail() function works properly on your website.
How to add NodeJS process to windows
There’re a few ways to add NodeJS process to windows server. Install node-windows npm install -g node-windows Then Daemonizing your script is accomplished through code: var Service = require(‘node-windows’).Service; // Create a new service object var svc = new Service({ name:’Hello World’, description: ‘The NodeJS web server.’, script: ‘C:\\path\\to\\my\\node\\script.js’ }); // Listen for the “install” event, which indicates the // process is available as a service. svc.on(‘install’,function(){ svc.start(); }); // Listen for the “start” event and let us know when the // process has actually…
A fix for XAMPP – Apache Server in Windows 10
Windows 10 will throw errors when you try to start Apache server in XAMPP. 7:56:35 AM [Apache] Attempting to start Apache app… 7:57:05 AM [Apache] Problem detected! 7:57:05 AM [Apache] Port 80 in use by “Unable to open process” with PID 4! 7:57:05 AM [Apache] Apache WILL NOT start without the configured ports free! 7:57:05 AM [Apache] You need to uninstall/disable/reconfigure the blocking application 7:57:05 AM [Apache] or reconfigure Apache and the Control Panel to listen on a different port To fix this issue, the…