I'm doing some tests for an Android script. It is a series of randomly generated numbers that automatically and without displaying anything on the screen, go to the clipboard and is available to be copied anywhere.
For now, I run without problem...
I'm trying to execute a dll from python.
I found this code
# Importamos ctypes
import ctypes as c
# acceso a la biblioteca
dll = c.CDLL("funciones.dll")
# acceso a la variable global de la biblioteca
# longitud del array
size = c.c_int.in...
I have this code:
from PIL import Image
import numpy as np
import matplotlib.pyplot as plt
import FuncionesFiltros as fun
Im = Image.open('build.jpg')
Im_a = np.array(Im)
plt.figure()
plt.imshow(Im_a)
plt.title('IMAGEN ORIGINAL')
plt.axis("of...
You can do me the favor of teaching me or telling me where to look for how to do the following:
I have two panda dataframes. The first is constant and the second is generated from an Excel that always has variable data. The data in column "0"...
You define a class with a 'private' attribute called __rango then you want to make a copy of this attribute in the variable rangoT to modify it without affecting the original attribute, but both change its value.
Class definitio...
At this moment I have with the code that I am using, I create a web service with Flask with which I access the webcam of my laptop.
Python code:
from flask import Flask, render_template, Response
import cv2
app = Flask(__name__)
@app.rou...
I have this function:
def RGB_TO_HSI(R,G,B):
if(0<=R<=255 and 0<=G<=255 and 0<=B<=255):
d = float(R + G + B)
r = float(R)/d
g = float(G)/d
b = float(B)/d
numerador = float( 0.5 * ((r - g) + (r - b)))...
code=[]
notes = []
student=int(input('cuantos estudiantes desea calificar : '))
#puedo recorrer elemento y posicion
for i in range (student):
code.append(float(input('ingresar codigo del estudiante : ')))
notes.append(float(input('ingresa...
I have seen that everyone uses web pages with an NGINX or APACHE instead of serving the application directly with DJANGO, however I can not find the vulnerabilities that could be applied to attacks if you directly use the web with this Framework...
I tried to test my Flask application following this blog but I said:
(venv) mike@mike-Inspiron-3543:~/Documents/programming/microblog$ flask shell
Usage: flask shell [OPTIONS]
Error: While importing "microblog", an ImportError was raised:
Tr...