Check OpenAI credits
If your code that uses OpenAI suddenly stops working as expected. Check whether you have sufficient OpenAI credits as sometimes automatic top ups DO NOT work as expected.
If your code that uses OpenAI suddenly stops working as expected. Check whether you have sufficient OpenAI credits as sometimes automatic top ups DO NOT work as expected.
If you use PHP get_file_contents function, you need to make sure there are no other echo or print related statements other than the the variable or data that you want get_file_contents to get. Else you get make not get any value or wrong value. Also you need to ensure your files are given the right …
Formidable forms are not responsive by default. However, it can easily be done if you add the following to the Form’s or View’s custom CSS or you can add it to the entire site. You can learn more about grid layout using the following link https://www.w3schools.com/cssref/tryit.php?filename=trycss_grid-column2
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 »
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 …
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 »
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 »
To make a button work like a link and open in a new browser tab, you can use the following HTML. window.open will open a new browser tab as long as your browser can process Javascript. You can replace ‘yourURL.com’ with the URL of the web page that you want to load. Next, replace “Button …
How to make button in HTML that works like a link and open new tab Read More »
Referring to “data” which is a dictionary. To get the last row and column Y of item B