Python. Python - Implementing webbased real time video chat using HTML5 websockets. Eye Spot / Sending Messages to a HTML5 WebSocket from Python. I’ve been spending a lot of time trying to send a message from a Python Socket to a HTML5 WebSocket.
Well I found that if I send back the message I get from the WebSocket, the browser receives it without any problem, but if I want to send a custom string, it’s necessary to manipulate it before calling the send function. Let’s see the code: data = s.recv(1024) s.send(data) The code above works perfectly, but it just return the same message. Now, let’s suppose that we want to return something different like a string saying what we’ve received: s.send("received:" + data) This works between Python Sockets, but not between a Python Socket and a HTML5 WebSocket because the last one never gets the message.
I have been planning to do the rebuild quite some time. But then again, It has to come out of my free time, which basically means for me that simple stuff like this can take a year. A year it didn't take, but long enough though. I wrote my own python framework in the mean time, to get up running quickly (not). I focussed on porting my php framework (which is mostly Zend) to python. I decided I wanted to work with good ORM software, and chose SQLAlchemy for the job, great software! The use of those projects basically prevented me from using Python 3.1, which I would have loved instead of 2.6. And then html5! And the last few days I'm busy with getting ffmpeg to convert webm, h264 and ogg after eachother, without me having to recompile ffmpeg for another format first.
Seeking Articles About HTML5 and Python. Because I wrote a book and am somewhat visible in the community, I often get requests to write articles, and many of those requests are not completely appropriate for me.
For example, today I got an e-mail from Lukas Rakowski of Software Press, who makes PHP Solutions Magazine. Basically, they’re looking for articles about HTML5 and Python – neither of which are subjects I could author an article on (other than “I know HTML5 is all sorts of awesome” and “I’ve been meaning to script in Python more”). However, I know that there are many Mozillians that can write and can write about HTML5 and/or Python.
To that end, here is the message I received: We are creating a new version of popular magazine PHP Solutions, which is available online. If you are interested, please contact Lukas at lukasz dot rakowski at software.com.pl – I have no further information about this; I don’t know what benefits/compensation are involved, how frequently the new magazine will come out, etc. Offline HTML5 canvas app in Python with django-mediagenerator, Part 1: pyjs - Web development blog. This is the first part in a short series (see also part 2 and part 3) on building a simple client-side offline-capable HTML5 canvas drawing app in Python via Pyjamas/pyjs, using django-mediagenerator.
Tout le monde utilise des "raccourcisseurs" d'URL comme TinyURL ou Bit.ly mais ça pose plusieurs problèmes : vous n'avez aucune idée de la pérennité du service (et en ce moment on voit bien le problème des services gratuits et non rentables qui ferment) et aucune garantie que les liens seront toujours redirigés vers les bonnes destinations sans passer par une pub/un outil de traçabilité/insérez votre délire parano ici.
J'ai enregistré hier bgk.me pour remédier à ça et avoir mon propre service de redirections courtes. Ça prend une centaine de lignes en Python et c'est sous WTFPL, comme ce blog.