[google-appengine] How can I share files (HTML templates) between App Engine modules?

2015-10-12 Thread Dan Dubois
Crossposting from StackOverflow in case anyone has a good solution:

http://stackoverflow.com/questions/33088104/how-can-i-share-files-html-templates-between-app-engine-modules

-- 
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/db3d8946-190b-40e6-a7ac-fc0401a7c555%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: How can I share files (HTML templates) between App Engine modules?

2015-10-12 Thread Dan Dubois
Thanks Nick,

Glad my question found the right location in the end.

I thought I would reply here just for completeness. I ultimately wanted to know 
how I can avoid file duplication in my own local repo when sharing application 
files between modules. The answer on StackOverflow suggests simlinking 
directories between modules is the only way to go. As Nick suggests I could 
store my file data in Cloud Storage or the datastore but I want to avoid the 
complexities of that.

I'll accept the StackOverflow answer unless anyone has a better suggestion.

Best wishes,
Dan

-- 
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/cf2921ab-69b8-4af9-b75d-47c0ac602aa7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: Creating Unique Entities

2015-05-25 Thread Dan Dubois
Jeff,

Thanks for confirmation and all the extra background information.

Dan

On Tuesday, May 19, 2015 at 6:55:02 AM UTC+1, Jeff Schnitzer wrote:

 It isn't the other way 'round, no. This is pretty standard fare for all 
 distributed systems, including RDBMSes.

 Let's say you get a timeout error (on GAE or Oracle). Did the txn commit 
 or not? It's not clear; there was probably a network disconnect and you 
 can't assume it was before or after the commit. You don't know.

 The HRD was (last time I checked) documented to have some edge conditions 
 that would throw ConcurrentModificationException even when the txn commits. 
 I didn't find a similar statement on a casual search now; it would be nice 
 to have some clarification from Google on this, because it would make life 
 easier if CME was idempotently retry-able. Timeouts and whatnot can just be 
 raised to the user as long as they aren't frequent.

 On the other hand, successful commits are successful commits. You don't 
 need to wonder about that.

 If you work on distirbuted applications (and practically all apps are 
 these days), this should be mandatory reading: 
 http://en.wikipedia.org/wiki/Two_Generals%27_Problem

 Jeff

 On Mon, May 18, 2015 at 10:38 PM, Dan Dubois uvic...@gmail.com 
 javascript: wrote:

 Hi Jeff,

 I just wanted some clarification on the following statement:

 HOWEVER, you have to take idempotence rather seriously. The edge cases 
 of the datastore produce errors/exceptions. Errors can happen even if the 
 underlying transaction committed successfully.

 Are you saying that datastore transaction API might return an error to us 
 but actually commit anyway? I just hope that it's not also the other way 
 around where the transaction API returns that everything is OK but actually 
 doesn't commit!

 Dan

 --
 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-appengi...@googlegroups.com javascript:.
 To post to this group, send email to google-a...@googlegroups.com 
 javascript:.
 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/9b40bc26-1078-4e7f-bc73-7d292f9ec46c%40googlegroups.com
 .
 For more options, visit https://groups.google.com/d/optout.




-- 
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/3a700a9a-2e55-4869-9452-544767247834%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: Creating Unique Entities

2015-05-18 Thread Dan Dubois
Hi Jeff,

I just wanted some clarification on the following statement:

HOWEVER, you have to take idempotence rather seriously. The edge cases of 
the datastore produce errors/exceptions. Errors can happen even if the 
underlying transaction committed successfully.

Are you saying that datastore transaction API might return an error to us but 
actually commit anyway? I just hope that it's not also the other way around 
where the transaction API returns that everything is OK but actually doesn't 
commit!

Dan

-- 
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/9b40bc26-1078-4e7f-bc73-7d292f9ec46c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: Creating Unique Entities

2015-05-17 Thread Dan Dubois
Hi Francis,

I think I understand exactly what you mean and it's an interesting edge case 
when designing the datastore transaction system.

Somehow within a transaction it needs to record that the 'put' method either 
expects the entity it is saving to already exist or not exists. What's more 
this logic needs to kick in only if earlier in the transaction a 'get' bothered 
to detect if the entity existed in the first place!

I hope the designers of the datastore considered this and am sure they have as 
I have not seen anything to suggest transactional integrity has ever been 
broken in my apps. I guess you are looking for confirmation though as the way 
the datastore's internals are described in various don't suggest the edge case 
is catered for.

Maybe you could write a test and run it a reasonable number of times to see if 
atomicity guarantees break. I would be interested in seeing the results.

Dan

-- 
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/3a95db7e-e123-4625-a7f2-916d9f627f23%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: HTTP/2 Protocol Support

2015-03-20 Thread Dan Dubois
Wow. That's great! Interesting that https://*.appspot.com shows HTTP/2 and 
when I run it through CloudFlare it shows SPDY/3.1.

On Thursday, March 19, 2015 at 8:50:00 PM UTC, Greg Jones wrote:

 It does. 
 You can install this chrome-extension (
 https://chrome.google.com/webstore/detail/spdy-indicator/mpbpobfflnpcgagjijhmgnchggcjblin
  
 ) and it will show if you're connected to a site with anything other than 
 plain-old-http.
 If you check it when on, say, https://apprtc.appspot.com/ it should add a 
 blue icon in the URL-bar and show HTTP/2 enabled (h2-14). green means 
 SPDY (appspot.com showed this until recently. you can see it now on 
 twitter.com). When it's red that means quic is involved.

 On Thursday, 19 March 2015 13:07:27 UTC, Dan Dubois wrote:

 Does App Engine support the HTTP/2 protocol?



-- 
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/436c60d4-87fe-4676-ba6b-d86fa6e151b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] HTTP/2 Protocol Support

2015-03-19 Thread Dan Dubois
Does App Engine support the HTTP/2 protocol?

-- 
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/35be25e4-091a-4091-9207-f840958cda27%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] GAE Testbed Error: No api proxy found for service file

2011-07-25 Thread Dan Dubois
Thanks both of you. It is Python I am using so I have starred the issue.

Best wishes,
Dan

-- 
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/-/AhTsggs7aaEJ.
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] GAE Testbed Error: No api proxy found for service file

2011-07-15 Thread Dan Dubois
There doesn't appear to be a files testbed API stub in the SDK to let me 
unit test my app. Has anyone figured out a way round this?

Best wishes,
Dan

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



[appengine-java] Re: 1.5.1 SDK Prerelease

2011-06-15 Thread Dan Dubois
Great news!
 
Where can I find more information about the Channel API's user presence 
functionality?
 
Best wishes,
Dan

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/qRDPueEkmCIJ.
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.



[google-appengine] Re: 1.5.1 SDK Prerelease

2011-06-15 Thread Dan Dubois
Great news!
 
Where can I find more information about the Channel API's user presence 
functionality?
 
Best wishes,
Dan

-- 
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/-/qRDPueEkmCIJ.
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] Clarification on appengine-mapreduce

2011-04-08 Thread Dan Dubois
I see on http://code.google.com/p/appengine-mapreduce/wiki/UserGuidePython 
the following statement under Current Limitations:

Only full range scan is supported, i.e. it's impossible to scan a subset of 
a particular entity kind.

Is this because it is technically impossible or just that the functionality 
hasn't been implemented yet? It would be an awesome feature!

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



Re: [google-appengine] Clarification on appengine-mapreduce

2011-04-08 Thread Dan Dubois
OK thanks for letting me know. I am certainly looking forward to being able 
to map over a subset of entities. It'll make my implementation of 
broadcasting using the Channel API much nicer!

-- 
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] How do I change to the High Replication datastore and keep my app id?

2011-04-06 Thread Dan Dubois
I just want to know for future reference as applications reference my 
appspot.com address and I am considering moving over from Master Slave to 
High Replication.

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



Re: [google-appengine] Re: How do I determine the order of HTTP requests?

2011-02-21 Thread Dan Dubois
Thanks for the replies.

Robert,
The rates come in bursts peaking over a few seconds and tail off quickly 
over the course of a few minutes. They are generated by users quickly 
clicking links in web browsers that use AJAX to connect to the GAE cloud. I 
would like to get the sequential order of these clicks over all users.


I had a thought, I could have a 'Request' entity as so:

class Request(db.Model):
request_id = db.StringProperty()

timestamp = db.DateTimeProperty(auto_now_add=True)
count = db.IntegerProperty(long)

The timestamp property is taken from the instances clock and count property 
is updated with memcache atomic increment for each new request. I could then 
use a task to select the Request entities ordered by timestamp and in memory 
also order by count. The count property takes precedence over the timestamp. 
The worst case scenario, where memcache is flushed before each new request, 
would degenerate to a resolution of the clock differences between each GAE 
instance.

I don't expect I would hit the monotonically increasing value performance 
limitation as Ikai explained. However all I would need to do is not index 
timestamp and count properties and reindex them at a later date. Then the 
limitation would be how quickly can I call memcache increment. I don't 
expect this would be an issue either...

In the general case, I think this method would provide the greatest accuracy 
and tolerate the occasional memcache flush. Relative to the latency 
variations inherent in the web, this could be a winner. If I needed to be 
even more specific, I could use Calvin's idea to make sure each GAE 
instance's clock isn't minutes different from other instances to minimise 
the disruption when memcache is flushed.

What do you think?


Best wishes,
Dan

-- 
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] How do I determine the order of HTTP requests?

2011-02-20 Thread Dan Dubois
I periodically have a large number of requests (thousands) to my site in the 
space of a few seconds.

I need to record the order in which the requests access the site so I can do 
downstream processing. The order does not have to be exact, I only need 
resolution down to 1 second: I don't care which order two requests are in if 
they are 10 ms apart. However I do care which order they are in if they are 
1500 ms apart.  

The only problem is that I cannot figure out how to do this.

I though about creating a datastore entity that contains a timestamp for 
each request to the site. (It doesn't matter if two or more entities have 
the same timestamp.) However I understand the clocks between machines in App 
Engine are not necessarily synchronised and could vary wildly. It would be 
ok for business logic if they only varied by 1-1.5 seconds at the most but I 
don't think this can be guaranteed.

I thought about using memcache's atomic increment function instead of a 
timestamp for each new request but this could be wiped at any time so is no 
good. Even if the wipe occurs rarely, I cannot afford it to happen just 
once.

How can I solve this type of problem?

Best wishes,
Dan

-- 
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: App Engine SDK 1.4.2 is out!

2011-02-12 Thread Dan Dubois
The update as arrived. :-)

I can finally restart development of my app since the JSP mapping bug 
appeared. Thanks!

-- 
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: App Engine SDK 1.4.2 is out!

2011-02-11 Thread Dan Dubois
Any idea when the App Engine Java SDK 1.4.2  Eclipse plugin will be 
released?

-- 
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: What's the point of memcache incr decr?

2011-02-06 Thread Dan Dubois
Strom, your use of memcache incr and decr is a great example:

Synchronise a memcache counter with the count() of a datastore entity query. 
I imagine it could be tricky to *exactly* synchronise the memcache counter 
with the datastore if the memcache counter did get purged.

Calvin, I had a look at the PubSubHubbub code and it seems they use memcache 
incr to determine if a subscriber is performing a DOS attack. In this case 
it doesn't really matter if the memcache counter gets wiped.

Any more examples memcache incr/decr use?

-- 
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] What's the point of memcache incr decr?

2011-02-05 Thread Dan Dubois
Hi All,

What are some use cases of memcache incr  decr? I just don't see where a 
distributed atomic increment/decrement function would be useful when you 
know it could be wiped and reset at any point. People suggest periodically 
saving a memcache counter back to the datastore, but this guarantees 
nothing.

Of course I can see the use of a monotonically changing distributed counter.

The reason I ask is for education purposes. Why did Google engineers bother 
to implement this functionality? There must be a good rationale I am not 
aware of.

Best wishes,
Dan

-- 
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] Apple Push Notification Service integration

2011-01-18 Thread Dan Dubois
Is it possible to use Apple Push Notification Service with GAE yet?
The issue http://code.google.com/p/googleappengine/issues/detail?id=1164
has been quiet recently

 I see the main hurdle was that Apple requires you to use certs
provided by them. Is URL Fetch (Python or Java) able to support this
yet?

Best wishes,
Dan

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



[appengine-java] Re: Fwd: BlobstoreService not compatible with HTML5 multiple file upload?

2010-11-03 Thread Dan Dubois
Sorry to keep this thread alive but does anyone know of a work around
for the HTML5 multi-file upload problem?

To summarise HTML5 allows you to upload multiple files at the same
time. Unfortunately on most browsers it gives all the files the same
name. Therefore the app engine api MapString, BlobKey blobs =
blobstoreService.getUploadedBlobs(req) only returns one blob key as
all the others get overwritten due to the unique keys constraint of
java.util.Map.

For example is it possible to determine which blobs were uploaded by
manually parsing the headers of HttpServletRequest? I wonder how
blobstoreService.getUploadedBlobs(req) does it? I had a look and
couldn't find anything obvious in the HttpServletRequest object that
would allow me to link back to the blobs that were uploaded.

I suppose I could add some nasty applet or flash upload tool to the
page but I would rather not do that.

Any ideas?

Best wishes,
Dan

On Oct 24, 6:03 am, Mike! michael.d.en...@gmail.com wrote:
 It's my #1 request too, but GAE doesn't support any multiple file
 upload...I'm guessing that it's not far off though since the blobstore
 interface returns a Map of blobs

 Mike!

 On Oct 23, 3:55 pm, Dan Dubois uvico...@gmail.com wrote:

  Has anyone figured out a way around this problem yet?

  Best wishes,
  Dan

  -- Forwarded message --
  From: Dan Dubois uvico...@gmail.com
  Date: Aug 12, 10:41 pm
  Subject: BlobstoreService not compatible withHTML5multiple file

  upload?
  To: Google App Engine for Java

  I see this issue has already been raised:http://code.google.com/p/
  googleappengine/issues/detail?id=3351

  On Aug 10, 1:12 pm, Dan Dubois uvico...@gmail.com wrote:

   It might be nice for blobstoreService.getUploadedBlobs(req) to return
   a com.google.common.collect.MultimapString, BlobKey but it is
   probably too late to change that method of the API.

   On Aug 10, 1:06 pm, Dan Dubois uvico...@gmail.com wrote:

Dear All,

I would like to upload multiple files to my Blobstore usingHTML5's
multiple file upload feature.

input type=file multiple name=myfiles 

However, on Safari at least, I imagine each file that is uploaded will
be attributed with the same name myfiles.

Therefore MapString, BlobKey blobs =
blobstoreService.getUploadedBlobs(req); does not work as Map keys must
be unique so only one Map.Entry will be in the Map as the others will
get overwritten.

I can see on my dev server that all my files are actually uploaded to
the Datastore.

Is there a way around this?

I guess either Safari hasn't implemented multiple ofHTML5properly
or the BlobstoreService API needs to be changed to cater for the new
   HTML5feature...

Best wishes,
Dan

-- 
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] Cheapest way to run an SQL EXISTS query with Datastore API?

2010-10-26 Thread Dan Dubois
What is the absolute cheapest way (CPU cost) theoretically to run an
SQL EXISTS query with the Datastore API?

I imagine FetchOptions would be
FetchOptions.Builder.withChunkSize(1).limit(1).prefetchSize(1) and
probably option 1 below.

Query query = new Query(KIND);
//add filters and sorts here, if querying by key use
query.setKeysOnly()
DatastoreService datastoreService =
DatastoreServiceFactory.getDatastoreService();
PreparedQuery pq = datastoreService.prepare(query);

//Option 1
long count =
pq.countEntities(FetchOptions.Builder.withChunkSize(1).limit(1).prefetchSize(1));

if (count == 0) {
//does not exist
}
else {
//exists
}

// or maybe
//Option 2
if (pq.asIterator().hasNext()) {
//exists
}
else {
//does not exist
}

Is there anything cheaper?

Best wishes,
Dan

-- 
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: 1.3.8 Console Logging Issue

2010-10-26 Thread Dan Dubois
I am getting the same problem but still on GWT 2.0.3. It must be an
app engine java dev server problem.

On Oct 25, 6:04 am, vvorski vic...@vorski.com wrote:
 Same here with python on a Mac. Have heard reports of same with Java
 on windows. Seems to be a global1.3.8problem?

 V/.

 On Oct 24, 9:04 pm, jt john.j.tho...@gmail.com wrote:







  Hello,

  I upgraded my project from 1.3.4 to1.3.8. After the upgrade, the
  console fails to log. If I switch back to 1.3.4, the console logs
  properly.

  I am on a 64-bit Windows Vista environment, running Eclipse 3.4.2 w/
  (MyEclipse and Instantiations GWT tools)

  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] Fwd: BlobstoreService not compatible with HTML5 multiple file upload?

2010-10-23 Thread Dan Dubois
Has anyone figured out a way around this problem yet?

Best wishes,
Dan


-- Forwarded message --
From: Dan Dubois uvico...@gmail.com
Date: Aug 12, 10:41 pm
Subject: BlobstoreService not compatible with HTML5 multiple file
upload?
To: Google App Engine for Java


I see this issue has already been raised:http://code.google.com/p/
googleappengine/issues/detail?id=3351

On Aug 10, 1:12 pm, Dan Dubois uvico...@gmail.com wrote:







 It might be nice for blobstoreService.getUploadedBlobs(req) to return
 a com.google.common.collect.MultimapString, BlobKey but it is
 probably too late to change that method of the API.

 On Aug 10, 1:06 pm, Dan Dubois uvico...@gmail.com wrote:

  Dear All,

  I would like to upload multiple files to my Blobstore using HTML5's
  multiple file upload feature.

  input type=file multiple name=myfiles 

  However, on Safari at least, I imagine each file that is uploaded will
  be attributed with the same name myfiles.

  Therefore MapString, BlobKey blobs =
  blobstoreService.getUploadedBlobs(req); does not work as Map keys must
  be unique so only one Map.Entry will be in the Map as the others will
  get overwritten.

  I can see on my dev server that all my files are actually uploaded to
  the Datastore.

  Is there a way around this?

  I guess either Safari hasn't implemented multiple of HTML5 properly
  or the BlobstoreService API needs to be changed to cater for the new
  HTML5 feature...

  Best wishes,
  Dan

-- 
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: BlobstoreService not compatible with HTML5 multiple file upload?

2010-08-12 Thread Dan Dubois
I see this issue has already been raised:
http://code.google.com/p/googleappengine/issues/detail?id=3351

On Aug 10, 1:12 pm, Dan Dubois uvico...@gmail.com wrote:
 It might be nice for blobstoreService.getUploadedBlobs(req) to return
 a com.google.common.collect.MultimapString, BlobKey but it is
 probably too late to change that method of the API.

 On Aug 10, 1:06 pm, Dan Dubois uvico...@gmail.com wrote:

  Dear All,

  I would like to upload multiple files to my Blobstore using HTML5's
  multiple file upload feature.

  input type=file multiple name=myfiles 

  However, on Safari at least, I imagine each file that is uploaded will
  be attributed with the same name myfiles.

  Therefore MapString, BlobKey blobs =
  blobstoreService.getUploadedBlobs(req); does not work as Map keys must
  be unique so only one Map.Entry will be in the Map as the others will
  get overwritten.

  I can see on my dev server that all my files are actually uploaded to
  the Datastore.

  Is there a way around this?

  I guess either Safari hasn't implemented multiple of HTML5 properly
  or the BlobstoreService API needs to be changed to cater for the new
  HTML5 feature...

  Best wishes,
  Dan

-- 
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] BlobstoreService not compatible with HTML5 multiple file upload?

2010-08-10 Thread Dan Dubois
Dear All,

I would like to upload multiple files to my Blobstore using HTML5's
multiple file upload feature.

input type=file multiple name=myfiles 

However, on Safari at least, I imagine each file that is uploaded will
be attributed with the same name myfiles.

Therefore MapString, BlobKey blobs =
blobstoreService.getUploadedBlobs(req); does not work as Map keys must
be unique so only one Map.Entry will be in the Map as the others will
get overwritten.

I can see on my dev server that all my files are actually uploaded to
the Datastore.

Is there a way around this?

I guess either Safari hasn't implemented multiple of HTML5 properly
or the BlobstoreService API needs to be changed to cater for the new
HTML5 feature...

Best wishes,
Dan

-- 
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: BlobstoreService not compatible with HTML5 multiple file upload?

2010-08-10 Thread Dan Dubois
It might be nice for blobstoreService.getUploadedBlobs(req) to return
a com.google.common.collect.MultimapString, BlobKey but it is
probably too late to change that method of the API.

On Aug 10, 1:06 pm, Dan Dubois uvico...@gmail.com wrote:
 Dear All,

 I would like to upload multiple files to my Blobstore using HTML5's
 multiple file upload feature.

 input type=file multiple name=myfiles 

 However, on Safari at least, I imagine each file that is uploaded will
 be attributed with the same name myfiles.

 Therefore MapString, BlobKey blobs =
 blobstoreService.getUploadedBlobs(req); does not work as Map keys must
 be unique so only one Map.Entry will be in the Map as the others will
 get overwritten.

 I can see on my dev server that all my files are actually uploaded to
 the Datastore.

 Is there a way around this?

 I guess either Safari hasn't implemented multiple of HTML5 properly
 or the BlobstoreService API needs to be changed to cater for the new
 HTML5 feature...

 Best wishes,
 Dan

-- 
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] TransformerFactory.newInstance() not working in App Engine SDK 1.2.8

2009-12-09 Thread Dan Dubois
Dear All,

I just migrated my code to App Engine SDK 1.2.8 and GWT SDK 2.0.0.

I have a method that converts an XML Document object into a string:

public static String getStringFromDocument(Document doc) throws
TransformerException {
DOMSource domSource = new DOMSource(doc);
StringWriter writer = new StringWriter();
StreamResult result = new StreamResult(writer);
TransformerFactory tf = TransformerFactory.newInstance();
Transformer transformer = tf.newTransformer();
transformer.transform(domSource, result);
return writer.toString();
}

Unfortunately I now get this error in the SDK:

javax.xml.transform.TransformerFactoryConfigurationError: Provider
org.apache.xalan.processor.TransformerFactoryImpl not found
at javax.xml.transform.TransformerFactory.newInstance
(TransformerFactory.java:108)

I do not get this error when I upload my app. Any idea what is going
on?

Best wishes,
Dan

--

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] Discussion on will-it-play-in-app-engine

2009-11-17 Thread Dan Dubois
I have been trying to use Batik SVG Toolkit (http://
xmlgraphics.apache.org/batik/) to generate images on GAE with no luck.
I get a ClassNotFoundError on org/w3c/dom/svg/SVGDocument. I have
included ALL the Batik jars in my application but can't seem to locate
which jar this class should be in. Your help would be greatly
appreciated. It would be great to add

Batik
Status: COMPATIBLE

to the list. Although it seems this project hasn't released anything
in over 1.5 years.

Best wishes,
Dan

--

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




[appengine-java] Re: batik

2009-11-16 Thread Dan Dubois
I would like to know the answer to this too as I can't seem to make it
work.

Best wishes,
Dan

On Nov 7, 8:53 pm, black_13 jjosb...@gmail.com wrote:
 Can the batik library for svg be used with the GAE java?
 regards,
 black_13

--

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




[appengine-java] Re: Accessing App Engine dev server from another intranet computer using Eclipse plugin.

2009-09-22 Thread Dan Dubois

That worked. Thanks.

Dan

On Sep 22, 8:42 pm, Toby Reyelts to...@google.com wrote:
 You should be able to add that to program arguments under the arguments tab
 for the launch configuration of your application.



 On Tue, Sep 22, 2009 at 3:09 PM, Dan Dubois uvico...@googlemail.com wrote:

  Dear All,

  I am using the GAE 1.2.5 plugin for Eclipse on OS X.

  I can only seem to access the dev server on the computer it is running
  on when I start it from Eclipse. If I start the dev server using
  dev_appserver.sh --address 0.0.0.0 I am able to access the server from
  other computers on my intranet.

  Therefore, how to I set the property --address to 0.0.0.0 when I am
  running the dev server from Eclipse?

  Best wishes,
  Dan
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---