Re: [appengine-java] Re: for the problem Applications are limited to 150000000 bytes of resource files

2011-03-19 Thread Chun Guo
Thanks for all the answers. I've been trying to solve this problem by
reducing the scale of my data, and will get the result two days later.
Thanks again, for the suggestions, and for the kink ones who gave me advice!
Chun

2011/3/18 branflake2267 branflake2...@gmail.com

 I had this happen to. What I did is setup a servlet to virtually serve them
 from the blob store, by using a web.xml to serve them dynamically
 or virtually. I had no problem with latency.

 http://demogaemultifileblobupload.appspot.com/ - my demo doing it. You can
 find source code on my site to how I did it.
 http://code.google.com/p/gwt-examples/wiki/DemoGAEMultiFileBlobUpload - my
 wiki notes on how i did it.

 Brandon Donnelson
 http://gwt-examples.googlecode.com

   --
 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.


-- 
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: Local development server classpath - com.google.appengine.tools.KickStart

2011-03-19 Thread Benjamin Muschko
Didier,

Thanks for your reply. I am not using Eclipse. Instead I was trying to
run KickStart.main() within an existing Java process for a build
plugin. The Ant page you mentioned simply copies the JARs into WEB-INF/
lib. In the meantime I found a workaround for what I was trying to do.
Still...I'd still be interested to know if you can add additional JARs
when calling KickStart.main().

Thanks,

Ben

On Mar 19, 1:21 am, Didier Durand durand.did...@gmail.com wrote:
 Hi,

 You will be ok if you add not only 1 single gae jar (appengine-tools-
 api.jar) but all those (about 2) appearing in the GAE sdk library on
 Eclipse when you create a new project + those needed to run locally.

 The simplest way for you is to follow he hints given 
 inhttp://code.google.com/appengine/docs/java/tools/ant.html

 regards

 didier

 On Mar 18, 8:55 pm, Benjamin Muschko benjamin.musc...@gmail.com
 wrote:







  Hi,

  I have a question about the runtime classpath that is being used when
  starting up a local development server. It is required to set
  appengine-tools-api.jar in the classpath a parameter. My application
  directory web_app_dir does not include some of the libraries that
  are required at runtime (see below someother.jar); they sit in a
  different directory. I tried to add them using the -cp parameter but
  they don't seem to get evaluated. I get a
  java.lang.NoClassDefFoundError. This is the call I make:

  java -cp /home/ben/dev/tools/appengine-java-sdk-1.4.2/lib/appengine-
  tools-api.jar:/home/ben/dev/someother.jar
  com.google.appengine.tools.KickStart
  com.google.appengine.tools.development.DevAppServerMain web_app_dir

  Can somebody please shed some light on this? Are only the libraries
  used that sit in web_app_dir/WEB-INF/lib? Is there any way I can add
  additional libraries using an parameter?

  Thanks,

  Ben

-- 
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: Deleting orphan blobs in blobstore

2011-03-19 Thread Starman
BlobInfoFactory.queryBlobInfos().

Iterate on the BlobInfo returned and try to find the blobkey
references in your entity store. If you can't, it is safe to delete
that blob.

If the blobkey reference field in your entities is not indexed, you'll
have to do a full scan of your datastore entities. I don't know how
many you have but, if you deleted 7000, I will assume you have many
thousands entities to scan. You'll probably need to use the task api
(or the mapreduce library, see 
http://ikaisays.com/2010/07/09/using-the-java-mapper-framework-for-app-engine/)
to get around the 30 seconds limit.



On Mar 19, 1:14 am, Gaurav ano...@gmail.com wrote:
 Hi,

 I deleted a large number of objects from the datastore that I din't
 required (around 7000 of them).
 Each of those objects had a blob associated with it, referenced by a
 String (blob key).
 As you might have guessed by now, I forgot to delete those blobs.

 Now I don't have any reference to them, but I want to delete them.
 I can't seem to find a way to do that.

 Any help will be appreciated.

-- 
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: ImagesServiceFactory.makeImageFromBlob(blobKey) image.getImageData() gets NULL error

2011-03-19 Thread branflake2267
The image service has limitations. It won't allow to resize a width thats  
4000px. The image service is for light duty small images. The current 
cameras on the market are producing very large images and scaling them is 
trouble some. I have panoramic images, where the widths are gigantic and 
this image service isn't cutting it. I suggest adding some beaf to the image 
service please :). I would think that this is a core function that spans 
most applications, and more beaf to it would conserve resources with the 
shared libraries across the entire app base. Besides, I am having to jump 
through lots of hoops to get this stuff to work, which is very boxy! Anybody 
use a library jar to do the job?

Just my thoughts on image service
Brandon

-- 
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] Anybody try Apache Commons Sanselan 2D lib?

2011-03-19 Thread branflake2267
Anybody try  Apache Commons Sanselan 2D lib on app engine?

http://commons.apache.org/sanselan/ - lib location

Brandon Donnelson
http://c.gawkat.com
http://gwt-examples.googlecode.com

-- 
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: Anybody try Apache Commons Sanselan 2D lib?

2011-03-19 Thread branflake2267
Or how bout Image4j?

http://image4j.sourceforge.net/ - tried 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-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] New gae logo??

2011-03-19 Thread Gal Dolber
https://www.google.com/images/logos/app_engine_logo_sm.gif
WTF?

-- 
Guit: Elegant, beautiful, modular and *production ready* gwt applications.

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

-- 
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: Anybody try Apache Commons Sanselan 2D lib?

2011-03-19 Thread branflake2267
Looks like they have dependencies not on the white list. :(

http://code.google.com/appengine/docs/java/jrewhitelist.html

-- 
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: ImagesServiceFactory.makeImageFromBlob(blobKey) image.getImageData() gets NULL error

2011-03-19 Thread branflake2267
One more note:

It would be nice to watermark my images with the api.

-- 
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: New gae logo??

2011-03-19 Thread branflake2267
Just curious, What your point is here?

Brandon

-- 
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: The best practice of engineering with GAE (in Java) in a team

2011-03-19 Thread branflake2267
Are you using something like subversion? 

Do you need access to your live data for testing your app?

-- 
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: Using OAuth: why OauthService.getCurrentUsert().getUserId() is null?

2011-03-19 Thread branflake2267
I think he must of set the token to the object. I don't see that piece. Grab 
the token from post or querystring, and stick it back into the object. 

-- 
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.