Non-Blocking Request Handling

Code: https://bitbucket.org/dexity/surfsnippets/src/8d3e76f12706/asynchandler

Web applications normally perform various operations behind the scenes which take some time to process such as writing to remote database, logging over network file system or sending emails. Synchronous processing of the slow operations will reduce the responsiveness of the web application and make the user experience not very pleasant. Here I compare two non-blocking approaches using epoll and threading.
Continue reading

Posted in Python, Web Service | Leave a comment

MetaHome: Interface for Contolling Home Devices

Code: https://bitbucket.org/dexity/metahome

Controlling home devices from a single hand held device is a dream that will soon become real. Home devices are getting smarter and include more functionality than devices we have now. I developed a simple prototype of Android application that can manage virtual devices. The idea can be userful both for Home Automation to control devices as well as for Smart Maps to display detailed information about the objects on the map such as airports or shopping centers.

Continue reading

Posted in Android, Web Service | Leave a comment

Analysis of TuneIn Radio Stations

Code: https://bitbucket.org/dexity/surfsnippets/src/1b6a53d8c3e3/stationdigger/
Output: station_lang.json (6.9 Mb), station_genre.json (6.4 Mb)

Recently I was interested in TuneIn (http://tunein.com) radio service which provides access to radio stations around the globe with a pretty simple REST API: http://inside.radiotime.com/developers/api/opml

Continue reading

Posted in Python, Web Service | 10 Comments

Sea World Tiles

After hanging out you with my friends from Oregon to the SeaWorld in San Diego, CA I decided that it is might be cool to develop a simple Android application which keeps our memory about the adventure parks.

Continue reading

Posted in Android | Leave a comment

Hello world!

In this blog I will explore cool technologies by doing some experiments on computer systems, small and large, and writing code. In most cases source code will be provided in the repository: surfsnippets. I don’t like to read long posts so I will write just enough to describe the experiment. I follow the principle: “The harder to write, the harder to read”.

I would like to thank Jeanna Matthews who helped me to get to Computer Science and wrote a wonderful book on Computer Networking.

Posted in Python | Leave a comment