Henry Ong

Read data from SQL when a field changes value and post the value in another field

Create a JQuery script that detects whether the Formidable Form field is changed or initiated. Write a PHP script to accept the field value from the form and used the value to retreive data from a table. Calculations can be performed in the PHP script if needed. Encode the result in Json and return the …

Read data from SQL when a field changes value and post the value in another field Read More »

Cryptarithm

Cryptarithm, also known as an alphametic or verbal arithmetic, is a type of mathematical puzzle where letters or symbols are used to represent digits. The goal of a cryptarithm is to decipher the correct assignment of digits to these letters or symbols in order to form a valid mathematical equation. In a cryptarithm, each letter …

Cryptarithm Read More »

Add new whitelist IP using SSH

Login to the console using Putty. Type this at command line after login: nano /etc/hosts.allow Add the new IP in the existing list of IPs separated by a comma Save the file by pressing Ctrl X Confirm saving by typing ‘Y’ and save the file by pressing Ctrl X and then y and press enter

Can’t run a Python script on server but working on local machine

There are several possible errors that can result in this. You can go to your server’s console and run the script from common line to check for error. The most common are: Python modules/package not installed on server. Your script is saved as CRLF while your server requires your source code to be saved as …

Can’t run a Python script on server but working on local machine Read More »