[google-appengine] help me

2017-09-06 Thread satoshi tagomori
GAE/PHP standard/us にて利用しています CloudStorageはasia region です $upload_url = CloudStorageTools::createUploadUrl('/api/upload/upload', $options); にて生成したURLにmultipart/form-dataにて複数の画像とパラメーターをアップロードするような仕様です。 upload.php (アップロードリクエストを処理する)にて画像を受取、ブロブキーなどをDBに追加してレスポンスをjsonにて返却しています 処理自体は正常に終了し(response

[google-appengine] Help me, GAE/PHP Inexplicable behavior google cloud storage' s response

2017-09-06 Thread satoshi tagomori
upload image response returned status code 200 in code and log but client recived 500 error help me. createuploadurl.php $upload_url = CloudStorageTools::createUploadUrl('/api/upload/upload', $options); upload.php header('Content-Type: application/json; charset=utf-8'); e

[google-appengine] Re: Access from China dead

2010-12-09 Thread Satoshi
I am wondering if this issue is related to this: "China Blocks News Websites In Protest Of Nobel Nominee" http://www.itproportal.com/2010/12/9/china-blocks-news-websites-protest-nobel-nominee/ Satoshi On Dec 8, 11:31 pm, zhang yu wrote: > appspot.com被墙了 <http://www.douban

[google-appengine] Re: Let's defend GAE!

2010-12-03 Thread Satoshi
This is my response to one of issues pointed out by the original article (DeadlineExceededError). http://satoshi.blogs.com/uie/2010/12/handing-and-testing-deadlineexceedederror.html Feel free to criticize (either here or at my blog). I am trying to learn something as well. Satoshi On Nov 23, 1

[google-appengine] Re: Using GAE for a REST API

2010-11-29 Thread Satoshi
), (2) clearly separate the model, view and controller, (3) use the exact same protocol among multiple clients. Satoshi On Nov 24, 10:25 pm, James Broberg wrote: > GAE is fantastically suited for REST. I use GAE Java + Restlets + Freemarker > myself. > > On 25 November 2010 08:41,

[google-appengine] Re: Blobstore upload handler is Base64 encoding strings?

2010-11-15 Thread Satoshi
Chris, I really appreciate the information, but I would like to hear from Google about this bug. Q1. Are you going to fix this bug in near future? Q2. Do you have any suggested way to work-around this bug, which won't cause compatibility issue in future when you fix this bug? Satoshi On N

[google-appengine] Re: Blobstore upload handler is Base64 encoding strings?

2010-11-13 Thread Satoshi
I also wrote an upload code in Objective-C, explicitly specifying the "Content-Type: text/plain; charset=UTF-8", but got the same result as HTML form sample above. "日本語" becomes "5pel5pys6Kqe" Satoshi On Nov 13, 7:01 am, Satoshi wrote: > I wrote a test code,

[google-appengine] Re: Blobstore upload handler is Base64 encoding strings?

2010-11-13 Thread Satoshi
I wrote a test code, and verified this bug (it happens in Japanese as well). Here is the form: File: Description Satoshi On Nov 12, 11:52 am, "Ikai Lan (Google)" wrote: > Do you guys have any sample code? I'

[google-appengine] Re: Attempts to deploy result in 500 Server Error

2010-11-06 Thread Satoshi
I was having the same problem (error 500 when deploying my app) this morning (between 9am and 10am Pacific time), but it is working now (10:20am Pacific time). Satoshi On Nov 6, 9:20 am, Chris Copeland wrote: > +1 > > Can't deploy.  Can't access console.  Maintenance isn&#

[google-appengine] Re: Passing other parameters when uploading data to a blob store

2010-11-03 Thread Satoshi
b - I think the software engineering is the only job in the world where just an extra space causes such a pain! Satoshi On Nov 3, 5:03 pm, Satoshi wrote: > I am wring an iPhone app that uploads an image to a blob via HTTP- > POST. Everything has been working great so far. > > Recently, I

[google-appengine] Passing other parameters when uploading data to a blob store

2010-11-03 Thread Satoshi
I am wring an iPhone app that uploads an image to a blob via HTTP- POST. Everything has been working great so far. Recently, I decided to send a parameter "uuid" along with the image. My python code on the server side (subclass of blobstore_handlers.BlobstoreUploadHandler) receives this uuid (alon

[google-appengine] Admin UI issue

2010-05-28 Thread Satoshi
can see the "Billing Status", I see my name as the "Billing Administrator", I see the "Current Balance" and "Resource Allocations:", but there is no UI that allows me to pay more. Where do I have to go to re-configure my billing settings? Regards, Sat

[google-appengine] Re: simultaneous dynamic request limit

2010-03-01 Thread Satoshi
I've got the same warnings several time today too. The peak access rate was only 3.00 requests/sec, and the CPU time usage over the last 24 hours is 6% (1.08 CPU hours) out of 18.50 CPU hours (I am a paying customer). Satoshi On Mar 1, 6:51 pm, David wrote: > I am losing sleep over this

[google-appengine] Re: Conserve outgoing bandwidth

2010-02-18 Thread Satoshi
You need to explicitly specify the expiration date in app.yaml like this: - url: /images static_dir: images expiration: 10d If you are already using firebug, I strongly recommend YSlow (a firebug extension), which will tell you which files are missing expire headers. Satoshi On Feb 18, 4

[google-appengine] obsolete indexes

2010-02-08 Thread Satoshi
but those extra indexes never disappear from the server. Here are my questions: Q1. Is there any extra cost in 'put' operations because of those those extra indexes? Q2. Is there any way to remove those extra indexes? Satoshi -- You received this message because you are subscribed to t

[google-appengine] Re: Best practice for caching frequent datastore reads

2010-02-01 Thread Satoshi
ry, and use the accessor (in my case get_user) to get the actual object. Satoshi On Feb 1, 3:40 am, k3xji wrote: > Hi all, > > I am thinking of away to imlement a generic way for my frequently > readed data models. The access pattern for these models is that they > will be retrieved ver

[google-appengine] Re: How memcache work?

2010-02-01 Thread Satoshi
). Generally speaking, you should use memcache to return a "snapshot" of data to the client. If you need transactions, go directly to the datastore. Satoshi On Feb 1, 6:35 am, masterzim wrote: > In official documentation I didn't find nothing about memcache > transaction. What h

[google-appengine] question about memcache time

2010-01-27 Thread Satoshi
reset the timer, I will simply call memcache.get each time the user accesses the site, and do nothing if it succeeds (and call memcache.set if it fails). If it does not, I need to call memcache.set whenever the user access the site (to explicitly reset the timer). I'd appreciate your help. S

[google-appengine] Re: This App Engine is a JOKE

2010-01-13 Thread Satoshi
> 2. Use the flash to retrieve the data from datastore. If the request > failed, retrieve it again. This can be done using HTML+JavaScript as well. Here is the piece of code from my app (notice that it uses jQuery), which performs HTTP-GET (which could be HTML, JSON or anything) and retry up to th

[google-appengine] Re: Best way to model relations

2010-01-07 Thread Satoshi
2. Making too many put() calls in one HTTP request is not a good idea. I'd suggest to perform non critical operations (such as incrementing reference count) asynchronously using Task Queue. Satoshi On Jan 6, 4:15 pm, Daniel Aguilar wrote: > Hi Satoshi, > > thanks for your reply,

[google-appengine] Re: Best way to model relations

2010-01-06 Thread Satoshi
roperty, but this is difficult to do it right without putting them in an entity group (which is alternative two)... Satoshi On Jan 5, 9:52 am, Daniel A wrote: > Hi there, > > I just started writting my first app after reading some documentation > and tutorials. > Looks like an e

[google-appengine] Re: Using memcache effectively

2010-01-06 Thread Satoshi
ofile?uid={user_id}" (which can be cached in memcache), you want to make it sure that only friends can access that profile. Satoshi On Jan 5, 1:21 pm, dburns wrote: > My app may display a lot of different output for a given page > (customized per user amongst other things), and I'm wo

[google-appengine] Is Model.get_or_insert with no parent really thread safe?

2009-11-10 Thread Satoshi
I am implementing a mechanism to guarantee the uniqueness of property value (account name of User entity). I am using Model.get_or_insert mechanism in this process, but the following description in the document makes me wonder if it is really thread-safe. | In other words, get_or_insert() is eq