-
posts
-
New Google App Engine API Expert
Yesterday I became the new Google App Engine API
Expert (Python) for the
Japan region. Google Experts are the equivalent for Google API Gurus as they are
called in the US. I will be helping out other developers in Japan to learn about
and u...
-
bpssl - The Django SSL Support Application
The other day I released bpssl which is a Django application that helps you
support HTTPS on your website. The main functionality is performing redirection
for HTTPS only URLs and views. For instance, if a request for your login view
/login is rec...
-
Cron only decorator for App Engine
For a recent project I recently I have been using App Engine’s cron
feature to aggregate data and perform maintenance tasks. However, since
cron is a simple web request, if a user accesses that url then the cron
job will run. In order to prevent n...
-
Dynamically Adding a Method to Classes or Class Instances in Python
In Python you sometimes want to dynamically add methods to classes or
class instances (objects). In Python code, the most obvious way to
accomplish this might be something like the following but it has one
caveat,
class MyObj(object):
def __i...
-
Key Value Storage Systems ... and Beyond ... with Python
Google docs wouldn’t let me share the presentation publicly with people outside
our company’s domain and it gave me an error when I tried to download it as a
PowerPoint file or PDF so I was forced to recreate my presentation locally.
Anyway, I pla...
-
python-openvcdiff and Cython
I started a project today to implement an interface for the
open-vcdiff using
Cython. I’m not a C++ master and the Python C
libraries are pretty new to me but I managed to expose and implement a few
methods of the VCDiffEncoder class. The hardest ...
-
Modipyd with Growl Notifications and Test Driven Development
Recently at work my coworker Shinya
Okano came across
Modipyd written by Takanori
Ishikawa. Modipyd is a module
dependency monitoring framework which can build module dependency trees
and monitor when modules have been changed. But most interestin...
-
'self' ForeignKeys always result in a JOIN
I came across a little annoyance in Django today. I found that a ForeignKey
that reference self, i.e. points to the same table, always results in a join
in a filter.
Take this normal foreign key reference.
class Customer(models.Models):
user...
-
Django template2pdf
This is cool Django application from Yasushi
Masuda which allows you to render data to
a pdf using trml2pdf.
template2pdf provides a
generic view called direct_to_pdf which will render a rml template
directly to pdf.
# coding: utf-8
from django...
-
Writing Schema migrations for App Engine using the Mapper Class and the deferred Library
One thing that many people using App Engine know is that writing schema
migrations is hard. Improving performance on App Engine often revolves
around getting objects by key or key name rather than using filters,
however altering the makeup of an o...