[google-appengine] Java: how do I access per-instance shared memory from an Endpoint?

2015-07-01 Thread Zak Taccardi
I am using dagger for dependency injection, and I don't want to create a 
new object graph for every endpoint.

Android lets us extend `Application`, which is a great place to store our 
singletons so they can be easily reused throughout different pages 
(actiivities) in the app.

What is Google App-Engine's equivalent of this?


note: I am okay with this being a per-instance thing.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/ebf8f74b-6c43-479b-b4c8-b3ad63d4c4c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Unable to deploy app anymore (500)

2012-04-06 Thread Zak Szai
+1 Java 1.6.4/HRD

On Tuesday, April 3, 2012 9:47:22 PM UTC-7, tarun2000 wrote:

 Unable to update app: Error posting to URL: 
 https://appengine.google.com/api/appversion/clonefiles?app_id=webaleppoversion=test;
 500 Internal Server Error

 htmlhead
 meta http-equiv=content-type content=text/html;charset=utf-8
 title500 Server Error/title
 /head
 body text=#00 bgcolor=#ff
 h1Error: Server Error/h1
 h2The server encountered an error and could not complete your 
 request.pIf the problem persists, please A HREF=
 http://code.google.com/appengine/community.html;report/A your problem 
 and mention this error message and the query that caused it./h2
 h2/h2
 /body/html


 See the deployment console for more details
 Unable to update app: Error posting to URL: 
 https://appengine.google.com/api/appversion/clonefiles?app_id=webaleppoversion=test;
 500 Internal Server Error

 htmlhead
 meta http-equiv=content-type content=text/html;charset=utf-8
 title500 Server Error/title
 /head
 body text=#00 bgcolor=#ff
 h1Error: Server Error/h1
 h2The server encountered an error and could not complete your 
 request.pIf the problem persists, please A HREF=
 http://code.google.com/appengine/community.html;report/A your problem 
 and mention this error message and the query that caused it./h2
 h2/h2
 /body/html


On Tuesday, April 3, 2012 9:47:22 PM UTC-7, tarun2000 wrote:

 Unable to update app: Error posting to URL: 
 https://appengine.google.com/api/appversion/clonefiles?app_id=webaleppoversion=test;
 500 Internal Server Error

 htmlhead
 meta http-equiv=content-type content=text/html;charset=utf-8
 title500 Server Error/title
 /head
 body text=#00 bgcolor=#ff
 h1Error: Server Error/h1
 h2The server encountered an error and could not complete your 
 request.pIf the problem persists, please A HREF=
 http://code.google.com/appengine/community.html;report/A your problem 
 and mention this error message and the query that caused it./h2
 h2/h2
 /body/html


 See the deployment console for more details
 Unable to update app: Error posting to URL: 
 https://appengine.google.com/api/appversion/clonefiles?app_id=webaleppoversion=test;
 500 Internal Server Error

 htmlhead
 meta http-equiv=content-type content=text/html;charset=utf-8
 title500 Server Error/title
 /head
 body text=#00 bgcolor=#ff
 h1Error: Server Error/h1
 h2The server encountered an error and could not complete your 
 request.pIf the problem persists, please A HREF=
 http://code.google.com/appengine/community.html;report/A your problem 
 and mention this error message and the query that caused it./h2
 h2/h2
 /body/html


On Tuesday, April 3, 2012 9:47:22 PM UTC-7, tarun2000 wrote:

 Unable to update app: Error posting to URL: 
 https://appengine.google.com/api/appversion/clonefiles?app_id=webaleppoversion=test;
 500 Internal Server Error

 htmlhead
 meta http-equiv=content-type content=text/html;charset=utf-8
 title500 Server Error/title
 /head
 body text=#00 bgcolor=#ff
 h1Error: Server Error/h1
 h2The server encountered an error and could not complete your 
 request.pIf the problem persists, please A HREF=
 http://code.google.com/appengine/community.html;report/A your problem 
 and mention this error message and the query that caused it./h2
 h2/h2
 /body/html


 See the deployment console for more details
 Unable to update app: Error posting to URL: 
 https://appengine.google.com/api/appversion/clonefiles?app_id=webaleppoversion=test;
 500 Internal Server Error

 htmlhead
 meta http-equiv=content-type content=text/html;charset=utf-8
 title500 Server Error/title
 /head
 body text=#00 bgcolor=#ff
 h1Error: Server Error/h1
 h2The server encountered an error and could not complete your 
 request.pIf the problem persists, please A HREF=
 http://code.google.com/appengine/community.html;report/A your problem 
 and mention this error message and the query that caused it./h2
 h2/h2
 /body/html


On Tuesday, April 3, 2012 9:47:22 PM UTC-7, tarun2000 wrote:

 Unable to update app: Error posting to URL: 
 https://appengine.google.com/api/appversion/clonefiles?app_id=webaleppoversion=test;
 500 Internal Server Error

 htmlhead
 meta http-equiv=content-type content=text/html;charset=utf-8
 title500 Server Error/title
 /head
 body text=#00 bgcolor=#ff
 h1Error: Server Error/h1
 h2The server encountered an error and could not complete your 
 request.pIf the problem persists, please A HREF=
 http://code.google.com/appengine/community.html;report/A your problem 
 and mention this error message and the query that caused it./h2
 h2/h2
 /body/html


 See the deployment console for more details
 Unable to update app: Error posting to URL: 
 https://appengine.google.com/api/appversion/clonefiles?app_id=webaleppoversion=test;
 500 Internal Server Error

 htmlhead
 meta http-equiv=content-type content=text/html;charset=utf-8
 title500 Server Error/title
 /head
 body text=#00 bgcolor=#ff
 h1Error: Server Error/h1
 h2The server 

[google-appengine] Re: Unable to deploy app anymore (500)

2012-04-06 Thread Zak Tsai
I have the same problem too.

On Tuesday, April 3, 2012 9:47:22 PM UTC-7, tarun2000 wrote:

 Unable to update app: Error posting to URL: 
 https://appengine.google.com/api/appversion/clonefiles?app_id=webaleppoversion=test;
 500 Internal Server Error

 htmlhead
 meta http-equiv=content-type content=text/html;charset=utf-8
 title500 Server Error/title
 /head
 body text=#00 bgcolor=#ff
 h1Error: Server Error/h1
 h2The server encountered an error and could not complete your 
 request.pIf the problem persists, please A HREF=
 http://code.google.com/appengine/community.html;report/A your problem 
 and mention this error message and the query that caused it./h2
 h2/h2
 /body/html


 See the deployment console for more details
 Unable to update app: Error posting to URL: 
 https://appengine.google.com/api/appversion/clonefiles?app_id=webaleppoversion=test;
 500 Internal Server Error

 htmlhead
 meta http-equiv=content-type content=text/html;charset=utf-8
 title500 Server Error/title
 /head
 body text=#00 bgcolor=#ff
 h1Error: Server Error/h1
 h2The server encountered an error and could not complete your 
 request.pIf the problem persists, please A HREF=
 http://code.google.com/appengine/community.html;report/A your problem 
 and mention this error message and the query that caused it./h2
 h2/h2
 /body/html



-- 
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/-/5vpkqXliGIsJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Running queries on data already stored in datastore

2011-11-14 Thread Zak
Hello all,

This is my first time using google app engine and the datastore so
this is all still pretty new to me. But I have successfully (using the
bulk loader tool) loaded my data from csv files into the datastore. I
am writing my program in Python and have now run into the issue of
retrieving data from the datastore using python. I understand how to
create Classes using db.Model in python, load information into them,
store them and then run queries on them. But how do you run quries on
the data that is stored in the datastore already?  When I run a query
for a Kind that I know is in my datastore it says Kind not found. Do I
still need to define a class (db.Model) to hold the data? If so, how
do I transfer the data from the datastore into my class object?

Any clarification would be much appreciated!

Zak

-- 
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 from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Release of AppEngine 1.1.4 SDK

2008-09-29 Thread Richard Zak

Thank you, problem solved!

On Sep 27, 1:12 am, Rafe [EMAIL PROTECTED] wrote:
   Hello,

   This evening we have released the AppEngine 1.1.4 SDK.  It addresses
 some of the problems that Windows users have had with static files on
 dev_appserver.  If you are working on Windows and an existing
 application started telling you something like the following message,
 this fix is for you:

   configuration file invalid:
   regex does not compile: bogus escape: '\\xa'

   You can download it from the project site here:

  http://code.google.com/p/googleappengine/downloads/list

   - Rafe Kaplan
--~--~-~--~~~---~--~~
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 from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Terrible

2008-09-29 Thread Richard Zak

I assume you're on a mac.  Us Windows and Linux folks use the command
line, which is the only *real* way to do things :)

On Sep 29, 1:10 pm, uprise78 [EMAIL PROTECTED] wrote:
 Ummm...the Google App Engine Launcher deploys my site without me ever
 seeing the command line (not that it's that hard to run a single line
 on the command line anyway).

 On Sep 27, 7:48 pm, rc [EMAIL PROTECTED] wrote:

  This is the most unuser friendly way of managing a site. You have to
  be kidding me, command line deployment?! Unistalling...
--~--~-~--~~~---~--~~
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 from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] GAE search api

2008-09-12 Thread Richard Zak

I am trying to use the Google Search API, but if I enter a search term
with a funny character like ă then the Google App Engine causes an
error in the Python installation:

Traceback (most recent call last):
  File C:\Program Files\Google\google_appengine\google\appengine\ext
\webapp\__init__.py, line 499, in __call__
handler.get(*groups)
  File C:\Documents and Settings\RJZ\My Documents\Eclipse Workspace
\google-app-bahblog\main.py, line 1422, in get
for result in query.Run():
  File C:\Program Files\Google\google_appengine\google\appengine\api
\datastore.py, line 849, in Run
return self._Run()
  File C:\Program Files\Google\google_appengine\google\appengine\api
\datastore.py, line 868, in _Run
apiproxy_stub_map.MakeSyncCall('datastore_v3', 'RunQuery', pb,
result)
  File C:\Program Files\Google\google_appengine\google\appengine\api
\apiproxy_stub_map.py, line 46, in MakeSyncCall
stub.MakeSyncCall(service, call, request, response)
  File C:\Program Files\Google\google_appengine\google\appengine\api
\datastore_file_stub.py, line 264, in MakeSyncCall
(getattr(self, _Dynamic_ + call))(request, response)
  File C:\Program Files\Google\google_appengine\google\appengine\api
\datastore_file_stub.py, line 464, in _Dynamic_RunQuery
results = filter(passes, results)
  File C:\Program Files\Google\google_appengine\google\appengine\api
\datastore_file_stub.py, line 448, in passes
filter_val = datastore_types.FromPropertyPb(filter_prop)
  File C:\Program Files\Google\google_appengine\google\appengine\api
\datastore_types.py, line 1090, in FromPropertyPb
value = unicode(value.decode('utf-8'))
  File C:\Python25\lib\encodings\utf_8.py, line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0103' in
position 3: ordinal not in range(128)

I tried manipulating the encoding before submitting the string to the
search API but that doesn't help.  Any thoughts?

Google:  Might a future SDK version include character normalization to
make special characters not needed for search?  ă should match a and
vise-versa.
--~--~-~--~~~---~--~~
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 from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---