from google.appengine.ext import dbImportError: No module named google.appengine.extdjango.core.exceptions.ImproperlyConfigured: 'appengine' isn't an available database backend.Try using django.db.backends.XXX, where XXX is one of:'dummy', 'mysql', 'oracle', 'postgresql', 'postgresql_psycopg2', 'sqlite3'Error was: No module named appengine.basegoogle.appengine.dist._library.UnacceptableVersionError
Monday, November 15, 2010
App Engine Helper for Django - Part I
Friday, November 12, 2010
Exporting Contacts from Facebook - How many care?
Thursday, November 11, 2010
GAE Error when displaying datastore entity key
TypeError: write() argument 1 must be string or read-only character buffer, not Key Reason
I was trying to display key for an entity. Python/ Java API returns keys as an instance of the entity class. Convert it to string to pass it or to display.
Running Django on Google App Engine
application: gaeappversion: 1runtime: pythonapi_version: 1handlers:- url: /staticstatic_dir: static- url: .*script: main.py
import os, loggingfrom google.appengine.ext import webappfrom google.appengine.ext.webapp import utilfrom django.conf import settingssettings._target=Noneos.environ['DJANGO_SETTINGS_MODULE']='djprj.settings'import django.core.handlers.wsgiimport django.core.signalsimport django.dbimport django.dispatch.dispatcher#class MainHandler(webapp.RequestHandler):# def get(self):# self.response.out.write('Hello World!')def main():#application = webapp.WSGIApplication([('/', MainHandler)], debug=True)application=django.core.handlers.wsgi.WSGIHandler()util.run_wsgi_app(application)if __name__ == '__main__':main()
- Comment out all of the middleware parameter else you might get this error "AttributeError: 'module' object has no attribute 'messages'".
- Ensure ROOT_URLCONF = 'urls' if Django files are in GAE dir. Else it will be djprj.urls since our project is called djprj.
Tuesday, November 09, 2010
An African Elephant Sketch
Monday, November 08, 2010
Friday, November 05, 2010
Mac OSX Disk Sweeper
With over year and half of data, my mac harddrive is choking. With backups for previous machines and trip photographs and applications etc. Although I've backup on external harddrive, my fingers still refuse to delete anything worthwhile from my mac. So until I bought another harddrive to backup my backup, I had to do some clean up. A quick googling helped me find this awesome software called Disk Sweeper that gives the directories in the descending order of size.
http://www.omnigroup.com/products/omnidisksweeper/
Jeff Dunham Show
Amazon Kindle has games
Amazon buying your old books
Amazon is offering a trade in of amazon gift card worth $5 or more for your used books in good condition. These books will be purchased by a Third Party Merchant. How convenient is it that that shipping is free. So no more selling your books for the same amount and wait in queue at halfprice bookstore or reposting those craigslist advts.
Cute Puss sans boots
If you have seen any of the Shrek movies, well not any, but ones after 1st Shrek you know who Puss is. Puss is the ninja cat - nimble, fast, sharp and in the boots at that. This is how Puss looked before.
Wednesday, May 19, 2010
We are Shortsighted
If we have choices all along why do we feel so discontented? Because we are timing our decisions wrong. Rather than focusing on what will make us happier today we are making choices for the self that we think we will be in future. But when the future comes we are anything but happy about our decisions. How often are you amused by naivety of your younger self? We change and so does the world around us. Our experiences shift our thinking and our thoughts no longer align with our previous ones. We need to realize this disparity and be cognizant that the obvious choices today would still rub us the wrong way tomorrow.
[All this is discussed in detail in Daniel Gilbert’s book ‘Stumbling on Happiness’.]
Tuesday, May 18, 2010
Coders and Insurance
I wonder how could humble people who take out insurance policies on themselves miss to see fallibility of the applications they create. By taking insurance they accepted fallibility of their own body or mind. At the same time they weren’t “expecting” something to happen to them. It was just a way of ensuring things go smooth in the event of a failure.
I would suggest we take out the insurance on our programs too, just in case.
Wednesday, May 05, 2010
Reading
But I was gonna talk about my reading. So I got a Kindle last month. It's by far my favorite gadget; so light and beautiful; and keeps me away from jumping on the internet and losing my time. The only thing I miss is a touch screen on it which will make using it's dictionary feature super easy. It's great to get all those classics on Kindle and read away.
So since last month I've read quite a few books - The Curious Case of Benjamin Button - an incredible, witty short story. Am a Fitzgerald fan now.
Adventures of Alice in Wonderland, hadn't read the book although I saw the animation. I used to be scared to Queen of Heart as a kid. She wasn't that scary in the book. Perhaps the next in the series will change that opinion.
And then the ultimate - Three men in a boat and to say nothing of the dog. O Man! This is like opium. I would say this is round tine. It's so ineffably funny but yet J penned it! I read it and read again to whoever will listen.
Am now reading the Great Expectations by Charles Dickens. It seems interesting but am still yearning for more of Jerome K Jerome. If I go to gym I reward myself by reading - 'The importance of being Earnest' by Oscar Wild(e). It's a satirical play. During my lunch I've been reading autobiography of Virgin owner - Richard Branson. It's so interesting it feels like fiction.
PS - The name of author is Arnold Bennett.
Tuesday, May 04, 2010
Cheesecake
Deviation#1
The tin foil cake-pans I bought ended up smaller than I needed and I didn't have any spring-foam cake-pans. The recipe on Philadelphia Cream Cheese suggested I use the regular 9" dia pan and line it with foil leaving out enough foil to lift the cake out of the pan. It worked quite well and was fun to do it.
Deviation#2
The pan turned out to be smaller for the suggested ingredients. Of course I was mixing suggestions from two different recipes. I left out one egg.
When is my Cheesecake done?
I baked the cake as suggested but it cracked and looks like it was due to over baking. To check if your cheesecake is done; give the cake-pan a jerk. If the center wobbles, it needs more time. If it barely moves, it's done.
Monday, March 15, 2010
Tiger
Journey into the animal kingdom continues from cat, horse to tiger. I guess next would be lion.
Checkout the video with 34 stages of the sketch. It took me 5 seatings spread across 3 months to finish it...mostly because I was lazy and it looked like a daunting task after 50% into it.
Also learned that if you're creating a movie with pics in iMovie it will add Ken burn effects by default and any changes to project properties don't get applied?? Create a new project, alter the project properties and then add pics.
Thursday, February 04, 2010
Sunday, January 31, 2010
Snowboarding
ankle sprained.
hamstrings are pulled;
all the signs of age.
But, hey, I’m not getting old.
It's just that yesterday,
I did snowboard.
I relish snowboarding and the pain that devours me afterward; it reminds me of the fun I had. I started snowboarding in 2007 in Snoqualmie after having given up skiing previous season; I had hurt my knee and wore a knee pad of poison ivy, it was really that itchy, for ten days and limped my way to work.
It didn't go very well on day one of snowboarding. I considered myself inapt at learning but my friend encouraged me and practiced with me. Gave me hope. So I dragged on with the board with one feet tied to it and other lazily pushing it.
With the second and third class I was improving. I'm glad that I had the hope and determination.
This year I bought my own snowboard :-)
I can ride down without falling down most of the times but I make up for that while getting down the chair lift. It gets me every time. I entangle my snowboard with my co-rider and we fall together. I almost offended someone when I refused to ride the lift with them. I feared for their safety.
Chair lift is a good place to meet people. Last time I met the ski patrol who is a locale to the Mansfield resort and he told me how their street name changed forever when a TV reporter on National TV called 'Possum Run' as 'Opossum Run' to go with O of Ohio.
This time I met someone who stated that he has been skiing/snowboarding his entire life. He started at an age of 2 and is presently 8 or 9 years old.
Yesterday I took lessons to do c-turns and I know that it takes a sprained ankle to do it right.
It's an immense pleasure to snowboard and I'd suggest you to give it a try but let me warn you that it's fatal and addictive.
Snowboarding Video Tutorials
http://www.abc-of-snowboarding.com/learn-snowboarding/
http://www.snowprofessor.com/
Ski resorts in Columbus open in 1st or 2nd week of Dec and close during 2nd week of March.
Mad River Mountain
Snowtrails