Category Archives: Web

Deployment of Multiple Web.py Applications using uWSGI and Nginx on Ubuntu

The scenario here is that we want to deploy multiple web.py applications under the same domain (‘apps.example.com’ for instance). These applications are independent from each other and reside in separate paths. There are quite a number of ways of achieving … Continue reading

Posted in Web | Tagged , , , , | 2 Comments

Deployment of Web.py Applications Using uWSGI and Nginx on Ubuntu

The next post contains an advanced version of this guide. This post is a update to the previous one on the same topic. The environment is as usual a low-end VPS with freshly installed Ubuntu 10.04.3 Lucid LTS (minimal version). … Continue reading

Posted in Linux, Web | Tagged , , , , | 5 Comments

Deployment of Web.py Applications Using uWSGI and Nginx

This post is outdated. See this post for more up-to-date directions. It should be safe to assume that anyone remotely interested in such a topic must already have a fair understanding of what this post is about, so let’s not … Continue reading

Posted in Linux, Web | Tagged , , | 2 Comments

Track Firefox Extension Installation and Usage Statistics Using Google Analytics

Browser extension developers often want to know how many people have downloaded their work and are actually using them. They may also want to know how often their users interact with the extensions, like accessing options/preferences etc. Although entities behind … Continue reading

Posted in Chromium extension, JavaScript, Mozilla extension, Web | Tagged , , , , , , , , , , | Comments Off

Using localStorage in Firefox Extensions for Persistent Data Storage

HTML5 introduced the ‘Web Storage‘ specification, which aims to provide a method for web developers to store data persistently on users’ local file system. By using the ‘localStorage’ object, key-value pairs can be stored (as strings) and persist through browser … Continue reading

Posted in Chromium extension, JavaScript, Mozilla extension | Tagged , , , , , , , , , , | 1 Comment

Running OSQA with Nginx and uWSGI: VirtualHosting Mode with DynamicApps

Following on the previous post about OSQA installation, this post discusses the co-existence of OSQA with other WSGI-compliant web applications supported by uWSGI. As has been shown in the post linked above, installing OSQA with Nginx, uWSGI and SQLite3 on … Continue reading

Posted in Linux, Web | Tagged , , , , , , , , , | 3 Comments

Installing OSQA with Nginx, uWSGI and SQLite3 on Ubuntu Lucid (10.04) Minimal

OSQA is an open-source django-based implementation of the famous Stack Overflow Q&A community infrastructure. Its codebase was largely inherited from a Chinese project CNProg, which, for various unfortunate reasons, has closed its community site and virtually stopped development since earlier … Continue reading

Posted in Linux, Web | Tagged , , , , , , , | 12 Comments

Accessing Operating System Clipboard in Chromium (Chrome) Extensions

Earlier this year, Webkit disabled clipboard access of web pages by default for security reasons (see this changelog and this bug report). Programming-wise, this means good old document.execCommand(‘Copy’) and document.execCommand(‘Paste’) will always return false. This is indeed quite understandable, and … Continue reading

Posted in Chromium extension | Tagged , , , , , | Comments Off

Setting a Default Zoom Level for Chrome Browser

Update (2012-5-19): On Chromium/Chrome 19, open ‘Settings‘, click ‘show advanced settings‘ at the bottom, scroll to ‘Web content‘, change ‘Page zoom‘. Amazon.com Widgets Update (2011-3-9): Google has released into the stable release channel Chromium/Chrome 10, which supports the global default … Continue reading

Posted in Web | Tagged , , , , | 5 Comments

Merging Two PhpBB Forums Together

Browsing through my sourceforge account, I realized there still was a ‘zombie’ GeeXboX for Wii forum left there. I thought maybe I could merge the few posts there into the slightly more active and up-to-date GeeXboX for Wii forum and opt out … Continue reading

Posted in Web | Tagged , | Comments Off