Re: [appengine-java] Mutation pool bug?

2011-01-15 Thread Stephen Johnson
Do you have this defined in your mapper class?

@Override

public void taskCleanup(Context context) {

try {

// make sure to call super classes taskCleanup so that the
DatastoreMutationPool

// gets flushed properly otherwise puts/deletes can be lost;

super.taskCleanup(context);

} catch (Exception ex) {

log.severe(ex.toString());

}

}


On Fri, Jan 14, 2011 at 11:34 PM, armanuj  wrote:

> Hi,
>
> I had earlier posted an issue such as "out of mapper quota" earlier
> (link below). I had about 260 entities being mapped (for a start), and
> not entities were getting updated. I was using the mutation pool for
> updates in the map routine. On further investigations, it appears that
> the mutation pool flushes after every 100 entities in it, and does not
> do so for the last batch of entities. Out of the 260 entities,
> everytime 60 entities would NOT be updated, but 200 would be. This
> appeared to be true even if your entity count was a multiple of 100 -
> the last 100 were not getting updated. However, this issue does not
> exist if I get rid of mutation pool, and put entities directly to the
> datastore - all entities are updated always.
>
> Is this is a bug, or is there something I am not doing correctly with
> mutation pools? The mutation pool code is fairly simple
> (mutationPool.put(entity)) - just as in Ikai's mapper blog post.
>
> Appreciate your help with this.
>
> Regards,
> Arun
>
> Earlier post:
>
> http://groups.google.com/group/google-appengine-java/browse_thread/thread/fe7fd75e2fa19a7e/a94b0efc6e50c361?hl=en&lnk=gst&q=out+of+mapper+quota#a94b0efc6e50c361
>
> --
> 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.



Re: [appengine-java] Custom location for local_db.bin?

2011-01-15 Thread A. Stevko
Why not just back it up or check-in to version control?
Another option is to use ln -s to move it.

On Sat, Jan 15, 2011 at 10:29 AM, Daniel Kvasnicka jr. <
daniel.kvasnicka...@gmail.com> wrote:

> Hey,
>
> is it possible to customize the location of local_db.bin? I need it to be
> somewhere outside the application, so that it doesn't get harmed.
> I'm using NetBeans to develop apps and Clean & Build always destroys my
> data.
> There must be some option for this, e.g. in appengine-web.xml, right?
>
> --
> 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.
>



-- 
-- A. Stevko
===
"If everything seems under control, you're just not going fast enough." M.
Andretti

-- 
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] Custom location for local_db.bin?

2011-01-15 Thread Daniel Kvasnicka jr.
Hey,

is it possible to customize the location of local_db.bin? I need it to be 
somewhere outside the application, so that it doesn't get harmed.
I'm using NetBeans to develop apps and Clean & Build always destroys my 
data.
There must be some option for this, e.g. in appengine-web.xml, right?

-- 
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: Cross Browser Issue - Internet Explorer Blank

2011-01-15 Thread Segeboy
duh ... thnx

On Jan 14, 7:03 pm, Didier Durand  wrote:
> Hi,
>
> as it based on gwt (saw it in viewing page source code) and as it
> probably is a javascript issue, you've better chance if you ask in the
> GWT forum (and provide a bit more details on how its written)
>
> regards
>
> didier
>
> On Jan 14, 1:31 pm, Segeboy  wrote:> My app located @ 
> demo.schoolgrep.appspot.com is showing up as a blank
> > page on internet explorer (tried version 6 and 8) but loads up fine on
> > safari/chrome/firefox. Any ideas as to what the issue might be?
>
> > 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.



Re: [appengine-java] Filtering more than 3 parameters in JDOQL

2011-01-15 Thread Stephen Johnson
There's another function executeWithArray on the query object that you  
can use.


Sent from my iPhone

On Jan 15, 2011, at 5:08 AM, Vik  wrote:


Hie

I am not able to pass more than 3 parameters using below code. So,  
how to pass more than 3 parameters?


Query query = pm.newQuery(BloodDonor.class);
			query.setFilter(" state == :stateName && district == :distName  
&&" +

" city == :cityName && bloodGroup == 
:blood");
@SuppressWarnings("unchecked")
			List donors = (List) query.execute 
(state.toLowerCase(), district.toLowerCase(),

city.toLowerCase(), 
bloodGroup.toLowerCase());


Thankx and Regards

Vik
Founder
www.sakshum.com
www.sakshum.blogspot.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] Instead transparency I get black

2011-01-15 Thread Christian Reiter
Hi,

if i use the image service there seem to be some problems with transparency.

I tried to comibe two pictures. the first one without any transparency 
information and the second with some.
The picture with transparency is this 
one
:

some parts are complete white and some are transparent white. But what i get 
is the following:





which obviously does not using transparency for combining the two pictures. 
There seems to be a black background behind the picture with the 
transparency.












code looks like this:
private byte[] createThumbnail(String path, int width, int height) throws 
IOException
{
/* some missing parts*/
 
 Image thumbnail = imagesService.applyTransform(crop, oldImage, 
ImagesService.OutputEncoding.PNG);
 
 // create overlay
 Composite th = ImagesServiceFactory.makeComposite(thumbnail, 0, 0, 
1.0f, Anchor.TOP_LEFT); // TODO: check if online works with transparency
 Composite ov = ImagesServiceFactory.makeComposite(overlay, 0, 0, 1.0f, 
Anchor.TOP_LEFT);
 LinkedList finalImage = new LinkedList();
 
 finalImage.push(ov);
 finalImage.push(th);
 
 thumbnail = imagesService.composite(finalImage,THUMBNAIL_WITH, 
THUMBNAIL_HEIGHT,0,ImagesService.OutputEncoding.PNG);
 
 return thumbnail.getImageData();
}

first i get the first pictures, which is in .jpg format, crop it and 
transform to .png. Then i try to stack the overlay with some transparency on 
it. 

Have you any ideas what causes the problem and/or have an idea how to work 
around this?

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] Re: Error while trying uploading an image on live server

2011-01-15 Thread Christian Reiter
I think i no got the error. The request seemed to be incorrect because of 
the two write(baos, "--"+boundary+"\r\n");

Now it seems to work properly.

-- 
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] Filtering more than 3 parameters in JDOQL

2011-01-15 Thread Vik
Hie

I am not able to pass more than 3 parameters using below code. So, how to
pass more than 3 parameters?

Query query = pm.newQuery(BloodDonor.class);
 query.setFilter(" state == :stateName && district == :distName &&" +
" city == :cityName && bloodGroup == :blood");
 @SuppressWarnings("unchecked")
List donors = (List)
query.execute(state.toLowerCase(), district.toLowerCase(),
 city.toLowerCase(), bloodGroup.toLowerCase());


Thankx and Regards

Vik
Founder
www.sakshum.com
www.sakshum.blogspot.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.