[google-appengine] indexes exceeding quota

2009-08-04 Thread niklasr
Indexes seem to be stuck building forever and a text appeared "warning Your application is exceeding a quota: Datastore Indices Count help" Could somebody please explain what to do? Thank you Niklas --~--~-~--~~~---~--~~ You received this message because you are sub

[google-appengine] dataviewer complication

2009-08-06 Thread niklasr
Hello Recently there were results I can't understand from the dataviewer console: SELECT * FROM Article order by added desc #The above works to view entities SELECT * FROM Article where published=True #The above works to view lists entities The following however generates a server error SELECT * F

[google-appengine] Re: App Engine serving all pages as html -

2009-08-10 Thread niklasr
Try if you like gzipped sitemap.xml.gz approved via google webmaster tools, Http header: "Content-Type: gzip " import zlib import gzip import string import os import gzip import StringIO class SiteMap(webapp.RequestHandler): def get(self): start = datetime.now() - timedelta (days = 91)

[google-appengine] Re: Pretty URLs

2009-08-25 Thread niklasr
On Aug 25, 10:29 pm, pistacchio wrote: > Hi, > maybe I'm missing something from the documentation (I'm just > starting), but generally, how does url handling work in GAE? > > Apart from the basics like > --- > application = webapp.WSGIApplication([('/', MainPage), ('/test', > Test)]) > --- > th

[google-appengine] Re: Text based RPG

2009-09-03 Thread niklasr
On Sep 3, 9:57 pm, Matthew Kramer wrote: > I'm really new with python and google appengine and I'm still trying > to figure out how to work things with it. I'm going to try and make a > text based rpg and I was wondering if anyone could give me some > pointers and easy ways to get me started. >

[google-appengine] Re: drop down choice with dynamic fields

2009-09-04 Thread niklasr
On Aug 29, 4:41 pm, yoyoteng wrote: > Hi all, > > One question to you GAE experts. I'm using the python version by the > way. > > I'd like to create a form in Google App Engine with 2 fields, say A > and B, and the choices of field B is restricted by A.  For example, A > have choices ['a', 'b']

[google-appengine] Re: Retrieving Source from GAE

2009-09-04 Thread niklasr
On Sep 3, 12:48 pm, ae wrote: > Hi, I had a couple of hard drives die one after the other in a shot > period of time so I lost all my source code.  Can someone from Google > please PLEASE help me retrieve the source from GAE?  Thanks. appfilesbrowser.googlecode.com can handle it when integrated

[google-appengine] Re: I know Perl - which is better to adopt java / python

2009-09-14 Thread niklasr
On Sep 12, 7:59 am, abhishek wrote: > Hi friends, > I consider myself to be good in Perl, i know google app engine is not > for Perl,i need to know which is the better option now for me to > develop applications for google app - Java / Pyhton. > I am thinking about java though. > Also can you p

[google-appengine] Re: Load Django Template from database

2009-09-15 Thread niklasr
generally, avoid markup in datastore is good, do intermediary, yaml is good --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups

[google-appengine] Re: What are your top three issues in appengine?

2009-10-06 Thread niklasr
define 3in1 workui integrated vcs,edits and deployments http://code.google.com/p/googleappengine/issues/detail?id=2136 internationalisation and localisation http://code.google.com/p/googleappengine/issues/detail?id=2134 3rd, use yaml for everything trivial --~--~-~--~~~---

[google-appengine] Re: Pagination with Ranking

2009-10-06 Thread niklasr
count > 1000 split according to time or any, example improvable with dynamical increment (make dependant dayinc) def get(self):#sums > 1000 import time from datetime import datetime, timedelta inc = datetime.now ()-timedelta(days = 1000) dayinc = 10 #ok while return < 1000 every 10 days sum = 0 wh

[google-appengine] Re: Generate cryptographically secure random number

2009-10-07 Thread niklasr
7 generators are Lehmer, Rotenberg, GGL, Neave Oakenfull (2) and Wichmann-Hill docs.python.org/library/random.html Weibull function or Brownian motion are also wellknown randomnesses: import random print random.weibullvariate(2,2) output: 1.85255758863 --~--~-~--~~~---~

[google-appengine] Re: Ask GAE: XMPP and WebSockets in the foreseeable future?

2009-10-10 Thread niklasr
via http://apps.sameplace.cc/chat/chat.xhtml it responds well. sockets are oldfashioned for one opinion, the less numbers the better. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post

[google-appengine] Re: Broadcasting real-time notifications using XMPP - possible?

2009-10-12 Thread niklasr
XMPP multicast certainly is doable for instance via the official good gae xmpp project already achieving similar functions, broadcasting answers to questions when answers appear, is http://code.google.com/appengine/articles/using_xmpp.html and seems able to do what you want with small modification

[google-appengine] Re: how to convince client

2009-10-15 Thread niklasr
On Oct 14, 12:52 am, Richard wrote: > hello, > > the App Engine webpage has lots of good information for developers > like us, but what about for our clients? > > My client is skeptical about deploying on GAE, so I'd like to show him > some propaganda about uptime, costs, etc. Is there anything

[google-appengine] intensity measure

2009-10-16 Thread niklasr
Hey For not reinventing already elsewhere, a good function will be intensity measure ie average time between new entities. We can add this ourselves and welcome further comments. Basically for any model display average time between 2 new and benchmarks, what meantime is fast growth. Sincerely Nick

[google-appengine] Re: how to convince client

2009-10-16 Thread niklasr
On Oct 16, 10:45 am, Jason Smith wrote: > I have to agree with the others. GAE is a fine (I would say it is the > ideal) prototyping platform--development is easy, and deploying is > trivial. However as an app becomes increasingly valuable to its > creator, you will feel more and more pressure

[google-appengine] Re: View this page "Google App Engine Open Source Projects"

2009-10-22 Thread niklasr
Kool code.google.com/p/appengine-admin I use recommended --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe

[google-appengine] Re: Unable to Connect to Datastore

2009-10-27 Thread niklasr
On Oct 27, 5:00 am, Chris H wrote: > Hi, > We are currently having issues connecting to our datastore. Is anyone > else seeing this issue? > >   File "/base/python_lib/versions/1/google/appengine/ext/db/ > __init__.py", line 1579, in fetch >     raw = raw_query.Get(limit, offset) >   File "/bas

[google-appengine] Re: Querys

2009-11-07 Thread niklasr
On Nov 7, 12:00 pm, david wrote: > Hello, > > How can I know how many items it returns a query? > Example: > eventos = db.GqlQuery ("SELECT * FROM Evento") > How many items? > > Other question. > How can I do random of numers in python? > > See you. Thanks. python list size or eventos.count() w

[google-appengine] Re: How to design data model

2009-11-15 Thread niklasr
On Nov 15, 5:48 pm, fhucho wrote: > Hi, > I am developing a web app, where users should be able to (in this > order): >     1) create their item type (item type can be everything - car, > book, movie..., item type has some user defined parameters, > like                                        pr

[google-appengine] Re: Getting Strange Error From Cron Job

2009-11-18 Thread niklasr
On Nov 18, 7:44 pm, Kevin wrote: > I am attempting to implement an application that performs some > occasional web crawling as a component of its day-to-day > functionality. > The web crawling code can be executed from a jsp file.  When I test it > on my computer by accessing the jsp file, it pe

[google-appengine] Re: Best practice for environment architecture design (development, test, verification, production)

2009-11-20 Thread niklasr
On Nov 20, 4:54 am, Anders Moberg wrote: > Hi, > > I have searched for some kind of best practice for environment > architecture design in GAE but haven't found anything (yet). > > I think we need 4 environments, development, test, verification and > production. But that is just my initial thoug

[google-appengine] Re: How to design data model

2009-11-22 Thread niklasr
ooglecode.com welcome view live montao.com.br migr8ing to gae web.montao.com.br and Indian version Fridge.Koolbusiness.com > > On Nov 16, 5:38 am, niklasr wrote: > > > On Nov 15, 5:48 pm, fhucho wrote:> Hi, > > > I am developing a web app, where users should be able to

[google-appengine] income / billing (adsense gae combined)

2009-11-22 Thread niklasr
Feature request or do tell if you know implemented function that calulcates my ROI i/o between adsense output and e.g. gae billing for time > 0. I can compute it manually registering my adsense income relative gae billing for history and sure it's technically feasible and appropriate for typical. T

[google-appengine] Re: Datastore Model Design

2009-11-24 Thread niklasr
On Nov 24, 4:52 pm, Pierre Lavignotte wrote: > No one to help me with my model ? > > :'( Always Craig Larman is good ref, creator model and factory design patterns to R&D. My quick advice is avoid finegraining what I briefly noticed and make more specific models since models mentioned look sligh

[google-appengine] mail this group enables new optional idea

2009-11-24 Thread niklasr
this idea to include direct link to current discussion in text very obvious to view newest discussion version. since the links are now to the group, not to the actual discussion, welcomes its consequense -- You received this message because you are subscribed to the Google Groups "Google App Eng

[google-appengine] Re: What IDE the community recommend to developers of Python+GAE

2009-11-24 Thread niklasr
e mentioned Eric, Boa constructor, PIDE, drPython where obviously most important question we long investig8 there supporting the other creative and constructive team project "noreply" :-) python IDE for hg   niklasr nikla...@gmail.com google-appengine-python Hello group, Since no py IDE I found ha

[google-appengine] Re: What IDE the community recommend to developers of Python+GAE

2009-11-26 Thread niklasr
hg ide discussion I started http://groups.google.com/group/comp.lang.python/browse_thread/thread/a62b1da1a956ce33/730846bafc2c16b4#730846bafc2c16b4 -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-

[google-appengine] Re: Sample code of i18n on GAE+Django

2008-11-18 Thread niklasr
Altering settings.LANGUAGE_CODE at runtime switches languages dynamically (while the django manual says not to i.e. "You shouldn’t alter settings in your applications at runtime") e.g. english for .com and pt_BR for .com.br: from django.conf import settings if os.environ.get('HTTP_HOST'): url =

[google-appengine] gql matching DateTimeProperty

2008-11-19 Thread niklasr
SELECT * FROM thing WHERE added = '2008-06-08 22:17:45.200477 ' won't match Neither SELECT * FROM thing WHERE added < '2008-07-08 22:17:45.200477 ' and added > '2008-06-08 22:17:45.200477 ' And SELECT * FROM Ad WHERE added < '2006-11-18 22:17:45.200477 ' surprisingly matches many entities. Ho

[google-appengine] Re: gql matching DateTimeProperty

2008-11-20 Thread niklasr
) > * TIME(hour, minute, second) > * TIME('HH:MM:SS') > > -Marzia > > On Wed, Nov 19, 2008 at 7:03 PM, niklasr <[EMAIL PROTECTED]> wrote: > > > SELECT * FROM thing WHERE added =  '2008-06-08 22:17:45.200477 ' > > won't match > >

[google-appengine] Re: gql matching DateTimeProperty

2008-11-20 Thread niklasr
milliseconds are not included, you would need to query something like this > to find a specific entity that accorded at 2008-06-08 22:17.45.: > > SELECT * FROM thing WHERE date > DATETIME(\'2008-06-08 22:17.45\') AND date > < DATETIME(\'2008-06-08 22:17.46\')

[google-appengine] counting referencecollection

2008-11-21 Thread niklasr
django equilavent of the mako % if matched_images.count() > 1: is what i want django to do however the obvious isn't {% if matched_images.count > 1 %} What can it be? The reference is defined as reference=db.ReferenceProperty(announcement, collection_name = 'matched_images') Thank you NR --~--

[google-appengine] Re: Saving files

2008-11-23 Thread niklasr
There's db.BlobProperty as file data type blob = self.request.POST['file'].file.read() You can store files as blobs i.e. db.BlobProperty and you could store files > 1 mb by complicatingly breaking the file into 1 mb datapieces. I had a look here: http://code.google.com/p/gae-services-examples/sou

[google-appengine] recognizing admins

2008-11-28 Thread niklasr
Hello, Can there be a template tag recognizing admins e.g. {% ifadmin %}{{info}}{% endifadmin %} Similar to the APIs ( if users.is_current_user_admin() ) but from template. Thank you Niklas --~--~-~--~~~---~--~~ You received this message because you are subscribe

[google-appengine] Re: Hello, World! - Fatal error when loading application configuration

2008-11-28 Thread niklasr
Yes, replacing tabs with spaces in the .yaml solved the same problem here. On Nov 28, 1:55 pm, cashby <[EMAIL PROTECTED]> wrote: > I'm trying to get started with Google App Engine on a Windows Vista > PC. > > I have Python 2.52 installed the directory c:\python25 > I have Google App Engine 1.1.7

[google-appengine] filter logs with reg exp

2008-12-02 Thread niklasr
Hello How do we filter out requests from two or more ip numbers (googlebots, developers, etc) in the request log? I tried it like [^(123\.456|345\. 456)] but that's not it. Thanks in advance. Niklas --~--~-~--~~~---~--~~ You received this message because you are sub

[google-appengine] geopt filter

2008-12-02 Thread niklasr
There's the problem of "show everything close to a geopt". I came around it by iterating a 2nd time after the query and saving only nearby entities to a new list as at most one property per query can have inequality filter and geohash isn't usable. So we can filter and find everything in a radius

[google-appengine] Re: geopt filter

2008-12-03 Thread niklasr
27;lat' > of the request only once and not everyt time the loop is traversed. > > - Robert > > On Dec 3, 5:02 am, niklasr <[EMAIL PROTECTED]> wrote: > > > There's the problem of "show everything close to a geopt". I came > > around it by iter

[google-appengine] 3 feature requests

2008-12-03 Thread niklasr
There are 3 features from django that are interesting RSS syndication http://docs.djangoproject.com/en/dev/ref/contrib/syndication/?from=olddocs Form preview framework http://docs.djangoproject.com/en/dev/ref/contrib/formtools/form-preview/#ref-contrib-formtools-form-preview Sitemap generator h

[google-appengine] Re: host info

2008-12-04 Thread niklasr
os.environ may achieve it import os if os.environ.get('HTTP_HOST'): url = os.environ['HTTP_HOST'] else: url = os.environ['SERVER_NAME'] On Dec 5, 4:07 am, lws68825 <[EMAIL PROTECTED]> wrote: > Hi, > Can anyone help me on getting host info in a cgi script? I want to set > different mappi

[google-appengine] Re: 3 feature requests

2008-12-11 Thread niklasr
don't work out of the box on App Engine tend to be > those that use Django's ORM layer, which doesn't work with the App Engine > datastore.  One notable example is the admin app. > > -- Dan > > On Wed, Dec 3, 2008 at 4:00 PM, niklasr <[EMAIL PROTECTED]> w

[google-appengine] Re: non-users need easy url

2008-12-14 Thread niklasr
>I want the url path to be more word-like. "friendly url" isn't standardized though I do [id]/[slugify(title)] e.g. /113488/bigbonus-ganhe-dinheiro-indicando-pessoas-e-compr(.htm(l)) markup {{article.title|fix_ampersands }} #rewrite / handler / dispatch ('/([0-9]*)/([^/]*)', ArticleById), c

[google-appengine] Re: a reusable method for deleting bad ReferenceProperty properties

2008-12-15 Thread niklasr
Thing is the timeout. I manage inconsistencies from this start. Also check appengine admin which catches bad references. http://code.google.com/p/appengine-admin/ http://dpaste.com/hold/99361/ class ImagePage(webapp.RequestHandler): def get(self): if users.is_current_user_admin():

[google-appengine] Re: one application multiple alias domain

2009-01-01 Thread niklasr
Sure you can. For each domain just apply the same app. Niklas On Jan 1, 2:29 pm, gops wrote: > is there any way in google apps to add gooogle app engine app and run > it for multiple domain alias. > > i.e.  www.maindomain.com/mypage.htmlandwww.aliasdomain.com/mypage.html > will show same page. >

[google-appengine] serverside reverse geocoding

2009-01-03 Thread niklasr
I save one geopt per entity and want to display its location breadcrumb from its view i.e. localityname < administrativeareaname < nation The only way seems to be gmaps javascript api as no gae serverside function is available for reverse geocoding. Can we expect serverside reverse geocoding fro

[google-appengine] Re: return a variable value from html form to python

2009-01-04 Thread niklasr
Hey Brian, Maybe it's as easy as g_place = self.request.POST.get('place') instead of g_place = self.request.get('place') Cheers Niklas Stockholm On Jan 4, 11:18 am, thebrianschott wrote: > Having received no replies, let me say a little more. > > If I add the following line into the beginning

[google-appengine] Re: Static File Questions

2009-01-09 Thread niklasr
Reversibly breaking and remaking larger than 1MB files persistently storing max 1 MB chunks, gae http get and post support the larger. The gae http transport as it is handles larger files. The 1MB limit only limits the entities, not the transport. On Jan 8, 11:59 pm, MajorProgamming wrote: > Jus

[google-appengine] Re: Static File Questions

2009-01-09 Thread niklasr
;m not sure I understand you. Which question # were you trying to > answer? > > On Jan 9, 3:26 am, niklasr wrote: > > > Reversibly breaking and remaking larger than 1MB files persistently > > storing max 1 MB chunks, gae http get and post support the larger. The > > gae http t

[google-appengine] Re: Static File Questions

2009-01-25 Thread niklasr
On Jan 25, 6:22 am, James Ashley wrote: > On Jan 9, 3:34 pm, niklasr wrote: > > > example: upload a 2 MB file through a html form, split it serverside > > into 2 or 3 parts, then store the parts as blobs of max 1 MB each. > > It's inconvenient yet a method

[google-appengine] Re: Basic Question concerning "def get(self) and def post(self)"

2009-01-28 Thread niklasr
My related question is whether http post directly to the server root is go or no? Thank you Niklas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google

[google-appengine] text search functions

2009-01-30 Thread niklasr
Dear group, Search functions for datastore such as similar to SQL 'LIKE', boolean search, fuzzy and proximity search, inexact matches, and filters for category and geolocation are of priority. For my search implementation I choose between adsense search or direct gql search, and would like to know

[google-appengine] Re: Location tracking with AppEngine

2009-02-01 Thread niklasr
> tips for guessing theirlocationif they don't have Gears installed? > (Keep in mind, I'm looking at the neighborhood/metro level). geoip is one established way. display client location works with geoip (with a gmap (such as classifiedsmarket.appspot.com)) Country Code: document.write(geoip_co

[google-appengine] Re: date range in query

2009-02-03 Thread niklasr
gql as below works. SELECT * FROM Image where added > DATETIME(2009,1,1,0,0,0) and added < DATETIME(2009,2,1,0,0,0) we must use the integer form (the manual lists b0rked forms) http://code.google.com/p/googleappengine/issues/detail?id=878 cheers niklas On Feb 3, 12:02 pm, arnie wrote: > For a da

[google-appengine] Re: Using Portuguese Language for inputs

2009-02-06 Thread niklasr
On Feb 7, 4:06 am, "moises.soa...@gmail.com" wrote: > Hi, > > this is a very begginer question. > > I use this code to render de template: >         path = os.path.join(os.path.dirname(__file__), > 'contacto.html') >         self.response.headers["Content-Type"] = "text/html; > charset=iso-8859-

[google-appengine] gae-rest rss atom

2009-02-06 Thread niklasr
How do we set attributes to undisplayed / hidden / private with gae- rest? My rss feed seems shows too many attributes. The question is how to set isPrivate boolean attribute for hidden content such as email addresses. GAE-REST http://github.com/fczuardi/gae-rest/tree/master Thank you Niklas --~

[google-appengine] prepopulate form fields according to http get parameters

2009-02-07 Thread niklasr
I'm looking for template tags or similar that according to http get request parameters set the corresponding html form fields. To achieve the selection of an html option and populate a textfield according to the http request parameters where http get with two parameters should prepopulate a textfi

[google-appengine] Re: prepopulate form fields according to http get parameters

2009-02-08 Thread niklasr
On Feb 8, 10:11 am, Alexander Kojevnikov wrote: > On Feb 8, 6:56 pm, niklasr wrote: > > > > > I'm looking for template tags or similar that according to http get > > request parameters set the corresponding html form fields. To achieve > > the selecti

[google-appengine] Re: Download code

2009-02-09 Thread niklasr
I include http://appfilesbrowser.googlecode.com/files/GAEAppFileBrowser.rar and download deployed source to local. Datastore backup solution seems to be approcket. regards Niklas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

[google-appengine] Re: prepopulate form fields according to http get parameters

2009-02-10 Thread niklasr
I agree and plan to keep labels and values for options (alternating list or dictionary) and optionValueFromQuery getparameter tag we get from library or make. (EL tags can do it so django tags can.) {{currentOptionLabel}} Thank you Niklas --~--~-~--~~~---~--~~ You

[google-appengine] Re: Download code

2009-02-20 Thread niklasr
9, 2:41 am, luismgz wrote: > Very interesting! > But please explain, how should I install this? > Should I place the src folder in the rrot directory? Should I copy the > files? > How should I avoid conflicts with my own scripts (.py, yaml, static, > etc)? > > Luis > >

[google-appengine] Re: Secure Feeds (RSS, ATOM)

2009-02-20 Thread niklasr
i use gae-rest http://www.ohloh.net/p/gae-rest after finding that r.e.s.t. is more preferable than s.o.a.p. conditioned users.get_current_user() == feed.user for security. feeds should be part of the standard webapp framework but are not and according to what i read the django's syndication featur

[google-appengine] Re: Get host name

2009-02-22 Thread niklasr
Host name and server name are available from os.environ. if os.environ.get('HTTP_HOST'): url = os.environ['HTTP_HOST'] else: url = os.environ['SERVER_NAME'] Regards, Niklas On Feb 22, 3:26 pm, Yossi wrote: > How do I get the host name of my application from a python module? > > Thanks, > Y

[google-appengine] Re: Download code

2009-02-23 Thread niklasr
site's one and > GAEAppFileBrowser's one)... > > On 20 feb, 06:29, niklasr wrote: > > > Placing files from the GAEAppFileBrowser.rar src folder in the app's > > root directory,( listfiles.py in the same root folder as app.yaml ) > > and the yaml from the app

[google-appengine] django urlize

2009-04-22 Thread niklasr
dear group, django urlize works a bit dubiously för unobvious inputs for example 'Check out djangoproject.com(www.djangoproject.com)' would have expected output 'Check out djangoproject.com(http://www.djangoproject.com"; rel="nofollow">www.djangoproject.com)' but is Check out http://djangoproject.

[google-appengine] Re: django urlize

2009-04-23 Thread niklasr
a-fA-F\d]{2})|[:@&=+])*))*)?)))?)|(?:/(?:(?:(?:(?:(?:[a-zA-Z\d \$\-_.!~*'(),])|(?:%[a-fA-F\d]{2})|[:@&=+])*)(?:/(?:(?:(?:[a-zA-Z\d\$- +_.!~*'(),])|(?:%[a-fA-F\d]{2})|[:@&=+])*))*)?))|(?:(?:(?:(?:(?:[a-zA- Z\d\$\-_.!~*'(),])|(?:%[a-fA-F\d]{2})|[:@&=+])*)(?:/(?:(?:(?:[a-z

[google-appengine] Re: Creating a filter using google api

2009-05-12 Thread niklasr
mples.googlecode.com best wishes NiklasR --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe fro