google-app-engine

Does Google App Engine support ftp?

こ雲淡風輕ζ 提交于 2020-01-19 14:02:08
问题 Now I use my own Java FTP program to ftp objects from my PC to my ISP's website server. I want to use Google App Engine's servlet to get Paypal IPN messages, then store the messages into my own objects and ftp the objects to my ISP's website server, is this doable ? I heard Google App Engine doesn't support FTP. I don't expect Google to do it for me, but can I use my own Java FTP program in the web app that I upload onto the App Engine to do it ? Frank 回答1: No, you can't open any socket

Appengine DevMode : access denied (“java.lang.RuntimePermission” “accessClassInPackage.sun.security.util”)

为君一笑 提交于 2020-01-19 06:20:46
问题 I upgraded my PC to Ubuntu 12.04 and restored the backup of my workspace and Eclipse afterwards. Now when I try to start my AppEngine/GWT application I run into a problem with the java security manager. Caused by: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "accessClassInPackage.sun.security.util") at java.security.AccessControlContext.checkPermission(AccessControlContext.java:366) at java.security.AccessController.checkPermission(AccessController.java

Login via google and facebook using django-social-auth

≡放荡痞女 提交于 2020-01-17 13:41:10
问题 I am trying to integrate django-social-auth on my django app which is running on google app engine. I am trying to implement google-oauth2 and facebook oauth login using django-social-auth. SOCIAL_AUTH_GOOGLE_OAUTH2_KEY = '377490210257-****' SOCIAL_AUTH_GOOGLE_OAUTH2_CLIENT_SECRET = '***********' SOCIAL_AUTH_FACEBOOK_APP_ID = '******' SOCIAL_AUTH_FACEBOOK_SECRET = 'xxxx' AUTHENTICATION_BACKENDS = ( 'social_auth.backends.facebook.FacebookBackend', 'social_auth.backends.google

Run PhantomJS with Eclipse GAE

白昼怎懂夜的黑 提交于 2020-01-17 07:37:27
问题 I am facing a problem in running PhantomJS with Eclipse App Engine-JAVA. It is working fine with Command Prompt since I have set the path for PhantomJS in my environment variables. Please help me. How can I put PhatomJS on my classpath or buildpath in eclipse so that It is available on the web-browser, because if I use the script in my HTML, is shows error that undefined variable phantom. 回答1: You cannot use PhantomJS with Google App Engine. PhantomJS is a Headless WebKit (with JavaScript API

psycopg2 error on Google App Engine

跟風遠走 提交于 2020-01-17 07:02:31
问题 I'm hosting a website/app using Flask/SQLAlchemy on Google's App Engine, part of which entails communicating with a PostgreSQL server and querying it to populate the website. The SQL server is hosted on Google's Compute Engine as a VM instance per these instructions, but with the server open to all connections. When I send a GET request to the website/app when it is hosted on localhost, I get the data I expect. However, when I launch the app and attempt to send the same request to the new URL

Google App Engine - PHP App Images/CSS not found

a 夏天 提交于 2020-01-17 06:59:22
问题 I'm building my first app using Google App Engine and have hit a problem straight off: My images and css are not loading with the error: Failed to load resource: the server responded with a status of 404 (Not Found). I have done all I can think of to try and tackle it, and now I'm stumped. Here's my code: PHP: <?php echo "<html><header><link rel='stylesheet' type='text/css' href='/stylesheets/style.css'></header> <body> <div class=header><img src='/images/logo.png'> </div><div class=main

Google PubSub - getting last message

浪子不回头ぞ 提交于 2020-01-17 06:54:38
问题 I am beginning to work with google app engine and the services it offers. One service that I am particularly interested in is the cloud pubsub. My plan is to have a nodejs socket.io server which subscribes to some pubsub topic and whenever the topic receives a publish it would send that publish to all sockets. At the other end, I would have a .NET/Java service that publishes messages to various topics. My question is this - Is there a way to get the last message that was published to a topic?

Google PubSub - getting last message

谁都会走 提交于 2020-01-17 06:54:24
问题 I am beginning to work with google app engine and the services it offers. One service that I am particularly interested in is the cloud pubsub. My plan is to have a nodejs socket.io server which subscribes to some pubsub topic and whenever the topic receives a publish it would send that publish to all sockets. At the other end, I would have a .NET/Java service that publishes messages to various topics. My question is this - Is there a way to get the last message that was published to a topic?

Google datastore - index a date created field without having a hotspot

一世执手 提交于 2020-01-17 06:11:45
问题 I am using Google Datastore and will need to query it to retrieve some entities. These entities will need to be sorted by newest to oldest. My first thought was to have a date_created property which contains a timestamp. I would then index this field and sort on this field. The problem with this approach is it will cause hotspots in the database (https://cloud.google.com/datastore/docs/best-practices). Do not index properties with monotonically increasing values (such as a NOW() timestamp).

unable to save data in datastore but no errors

怎甘沉沦 提交于 2020-01-17 05:38:09
问题 I'm building a web crawler. some of the the data I input into datastore get saved, others do not get saved and I have no idea what is the problem. here is my crawler class class Crawler(object): def get_page(self, url): try: req = urllib2.Request(url, headers={'User-Agent': "Magic Browser"}) # yessss!!! with the header, I am able to download pages #response = urlfetch.fetch(url, method='GET') #return response.content #except urlfetch.InvalidURLError as iu: # return iu.message response =