Android SDK on Ubuntu

Since I got the N1 a few days ago, I’m quite interested in hacking for the Google Android platform. One of my favourite things about Android is that the SDK is freely available for Windows, Mac and Linux. In fact there is even an an effort to port to *BSD systems, although that [...]

Autocomplete with Python, Pylons, SQLAlchemy and jQuery

Recently I needed to implement my own autocomplete for a project on snagmachine.com. We had a large database of products and wanted to ease data entry by hinting to the user via autocomplete when possible.

In future, we can probably just use Freebase Suggest but right now we needed our own solution.
The Pieces
Autocomplete is not [...]

Pylons tip #5 – Streaming static files

Pylons makes it super easy to return data to a client. You just return a string from your controller method!

class HelloController(BaseController):
 
def index(self):
return ‘Hello World!’

Very nice. However, what if you want to serve up a potentially quite large file to the client? [...]

Using OpenBSD’s OpenSMTPd for Email

As many readers may be aware, the venerable Sendmail has been the default mail daemon in OpenBSD for years. This is largely because it is the only reasonable BSD-licensed mail server around. Personally, I have never trusted Sendmail enough to use it on any of my hosts – despite the fact that it [...]

jQuery Freebase Suggest In Place

I just finished my hack of JQuery In Place Editor to work with Freebase Suggest. I call it “JQuery Suggest In Place”. Its pretty much the same as JQuery Edit In Place, except it is stripped down a bit to only give you an input text field with a bound Freebase Suggest. [...]