raditha.com, The Site With The LAMP is dedicated to Linux, Apache, Mysql and Python (formerly PHP). It's the work of Raditha Dissanayake, who has an affinity for these technologies as well as several other non redmond technologies such as Java
These photos are from my infrequently updated photo blog

ISC on Linux

July 20, 2014, 5:28 a.m. Scrabble , ISC , wordbuff , java

Internet Scrabble Club is the cool place to play scrabble online. Some of the world's top players hang around at the ISC. Play online doesn't mean you can play with the browser, rather you need to download and install one of their clients. Fortunately they have clients available for Linux, M ...

NDB Queries

June 1, 2014, 11:39 p.m. GAE , NDB ,

Google App Engine's NDB is what's being used as the storage backend for this blog. In the process of writing the (python) code I made an interesting discovery how it uses indexes. First we will consider a query on one of the wordpress tables in a mysql database.   explain select * from ...

Flipped the switch.

May 29, 2014, 1:32 a.m. Jekyll , Ruby , GAE , Python , Django

Finally. Wordpress has been switched off, as I have threatened to do so many times before. This blog post is being written with the aid of a home made blogging system running on Google App Engine (python). The data is stored in NDB and the editor is CKeditor, and the comments are powered by Disqus. ...

Django admin select count(*) from ...

Oct. 6, 2013, 2:24 p.m. Django , Python , roadlk

Shut up and just give me the code? Ok, look at the bottom of this post.What is the slowest query on road.lk? It's the select count(*) on the traffic alerts table that Django admin insists on executing each time someone visit the admin page for the alerts. Though we are fully operational only in Sri ...