google-app-engine

Mass rename objects on Google Cloud Storage

廉价感情. 提交于 2020-01-02 11:07:31
问题 Is it possible to mass rename objects on Google Cloud Storage using gsutil (or some other tool)? I am trying to figure out a way to rename a bunch of images from *.JPG to *.jpg. 回答1: https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames gsutil supports URI wildcards EDIT gsutil 3.0 release note As part of the bucket sub-directory support we changed the * wildcard to match only up to directory boundaries, and introduced the new ** wildcard... Do you have directories under bucket?

Mass rename objects on Google Cloud Storage

℡╲_俬逩灬. 提交于 2020-01-02 11:07:25
问题 Is it possible to mass rename objects on Google Cloud Storage using gsutil (or some other tool)? I am trying to figure out a way to rename a bunch of images from *.JPG to *.jpg. 回答1: https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames gsutil supports URI wildcards EDIT gsutil 3.0 release note As part of the bucket sub-directory support we changed the * wildcard to match only up to directory boundaries, and introduced the new ** wildcard... Do you have directories under bucket?

On Google App Engine (GAE), how do I search on the Key/ID field?

淺唱寂寞╮ 提交于 2020-01-02 11:04:23
问题 I've got this code (Java, GAE): // Much earlier: playerKey = KeyFactory.keyToString(somePlayer.key); // Then, later... PersistenceManager pm = assassin.PMF.get().getPersistenceManager(); Key targetKey = KeyFactory.stringToKey(playerKey); Query query = pm.newQuery(Player.class); query.setFilter("__key__ == keyParam"); query.declareParameters("com.google.appengine.api.datastore.Key keyParam"); List<Player> players = (List<Player>) query.execute(targetKey); // <-- line 200 which generates this

Complex Class Hierarchy in Google AppEngine (Java)

旧街凉风 提交于 2020-01-02 10:46:51
问题 Is it possible to have multiple classes that inherit/extends same class in Google AppEngine with Java (GAE/J) for my entities (JDO). For example I have: Content (Abstract class) Course and then my Course will have : list of Video that is extends Content list of Books At the same time Video has list of Tags Book has list of Tags Course has list of Tags Is it possible to do it GAE? I'm doing similar to this but having so much problems. Is there any examples of this kind of stuff? 回答1: Update

Complex Class Hierarchy in Google AppEngine (Java)

穿精又带淫゛_ 提交于 2020-01-02 10:45:08
问题 Is it possible to have multiple classes that inherit/extends same class in Google AppEngine with Java (GAE/J) for my entities (JDO). For example I have: Content (Abstract class) Course and then my Course will have : list of Video that is extends Content list of Books At the same time Video has list of Tags Book has list of Tags Course has list of Tags Is it possible to do it GAE? I'm doing similar to this but having so much problems. Is there any examples of this kind of stuff? 回答1: Update

Google App Engine Launcher throws ascii codec error when deploying image file

痴心易碎 提交于 2020-01-02 10:23:31
问题 I have these errors showing up on deployment through app engine launcher, and they only show up when I have any image files in a static dir (I tried a couple of small .jpg and .png images used by template). Therefore, I cannot upload any static image files to host. It is PHP app. Deployment window shows 11:01 PM Cloning 5 static files. 11:01 PM Cloning 112 application files. 11:01 PM Uploading 2 files and blobs. 2014-06-10 23:01:56,815 ERROR appcfg.py:2488 An unexpected error occurred.

Google App Engine Launcher throws ascii codec error when deploying image file

巧了我就是萌 提交于 2020-01-02 10:23:23
问题 I have these errors showing up on deployment through app engine launcher, and they only show up when I have any image files in a static dir (I tried a couple of small .jpg and .png images used by template). Therefore, I cannot upload any static image files to host. It is PHP app. Deployment window shows 11:01 PM Cloning 5 static files. 11:01 PM Cloning 112 application files. 11:01 PM Uploading 2 files and blobs. 2014-06-10 23:01:56,815 ERROR appcfg.py:2488 An unexpected error occurred.

Google App Engine PHP SDK - How to install on Ubuntu (15.10)?

风流意气都作罢 提交于 2020-01-02 10:19:53
问题 Google official documentation is available here: https://cloud.google.com/appengine/downloads#Google_App_Engine_SDK_for_PHP But it doesn't provide sufficient information about the following step: "4 - Build and install the PHP interpreter and App Engine PHP extension. Specify the path to php-cgi and gae_runtime_module.so when running the development server." I'm using a new Virtualbox machine with Ubuntu 15.10 and PhpStorm to test GAE. Could someone please provide clear instructions about

GAE/J Low-level API: FetchOptions usage

和自甴很熟 提交于 2020-01-02 10:15:29
问题 What should I know about FetchOptions withLimit, prefetchSize and chunkSize? The docs say the following: prefetchSize is the number of results retrieved on the first call to the datastore. chunkSize determines the internal chunking strategy of the Iterator returned by PreparedQuery.asIterator(FetchOptions) ... prefetchSize and chunkSize have no impact on the result of the PreparedQuery, but rather only the performance of the PreparedQuery. I'm not too sure how to use that in anger. What are

App Engine Node.js: how to link app logs and requests logs

夙愿已清 提交于 2020-01-02 09:53:57
问题 I am using Node.js on App Engine Standard and Flexible. In the logs viewer, is it possible to display application logs nested inside request logs? 回答1: Yes it is possible to correlate application logs and request logs. This is the end result in the Logs Viewer: To achieve this you can either: Use both the @google-cloud/trace-agent and @google-cloud/logging-bunyan modules in your application . When you do so, your logs are automatically annotated with the correct Trace ID (see docs for Bunyan)