After trying ChatGPT for a while, I thought, if I try to see what code he proposes for one of my posts. Normally, my post contains small pieces of code as an example. What differences will there be between the code that I wrote and the code that ChatGPT proposes to me. First try the … Continue reading ChatGPT content policy violation asking for a simple code snippet
Category: PHP with jquery
How to programmatically log in to website App using Python
For this example, we are going to log into a Django application. If it is another type of application, you only have to check the necessary login form fields.
The most simple gitlab-ci file to deploy your commits – Devops
Usually, we have a git repositori setup in a test server where we execute a git pull every time we want to deploy code changes to the this server. We want to automate "git pull" and many other task in every commit to our git server branch (master), using gitlab devops. We have created a … Continue reading The most simple gitlab-ci file to deploy your commits – Devops
Python Dict versus PHP array
They are the same, but differ just in one thing....
How to redirect WordPress public site to any url
WordPress is great as a content manager, but when you want to publish that content, the performance and other requirements can make it advisable to use another publishing environment. For example, you can use Django and the wordpress JSON API. In these cases you may be interested in redirecting calls to the public part of … Continue reading How to redirect WordPress public site to any url
Url encode can be confusing
URL encoding converts characters into a format that avoid getting in trouble if a parameter has for example & ampersant. This can happen with many other characters. BUT ! When you get a url parameter and you assume that it is url encoded, you take the value and do url decode. This will work. But … Continue reading Url encode can be confusing
Django y el dilema de las versiones de Python
Hay algo del mundo de Django y Python que me sorprende. Y es el tema de la versiones y la compatibilidad entre ellas. No todas las versiones de Django son compatibles con todas las versiones de Python. Yo llevo años utilizando Python 3, y por supuesto Django 2.x. La compatibilidad de versiones es la siguiente … Continue reading Django y el dilema de las versiones de Python
Ajax autocomplete dropdown field with bootstrap 4 and jquery in PHP
What we need ? only 3 pieces, a HTML based on boostrap, a
Jquery to make an ajax call , and PHP to give to jquery results to autocomplete.