admin's blog
Happy Chinese New Year!Happy Chinese new year to all!! Hong Kong MTR mapadmin's blog
Bugs with googleappengine under macThe urlfetch_stub.py has bug. Replaced the original one by the attached one: Python source directory for GoogleAppEngineLauncherIt is located at: /Applications/GoogleAppEngineLauncher.app/ if you install GoogleAppEngineLaucher.app under /Applications GQL tipTip: Query filters do not have an explicit way to match just part of a string value, but you can fake a prefix match using inequality filters: db.GqlQuery("SELECT * FROM MyModel WHERE prop >= :1 AND prop < :2", "abc", "abc" + "\xEF\xBF\xBD") This matches every MyModel entity with a string property prop that begins with the characters abc. The byte string "\xEF\xBF\xBD" represents the largest possible Unicode character. When the property values are sorted in an index, the values that fall in this range are all of the values that begin with the given prefix. Using custom django template helpers with Google App EngineFrom http://daily.profeth.de/2008/04/using-custom-django-template-helpers.html This is dedicated to all you django lovers out there. If you wondered how to use custom filter functions with your Google App Engine applications, here you go: Create a new file (I created mine in common/templatefilters.py) to hold your template helper functions. In this file, we need to register our custom filters, so: After we got the registry, we now can define our custom function: admin's blog
OpenID authentication supportedI just added the openID support on my personal website, which means you can use any of your openIds (like the account at wordpress.org, yahoo.com) to log into my website. If you don't know about OpenID, please read wiki article OpenID. Everybody is welcome to try on my website! Car SaleI am selling my car, which will be available to buyer after June 15th since I am leaving for a job in other country. The car is 98' Honda Accord with V6 engine. We bought it in May, 2006 and it runs great! We are asking for $5800, which is significantly less than the KBB price. Please feel free to contact us if you are interested in. Ad Title: Posted: |