Programming

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 »

Formidable Forms – using JQuery to change the value of a text field based on changes to a dropdown list

If you wish to set the text field based on changes to a dropdown list. For Formidable Forms, you can go to the Form’s Settings -> Customize HTML and add the Javascript code in the “After Fields” section. The following source code will change the value of a text field based on changes to a …

Formidable Forms – using JQuery to change the value of a text field based on changes to a dropdown list Read More »

File Permission 755 and use LF line separator for Linux

For source code files written in Windows OS and to executed on Linux, you have to make sure the separator used is “LF” and not “CRLF”. You can easily change this at the bottom right of popular IDEs such as VS code and Pycharm. Next, you have to ensure that you give the appropriate “execute” …

File Permission 755 and use LF line separator for Linux Read More »

Formidable Forms: How to set end date for JQuery Datepicker based on chosen start date

If you wish to set a date such as end date based on start date, you can use JQuery to do it. For Formidable Forms, you can go to the Form’s Settings -> Customize HTML and add the Javascript code in the “After Fields” section. The following source code will calculate and show the end …

Formidable Forms: How to set end date for JQuery Datepicker based on chosen start date Read More »