Profile cover photo
Profile photo
Michael Kohler
228 followers -
Computer Science student at the University of Berne, Open Source devotee
Computer Science student at the University of Berne, Open Source devotee

228 followers
About
Michael's posts

Google I/O Extended in Zurich was awesome!

Post has shared content
True! (not always, but very often)

Post has shared content
Tonight!
We'll be doing some Popcorn.js hacking in Zurich on 21th of March. More information here: http://lanyrd.com/2012/mozilla-coffee-table-zurich-march/ /cc +Henrik Mitsch +bae 

We'll be doing some Popcorn.js hacking in Zurich on 21th of March. More information here: http://lanyrd.com/2012/mozilla-coffee-table-zurich-march/ /cc +Henrik Mitsch +bae 

Post has attachment
wanted!


Photo

Post has shared content

Post has attachment
Is this the future? Me gusta!

Post has shared content

Post has shared content
The magic of WebSocket HTML5 coding on Android

I've been looking at ways to do real-time on-screen controls from a web client to Higgins the Android telepresence robot. I came across HTML5 WebSockets which seemed to be perfect! Real-time bi-directional data without having to write TCP code and a protocol yourself.

The problem is that the Android browser is megapants and doesn't support it. Then I stumbled across this fabulous little Python module called ws4py which, I noted, specifically mentioned it would run on Android under SL4A. I took a look at it's bundled with a seriously cool little example which I had to shoot a video of to show off.

Basically the desktop web browser on the tele in the background is viewing a page from a local Python script using the CherryPy minimal web framework. On the Galaxy Nexus a WebSocket client is running in Python connected to the desktop relaying the Android phone sensors in real time for visualisation in the HTML5 canvas on the web browser.

Now that is seriously cool.
http://www.defuze.org/archives/271-ws4py-websocket-client-and-server-library-for-python.html

Post has attachment
Wait while more posts are being loaded