A decorate function for pagecache in GAE for python2.7 and webapp2

By AppEngineWebService November 16, 2011 | 05:50 AM | Categories: google app engine

GAE is very Expensive now, use a page cache to save your money.

code:

def pagecache(key="",time=3600):
def _decorate(method):
def _wrapper(*args, **kwargs):
if not PAGE_CACHE:
method(*args, **kwargs)
return

request=args[0].request
response=args[0].response
skey=key+ request.path_qs
html= memcache.get(skey)
if html:
logging.info('cache:'+skey)
response.last_modified =html[1]
ilen=len(html)
if ilen>=3:
response.set_status(html[2])
if ilen>=4:
for skey,value in html[3].items():
response.headers[skey]=value
response.out.write(html[0])
else:
if 'last-modified' not in response.headers:
response.last_modified = format_date(datetime.utcnow())

Continue Reading “A decorate function for pagecache in GAE for python2.7 and webapp2” »

twibes.com is a app run on GAE about twitter

By AppEngineWebService November 12, 2011 | 05:19 AM | Categories: google app engine

When I Ordered twibes.com
I didn't know what to expect because the sales page seemed to good to be true. But for the most part it is a really good product. The sales page sort of over promotes it but twibes.com is a good investment if you decide to purchase.

Continue Reading “twibes.com is a app run on GAE about twitter” »

How do I know a site running on the GAE

By AppEngineWebService November 12, 2011 | 01:42 AM | Categories: google app engine

How can we know that a website is running on GAE?

If a Web site running on GAE, then one of the following three things will be true:

1)Site alias record (CNAME) points to ghs.google.com, ghs.l.google.com or appspot.l.google.com.

2)Visit the site with path /form will return a Google-style 404 error page.

Continue Reading “How do I know a site running on the GAE” »

Feedback on the new pricing

By Daniel Florey November 09, 2011 | 01:39 PM | Categories: google app engine

Hi,
we are running a tool on App Engine that allows users to sync GMail contacts between different Google / Google Apps accounts.
https://www.google.com/enterprise/marketplace/viewListing?productListingId=2083+12830481423215493060

We make a dedicated deploy to app engine for each customer (company) so that each client has full control over the datastore permissions etc.
Right now we have ~2000 instances running on GAE. A lot of these companies switched to Google Apps after evaluating our tool that gives them missing core functionality.

Continue Reading “Feedback on the new pricing” »

How can I undelete (recover) deleted entities?

By yaakovsash November 09, 2011 | 04:08 AM | Categories: google app engine

I had 30 GB of entities saved over 2-3 years but I only needed the entities for the past 365 days.

Since the cost for storage is going way way up, I decided to delete out the unneeded entities.

Continue Reading “How can I undelete (recover) deleted entities?” »

App Engine Datastore operations are seriously expensive

By Kenneth November 09, 2011 | 01:45 AM | Categories: google app engine
I've been monitoring my app today for cost and the instances are so far fairly ok. However I'm getting absolutely hammered on the datastore operations. (yes, this was in the billing preview)

Continue Reading “App Engine Datastore operations are seriously expensive” »

Create a Facebook App on GAE in a minute

By CoderBuddy November 09, 2011 | 01:35 AM | Categories: google app engine

Hi guys,

We've just released a new starter app that helps you create a Facebook App in a minute on Google App Engine (on CoderBuddy, the free, social web IDE).

We've written up quick, detailed instructions to help you with the configuration on Facebook's Dev site as well. You can check it all out here at:

Continue Reading “Create a Facebook App on GAE in a minute” »

How to set something to happen regularly at a particular time by cron or Taskqueue on GAE

By AppEngineWebService November 07, 2011 | 01:32 PM | Categories: google app engine
If you want something to happen regularly at a particular time, then you should use cron. Create a handler that will spawn Tasks and have cron trigger it at a certain time.

Continue Reading “How to set something to happen regularly at a particular time by cron or Taskqueue on GAE” »

Advertisement

Hot Categories
Hot Tags
Recent comments
Links