[google-appengine] Breaking my head on Opensearch

2009-12-27 Thread MajorProgamming
I'm trying to implement an Opensearch XML solution in one of my apps. But IE8 seems to be having some problems with it. I think it might have to do with encoding or content-type issues. How do I serve correctly w/ python? Thanks! -- You received this message because you are subscribed to the

[google-appengine] Duplicating static serving

2009-12-27 Thread MajorProgamming
I recently came across an issue where I solved the problem by taking the same exact template file, and serving it static (in app.yaml) instead of dynamically (through a python script). So I was wondering: How can I serve files dynamically (e.g. templates), so that the result is exactly the same as

[google-appengine] Re: Duplicating static serving

2009-12-27 Thread MajorProgamming
the difference. If you can be more specifc, it would probably be alot easier for someone to help you. 2009/12/27 MajorProgamming sefira...@gmail.com: I recently came across an issue where I solved the problem by taking the same exact template file, and serving it static (in app.yaml) instead

[google-appengine] Re: Duplicating static serving

2009-12-27 Thread MajorProgamming
+engine 2009/12/27 MajorProgamming sefira...@gmail.com: Okay, how can I set MIME/Content type correctly? That might've been the issue... On Dec 27, 5:36 pm, Barry Hunter barrybhun...@googlemail.com wrote: Surely it depends on what your 'problem' was. As long as you setting a MIME

[google-appengine] Reference Properties

2009-11-28 Thread MajorProgamming
I was wondering: isn't using reference properties a waste of space? Wouldn't it make more sense to store the id (assuming not using key_name) of the entity. After all, if the Kind is known, one can easily generate the full key based on that. And with a reference property it actually stores the

[google-appengine] Re: MP3 Data Retreival

2009-11-26 Thread MajorProgamming
That's great info to know. But I more specifically wanted to get the runtime of the file (i.e. in hours, minutes, seconds). Any way to do that? On Nov 26, 2:37 am, Niklas Rosencrantz teknik...@gmail.com wrote: On Thu, Nov 26, 2009 at 5:14 AM, MajorProgamming sefira...@gmail.com wrote

[google-appengine] MP3 Data Retreival

2009-11-25 Thread MajorProgamming
Is there any way to somehow fetch an external MP3 file (i.e. from another website), and then calculate the length of the MP3 file. I don't need the actual data of the file, I just want the length of it (time it runs). Keep in mind that these files can be as big as 25MB... Thanks, -- You

[google-appengine] Filtering Performance Hit?

2009-10-31 Thread MajorProgamming
If I'm filtering on a Listproperty, and perform the same filter twice, is there a performance hit? q=q.filter('lp =','value1') q=q.filter('lp =','value1') Thanks, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[google-appengine] Idempotence for Incoming Mail

2009-10-31 Thread MajorProgamming
What will the mail handler do if there is an error? Will it call it again? Is there any possibility of it calling the URL twice? Thanks, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To

[google-appengine] Mail SPF Problems

2009-09-11 Thread MajorProgamming
I am currently trying to develop an app that uses Google Voice's new email/sms functionality. However, when I send an email from my app to the correct email address, it simply will not go through. I am suspicious that this happens because Google Voice checks SPF records to make sure it really

[google-appengine] Sorting in Memory

2009-08-03 Thread MajorProgamming
What is the most efficient way to sort Datastore results in memory? Thanks, --~--~-~--~~~---~--~~ 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] Deserialization Cost of ListProperty

2009-06-26 Thread MajorProgamming
I was recently watching a Google I/O video (I believe it was by Brett Slatkin), and I noticed that he was trying to avert the Deserialization Cost of ListProperties. I was wondering how bad that cost is, and how big the list has to be in order to see that cost? (e.g. let's say I know the list

[google-appengine] Using UrlFetch with Multipart

2009-06-25 Thread MajorProgamming
As per Twitter Docs. one must use the multipart to post the image [http://apiwiki.twitter.com/Twitter-REST-API-Method:- account update_profile_image] I am currently using a twitter-oauth-appengine library [http:// github.com/tav/tweetapp] and I can't seem to perform the post operation correctly.

[google-appengine] Re: Using UrlFetch with Multipart

2009-06-25 Thread MajorProgamming
Just to get the links straight: The first one is: http://bit.ly/iK9zi And the second is http://bit.ly/196RXR On Jun 25, 10:33 am, MajorProgamming sefira...@gmail.com wrote: As per Twitter Docs. one must use the multipart to post the image [http://apiwiki.twitter.com/Twitter-REST-API-Method

[google-appengine] Re: Using the Humanize part of Django templates

2009-06-24 Thread MajorProgamming
. INSTALLED_APPS is a setting in the settings.py in django. You'll probably need to create a settings.py and put 'django.contrib.humanize' in the INSTALLED_APPS list. see:http://docs.djangoproject.com/en/dev/ref/settings/#installed-apps On Wed, Jun 24, 2009 at 7:19 AM, MajorProgamming sefira

[google-appengine] Using the Humanize part of Django templates

2009-06-23 Thread MajorProgamming
I am currently running an app that is ONLY using Django templates (not the whole framework). I was wondering how I can use the django.contrib.humanize part so I can use specialized filters? It mentions something about INSTALLED_APPS, but I have no clue how to do that? Thanks,

[google-appengine] Actually Using Offset

2009-06-22 Thread MajorProgamming
I need to perform a simple ordering query (descending rank) on my datastore. The default query looks like: query.order('-rank') However, I now need to perform paging. I attempted doing: query.filter('__key__ ', bookmark) query.order('-rank') query.order('__key__') This won't work though

[google-appengine] Idempotence for Cron Jobs

2009-06-22 Thread MajorProgamming
I understand that TaskQueues have the possibility of running over and over again. Does this apply to cron jobs? Do we need to design them to be Idempotent as well? For more info on what I'm talking about: http://en.wikipedia.org/wiki/Idempotence http://www.youtube.com/watch?v=o3TuRs9ANhs

[google-appengine] Re: Check Domain Availability

2009-05-05 Thread MajorProgamming
before you register it. For general domain availability, I recommend a hosting provider website likehttp://www.godaddy.com/. - Jason On Fri, May 1, 2009 at 3:35 PM, MajorProgamming sefira...@gmail.com wrote: I'm looking for a way to check if a domain is available. Preferably to run

[google-appengine] Re: Whoa!! What happened to cron?

2009-05-02 Thread MajorProgamming
Nope. But now it's fixed. Must've been a fluke. On May 1, 3:33 am, 风笑雪 kea...@gmail.com wrote: You can check the logs and make sure it runs every seconds. I think you may just has a loop in your script that looks always running. 2009/5/1 MajorProgamming sefira...@gmail.com I don't know

[google-appengine] Whoa!! What happened to cron?

2009-05-01 Thread MajorProgamming
I don't know if it's only happening by me but my crons are running every second!!! Here is a copy of my cron.yaml: cron: - description: send at night url: /cron/night schedule: every sun,mon,tue,wed,thu,fri of apr,may,jun 1:30 - description: send by day url: /cron/day schedule: every

[google-appengine] Check Domain Availability

2009-05-01 Thread MajorProgamming
I'm looking for a way to check if a domain is available. Preferably to run on Google AppEngine alone. But if not then something in plain python that will work on my own pc. Thanks, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[google-appengine] SMS via Email

2009-04-07 Thread MajorProgamming
I am currently developing an app that will send text message reminders. I was thinking of using each carrier's email gateway to handle the messages. Are there any potential scaling problems with this method? (I plan on sending the text messages via the GAE Email system) Thank you,

[google-appengine] Re: Simultaneous Requests

2009-04-04 Thread MajorProgamming
a large number of requests in parallel, you need to increase the volume gradually. Julian On Apr 3, 4:26 am, MajorProgamming sefira...@gmail.com wrote: I believe I'm using python 2.5. The script I posted before is the entire script, so no timeouts. The server side is simply outputting

[google-appengine] Re: Simultaneous Requests

2009-03-31 Thread MajorProgamming
/appengine/kb/billing.html#cpu) Your approach sounds reasonable, but I was curious about your mention of threading. Would that be client side threading? Ajax triggers would be another good solution which I've seen apps use. Thank you, Jeff On Mar 30, 2:38 pm, MajorProgamming sefira

[google-appengine] Re: Simultaneous Requests

2009-03-31 Thread MajorProgamming
reasonable, but I was curious about your mention of threading. Would that be client side threading? Ajax triggers would be another good solution which I've seen apps use. Thank you, Jeff On Mar 30, 2:38 pm, MajorProgamming sefira...@gmail.com wrote: I am currently working on a way

[google-appengine] Simultaneous Requests

2009-03-30 Thread MajorProgamming
I am currently working on a way to mass email [in a short period of time] using Google App Engine. I figured that as of now the best way to do this would be to run many requests in parallel. I was wondering if my app would accept many requests at once, and if so what would the limit be [in the

[google-appengine] Re: Twitter - rate limit exceeded

2009-03-14 Thread MajorProgamming
I could think of a rather simple solution for twitter: Just give everyone an API key that they use to authenticate, and make the limits based on the key instead of the IP addresses. No? On Mar 14, 12:57 am, Richard Bremner richyr...@gmail.com wrote: Hmmm yes this is a difficult one. Neither

[google-appengine] Billing Questions

2009-02-27 Thread MajorProgamming
Suppose I set up billing with a $1 budget/day (which is the minimum). I understand that I will be billed $7/week. What happens if I don't go over any of the free quotas the first week? Will Google bill me again the next week? What happens if I use $2 the first week? Will Google only charge me

[google-appengine] Re: Billing Questions

2009-02-27 Thread MajorProgamming
authorizes the budget. -- Dan On Fri, Feb 27, 2009 at 1:50 PM, Ross M Karchner rosskarch...@gmail.comwrote: From what I can tell, the $1 is a *budget*, you won't be charged anything if you don't go over the free quotas. On Fri, Feb 27, 2009 at 4:23 PM, MajorProgamming sefira...@gmail.comwrote

[google-appengine] Billing Question

2009-02-26 Thread MajorProgamming
Something I didn't understand well about budgets: Can we set the amount we're willing to pay per resource. For example, suppose I set a budget of $50. Can I tell GAE to only use that money for let's say Bandwidth and Email [as opposed to all resources]?

[google-appengine] Email Question

2009-02-26 Thread MajorProgamming
Now that Billing is available, I have some questions about Emails: The price is .0001/message. Does that mean I can really send an unlimited number of messages (provided I pay)? What are the limits of email per request? Is it a good idea to use this for SMS [alerts], where I send out a mass

[google-appengine] Re: Email Question

2009-02-26 Thread MajorProgamming
in 30 seconds (I've never tried to test the limit), but I'd imagine it would be on the order of 30. -Marzia On Thu, Feb 26, 2009 at 7:00 AM, MajorProgamming sefira...@gmail.comwrote: Now that Billing is available, I have some questions about Emails: The price is .0001/message. Does

[google-appengine] Entity Equality

2009-02-21 Thread MajorProgamming
I currently have a need to take a result from a query (which is a list) and remove one entity from it. For some reason though when I perform the remove, I get an error which says that the entity does not exist on the list. How can I do this correctly? Code: #excerpt: #wx and wx2 are db.Query

[google-appengine] Proper way to handle DownloadError: ApplicationError: 5

2009-02-03 Thread MajorProgamming
Is this the proper way to handle Download Errors from urlfetch (which happen quite often in my app)? try: result = urlfetch.fetch(url=url) except DownloadError: #return an error Basically a coding/python question Also, would it work to except, and try again within that same test? For

[google-appengine] Re: Custom Login System

2009-01-24 Thread MajorProgamming
using it, django, and the appenginepatch project -http://code.google.com/p/app-engine-patch/ - with some custom backends to handle OpenId and Oauth authentication for my user management system. On Jan 23, 4:16 pm, MajorProgamming sefira...@gmail.com wrote: Javascript on your login form

[google-appengine] Custom Login System

2009-01-23 Thread MajorProgamming
I am currently working on a App that requires that I use a custom sign in method. I was wondering if there are any security flaws I should be aware of... Also: I was wondering if I must use SSL for proper security? Is the best way to maintain sessions through using cookies? Do I have to

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

2009-01-23 Thread MajorProgamming
Does anyone know of how to deal with secure feeds: For example, suppose I have a feed that should only give infromation to a user when s/he's logged in. What's the best (and most secure) way to implement this?:? Thanks, --~--~-~--~~~---~--~~ You received this

[google-appengine] Re: Custom Login System

2009-01-23 Thread MajorProgamming
that deletes a user's fox, always check that 123 actually belongs to this user. Otherwise users could delete other user's foxes by retyping the url. gmemsess is athttp://code.google.com/p/gmemsess/ Cheers! Greg. On Jan 24, 8:42 am, MajorProgamming sefira...@gmail.com wrote: I am currently

[google-appengine] Re: Static File Questions

2009-01-09 Thread MajorProgamming
as it is handles larger files. The 1MB limit only limits the entities, not the transport. On Jan 8, 11:59 pm, MajorProgamming sefira...@gmail.com wrote: Just a few questions on static files: 1. Does serving a static file cost CPU usage? 2. Does having a large number of static files (let's say

[google-appengine] Sort by Relevance

2009-01-09 Thread MajorProgamming
I know that the MySQL version of FullText search supports sorting by Relevance. Is there any way to mimic this functionality on App Engine? [whether through Searchable Entity or through custom methods]? --~--~-~--~~~---~--~~ You received this message because you

[google-appengine] Static File Questions

2009-01-08 Thread MajorProgamming
Just a few questions on static files: 1. Does serving a static file cost CPU usage? 2. Does having a large number of static files (let's say like 700) have _any_ effect on performance of page serving [similarly, does having a lot of mappings affect performance]? 3. When a python script reads a

[google-appengine] Proper use of BASE HTML tag

2009-01-08 Thread MajorProgamming
Is this treated well (and accepted as proper usage) by all standards and browser? base href=/ --~--~-~--~~~---~--~~ 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] Re: Django Templates Usage

2009-01-07 Thread MajorProgamming
Got ya. Didn't realize that would solve the problem. Thanks for your help! On Jan 7, 3:42 pm, Rodrigo Moraes rodrigo.mor...@gmail.com wrote: On Wed, Jan 7, 2009 at 6:25 PM, MajorProgamming wrote: This all worked well when my pages looked like http://example.com/ apage, where the relative

[google-appengine] Working with mappings

2009-01-03 Thread MajorProgamming
Sample code: application = webapp.WSGIApplication([('/', MainPage), ('/newentry', NewEntry), ('/editentry', EditEntry), ('/deleteentry', DeleteEntry),

[google-appengine] Weird behavior of Django - Cycle

2009-01-03 Thread MajorProgamming
I have this code in one of my HTML Templates: {%if forloop.counter0|divisibleby:3%}/trtr class={% cycle even,odd%}{%endif%} [snipped out] For some reason every time I reload the page, the cycle behaves differently. It's almost like the system keeps the last cycling in memory - could there be

[google-appengine] Re: Working with mappings

2009-01-03 Thread MajorProgamming
What's passed to the article_id parameter? How does GAE know what to pass? On Jan 3, 7:58 pm, Rodrigo Moraes rodrigo.mor...@gmail.com wrote: On Sat, Jan 3, 2009 at 10:02 PM, MajorProgamming wrote: Firstly, Do these mappings also support regular expression mappings? They *are* regular

[google-appengine] Memcache Usage with Timeouts - Question

2008-12-28 Thread MajorProgamming
I have an app where I want to set a memcache for 1 hour expiration, and then update it while keeping the same timeout (i.e. when I update it I don't want the 1-hour to start over, I just want the value to change, while keeping the timeout the same as b4). How can I do this?

[google-appengine] Re: Memcache Usage with Timeouts - Question

2008-12-28 Thread MajorProgamming
it you just read the current expire timestamp, and use it again. 2008/12/28 MajorProgamming sefira...@gmail.com: I have an app where I want to set a memcache for 1 hour expiration, and then update it while keeping the same timeout (i.e. when I update it I don't want the 1-hour to start

[google-appengine] Using other python files with my app; importing

2008-12-28 Thread MajorProgamming
This may be more of a general python question, but what's the best way of using many different .py files and importing one into another. For example, suppose I want to have one main.py and have a separate file that contains like 15 functions which are needed in main.py. First of all, what do I

[google-appengine] get_by_key_name timeout!

2008-12-20 Thread MajorProgamming
12-19 06:34PM 51.839 Traceback (most recent call last): File /base/python_lib/versions/1/google/appengine/ext/webapp/ __init__.py, line 498, in __call__ handler.get(*groups) File /base/data/home/apps/[edited out]/1.329827330674031168/ helloworld.py, line 96, in get

[google-appengine] Re: Best way to mass mail

2008-12-19 Thread MajorProgamming
email limits (2000 per day). On Dec 19, 5:33 am, Greg g.fawc...@gmail.com wrote: On Dec 19, 1:00 pm, MajorProgamming sefira...@gmail.com wrote: 1. What would be the best way to implement this considering the current features available on google app engine (and possibly other free services

[google-appengine] Re: App name error ...

2008-12-18 Thread MajorProgamming
Probably. However, on a side note, you can create a application with the name AccuWeaver2 (or the like), and then when you have it run on your domain, your users wouldn't notice a thing... On Dec 18, 5:48 pm, Webweave webwe...@gmail.com wrote: So there's somebody out there using my company

[google-appengine] Best way to mass mail

2008-12-18 Thread MajorProgamming
Suppose one of the features I have on the App I'm creating, is the ability for users to subscribe for certain alerts. 1. What would be the best way to implement this considering the current features available on google app engine (and possibly other free services)? 2. [this one should probably

[google-appengine] Re: Best way to mass mail

2008-12-18 Thread MajorProgamming
That would work well for a small amount of users. But what if my app grows to like 5,000 emails? Your solution would definitely work well at that point! Do you maybe know of an external service that would allow me to set up s/t to broadcast to many url's or is there another way that i'm missing?

[google-appengine] Re: Best way to mass mail

2008-12-18 Thread MajorProgamming
Whoops, typo: I meant: Your solution would definitely _not_ work well at that point! On Dec 18, 9:31 pm, MajorProgamming sefira...@gmail.com wrote: That would work well for a small amount of users. But what if my app grows to like 5,000 emails? Your solution would definitely work well

[google-appengine] Re: Best way to mass mail

2008-12-18 Thread MajorProgamming
Well another point is that if I want to send time-sensitive info, it would be impossible (i.e. with your method, you are running the sending throughout the entire day, but in some cases almost-instant sending is required). Another problem worth mentioning is that mass-fetching from the datastore

[google-appengine] Re: Empty Subject - Mail API

2008-12-15 Thread MajorProgamming
the subject line to a single space (' ') if you would prefer not to send a subject. -Marzia On Sun, Dec 14, 2008 at 3:05 PM, MajorProgamming sefira...@gmail.comwrote: Is there any reason Google does not allow an empty subject when sending email via AppEngine? There are many cases where

[google-appengine] Empty Subject - Mail API

2008-12-14 Thread MajorProgamming
Is there any reason Google does not allow an empty subject when sending email via AppEngine? There are many cases where this would prove useful. [on a side not - even GMail allows sending email w/ empty subjects] --~--~-~--~~~---~--~~ You received this message

[google-appengine] Re: Interesting How-to Datastore Question

2008-11-26 Thread MajorProgamming
) updates UserComment.last_commented for all users that also commented the article. It's far from perfect, there's a (slight) delay in update, but otherwise it works. I'm very interested in how others would implement this. Alex --www.muspy.com On Nov 13, 9:50 am, MajorProgamming [EMAIL

[google-appengine] Re: Interesting How-to Datastore Question

2008-11-26 Thread MajorProgamming
--www.muspy.com On Nov 13, 9:50 am, MajorProgamming [EMAIL PROTECTED] wrote: I was wondering how to approach the following: Suppose I have three DB Models that look something like this: MainListOfArticles(db.Model): articleText=db.Text [...] CommentsOnArticles(db.Model

[google-appengine] Interesting How-to Datastore Question

2008-11-12 Thread MajorProgamming
I was wondering how to approach the following: Suppose I have three DB Models that look something like this: MainListOfArticles(db.Model): articleText=db.Text [...] CommentsOnArticles(db.Model): commentText=db.Text articleRef=db.ReferenceProperty(MainListOfArticles)

[google-appengine] Re: www.*.appspot.com

2008-11-11 Thread MajorProgamming
, MajorProgamming [EMAIL PROTECTED] wrote: I noticed that www.*.appspot.com (where * is the subdomain that you picked) doesn't work. Is there any reason for this? It would make sense to have both options for those of our users who don't know any better (and prefix all urls with www). by the way

[google-appengine] www.*.appspot.com

2008-11-09 Thread MajorProgamming
I noticed that www.*.appspot.com (where * is the subdomain that you picked) doesn't work. Is there any reason for this? It would make sense to have both options for those of our users who don't know any better (and prefix all urls with www). by the way, blogspot does support www...