Category : python

i tried to install Python in termux but has refuse saying python has no installation candidate and also tried php this i what it said Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not ..

Read more

I’ve been looking for something related to transforming json files into a folder and file structure. I have the following file and folder structure. /78/cd.json /127/cd.json and more other randoms number id folder. Being the contents of cd.json: [ { "id": 64074, "name": "Music Track Name 0", "song_file": "https://www.namesite.com/system/files/64074/original/File01.mp3?1417372774", "chord_url": "", "lyric_url": "https://www.namesite.com/lyrics/64074", "radio_image_url": "https://www.namesite.com/system/cds/images/000/009/608/original/albumart.jpg?1417372988", ..

Read more

Okay so I have been surfing the internet about this for a while, I need to make an upvote and downvote system in my flaskwebapp, but everywhere it’s made mostly using PHP and MySQL, how do I redirect or render a PHP template so that it works with my flask app? Every tutorial in the ..

Read more

temp = int(input("temp=")) hum = int(input("hum=")) fanspeed.input[‘temperature’] = temp fanspeed.input[‘humidify’] = hum fanspeed.compute() fanspeed.output[‘fan’] fan.view(sim=fanspeed) print("Fan speed =",fanspeed.output[‘fan’]) Above is my code on Python, my lecturer requested me is that possible to send the fanspeed.output[‘fan’] to PHP(maybe show on the PHP about the fan speed, i think the whole idea is input on the PHP ..

Read more

I’m working on create a Parapharser with PHP, laravel and Vuejs, like (https://smodin.me/free-english-rewriter-and-spinner) I’m trying using a Traductor, for example, passing the introduced text from spanish to russian and return to spanish. But if i have 1 000 000 000 characters by day it’s expensive with google traductor api. Also i’ve trying to user a ..

Read more

I am trying to connect my django project with phpmyadmin, so far I am following this article: https://python.plainenglish.io/connect-django-with-database-43f1965565e0 and add this line in __init__.py: import pymysql pymysql.install_as_MySQLdb() and then success to connect it. But I am confuse how to perform a simple raw query like Select * from mydata. is there a guide that can ..

Read more