集成Google App Engine和iPhone

Tags: GAE

分布式商用平台上的云计算——比如Google App EngineAmazon EC2——也许是Web 2.0应用开发中最让人兴奋的新趋势。不需要专用的高可靠性服务器群,以及连带的成本和复杂性,商业云平台就允许按需构建应用并对应用进行托管。

云的“后端”架构已然激动人心,同样,强大、低成本手持移动平台的利用也让“前端”变得令人振奋——像iPhone和Android这些手持设备即将会实施那些几年前还难以想象的服务。

DeveloperWorks上由Noah Gift和Jonathan Saggau写的新文章《将Apple的iPhone连接到Google的云计算产品》 论述了两个平台相结合的能力。作者通过利用iPhone特有的plist结构(Apple特定的一种XML格式)构建了一个Python应用,并托管在 AppEngine上,该应用能按要求在iPhone上给出一首莎士比亚的十四行诗。示例代码包括AppEngine上的Python代码、iPhone 的Objective-C客户端,还有数据如何使用XML plist通过HTTP传输的例子。

查看英文原文:Integrating Google App Engine with iPhone

 

from http://www.infoq.com/cn/news/2009/02/appengine-iphone

1 Comment 2009-02-06 09:15:21 by No.0023

在 Google App Engine 1.1.7 上跑 Pylons 0.9.7 RC4

Tags: Python, GAE, Pylons

版本資訊:
OS: Ubuntu 8.10
Python 2.5.4
Pylons 0.97rc4
Google App Engine 1.1.7

步驟:

svn checkout http://appengine-monkey.googlecode.com/svn/trunk/ appengine-monkey
python2.5 appengine-boot.py --paste-deploy my-app
## my-app 可改為你的想要的應用程式名稱,如:hellopylons)
>> Enter template_engine (mako/genshi/jinja/etc: Template language) ['mako']:
>> Enter sqlalchemy (True/False: Include SQLAlchemy 0.4 configuration) [False]:
>> Enter google_app_engine (True/False: Setup default appropriate
>> for Google App Engine) [False]:True
cd my-app
source bin/activate
easy_install Pylons
cd src
paster create --template=pylons MyApplication
## MyApplication 依樣可自訂其名稱
cd my-app/src/MyApplication
python setup.py develop
cd ../..
python -m pth_relpath_fixup


編輯 my-app/development.ini:

[app:the-app]
## Change this to whatever you name your application:
use = egg:MyApplication


到此與 appengine-monkey 上差不多,但接著要多幾個動作才能見到 Welcome:

一.
File ".../appengine-monkey/my-app/src/MyApplication/MyApplication/config/environment.py", line 34, in load_environment
module_directory=os.path.join(app_conf['cache_dir'], 'templates'),
KeyError: 'cache_dir'
避免如上錯誤,編輯 my-app/src/MyApplication/config/environment.py,註解掉一行:

        ...
#module_directory=os.path.join(app_conf['cache_dir'], 'templates'),
...


二.
VersionConflict: (WebOb 0.9 (.../google_appengine/lib/webob), Requirement.parse('WebOb>=0.9.4'))
移走 google_appengine/lib/webob 來避免這錯誤:

mv google_appengine/lib/webob/ google_appengine/webob/


即 Google Appengine 1.1.7 隨附的 webob 版本 (0.9) 未達 Pylons 0.9.7 的要求 'WebOb>=0.9.4'
註:如果你有跑其它 App Engine apps,這個 google_appengine 最好單獨就給 Pylons 使用,以免造成其它程式的問題。

好,是時候了:
/usr/bin/python2.5 google_appengine/dev_appserver.py my-app
## 我使用自己 compile 的 /usr/bin/local/python2.5 google_appengine/dev_appserver.py my-app
主要參考:
Appengine-Monkey: http://code.google.com/p/appengine-monkey/wiki/Pylons

註二:
自己 compile 的 Python 要支援 SSL 才能跑 Google App Engine,在 Ubuntu 8.10 下就是裝完 libssl-dev 後重新 make && make install。

 

from http://everydayquest.blogspot.com/2009/01/memo-of-pylons-on-google-app-engine.html

No Comments 2009-01-17 16:46:57 by No.0023

2008年国外最佳Web设计/开发技巧、脚本及资源总结

Tags: GAE, dev

2008-最佳-前端开发

今天是2008年的最后一天,彬Go为大家奉上今年的最后大餐,这篇文章将为大家总结08年国外一些比较不错的前端开发相关的教程、技巧、脚本、实 例及工具资源等,有一些是曾经彬Go发表过的翻译文章。实在是丰盛的需要消化很久…无论您是刚入门的前端开发菜鸟,还是有多年前端开发经验的高手,我相信 下面的这些日志总会有您需要的!

工具&Web应用

13个可能会让你说”Thank You”的必不可少的开源应用

14个免费工具让你了解为什么人们会放弃访问你的网站

40+CSS生成器

74个我们可能已经忘记的适合网页设计师的很棒的Web应用

50+能提高你的网站速度和性能的技巧和资源

15个可以监视网站人气的工具

20个免费的SEO网站分析工具(已翻译成中文)

11个功能强大甚至可以替代标准应用程序的Firefox3扩展插件

10个你至少应该了解的免费照片管理软件

作为Web前端开发工程师应到感谢的15件事

15个前端开发/网页设计师必备的Bookmarklet(已翻译成中文)

20大的PHP开发框架

66个学习网页设计基础的链接

Web开发工具箱: 120 +Web开发新工具

脚本、补丁及Hack

40大免费Ajax及JavaScipt代码

所有顶级网站应有的15个关键元素

将PSD效果图转换为HTML/CSS的10大教程

30+JavaScript, Ajax & CSS工具提示脚本

50+漂亮的基于纯CSS的导航脚本

40+最热门的wordpress秘诀和技巧30+ More

30+让你大开眼界的Web前端开发视频教程

19个CSS菜单教程来为你的网站添加更多趣味

精选30个优秀的CSS技术和实例(已翻译成中文)

34+免费通讯(Email等)用HTML模板

50个优秀的Ajax教程

12种Javascript解决常见浏览器兼容问题的方法(已翻译成中文)

15个有帮助的基于浏览器的Web前端开发工具

75个(真正的)很有帮助的JavaScipt技术

63个必不可少的Wordpress Hack、教程、帮助文件和手册

Web设计/开发最佳使用手册(19)

10个针对Worpress有用的RSS技巧和Hack

20个神奇的Javascipt脚本原型、元素、Widgets、类…

10个聪明的JavaScipt技术用来提升你的UI界面

10个你必须知道的很棒的Ajax特效

35个使用简便的Ajax/JavaScipt导航解决方案

10大CSS按钮教程列表

10个免费图表脚本

技巧

10个精通PHP的原理

6个简单方法来改善您的HTML邮件

整理及优化CSS代码的7个原则(已翻译成中文)

保持你的代码整洁的12个原则

10个改善你编程的高级PHP技巧

使用CSS为图片添加更多趣味的5种方法(已翻译成中文)

10个优化技巧

所有网站都应具备的10个SEO元素

来自8为极具灵感的演讲者的10个网络应用技巧

编写赏心悦目的代码的7种方法

10个CSS简写技巧让你永远受用(已翻译成中文)

10个Web开发小技巧

15个必须学会的CSS技巧

101个CSS技术-第一部分,第二部分

资源

推荐20个关于网站可用性及界面设计的网站(已翻译成中文)

精选31个网站界面设计实践教程(已翻译成中文)

成为Web设计/开发自由职业者所要遵循了53个步(60+资源)

Ajax网页趋势研究,什么是最好的免费Ajax资源?(70+最佳Ajax资源)

155个Wordpress资源、教程、插件、主题、Ajax、播客…庞大的WP列表

10个非常棒的Ajax及Javascript实例资源网站(已翻译成中文)

精选2008年最佳设计素材资源&灵感 (已翻译成中文)

10种JavaScript特效实例让你的网站更吸引人

精选15个国外CSS框架(已翻译成中文)

41个最佳Mootools Ajax实例下载

推荐20个让你学习并精通CSS的网站(已翻译成中文)

65个优秀的jQuery资源(教程、手册、电子书、demo、插件…)

300+Jquery, CSS, MooTools 和 JS的导航菜单资源(已翻译成中文)

推荐12款可用于前端开发的免费文本编辑器

网页设计必备的10套漂亮图标集(已翻译成中文)

生成器

25个用于网页设计的颜色调色板生成器资源

12款免费在线工具帮助你创建和托管你的网站

25款Web2.0生成器

插件和主题

10个用来得到更多评论的最棒的插件

将Wordpress变为CMS系统的20大插件

你会用在Wordpress主题或博客中的10款插件

10款用于评分和投票的Wordpress插件

30款确实有用的Wordpress插件

你早晚会用到的130款Wordpress插件-第一部分-第二部分

18个让你的博客更专业的Wordpress插件

7个创建你自己的CSS画廊的Wordpress主题

 

 

英文原文:Best of 2008 for developers: 2008+ tips, tricks, scripts and sources!
翻译原文:2008年国外最佳前端开发技巧、脚本及资源总结(暴风彬彬)

原载:彬Go-集前端开发/网页设计/网站可用性/用户体验于一体的趣味互联网生活



来自:http://blog.bingo929.com/

No Comments 2009-01-01 22:40:42 by No.0023

GAE SDK 1.1.6 Released

Tags: GAE

Today we released the 1.1.6 SDK. You can download it on our Google hosting project, and peruse the release notes for more details on the release.

This release contains some notable new features, including several to our datastore:

  • You can now sort and filter on an entity's key
  • You can now delete an entity directly using its key, without fetching the Model object.
  • If you specify a key_name when creating a Model, its key will now be available before you call put()
  • URLFetch calls made in the SDK now have a 5 second timeout, matching production

Also, it contains a number of issue fixes, including the following:

As always, any and all feedback is welcome in the Google Group!

No Comments 2008-11-21 22:21:43 by No.0023

hosts for GAE

Tags: GAE

Shell:~/dev/AppEngine/google_appengine/n23 >: tail -n 3 /etc/hosts
209.85.171.118    n23.appspot.com
64.233.189.99   appengine.google.com
#203.208.35.100  appengine.google.com
Shell:~/dev/AppEngine/google_appengine/n23 >:

No Comments 2008-10-18 00:09:49 by No.0023

GAE Secure_URLs

Tags: GAE

from http://code.google.com/appengine/docs/configuringanapp.html#Secure_URLs

Shell:~/dev/AppEngine/google_appengine/n23 >: head -n 45 app.yaml
application: n23
version: 1
runtime: python
api_version: 1

handlers:

- url: /blog
  script: blog.py
  secure: always

- url: /blog/.*
  script: blog.py
  secure: always

- url: /themes/.+
  script: cache.py
  secure: always

- url: /static/.+
  script: cache.py
  secure: always
...

No Comments 2008-10-18 00:08:44 by No.0023

GAE SDK Release 1.1.5

Tags: GAE

Today is the release of the 1.1.5 SDK, which, as always, is available for download on our Google hosting project. The release notes contain all of the nitty gritty details. Here's a summary:

 

For this release, we've added these features:

The SDK also contains the following issue fixes:

It's also worth noting we released the 1.1.4 SDK on Friday, September 26, fixing two Windows SDK bugs: one issue with escaping in the app.yaml file, and another fixing issues with the datastore viewer on the SDK.

We'd love to hear your feedback on the Google group!

1 Comment 2008-10-04 20:54:34 by No.0023

GAE SDK update

Tags: GAE, Google, dev

Notable new features in this SDK are:

  • Support for zipimport and a new module, zipserve, which serves static files from a zip archive. These allow you to work past the 1000-file app deployment limit.
  • The development console now includes a memcache viewer (you can use this by accessing http://localhost:8080/_ah/admin while your app is running on the SDK).
  • URLFetch now allows users to disable automatically following HTTP redirects.
  • We now allow composite indexes with repeated properties.

It also includes the following issue fixes:

  • It correctly escapes path separators in static_dir path on windows.
  • Sending email messages with unicode content now works.
  • Fixed db.run_in_transaction so that it doesn't allow inserting two (or more) new root entities in a single transaction.
  • The new SDK is available for download, and as always, we welcome your feedback on the group!

    No Comments 2008-09-19 20:29:12 by No.0023

    appspot.com

    Tags: blog, GAE

    请两天假回来,收到了appspot已经非常不正常了,要用代理才能正常访问,

    试了一下,我的博客还可以连上,谢天谢地啊...

    No Comments 2008-08-12 21:15:36 by No.0023

    GAE 升级了

    Tags: blog, GAE, Google, dev
    • More apps: Want to create more than 3 applications with your App Engine account? Now you can now create up to 10!
    • Time windows for Dashboard graphs: Zoom in on the data in your dashboard to get a more accurate picture of whats going on. You can zoom in to see graphs for the last 24, 12, and 6 hour periods.
    • Logs export: You can now use appcfg.py to download your application's logs in plaintext format. Use appcfg.py --help for more information on how to download your logs.
    • Send email as logged in user: If you're using the users API, you can now send email from the email address of the currently-logged-in user.

     

    看到没有?10个application了。

    No Comments 2008-07-26 23:26:27 by No.0023

    Porting legacy databases to Google App Engine

    Tags: GAE, dev

    here

    No Comments 2008-07-11 09:53:47 by No.0023

    GAE 控制台

    Tags: blog, GAE, Google, dev

    vi app.yaml

    - url: /_admin/.*
      script: $PYTHON_LIB/google/appengine/ext/admin
      login: admin

    No Comments 2008-07-11 00:50:16 by No.0023

    GAE的db.Model

    Tags: blog, GAE, Google, dev

    难道只能有一千条记录?我的博客有一个叫做AccessLogger,想记录一下谁浏览过了,可是到了1000条以后,就不会记录了。

     

    2 Comments 2008-07-09 15:04:02 by No.0023


    标签: GAE 共有文章13篇 第(1/1)页 首页 上一页 ... 下一页 末页