[appengine-java] Re: GAE commercial use!

2010-06-16 Thread Houston startup coder
Check this out:

http://code.google.com/appengine/business


Stephen



On Jun 16, 3:07 am, Muhammad Ijaz Khan aija...@gmail.com wrote:
 Yes, I have started reading it now, it looks good :) thanks.

 Any comment on commercial grade system deployment using appengine for java?

 On Wed, Jun 16, 2010 at 6:33 AM, Didier Durand durand.did...@gmail.comwrote:



  Hi,

  Go for this book

 http://www.amazon.com/Programming-Google-App-Engine-Infrastructure/dp...

  Great (written by a googler) especially on datastore
  didier

  On Jun 15, 10:42 am, Muhammad Ijaz Khan aija...@gmail.com wrote:
   Hi,

   Is there a commercial big sized service running on appengine platform? It
   will be highly appreciable if someone can link to a book for google
   appengine for java too. Thanks.

   regards,
   Ijaz

  --
  You received this message because you are subscribed to the Google Groups
  Google App Engine for Java group.
  To post to this group, send email to
  google-appengine-j...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2B 
  unsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Storing a web based file in the blobstore

2010-05-28 Thread Houston startup coder
If you were using a GAE app to retrieve the file and store it into the
Blobstore, it would need to finish doing so within the 30-second
request limit.  So you might have to use an external application to
retrieve the file and upload it into the Blobstore.

You can do this programmatically by having your application use
ClientLogin:

http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html


- Stephen Huey


On May 27, 1:45 pm, Erich erich.re...@gmail.com wrote:
 I'm looking for a solution to this too. It seems the only way to get
 any file into the blobstore is manually.

 On May 27, 1:04 pm, kldaniels kendani...@gmail.com wrote:



  Is there a way to take a web based file and upload it into the
  blobstore, without a user doing it manually.

  I am trying to grab a .pdf file from a website and store it in the
  blobstore.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Doable? Create multiple CSV files and zip it up

2010-05-21 Thread Houston startup coder
I'm creating docx and xlsx files (Microsoft Office files) which
consist of zip files containing text documents:

http://stephenhuey.wordpress.com/2010/01/01/docxgae/

You can actually zip your text documents up in memory without writing
them to any file system and then stream the zip file out to the
browser.  However, if you want to use virtual file system features,
you can make use of this project:

http://code.google.com/p/gaevfs/

Enjoy,
Stephen Huey



On May 21, 12:18 pm, Jonathan jonat...@randomguava.com wrote:
 Hi,

 From a quick scan of GAE doc there is no access to a temporary file
 system.  The product I want to build required creating  CSV files on
 the fly and package them in a zip file with some directory structure,
 then send the zipped file to response for user to download.

 Is it doable in GAE?

 Thanks in advance.
 Jonathan

 --
 You received this message because you are subscribed to the Google Groups 
 Google App Engine for Java group.
 To post to this group, send email to google-appengine-j...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-appengine-java+unsubscr...@googlegroups.com.
 For more options, visit this group 
 athttp://groups.google.com/group/google-appengine-java?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: multiple applications one data store

2010-05-12 Thread Houston startup coder
You simply deploy another app under a different version and it will
use the same datastore:

http://code.google.com/appengine/docs/java/config/appconfig.html

This ability was mentioned in the following blog post:

http://googleappengine.blogspot.com/2009/06/10-things-you-probably-didnt-know-about.html


Enjoy!




On May 2, 1:08 pm, Ali ali.muhammad...@gmail.com wrote:
 Hi there,

 In a Java Application Server like Tomcat or Glassfish, I could deploy
 multiple war files which could share the database. I was wondering if
 I could deploy multiple war files, one for each context and use single
 data store. Is there any work around?

 Regards

 Ali

 --
 You received this message because you are subscribed to the Google Groups 
 Google App Engine for Java group.
 To post to this group, send email to google-appengine-j...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-appengine-java+unsubscr...@googlegroups.com.
 For more options, visit this group 
 athttp://groups.google.com/group/google-appengine-java?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Hosting gwt project at myapp.com, pulling data from api.myapp.com ?

2010-04-17 Thread Houston startup coder
Just create a new version of your app and point api.myproject.com to
that.  For example, if your app is at

some-name.appspot.com

you can create a version called

another-version.latest.some-name.appspot.com

and that other version can be a separate application with a completely
different codebase (you can even write it in Python with your original
app being in Java) and both versions of the app will be using the same
datastore.

See this link...
http://code.google.com/appengine/docs/java/config/appconfig.html#About_appengine_web_xml

...and this:
http://googleappengine.blogspot.com/2009/06/10-things-you-probably-didnt-know-about.html


Have fun!

- Stephen Huey
http://www.google.com/profiles/stephenhuey



On Apr 16, 1:43 pm, Mark mar...@gmail.com wrote:
 Hi,

 I have my gwt project hosted on app engine. This is resolving to:

  http://www.myproject.com

 how would I go about serving data from:

  http://api.myproject.com

 from the same datastore? I'd like the gwt project above to be able to
 pull its data from api.myproject.com,

 Thanks

 --
 You received this message because you are subscribed to the Google Groups 
 Google App Engine for Java group.
 To post to this group, send email to google-appengine-j...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-appengine-java+unsubscr...@googlegroups.com.
 For more options, visit this group 
 athttp://groups.google.com/group/google-appengine-java?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: what's the best way to upload lots of data into datastore?

2010-04-14 Thread Houston startup coder
No, the data will not be uploaded if you do that.  You can use the
Python tool:

http://code.google.com/appengine/docs/python/tools/uploadingdata.html



On Apr 14, 11:55 am, Derek xianguan...@gmail.com wrote:
 Hi,

 I have about half a million rows of static data. What's the best way
 to upload them into datastore? If I load them into my local datastore
 first, then upload my app through eclipse. Will the data be uploaded
 as well?

 Thanks,
 Derek

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Persisting data with both Java and Python frameworks

2010-04-09 Thread Houston startup coder
If I have multiple app versions so that I can essentially run
different applications around the same datastore, will I typically run
into issues with the data if one of them is Java and another is
Python?  I'm looking at using something like Twig or Slim3 on the Java
side, and I'm curious as to whether there might be hard-to-foresee
problems with reading and modifying that data through something like
tipfy on the Python side.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] charged for data we cannot delete?

2010-03-03 Thread Houston startup coder
If the Blobstore is not allowing us to delete files, will we be
charged for that data?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: charged for data we cannot delete?

2010-03-03 Thread Houston startup coder
Pardon, I kept getting sidetracked and had only been reading the prose
in the help docs--never saw the delete method in the API till just
now, so I didn't know I could easily just do this:

BlobstoreService blobstoreService =
BlobstoreServiceFactory.getBlobstoreService();
blobstoreService.delete(blobKey);


I get an error when I try to delete from the Blob Viewer in the Admin
site.  I've never been able to delete from there, but I no longer need
that ability, although I'm sure it could come in handy in the
future.

Thanks,
Stephen


On Mar 3, 3:19 pm, bimbo jones bimbojone...@gmail.com wrote:
 Hi,

 I have that problem too.. i can't delete them from the admin site, what i've
 done is a small servlet that removes the blobs by key.

 2010/3/3 Toby Reyelts to...@google.com

  What problems are you seeing deleting files from Blobstore?

  On Wed, Mar 3, 2010 at 2:32 PM, Houston startup coder 
  stephenh...@gmail.com wrote:

  If the Blobstore is not allowing us to delete files, will we be
  charged for that data?

  --
  You received this message because you are subscribed to the Google Groups
  Google App Engine for Java group.
  To post to this group, send email to
  google-appengine-j...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.

   --
  You received this message because you are subscribed to the Google Groups
  Google App Engine for Java group.
  To post to this group, send email to
  google-appengine-j...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] error deleting file in Blob Viewer

2010-03-02 Thread Houston startup coder
I tried to delete a file in Blob Viewer and every time, no matter if
I'm attempting to delete one or several, I get this error:

Server Error

A server error has occurred.

Return to Applications screen »


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] form to request being allowed to deploy the application multiple times

2010-03-02 Thread Houston startup coder
I've been Googling all over this forum and the documentation, but I
can't find the form I need to submit to the GAE team.  I am deploying
multiple versions of my app (which are actually different apps) around
the same datastore, and it has billing enabled.  But I also need to
deploy this stuff again around a separate datastore for testing and I
don't want the GAE police to shut me down.

I remember coming across a form I can fill out to request exemption in
my case.  Can someone please direct me to that?  Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Blobstore - delete record from apps console

2010-03-02 Thread Houston startup coder
I created a new post for this without realizing this thread existed.
I also starred the issue.


On Jan 13, 5:05 pm, Jason (Google) apija...@google.com wrote:
 Hi YONG. I'm seeing this too on my end. I see a more descriptive error
 message, however -- the Admin Console is basically reporting that billing
 isn't enabled for the application when it really is, and hence doesn't
 process the delete request. Please star this external issue and you'll be
 notified of updates.

 http://code.google.com/p/googleappengine/issues/detail?id=2622

 - Jason

 On Tue, Jan 12, 2010 at 7:39 PM, YONG yongkia...@gmail.com wrote:
   What application ID are you using, and what kind of error do you see when
   you try to delete the blob?

  my app ID is yong8128. When I try to delete it from Admin Console,
  Blob Viewer, I got the

  Server Error

  A server error has occurred.

  Return to Applications screen »

  I had uploaded a few blob fileif delete using Blobstore API is OK.
  But when delete using
  Admin Console, Blob Viewer, got the above error.

  --
  You received this message because you are subscribed to the Google Groups
  Google App Engine for Java group.
  To post to this group, send email to
  google-appengine-j...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: error deleting file in Blob Viewer

2010-03-02 Thread Houston startup coder
I found another thread relevant to this and it mentioned this issue:
http://code.google.com/p/googleappengine/issues/detail?id=2622

So I starred that issue and left my info in a comment there.  Is there
no way to delete a blob from code?  The documentation says this:

If your app doesn't want to keep the blob, you should delete the blob
immediately to prevent it from becoming orphaned.

But I searched for delete on that page and didn't find a way to do
it even though the implication is that there is a way.  :)

Thanks,
Stephen


On Mar 2, 9:00 am, Houston startup coder stephenh...@gmail.com
wrote:
 I tried to delete a file in Blob Viewer and every time, no matter if
 I'm attempting to delete one or several, I get this error:

 Server Error

 A server error has occurred.

 Return to Applications screen »

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: error deleting file in Blob Viewer

2010-03-02 Thread Houston startup coder
If we cannot delete blobs, will we have to pay for them?



On Mar 2, 10:15 am, Houston startup coder stephenh...@gmail.com
wrote:
 I found another thread relevant to this and it mentioned this 
 issue:http://code.google.com/p/googleappengine/issues/detail?id=2622

 So I starred that issue and left my info in a comment there.  Is there
 no way to delete a blob from code?  The documentation says this:

 If your app doesn't want to keep the blob, you should delete the blob
 immediately to prevent it from becoming orphaned.

 But I searched for delete on that page and didn't find a way to do
 it even though the implication is that there is a way.  :)

 Thanks,
 Stephen

 On Mar 2, 9:00 am, Houston startup coder stephenh...@gmail.com
 wrote:

  I tried to delete a file in Blob Viewer and every time, no matter if
  I'm attempting to delete one or several, I get this error:

  Server Error

  A server error has occurred.

  Return to Applications screen »

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: form to request being allowed to deploy the application multiple times

2010-03-02 Thread Houston startup coder
I finally found it in an old thread about multi tenant architecture
not generally being allowed on GAE:

http://groups.google.com/group/google-appengine-java/browse_thread/thread/6ae2e6737cbb4b40/f47f015099538467?lnk=gstq=multiple+site#f47f015099538467

This is the exception request form:

http://code.google.com/support/bin/request.py?contact_type=AppEngineMultiInstanceExceptionRequest


However, from other stuff I remember reading a long time ago, I guess
this is not as much of a concern if I'm not deploying on multiple
domains.  I just want to be able to have multiple datastores (test,
QA, prod, that sort of thing), and in order to use the Blobstore in
each one I must have billing enabled, so I guess your automated
detection wouldn't pick that up as a violation since I'm paying for
the data, right?  I just didn't want it to sniff out that I have the
same code running around multiple datastores and shut me down thinking
I was trying to use as much free quota as possible.

Please let me know!

Thanks so much,
Stephen Huey


On Mar 2, 9:16 am, Houston startup coder stephenh...@gmail.com
wrote:
 I've been Googling all over this forum and the documentation, but I
 can't find the form I need to submit to the GAE team.  I am deploying
 multiple versions of my app (which are actually different apps) around
 the same datastore, and it has billing enabled.  But I also need to
 deploy this stuff again around a separate datastore for testing and I
 don't want the GAE police to shut me down.

 I remember coming across a form I can fill out to request exemption in
 my case.  Can someone please direct me to that?  Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Citical Security error in Accounts Java API: request.getUserPrincipal() gets wrong username/email

2010-03-01 Thread Houston startup coder
Ikai, what you said makes sense to me, but in the last week I've been
seeing something a little different with Safari (version 4.0.4).  I
protect some App Engine URLs in the app by requiring authentication
based on Google Apps, and in order to easily access those URLs in
testing, I simply log the browser into Google Apps first (e.g. Mail).
Or when I'm not signed into Google Apps and try to access the URL, it
has me do Google Apps authentication, and then I can access both the
URL and Mail.  But in Firefox 3.5.8, the authentication is
independent, so if I've authenticated for my App Engine URL and sign
out of Mail, I can still access the App Engine URL in the browser.

Stephen Huey


On Feb 25, 3:01 am, Thomas Schnocklake
thomas.schnockl...@googlemail.com wrote:
 Yes, i implemented this already. I developped the widget in GAE in Java.
 There I used OAuth to authenticate against the gdata-api. Then I stored the
 combination of usern...@gappdomain.xxx and the OAuth accesskey in the GAE
 persistant storage. Everything works fine. So when i log in google apps the
 includes Gadget reads the logged in username
 (request.getUserPrincipal().getName() )) and searches with this username for
 the OAuth key.
 But than the problem: sometimes the username
 (request.getUserPrincipal().getName() ) is wrong, so i read the data (e.g.
 Contacts List) of the wrong user.

 So actuelly I don't need a solution for authentication but I need to know
 which user is actually really logged in to google apps.

 Any ideas?

 This should be a quite important topic for all developpers who want to
 enhance google apps with gae, isn' t it?

 thanks

 2010/2/25 Ikai L (Google) ika...@google.com

  Probably OAuth, though I'm not sure how that will work with a gadget. In
  most places gadgets will include a user ID with the makeRequest.

  On Tue, Feb 23, 2010 at 12:23 PM, Thomas Schnocklake 
  thomas.schnockl...@googlemail.com wrote:

  Thank you for your answer.

  So what would you suppose to use for authentication for a gadget that is
  places in google apps (e.g. gmail, google sites ) ?

  thanks

  thomas

  2010/2/18 Ikai L (Google) ika...@google.com

  Yes, this seems to make sense. Being logged into Google Apps is
  independent of being logged into an App Engine application. They don't use
  the same cookie. App Engine's User service allows you to use Google 
  logins,
  but not the Google Apps session.

  On Tue, Feb 16, 2010 at 3:29 AM, tsschnoc 
  thomas.schnockl...@googlemail.com wrote:

  Hello,

  I use App Engine in my Google Apps domain and restricted the
  authentification of app
  engine to my apps domain. (see
 http://code.google.com/appengine/articles/auth.html
  )
  I developed a widget and use this in multiple accounts of my google
  apps domain.
  When i switch from one account (of my apps domain) to the other, the
  former account is displayed in the widget (Java:
  request.getUserPrincipal().getName() ).

  So the gadget placed on my Google Apps Inbox displays data of a user
  different to the user logged in to google apps.

  I noticed that the problems goes away when i wait some minutes
  ( session expiration ?? ).

  see picture:

 http://picasaweb.google.com/lh/photo/QDcR2Lgk2xI2-UQ77BoGXw?feat=dire...

  --
  You received this message because you are subscribed to the Google
  Groups Google App Engine for Java group.
  To post to this group, send email to
  google-appengine-j...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.

  --
  Ikai Lan
  Developer Programs Engineer, Google App Engine
 http://googleappengine.blogspot.com|http://twitter.com/app_engine

  --
  You received this message because you are subscribed to the Google Groups
  Google App Engine for Java group.
  To post to this group, send email to
  google-appengine-j...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.

   --
  You received this message because you are subscribed to the Google Groups
  Google App Engine for Java group.
  To post to this group, send email to
  google-appengine-j...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.

  --
  Ikai Lan
  Developer Programs Engineer, Google App Engine
 http://googleappengine.blogspot.com|http://twitter.com/app_engine

  --
  You received this message because you are subscribed to the Google Groups
  Google App Engine for 

[appengine-java] Re: Spreadsheets and GAE

2010-02-28 Thread Houston startup coder
How complex are these spreadsheets?  If all you need to do is upload
some basic data, then have them save it as CSV and upload that into
GAE.  I'm assuming your spreadsheets are complex enough that you need
them to actually be Microsoft Excel files.

Lior's response made me consider your actual use case and it sounds
like it could be worthwhile for you to try using the Google
Spreadsheets API.  I had considered it but my spreadsheet needs are
slightly different, and you can read about my decision here:
http://stephenhuey.wordpress.com/2010/01/01/docxgae/

Although I used the GaeVFS virtual file system in that blog post, you
can actually do plenty of the typical file stuff in memory and just
write out to the Blobstore.  Basically, I needed my users to be able
to download data in full-fledged Microsoft Excel spreadsheets, and
since the traditional Java libraries out there aren't supported on
GAE, I chose to use Microsoft's xlsx format which is a zip file
consisting of text files and images.  In case that sounds terrible,
note that I'm using FreeMarker to help me modify template XML files,
and that does make things a little bit cleaner.

So in a nutshell, you can work with bona fide Microsoft Excel files on
GAE if you use the xlsx file format and not the older xls file
format.

- Stephen Huey


On Mar 1, 1:14 am, Lior Harsat lior.har...@gmail.com wrote:
 Hi Praseed,

 my application uses the google spreadsheet api for importing data. I
 have learned the following lessons from it:
 1. performance is not great. the api runs over http and is limited to
 GAE request timeout (5 to 10) seconds. on some cases a single request
 exceed this time and you are required to handle these timeout (retry)
 2. API inconsistencies. The API is not that stable. some of the
 examples posted on Google simply do not work. it could be very
 frustrating.
 3. google spreadsheets are nice for low volume data. Handling masses
 of data is difficult. copy paste is limited. limited formulas
 (comparing to Excel) . very basic scripting support. you should really
 play with it and verify that your end user won't get frustrated with
 it.
 4. accessing the spreadsheet requires authentication. it may be an
 overhead for your end users unless you handle it for them.

 Having said all of the above I still recommend it as it is free,
 doesn't require leaving the google API realm, and will probably mature
 over time.
 you need to make a deep analysis of your requirement to make sure the
 above limitation won't become showstoppers.

 Thanx, Lior

 On Feb 28, 6:41 pm, praseed prase...@gmail.com wrote:

  Hi all,

   New here.

   My app requires users to upload spreadsheets. The server has to make
  the data available on a grid (GWT)..the user then makes changes if any
  and press import.. This is when the data is stored in the data store
  in appropriate entities.

  Questions .

   If this is not GAE, i would have stored the uploaded file in the
  filesystem; used Apache POI to parse the file from a GWT-RPC service
  and return it to a GWT grid. Then, upon user selection, commit the
  data to persistence. Are there better (read: easier) ways to do this
  under GAE? Can I make use of the Spreadsheet Data API to do this
  instead? Do I need to store the file at all in that case?
  Is there something in the Google Docs Upload API I should be using?

  Since I am already committed to GAE and GWT, I wanted to make things
  as simpler as it can be. If I can avoid other external
  libraries..great.

  Thoughts?

  Cheers
  praseed

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] custom authentication when using Google Apps domain

2010-02-24 Thread Houston startup coder
We need users to be able to access our app on our domain, so I went
into my Dashboard and clicked Add New URL to set this up, and then
added a CNAME at GoDaddy.  We use Google Apps for our domain
internally, but do not want the users of our App Engine app accessing
Mail, Documents, Sites, etc.  However, my understanding is that the
only way I could point a subdomain at our App Engine app was to use
Google Apps and Add New URL.

We're going to have an installed desktop application access our app
via ClientLogin, and it's fine if that needs to talk to
myapp.appspot.com in order to use HTTPS.  The plan is for the
installed application to hide the credentials it uses to safely
communicate with our App Engine application behind the scenes.

The only time our users will directly interact with the App Engine app
is when they login via a web browser.  For that, we'd like to use
custom authentication because I don't want to have to pay $50/user/
year for them to access via a Google Apps Premier account.  But it
sounds like this means we can't safeguard portions of the site with
the deployment descriptor if we're using custom authentication:

http://code.google.com/appengine/docs/java/config/webxml.html#Security_and_Authentication

Is this true?  How can we handle this?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: good workaround for securely accessing my domain?

2010-02-23 Thread Houston startup coder
If we're forced to use Google Accounts in order to have security,
couldn't the GAE team at least provide a way to have an account
registration form that you can customize for your domain?  Am I
missing something, or is Google just insistent that its brand be known
behind this platform at the expense of our apps looking a little
ghetto?

Gracias...



On Feb 19, 4:19 am, Houston startup coder stephenh...@gmail.com
wrote:
 What solutions are people trying when they have an app running under
 their domain and they need HTTPS functionality?  I've starred the
 issue 
 here:http://code.google.com/p/googleappengine/issues/detail?id=792q=https...

 I noticed there that miGlanz had an interesting solution although it's
 a bit problematic.  So again, what are people doing for security when
 they need to implement custom authentication on GAE and are running
 the app under their own domain?  Do I try a nonstandard approach for
 typical Java web applications and simply resort to sending a home-
 brewed encrypted message on every request?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] good workaround for securely accessing my domain?

2010-02-19 Thread Houston startup coder
What solutions are people trying when they have an app running under
their domain and they need HTTPS functionality?  I've starred the
issue here:
http://code.google.com/p/googleappengine/issues/detail?id=792q=httpscolspec=ID%20Type%20Status%20Priority%20Stars%20Owner%20Summary%20Log%20Component

I noticed there that miGlanz had an interesting solution although it's
a bit problematic.  So again, what are people doing for security when
they need to implement custom authentication on GAE and are running
the app under their own domain?  Do I try a nonstandard approach for
typical Java web applications and simply resort to sending a home-
brewed encrypted message on every request?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Are you using multiple app versions and a mixture of java and python in GAE?

2010-02-05 Thread Houston startup coder
You can essentially gain the ability to deploy multiple applications
around a single datastore if you deploy multiple versions of your app
that have different code from each other.  I'm curious as to how many
of you are doing this and how positive your experience has been so
far.

Right now, we have a lot of data processing code written in Java that
we could easily split up into at least a couple of applications that
run in the background and don't need to be synchronous with the user
interface.  I'm considering leaving that all in Java and then writing
the user interface in a separate Django or Gaelyk app to minimize boot
times of all the various apps.

I'd love to hear a bit of your story if you're deploying multiple
codebases for a single datastore...

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] does makePersistent operate as a batch put with owned relationships?

2010-01-21 Thread Houston startup coder
The first sentence here is very clear about how calling makePersistent
on an object with relationships automatically saves all the new or
modified related objects:
http://code.google.com/appengine/docs/java/datastore/relationships.html#Relationships_Entity_Groups_and_Transactions

I've read that if you're using JDO, then just use makePersistentAll to
do a batch put on a bunch of objects.  However, I'm wondering if
calling makePersistent on the root object does a batch put of all its
related objects.

Thanks...

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] have a solution to create docx and xlsx Microsoft Office files on GAE by using GaeVFS to generate zip files

2010-01-14 Thread Houston startup coder
I posted to this list a long time ago to ask about creating Microsoft
Word and Excel files on Google App Engine since traditional Java
libraries like Apache POI are not supported.  Thought I'd be helpful
and share a solution that works for me.  Basically, I'm leveraging
GaeVFS to generate the zip-based Microsoft Office Open XML documents
on  Google App Engine.  The whole story is here:

http://stephenhuey.wordpress.com/2010/01/01/docxgae/


I shared this solution with the list a while ago, but I just found out
from a Google employee that the post wasn't allowed to go through
since I replied to a thread of mine that had aged beyond a certain
threshold.

Enjoy,
Stephen Huey
-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.




[appengine-java] creating Word and Excel docs

2009-10-23 Thread Houston startup coder

I accidentally posted this in the old general GAE group by mistake.  :
(

I need to allow my users to export into Word and Excel formats from my
GAE app, and I know Apache POI is not supported.  So, I'm trying to
figure out how to avoid running a server elsewhere whose sole purpose
is generating Word and Excel documents based on data in my GAE
datastore.

Google Docs seems like a good fit, so would it work to use the API to
create documents there from my App Engine code and then export the
created docs and pull them for storage in my App Engine datastore so
that my users can download them whenever I want?  Or do you foresee
roadblocks to this, e.g. some sort of limit on the number of Google
Docs my GAE app can create even if they're temporary files that are
immediately deleted?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: programatically upload files to datastore

2009-10-20 Thread Houston startup coder

I haven't actually tested this code yet since I got sidetracked with
some other stuff.  But I basically worked off of the example farther
down this page:

http://code.google.com/appengine/kb/java.html

Then I just modified it to save the file data as an attribute to an
object I want to persist to the datastore.  So does anyone know if
this is what I should be doing to have a desktop app upload files in
the background to Google App Engine?  Should they be going through a
servlet if it's not an actual human user filling out a file upload
form on a webpage?

Here's my code:



import org.apache.commons.fileupload.FileItemStream;
import org.apache.commons.fileupload.FileItemIterator;
import org.apache.commons.fileupload.servlet.ServletFileUpload;

import org.apache.commons.io.IOUtils;

import java.io.InputStream;
import java.io.IOException;
import java.util.logging.Logger;

import javax.jdo.PersistenceManager;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.google.appengine.api.datastore.Blob;
import com.ideate.PMF;

public class FileUploader extends HttpServlet {
  private static final Logger log =
  Logger.getLogger(FileUploader.class.getName());

  public void doPost(HttpServletRequest req, HttpServletResponse res)
  throws ServletException, IOException {
try {
  ServletFileUpload upload = new ServletFileUpload();
  res.setContentType(text/plain);

  FileItemIterator iterator = upload.getItemIterator(req);
  while (iterator.hasNext()) {
FileItemStream item = iterator.next();
InputStream stream = item.openStream();

if (item.isFormField()) {
  log.warning(Got a form field:  + item.getFieldName());
} else {
  log.warning(Got an uploaded file:  + item.getFieldName() +
  , name =  + item.getName());

  // You now have the filename (item.getName() and the
  // contents (which you can read from stream).  Here we just
  // print them back out to the servlet output stream, but you
  // will probably want to do something more interesting (for
  // example, wrap them in a Blob and commit them to the
  // datastore).

  Blob uploadedImage = new Blob(IOUtils.toByteArray(stream));

  Photo photo = new Photo();
  photo.setName(item.getName());
  photo.setImageData(uploadedImage);

  PersistenceManager pm = PMF.get().getPersistenceManager();
  try {
  pm.makePersistent(photo);
  } finally {
  pm.close();
  }

  /*
  int len;
  byte[] buffer = new byte[8192];
  while ((len = stream.read(buffer, 0, buffer.length)) != -1)
{
res.getOutputStream().write(buffer, 0, len);
  }
  */
}
  }
} catch (Exception ex) {
  throw new ServletException(ex);
}
  }
}


THE END

Thanks for any help...





On Oct 19, 12:18 pm, Abhinav Lele abhinav.l...@gmail.com wrote:
 Could you share your code for the servlet that handles file uploads. I have
 been not able to get that working. Thanks in advance
 --
 Abhinav

 -_[No constructors were harmed in the writing of this post. Any resemblance
 to objects living or dead is purely coincidental]_-

 On Mon, Oct 19, 2009 at 7:40 AM, Houston startup coder 



 stephenh...@gmail.com wrote:

  I need to upload images, sound files and text documents from a mostly
  standalone client PC application to a GAE app. I'm following the file
  upload example in the Google App Engine for Java documentation and
  using the Apache Commons ServletFileUpload to stream in the data and
  then save it with the PersistenceManager.

  Uploading through a servlet seems just fine, but I took a step back to
  wonder whether a servlet was the best way to upload these files to GAE
  since this isn't a human choosing files on a webpage but rather some
  software programatically sending the files up to the server.  Is a
  servlet my best choice in this case?

  Thanks...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] programatically upload files to datastore

2009-10-19 Thread Houston startup coder

I need to upload images, sound files and text documents from a mostly
standalone client PC application to a GAE app. I'm following the file
upload example in the Google App Engine for Java documentation and
using the Apache Commons ServletFileUpload to stream in the data and
then save it with the PersistenceManager.

Uploading through a servlet seems just fine, but I took a step back to
wonder whether a servlet was the best way to upload these files to GAE
since this isn't a human choosing files on a webpage but rather some
software programatically sending the files up to the server.  Is a
servlet my best choice in this case?

Thanks...

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---