[google-appengine] Re: Unicode Support for Python 2.5

2011-07-04 Thread prakhil samar
Thanks again Julian i tried the syntax that you have given, but this does not solves our problem This is the error now i m getting when i use csv_file = self.request.get('file1').decode('utf-8') Traceback (most recent call last): File "/base/python_runtime/python_lib/versions/1/google/appengin

Re: [google-appengine] Scalability of inequality filters for multiple fields via Hilbert curve

2011-07-04 Thread Nick Johnson (Google)
Hi Max, I'm the author of this post: http://blog.notdot.net/2009/11/Damn-Cool-Algorithms-Spatial-indexing-with-Quadtrees-and-Hilbert-Curves You're right that this will likely have problems when dealing with arbitrary data rather than geospatial indexing. Hilbert curves work well at returning resu

RE: [google-appengine] Re: Database opaquely rolling back changes

2011-07-04 Thread Brandon Wirtz
I view the DataStore Administrator as a "in case of emergency break glass and slit your wrists" tool. -Original Message- From: google-appengine@googlegroups.com [mailto:google-appengine@googlegroups.com] On Behalf Of Tirrell Payton Sent: Monday, July 04, 2011 9:40 PM To: Google App Engine

Re: [google-appengine] Directions API with GAE (Python)

2011-07-04 Thread Robert Kluin
Looks like your accessing a list as a dict. Look at the raw data, something is a list (ie something[0] not some["thing"]) Robert On Jul 4, 2011 5:44 PM, "Divyahans" wrote: > Hi, > > I'm just starting out with Python and was working with the Directions > API. I wanted to parse the JSON it returns

Re: [google-appengine] Verification Issue App Engine Account

2011-07-04 Thread Robert Kluin
http://code.google.com/appengine/kb/sms.html#error Fill out the SMS issue form. On Jul 4, 2011 12:04 PM, "Jesse Berkeley" wrote: > Hey guys, > > Recently i was trying to sign up for the app engine and i entered my number > to receive the verification. I've submitted my number 3 times and then I'

Re: [google-appengine] Re: Blobstore: how to code the form when there is already one

2011-07-04 Thread Robert Kluin
http://code.google.com/appengine/docs/java/blobstore/overview.html#Complete_Sample_App In the upload handler I would try to get the values just as you usually do. On Jul 4, 2011 8:35 PM, "David Walt" wrote: -- You received this message because you are subscribed to the Google Groups "Google Ap

[google-appengine] Re: Database opaquely rolling back changes

2011-07-04 Thread Tirrell Payton
There is no code. I am doing this in the datastore administrator. Select a record, update the field, click 'save entity' On Jul 4, 9:09 pm, Robert Kluin wrote: > I'm guessing you've got a cache issue too. Either the changes you think are > getting committed aren't (and your returning / caching)

Re: [google-appengine] Database opaquely rolling back changes

2011-07-04 Thread Robert Kluin
I'm guessing you've got a cache issue too. Either the changes you think are getting committed aren't (and your returning / caching) non committed data, or your seeing old cached data served. Could you show us the actual code you use to save and fetch the results? Robert On Jul 4, 2011 1:04 PM, "T

RE: [google-appengine] Re: Python VS Java

2011-07-04 Thread Brandon Wirtz
I think your thoughts mirror my own. I have thought about GO, but 90% of my code would be portable to other platforms... and if I wrapped a few functions I could get to the point it was easy to maintain code on several platforms... Which might skew my "develop for the right platform" argument I

[google-appengine] Re: Database opaquely rolling back changes

2011-07-04 Thread Tirrell Payton
This is all happening directly in the datastore admin (or remote api). Memcache shouldnt play a part. On Jul 4, 12:14 pm, Kaan Soral wrote: > maybe memcached? > > On Jul 4, 8:04 pm, Tirrell Payton wrote: > > > > > > > > > APPID:  streamingservicesplatform.appspot.com > > > Database opaquely rol

[google-appengine] Re: Python VS Java

2011-07-04 Thread Greg
On Jul 3, 7:41 am, "Brandon Wirtz" wrote: > So do I build out Python? Or Build out Java? Given what you've mentioned previously about your application, I think the core question for you is which runtime is most efficient. The prospective multi-threading change for python makes that difficult to a

[google-appengine] Scalability of inequality filters for multiple fields via Hilbert curve

2011-07-04 Thread Max
Hi all, Would like to know if there are any of you guys ever tried to use space filling curve like Hilbert curve to build index for multiple inequality filters. Seems like for any continuous field like long or date, the number of ranges (to be merged) to perform a accurate query is increasin

[google-appengine] Re: Blobstore: how to code the form when there is already one

2011-07-04 Thread David Walt
Could you give me more details or a Java example please? Not sure to understand how to do. Note: my projet already contains several forms. Thx! On 3 juil, 23:24, Robert Kluin wrote: > Hi David, >   One solution would be to handle the other fields in your upload handler. > > http://code.google.co

Re: [google-appengine] Migrating from Master/Slave to HRD key issue workaround

2011-07-04 Thread Robert Kluin
As I recall the auto generated ids are unique for the kind; however, I would not assume that is the case since it is an implementation detail. I encountered a similar issue when migrating to HR. My solution was to write a custom key encoder / decoder that includes everything except the appid. I ba

Re: [google-appengine] Re: GAE Pricing Changes - Sucker Punching the Development Community

2011-07-04 Thread Branko Vukelic
On Tue, Jul 5, 2011 at 1:23 AM, stevep wrote: > This is a combined "elephant / 800lb Gorilla in the room" for me, yet > it is never mentioned by Google. Yeah, maybe because there were already double-elephant-giraffe combo, and two tasmanian devils, discussed in other threads, so nobody is surpris

Re: [google-appengine] anyone using localStorage (HTML5)

2011-07-04 Thread Robert Kluin
I've got my own solution, but I plan to check out Tobias' gaesynckit project. You might hind it of interest. http://code.google.com/p/gaesynkit/ On Monday, July 4, 2011, Ronoaldo José de Lana Pereira wrote: > Does any of you used the local storage of HTML and did some "sync" with the remote dat

[google-appengine] Re: GAE Pricing Changes - Sucker Punching the Development Community

2011-07-04 Thread stevep
There are significant moral hazard issues with Google's current latency = instance step-cost pricing scheme. I don't see anything Greg talking about which address these. I'm not sure they "sucker punched" anyone, but I do wonder how they can so completely ignore these areas that demand transparenc

[google-appengine] Re: App Engine Production Issues

2011-07-04 Thread PandaSuit
Hello Johan, thanks for taking a look. I think this one might actually be resolved but it has been very intermittent so it is hard to say: http://code.google.com/p/googleappengine/issues/detail?id=5158 This one definitely has not been resolved: http://code.google.com/p/googleappengine/issues/det

Re: [google-appengine] Re: Thread-safe Python Tips

2011-07-04 Thread Joshua Smith
Thanks for that clarification. I'm sure there's a reason for this asymmetry (must declare globals to write them, but not to read them), but it's really weird. On Jul 1, 2011, at 6:12 PM, Geoffrey Spear wrote: > > > On Jun 29, 1:40 pm, Joshua Smith wrote: >> I have this code in one of my app

Re: [google-appengine] Re: Luis Fernando Sandoval Mejia wants to chat

2011-07-04 Thread Branko Vukelic
Huh... this is the weirdest kind of spam I've seen so far, if it's spam at all... On Mon, Jul 4, 2011 at 9:17 PM, Kaan Soral wrote: > what is this? > > On Jul 4, 7:30 am, Luis Fernando Sandoval Mejia > wrote: >> --- >> >> Luis F

Re: [google-appengine] Re: Help! team wants to abandon GAE because our Wicket app fails to run

2011-07-04 Thread Stephen Johnson
Also, make sure that anything referenced by anything that is put in to session is also serializable or otherwise marked as transient as necessary. On Mon, Jul 4, 2011 at 3:27 PM, Stephen Johnson wrote: > Sorry can't help much since don't know what's occurring inside these > methods. My suggestion

Re: [google-appengine] Re: Help! team wants to abandon GAE because our Wicket app fails to run

2011-07-04 Thread Stephen Johnson
Sorry can't help much since don't know what's occurring inside these methods. My suggestion was only based on you stating that Session is null but no way to know for sure if Session is really null. Perhaps it is something that is being put into the Session and that is coming back out as null. Are y

Re: [google-appengine] filesystem like folder tree on appengine

2011-07-04 Thread andreas schmid
hey ravi, sorry for the delay. i really need human readable paths so the using ids instead of names does not really work for my case and keeping all parents is also part of the app design so keeping only the direct parent does not work either. thank you for your thoughts anyway!! andreas On J

[google-appengine] Re: Help! team wants to abandon GAE because our Wicket app fails to run

2011-07-04 Thread David Donohue
Stephen, Thanks for your reply! Yes we have true in war/WEB-INF/appengine-web.xml Any other ideas? Best, Dave -- 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 unsu

[google-appengine] Directions API with GAE (Python)

2011-07-04 Thread Divyahans
Hi, I'm just starting out with Python and was working with the Directions API. I wanted to parse the JSON it returns to get directions(in "html_instructions"). Here is my code: url = DIRECTIONS_BASE_URL + '?' + urllib.urlencode(direct_args) result = json.load(urllib.urlopen(url)) str

[google-appengine] Re: Help! team wants to abandon GAE because our Wicket app fails to run

2011-07-04 Thread zdravko
If you are not getting the buy -n from the rest of your "team" then give up because the lazy slobs will be blaming you for everything. -- 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@goo

[google-appengine] Re: GAE Pricing Changes - Sucker Punching the Development Community

2011-07-04 Thread zdravko
> What's the point of knowing the 100% new pricing, > if you're not going to be charged that after the first three months, > but some other value. It's even harder to plan that way. The point is to know what the new bills will look like, before they kick in - so that one can plan, scramble, run or

[google-appengine] Re: App Engine Production Issues

2011-07-04 Thread Johan Euphrosine (Google)
Hi PandaSuit, Please link those issue and put me in cc: I will take a look at them. On Jul 4, 10:35 pm, PandaSuit wrote: > I have reported two production issues on the App Engine issue tracker in the > past and weeks later have not received any official response or even > acknowledgment. > > Is

Re: [google-appengine] Help! team wants to abandon GAE because our Wicket app fails to run

2011-07-04 Thread Stephen Johnson
Do you have sessions enabled in your appengine-web.xml file?? true Stephen On Sun, Jul 3, 2011 at 3:49 AM, David Donohue wrote: > Hello!  We have spent many hours working on a Wicket-based Java web > application for Google App Engine. > Our application runs properly on our Eclipse-base

Re: [google-appengine] Naked domain for App engine

2011-07-04 Thread Stephen Johnson
In your astrotution.com apps control panel, you need to remove Google Sites, then add the App Engine and specify your appengine appspot.com domain. It will take a while for google sites to stop responding and app engine to start responding. Stephen On Sat, Jul 2, 2011 at 9:57 AM, Test37 wrote: >

Re: [google-appengine] Re: GAE Pricing Changes - Sucker Punching the Development Community

2011-07-04 Thread Branko Vukelic
On Mon, Jul 4, 2011 at 11:00 PM, zdravko wrote: >> I couldn't read all of it but I am giving you a +1 > > That's an oxymoron - good enough for a +1 but not good enough to be > read in it's entirety. ;) The part (s)he read was good enough for +1. :) Anyway, I agree with 1), but not with 2) (the p

[google-appengine] Re: GAE Pricing Changes - Sucker Punching the Development Community

2011-07-04 Thread Joops
Hello, just my thoughts on google and beta products for developers, Google has historically used an approach of rapid early releases and then rapid improvements. Their strength is the speed at which they can innovate, because they don't need to manage client software. (Compare MS release cycle wi

RE: [google-appengine] Billing is Flip Flopping Credit Cards

2011-07-04 Thread Paul Bailey
Ok first the google checkout help states that the original card used for a subscription purchase will be charged in the future. Second I would be ok with the whole default thing but checkout keeps changing the default on me. Default really only means last card used. I've contacted google chec

[google-appengine] Re: GAE Pricing Changes - Sucker Punching the Development Community

2011-07-04 Thread zdravko
> I couldn't read all of it but I am giving you a +1 That's an oxymoron - good enough for a +1 but not good enough to be read in it's entirety. ;) -- 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-

Re: [google-appengine] App Engine Production Issues

2011-07-04 Thread milosh zorica
google doesn't offer that good support for plenty of products / services reporting is good anyways. but don't expect too much On Mon, Jul 4, 2011 at 5:35 PM, PandaSuit wrote: > I have reported two production issues on the App Engine issue tracker in the > past and weeks later have not received

[google-appengine] App Engine Production Issues

2011-07-04 Thread PandaSuit
I have reported two production issues on the App Engine issue tracker in the past and weeks later have not received any official response or even acknowledgment. Is it useless to report issues on the issue tracker? Do production issues even get looked at if they don't have a ton of stars? --

[google-appengine] Re: GAE Pricing Changes - Sucker Punching the Development Community

2011-07-04 Thread Kaan Soral
I couldn't read all of it but I am giving you a +1 And about the wired magazine link, I thought I was the only one who insult people/companies with pretty urls, but theirs is very very harsh On Jul 2, 8:22 am, zdravko wrote: > Hi folks, > > With regard to the newly proposed GAE pricing changes a

[google-appengine] Re: Migrating from Master/Slave to HRD key issue workaround

2011-07-04 Thread Bert
Hi Robert, Thanks, I've now converted the format, just testing everything now. Another quick question, are auto-generated Id's unique across entity groups? So if I set a parent entity on some of models, could they potentially have overlapping ids with other models (of the same kind, in the same na

[google-appengine] Re: The price of Scalability

2011-07-04 Thread Kaan Soral
I am currently using ~30 instances, with rough calculations that makes 800$'s a month. If you just calculate 30*34*0.08*30 that makes something around 1700's but I considered improvements and traffic patterns, Anyway, I am paying $2 a day, using python, probably I am earning $8-10, maybe sometimes

[google-appengine] Re: Luis Fernando Sandoval Mejia wants to chat

2011-07-04 Thread Kaan Soral
what is this? On Jul 4, 7:30 am, Luis Fernando Sandoval Mejia wrote: > --- > > Luis Fernando Sandoval Mejia wants to stay in better touch using some > of Google's coolest new > products. > > If you already have Gmail or Google Ta

[google-appengine] Re: Database opaquely rolling back changes

2011-07-04 Thread Kaan Soral
maybe memcached? On Jul 4, 8:04 pm, Tirrell Payton wrote: > APPID:  streamingservicesplatform.appspot.com > > Database opaquely rolls back changes. > To reproduce: > > Bring up record: > ahlzdHJlYW1pbmdzZXJ2aWNlc3BsYXRmb3JtcjALEgpTU1BBcnRpY2xlIiBjNGJmMDA5Mzk4Yjk0NTFjMTY2YzFiMmQwMWJkZjE5ZAw > > Ch

RE: [google-appengine] Python VS Java

2011-07-04 Thread Simon Knott
How often do the instances get recycled Brandon? I know one person was saying that their instances were getting recycled every 9k requests. Given that one of the massive performance benefits of Java comes from JIT hotspot recompilation, this is completely lost if the instance is recycled. On

[google-appengine] Re: Redirection problems after enabling OpenID

2011-07-04 Thread Eric Kolotyluk
I commented out the filter in the web.xml file and I have the same problem, so it is not the filter. Basically I am using the default GWT program when you install the Google plug-in for Eclipse, and i just enable OpenID in the application dashboard. Is there something else I have to do to get Open

Re: [google-appengine] anyone using localStorage (HTML5)

2011-07-04 Thread Ronoaldo José de Lana Pereira
Does any of you used the local storage of HTML and did some "sync" with the remote datastore? Any suggestions about a good way of doing sincronization with it? -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To view this discussion on the

[google-appengine] Re: Redirection problems after enabling OpenID

2011-07-04 Thread Eric Kolotyluk
Basically I have set up the following filter... package com.kodak.intersystem.appspot.server; import java.io.IOException; import java.util.logging.Logger; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.ServletException; impor

[google-appengine] Re: Channel API onOpen() not being hit every time.

2011-07-04 Thread ksafez216
Yep. Happens to me too.The initial connection of the channel fires the onOpen event, but subsequent connections using the same token does not. On Jul 4, 1:43 am, Eurig Jones wrote: > I have successfully created a simple prototype of use of the channel > API for myself, but on multiple openin

[google-appengine] Database opaquely rolling back changes

2011-07-04 Thread Tirrell Payton
APPID: streamingservicesplatform.appspot.com Database opaquely rolls back changes. To reproduce: Bring up record: ahlzdHJlYW1pbmdzZXJ2aWNlc3BsYXRmb3JtcjALEgpTU1BBcnRpY2xlIiBjNGJmMDA5Mzk4Yjk0NTFjMTY2YzFiMmQwMWJkZjE5ZAw Change the link from this: http://indiatoday.intoday.in/site/Story/143334/Co

RE: [google-appengine] Multiple Instances of the Same App

2011-07-04 Thread Brandon Wirtz
I'm in the same boat. Google has let me get away with running the same app customized for the user. All of my apps are paid apps running on different domains. I'm all for lobbying to get app reseller accounts where we can markup our services on the billing page. If you come up with a good way t

RE: [google-appengine] Python VS Java

2011-07-04 Thread Brandon Wirtz
That should say Java is consuming far fewer instances than Python. The CPU bill how ever is currently higher on the Java version than the Python. (Cycles not Time) Everyone also keeps telling me build in whatever I'm more comfortable in... When the platform costs more than the dev makes in a ye

[google-appengine] Multiple Instances of the Same App

2011-07-04 Thread Eric Kolotyluk
I remember reading some policy that Google prohibits people people from basically running the same app under different registration. I gather one reason for this is so that people don't exploit the free nature of apps, or so that Google is not replicating essentially the same app everywhere. What e

RE: [google-appengine] Python VS Java

2011-07-04 Thread Brandon Wirtz
Everyone keeps saying that Java is faster. I am going to have to race, but my "Hello World the " Read visitor count From data Store "you are the" " visitor" Visitor + 1 Write to data Store "The Time is Now" Exit Is about 45ms faster on average. In the Python version when running at 500 qps T

[google-appengine] The price of Scalability

2011-07-04 Thread Tony
I just read this post http://www-cs-students.stanford.edu/~silver/gae.html The author seems unhappy with App Engine's offerings and have switched to EC2, saying when the app scales big, the cost is very high (he used the old Master/Slave datastore with high latency counted against CPU time). I

Aw: Re: [google-appengine] Re: App Engine Chat Time!

2011-07-04 Thread TWiemann
Hi All, i've got a short question: does the Chat Time still exist? I'd like to join you and i hope to find some answers for some questions using Google App Engine. Thanks a lot! Theres Germany -- You received this message because you are subscribed to the Google Groups "Google App Engine" g

[google-appengine] Saving canvas image via javascript from Safari (5.0.x) to AppEngine Blobstore (and circumventing AppEngine issue #4265)

2011-07-04 Thread Conrad
Hi Everyone- I'm a cofounder of Automatoon.com, an online animation app built on appengine. Unfortunately our app can't suport Safari because a workaround around issue #4265 seems to be impossible after we've worked on it a couple of days straight. We wrote a special appengine app that illustrates

Re: [google-appengine] Transfer application to other account

2011-07-04 Thread James Briant
So, appengine is basically entirely useless to entrepeneurs unless we change our cell phone numbers? I'm stuck now because I can't create apps in either of my two accounts even though they have already been verified and each have four apps in them. Seems like my only option is to go out and get

[google-appengine] Re: channel.js not returning the correct mime type

2011-07-04 Thread Glenn Simon
When will this issue be fixed? Channel does not work with IE9. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/oLpEn_nDfG0J. To post to this group

[google-appengine] Verification Issue App Engine Account

2011-07-04 Thread Jesse Berkeley
Hey guys, Recently i was trying to sign up for the app engine and i entered my number to receive the verification. I've submitted my number 3 times and then I've been told I can no longer register. I keep getting this message. *← The phone number has been sent too many messages or has already

[google-appengine] Help! team wants to abandon GAE because our Wicket app fails to run

2011-07-04 Thread David Donohue
Hello! We have spent many hours working on a Wicket-based Java web application for Google App Engine. Our application runs properly on our Eclipse-based local development environment (SDK version 1.4.3). However, When we deploy to app engine, our session objects are returning null. Our developmen

[google-appengine] Re: Deadline exceeded during warm-up

2011-07-04 Thread Owen Wiggins
We've been having similar issues (predominantly during warm up requests) running on Master/Slave for the past several days. This is with always on enabled, if it makes a difference. AppID: gardenmind-beta -- You received this message because you are subscribed to the Google Groups "Google App

[google-appengine] Re: ChannelAPI

2011-07-04 Thread Sonny
I'm having the same issue here ... I can verify in chrome dev tools that I am using the correct tokens, but I am getting the following error in Eclipse: [WARN] Skipping message to unconnected channel: <...token...> On Jun 22, 5:58 pm, Saranya Kannan wrote: > Hi All, > > I have implemented sample

Re: [google-appengine] Python VS Java

2011-07-04 Thread milosh zorica
then go for it python is a great multi purpose, multi platform language that could do a lot On Sat, Jul 2, 2011 at 7:17 PM, Brandon Wirtz wrote: > We resell service, so our pricing is a function of the code efficiency.  I > may just be a better Python programmer, and that is why it is > faster

Re: [google-appengine] Python VS Java

2011-07-04 Thread milosh zorica
develop in whatever you feel more comfortable due to JIT, java executes faster i myself prefer python. so does google i'm pretty much tool / language / platform agnostic. originally trained as a designer (SVA alumni) but turned a developer On Sat, Jul 2, 2011 at 6:10 PM, Waleed Abdulla wro

[google-appengine] Naked domain for App engine

2011-07-04 Thread Test37
Hi, I am new to App engine. I was using google site. But now deployed one page and I want to see that page by typing www.astrotution.com but still I am able to see from the google site page. What are the chnages require to so that I can see the page which I deployed. I can see app engine deployed

[google-appengine] How to set timeout 10 seconds for Url Fetch Service to work in the Development Server?

2011-07-04 Thread ss.require
Is it possible to increase timeout to 10 seconds for HttpURLConnection or URLFetchService objects to work in the Development Server? I assume that it is only possible for production server or not? -- You received this message because you are subscribed to the Google Groups "Google App Engine" gr

[google-appengine] Re: Deadline exceeded during warm-up

2011-07-04 Thread Scott Murphy
I have been having major problems lately. I am on Master/Slave. I have Always On and only the middle (2nd) instance always fails out of 3. It just keeps recycling. http://code.google.com/p/googleappengine/issues/detail?id=4921 http://code.google.com/p/googleappengine/issues/detail?id=5253

[google-appengine] GAE Pricing Changes - Sucker Punching the Development Community

2011-07-04 Thread zdravko
Hi folks, With regard to the newly proposed GAE pricing changes and other related issues ... IMHO, A this point the minimum honorable thing that GOOG could do is to take a gradual phasing in approach along these lines: a) For the first 3 months, continue charging the old way, while in parallel s

[google-appengine] django_setup

2011-07-04 Thread Andrew Richardson
I just upgraded to AppEngine version 1.5.1 (I was a few versions behind), and noticed this in the release notes for 1.5.0: "Users can provide Django settings to be loaded in webapp's django_setup." Anyone know what this means? I'm not aware of the "django_setup" method mentioned here, and haven't

[google-appengine] Re: ReferenceProperty vs Integer property

2011-07-04 Thread Ernesto Oltra
I'm already doing that. The only downside is ReferenceProperty stores the complete key path (app_id + parent + model + key_id + ...), while you will be storing only a part(key_id). If ancestor queries are not a problem for your app OR you can do them without needing the complete original key the

Re: [google-appengine] Method for Clossing Request and continuing to run?

2011-07-04 Thread Robert Kluin
Hey Brandon, You can't do this. Neither python or java will send anything to thr client until your handler returns. As I recall, both also flush any outstanding RPCs before returning. What about using a named task (to prevent dupes)? Robert On Monday, July 4, 2011, Brandon Wirtz wrote: > I

Re: [google-appengine] anyone using localStorage (HTML5)

2011-07-04 Thread Gary Frederick
:-) I was looking for a good place to find others that have used localStorage with appengine apps. I did get the test app up and working. Thanks. Gary -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To view this discussion on the web vi

[google-appengine] Re: Unicode Support for Python 2.5

2011-07-04 Thread Julian Namaro
Prakhil, Did you resolve this ? You need to do the convertion to unicode before any split or strip, try csv_file = self.request.get('file1').decode('utf-8') on your first line or if it is urlencoded: csv_file = urllib.unquote( self.request.get('file1') ).decode('utf-8') On Jul 1, 3:45 pm, prakhil

[google-appengine] Re: Channel API question about channel.open([token]) JS call

2011-07-04 Thread ksafez216
Sorry to keep adding to this, but I thought I should add the log of the connect/disconnect problem: 2011-07-04 03:57:44.424 /_ah/channel/disconnected/ 200 237ms 38cpu_ms 0kb I 2011-07-04 03:57:44.421 com.firstlightapps.MyApp.ChannelDisconnectedServlet doPost: client DISCONNECTED from channel: log

[google-appengine] Re: Channel API question about channel.open([token]) JS call

2011-07-04 Thread ksafez216
I'm still having a lot of other related problems with channels disconnecting. First of all, when the client disconnects from the channel (notified by Channel Presence) I do not get a onClose event fired on the socket. So, how can my client when he gets disconnected? Also, I'm having problems whe

[google-appengine] ReferenceProperty vs Integer property

2011-07-04 Thread Joops
Hi all, I just wanted to check if there is any down side to using an Integer property instead of a reference property to model a relationship. (I don't need the autogenerated collection property) Thanks very much J. -- You received this message because you are subscribed to the Google Groups

[google-appengine] Re: Channel API question about channel.open([token]) JS call

2011-07-04 Thread ksafez216
Okay I think I figured this out already. I *think* I'm clear on the differences between connect/disconnect and creation/expiration of channels Basically there's no way to get notified or verify if a particular channel with ClientID has expired or not. What I did was create an Entity that stored

Re: [google-appengine] Re: How to do a 'count' in App Engine

2011-07-04 Thread Branko Vukelic
On Mon, Jul 4, 2011 at 12:03 PM, Phil Young wrote: >   if words.count() > 5: >     blah blah if words.count(6) > 5: blah blah A slightly more efficient count. -- Branko Vukelić bra...@herdhound.com Lead Developer Herd Hound (tm) - Travel that doesn't bite www.herdhound.com Love coffee? Y

Re: [google-appengine] Confused about Users API

2011-07-04 Thread Stephen
On Wed, Jun 29, 2011 at 9:29 PM, David Walt wrote: > Hi guys, > > I would like to create a website, using "Users API", because as you > all know, it provides lots of help to handle log in/out, security, > etc. Reinvent the wheel would be stupid I guess. > > But, and this is huge BUT, you are force

Re: [google-appengine] Re: How to do a 'count' in App Engine

2011-07-04 Thread Phil Young
What's wrong with using the count() method of the returned query set? i.e. words = db.GqlQuery("SELECT * FROM MyWords where bookname = 'book1'") if words.count() > 5: blah blah Not the most efficient way if you're only interested in the count (and not the results). Phil On 4 July 2011 0

[google-appengine] Re: After Migrate to HR I get exception "app s~XXX cannot access app YYY's data"

2011-07-04 Thread Uri Lukach
Hey Rob, I am using Java / JDO rather than python, although I have read again the documentation and I am confused, According to the docs: "Every entity has a key that is unique over all entities in App Engine. A complete key includes several pieces of information, including the *application ID*

[google-appengine] Re: After Migrate to HR I get exception "app s~XXX cannot access app YYY's data"

2011-07-04 Thread Bert
Hi Uri, Glad you found your issue. I'm currently trying to convert my application too, so I've had similar headaches. In a few cases where I've used string encoded keys, I've been updating/ creating new entities to use key_name or id instead of string encoded key. Then you can use get_by_key_name

RE: [google-appengine] Fetch only headers

2011-07-04 Thread Brandon Wirtz
It's 2 am so maybe I did it wrong. But when I tested it grabbed the whole file from the remote server. As opposed to just the headers. I'll try again in the morning. From: google-appengine@googlegroups.com [mailto:google-appengine@googlegroups.com] On Behalf Of Wilson MacGyver Sent: Monday

[google-appengine] Re: How to do a 'count' in App Engine

2011-07-04 Thread Vlad Software
Are you using Python or Java? If Python you can write your result to list and use len(my_result). But how to put result to list please read manual -- 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-a

[google-appengine] Channel API onOpen() not being hit every time.

2011-07-04 Thread Eurig Jones
I have successfully created a simple prototype of use of the channel API for myself, but on multiple openings of the browser the onOpen() function does not get executed every time. Is this expected behaviour? If so, how am I supposed to deal with it?# Thanks! -- You received this message becaus

Re: [google-appengine] Fetch only headers

2011-07-04 Thread Wilson MacGyver
Doesn't the request method HEAD do what you want or am I missing something? On Jul 4, 2011, at 4:31 AM, "Brandon Wirtz" wrote: > In PHP I can request only the headers of a URL. This is useful for getting > the last modified date to compare against your cache. I don’t see this > option in URL

[google-appengine] Memcache FIFO-ish Buffer, and NameSpace

2011-07-04 Thread Brandon Wirtz
Memcache is kind of nebulous, and as I understand it, works in an almost FIFO (First in First Out) manner, replacing data as it gets full. This is a finite resource of an unknown size. But if I use Namespace for multi-tenancy do I get more Memcache? Or do I just partition the same allocation?

[google-appengine] Fetch only headers

2011-07-04 Thread Brandon Wirtz
In PHP I can request only the headers of a URL. This is useful for getting the last modified date to compare against your cache. I don't see this option in URL Fetch. I don't even see a fetch byte range option, so that I could request only 1 byte of the destination URL. -Brandon -- You rec

RE: [google-appengine] Method for Clossing Request and continuing to run?

2011-07-04 Thread Brandon Wirtz
Best I have come up with thus far is to make an asynchronous fetch and not wait for the response. Downside is that I pay for bandwidth even though I am calling myself. And all I really want to do is fire a task and forget. From: google-appengine@googlegroups.com [mailto:google-appengine

[google-appengine] Method for Clossing Request and continuing to run?

2011-07-04 Thread Brandon Wirtz
I'm looking at being a little smarter about Cache management. Does anyone know of a way to return a page to the user, close the connection, and then do things after? I'm looking for both python and Java, but Python more at the moment. (the goal is to say request is about to expire, serve t

[google-appengine] Re: Channel API question about channel.open([token]) JS call

2011-07-04 Thread ksafez216
So, the Channel Presence feature actually notifies when a channel is connected/disconnected as opposted to created/destroyed? If this is correct, then how can I find out when the channel that was created on the server-side has been closed and not simply disconnected? I guess I'm confused about cr

[google-appengine] Re: After Migrate to HR I get exception "app s~XXX cannot access app YYY's data"

2011-07-04 Thread Uri Lukach
Hey Bert, It appears that you are correct. The *datastore_admin **did not** * preserved entity keys, and part of my entities have encoded keys to other entities for 1-1 or 1-Many references. It seems that after the copying process the encoded keys have the *same ending* . So I mistakenly tho

[google-appengine] Re: After Migrate to HR I get exception "app s~XXX cannot access app YYY's data"

2011-07-04 Thread Bert
Hi, Can you include the part of the stack trace which shows where in your code the error got thrown from? Thanks Rob On Jul 4, 9:35 am, Uri Lukach wrote: > Hey Rob, > > This is the stack trace I am getting (I removed the appID and replaced it > with *XXX* for the *HR application* and *YYY* for t

[google-appengine] Re: After Migrate to HR I get exception "app s~XXX cannot access app YYY's data"

2011-07-04 Thread Uri Lukach
Hey Rob, This is the stack trace I am getting (I removed the appID and replaced it with *XXX* for the *HR application* and *YYY* for the *master / slave*) NestedThrowablesStackTrace: java.lang.IllegalArgumentException: app s~XXX cannot access app YYY's data at com.google.appengine.api.d

[google-appengine] XMPP and user registration

2011-07-04 Thread lp
hi all after reading the GAE XMPP API i cant find what i am looking for. i require my server to register a user with a third party XMPP server. however i cant see any mechanism of achieving this with/out the GAE XMPP API. Problem 1. there is no connection/authentication to external XMPP server

RE: [google-appengine] os.environ['http_host'] returns wrong host?

2011-07-04 Thread Brandon Wirtz
Apparently if I use os.environ before I def get(self) then I get the last answer that instance gave? That maybe something I screwed up. I moved where I ask to later in the code and life is happy. Likely this is a failing of me not really being a python dev, just a guy who muddles through a lot of

[google-appengine] os.environ['http_host'] returns wrong host?

2011-07-04 Thread Brandon Wirtz
It appears that os.environ['http_host'] returns the wrong answer some of the time? I was hoping to use this to detect appspot.com urls so that I could do a "nothing to see here" error, but it appears that after being deployed to a domain, it returns the deployed domain rather than the actual an