Go to advanced search

by forumisto
Thu Sep 08, 2016 12:07 pm
Forum: Python
Topic: pygame stops
Replies: 6
Views: 1584

Re: pygame stops

There is no different between calling set_mode with FULLSCREEN and not.
I'm not working under X.
by forumisto
Thu Sep 08, 2016 6:39 am
Forum: Python
Topic: pygame stops
Replies: 6
Views: 1584

Re: pygame stops

I know it. But if I use a print before set_mode, it prints the message on console
by forumisto
Wed Sep 07, 2016 7:25 pm
Forum: Python
Topic: pygame stops
Replies: 6
Views: 1584

pygame stops

Hello I have a program with pygame that uses pygame. The beginning is: pygame.display.init() screen = pygame.display.set_mode(SCREEN_SIZE, pygame.FULLSCREEN | pygame.HWSURFACE) print "Hello" Hello is not written. The program stops but not ends with set_mode function. I use sudo to execute it. Any id...
by forumisto
Mon Sep 05, 2016 7:13 pm
Forum: Python
Topic: method dynamic invocation
Replies: 2
Views: 634

method dynamic invocation

Hello

how can I call a function which I know the name?

I want to have an array of function names.

Thank you.
by forumisto
Mon Sep 05, 2016 12:54 pm
Forum: Python
Topic: framebuffer and pygame
Replies: 3
Views: 1396

Re: framebuffer and pygame

Hello

But using XBMC and OMXPlayer the whole screen is used.
by forumisto
Thu Sep 01, 2016 11:18 am
Forum: Python
Topic: framebuffer and pygame
Replies: 3
Views: 1396

framebuffer and pygame

Hello I have a program that uses framebuffer with pygame. I have tested all video modes but in all of them the area that I can use is not the fullscreen, ever there is a black border. When I use omxplayer and xbmc the fullscreen is used. fim and fbi (image viewers in framebuffer) does not uses the f...
by forumisto
Fri Aug 26, 2016 2:46 pm
Forum: Español
Topic: imagen permanente con fbi
Replies: 1
Views: 662

imagen permanente con fbi

Hola cuando visualizo una imagen en la tele con fbi (desde ssh) la imagen queda permanente en la tele aún después de matar el proceso. si reproduzco un vídeo con omxplayer, cuando acaba vuelve a mostrarse la imagen. ¿cómo se puede volver a poner la pantalla en negro o volver al mode texto donde se p...
by forumisto
Thu Aug 25, 2016 4:48 pm
Forum: Español
Topic: aplicacion en pantalla/tv
Replies: 1
Views: 478

aplicacion en pantalla/tv

Hola Cuando encendemos la rpi sin las X la pantalla se queda a la espera de validarse con un usuario. esta terminal se queda en "posesión" de la pantalla. Luego desde SSH nos conectamos y operamos. Lo que yo quiero hacer es desde otro proceso lanzar una aplicacion en modo texto (ncurses) y con el ma...
by forumisto
Thu Aug 25, 2016 7:28 am
Forum: Español
Topic: Servidor web Java
Replies: 11
Views: 2147

Re: Servidor web Java

muy sencillo: necesitas un programa (programax) que procese la salida del programa que obtiene los datos, más que nada para presentar los datos en html, y luego el resultado lo lleve a una página web quedaría algo así java -jar obtenerdatos.jar | programax > /home/pi/servidorweb/datos.html por otro ...
by forumisto
Fri May 27, 2016 10:47 pm
Forum: General discussion
Topic: light video player
Replies: 7
Views: 2041

Re: light video player

kusti8 wrote:
forumisto wrote:but.. I need to run under X ?
Well yeah. How else do you want a GUI?
text mode, only to chose the file to play

I think with framebuffer it can possible
by forumisto
Fri May 27, 2016 8:48 pm
Forum: General discussion
Topic: light video player
Replies: 7
Views: 2041

Re: light video player

but.. I need to run under X ?
by forumisto
Fri May 27, 2016 10:33 am
Forum: General discussion
Topic: light video player
Replies: 7
Views: 2041

light video player

Hello, I have the first version of RPi. I use XBMC and OMXPlayer to play videos on TV. XBMC is heavy to my RPi, it works slowly and I can use the remote control of TV; and OMXPlayer makes me to depend on mobile (with omxremote) or terminal. Are there other program with graphic interface (lighter tha...
by forumisto
Fri May 27, 2016 10:28 am
Forum: Español
Topic: reproductor ligero
Replies: 1
Views: 721

reproductor ligero

Hola Tengo la RPi versión 1. Para reproducir los vídeos uso XBMC va muy lento y OMXPlayer con OMXremote (éste desde el móvil). XBMC va muy lento pero lo puedo usar con el mando a distancia de la tele, y OMXPlayer me hace depender del móvil o de la terminal. ¿Existe algún programa que permita elegir ...
by forumisto
Fri May 20, 2016 7:29 am
Forum: General discussion
Topic: select ethernet cable
Replies: 9
Views: 1981

Re: select ethernet cable

I had thought of category 5e, the question that arises is the type of cable
by forumisto
Fri May 20, 2016 6:20 am
Forum: General discussion
Topic: select ethernet cable
Replies: 9
Views: 1981

select ethernet cable

Hello, I have to decide what to choose ethernet cable to a residential installation. The cable will go for a pre-installed gutter between the walls and floor. Possibly pass near mains cables. The cable length must be 25 meters. The options I have are: - 26 AWG shielded - 24 awg Unshielded (these thr...
by forumisto
Fri Apr 29, 2016 10:02 am
Forum: Python
Topic: sockets with windows
Replies: 2
Views: 709

Re: sockets with windows

Hello

The connection is established. In both programs, if I add a print the socket variable, the programs prints "<socket...."

The client does not fail when executes send(). It send a char, and the server receive empty string.
by forumisto
Thu Apr 28, 2016 5:25 pm
Forum: Python
Topic: invoke functions of other thread
Replies: 1
Views: 450

invoke functions of other thread

Hello I have two class (extend from threading.Thread) more or less as you can see: A class thread_a(threading.Thread): def __init__(self, name, thread_b): threading.Thread.__init__(self) self.name = name self.b = thread_b def run(self): while 1: ... # if a condition is true print 'call send' self.b....
by forumisto
Thu Apr 28, 2016 4:08 pm
Forum: Python
Topic: sockets with windows
Replies: 2
Views: 709

sockets with windows

Hello I have two simple programs: import socket, pozitlib lib = pozitlib socket_server = lib.crear_servidor('192.168.1.16', 9443) skt_client, client_address = socket_server.accept() skt_client.settimeout(10) req = skt_client.recv(1) skt_client.sendall(req) import socket, pozitlib lib = pozitlib con ...
by forumisto
Tue Apr 26, 2016 7:53 pm
Forum: Python
Topic: sockets and threads
Replies: 1
Views: 487

sockets and threads

hello

Can I use the same socket in two threads? One of them for write (.send()) and the other to read (.revc())

Thank you
by forumisto
Thu Apr 21, 2016 5:17 pm
Forum: General discussion
Topic: https proxy logs
Replies: 1
Views: 528

https proxy logs

Hello

do you know what information is stored in https proxies?
I suppose target host, but I don't know about the begin and end of connection, and the total bytes transmitted.

Thank you
by forumisto
Thu Feb 18, 2016 12:57 pm
Forum: Español
Topic: rele optoacoplador
Replies: 17
Views: 3771

Re: rele optoacoplador

Hola

El ventilador lo usas para sacar aire caliente de la caja? o para meter aire más fresco a la caja?

Gracias.
by forumisto
Mon Feb 01, 2016 11:47 am
Forum: Español
Topic: Whatsapp + Raspberry I/O
Replies: 2
Views: 860

Re: Whatsapp + Raspberry I/O

whatsapp limitó hace mucho tiempo el uso de aplicaciones externas, y es muy fácil detectar un cliente que no sea el suyo.

a mi me banearon por un mes
by forumisto
Fri Sep 25, 2015 4:02 pm
Forum: Español
Topic: Variable Python a pagina WEB
Replies: 2
Views: 1406

Re: Variable Python a pagina WEB

a ver si te vale esta idea: primero tienes que tener un servidor de paginas dinamicas. luego tienes que invocar a una pagina dinámica, que cada dos segundos obtenga la información que quieres y la escriba en el flujo de salida y hacer un flush para que se envíe al cliente. como tienes un bucle, el f...
by forumisto
Wed Sep 16, 2015 12:26 pm
Forum: Python
Topic: one module in two directories
Replies: 1
Views: 471

one module in two directories

Hello

I want to have a module in two directories, more or less:

/tmp/dir1/module_name
/tmp/dir2/module_name

then, files in module can be in one of two directories, like this:

/tmp/dir1/module_name/my_file1.py
/tmp/dir2/module_name/generated_file.py

Is it possible?

thanks

Go to advanced search