目前版本GAE的Python运行环境使用的是Python 2.5.2. 工作于Python运行环境的代码必须都是由纯粹的Python写成,不能包括任何c扩展或者其它任何需要编译的语言代码。 这个Python运行环境包括一个受限版的Python标准库。因为不被App Engine支持,所以有些模块被禁用掉了,例如网络和文件系统读写API。另外,os模块是可用的,当然,除了某些不受支持的特性之外。如果你企图调用不受支持的模块或者特性的话,将会触发一个异常(我说:当然,这不是我们希望见到的事情,所以。。。嗯。。。别违规) 有些标准库的模块被替换掉了,或者重新修改以适应App Engine的运作,例如: 除了Python的标准库和App Engine SDK的库之外,我们也提供了一些第三方的库,比如: 你也能在程序中包括一些其它的由纯Python写作的库,把这些库放在你的程序开发路径下面。如果你创建了一个指向某一个第三方模块的符号链接,那么在通过appcfg.py上传程序的时候,appcfg将会自动的将这个模块包含在你的程序中,一并上传到服务器。(当然,这是基于Linux和OS X开发者来说的,Win32没有符号链接这么一说。) Python的模块搜索路径包括你的应用程序的根(即包括app.yaml的那个路径),你自己创建的放在根路径下面的模块,通过对根路径的相对引用是可以被访问到的,但是别忘了在模块路径下面建立一个__init__.py文件,这样,Python才知道这个路径下的所有文件是在一个包里面。
Google is announcing a beta release of the Android SDK
Android SDK 1.0 is coming, Dan Morrill from Google™ post a article on Android blog: I'm pretty happy today, for two reasons. First, I'm happy because I get to let everyone know that we're releasing a beta SDK. You can read about the new Android 0.9 SDK beta at the Android Developers' Site, or if you want to get straight to the bits, you can visit the download page. Once you've got it, be sure to visit our Developer Forum if you have any questions. Back in November, we made some SDK builds available that we referred to as "early look" SDKs. The goal was to give developers insight into the platform as early on as possible, and to get some initial feedback. Since then, we've been working with our Open Handset Alliance partners to incorporate much of that feedback, and finish the first devices. Since those devices are shipping in the fourth quarter, the platform is now converging on a final "Android 1.0" version. The beta SDK that we're releasing today is the first big step on the SDK's road to compatibility with 1.0. Since this is a beta release, applications developed with it may not quite be compatible with devices running the final Android 1.0. However, the APIs are now pretty stable and we don't expect any major changes. If you're one of the many developers who were waiting for something a bit more mature, this might be a good time to take another look. Since we're now moving quickly toward 1.0, it may also help to know which direction we're headed. To help out, we've also prepared a development roadmap. This will be a living document, and we'll keep it up to date as the Android landscape evolves. Currently it covers the next few months, roughly through the end of the year and a bit into next year. We'll update it with additional detail as we are able to, but even right now it can help give you a picture of how things will play out as the first phones draw near. Enough of that though -- you're probably wondering what's actually new in the SDK. Well, you should read the Release Notes, the Change Overview and the API Delta Report for all the details, but here are a few highlights: There are a lot of changes -- the ones in the list above are just my personal favorites, so you should check out the links above for the full story. Not all the changes are additions, though: I'm sorry to say that we had to remove a few things, such as the GTalkService (for security reasons), and the Bluetooth API. There's a bit more detail in the links above, and we'll follow up on those in particular here in this blog to give you the scoop. In fact, we've got a little list of topics we want to talk about here, so stay tuned. At the top of this post I said I was happy for two reasons, and now you know one of them -- but what about the other? Well, the second reason is because now that this is out I can finally go get some sleep!
oh yeah, you got some sleep ;-)
Righteous Kill Trailer - Pacino & De Niro 2008 德尼罗和帕西诺的新片预告片
Academy Award® winners Robert De Niro (Raging Bull) and Al Pacino (Scent of a Woman) star as a pair of veteran New York City police detectives on the trail of a vigilante serial killer in the adrenaline fueled psychological thriller Righteous Kill, directed by Jon Avnet (Red Corner, Fried Green Tomatoes) and written by Russell Gewirtz (Inside Man). The cast also features hip-hop superstar Curtis Jackson (Get Rich or Die Tryin). After 30 years as partners in the pressure cooker environment of the NYPD, highly decorated Detectives David Fisk and Thomas Cowan should be ready for retirement, but arent. Before they can hang up their badges, they are called in to investigate the murder of a notorious pimp, which appears to have ties to a case they solved years before. Like the original murder, the victim is a suspected criminal whose body is found accompanied by a four line poem justifying the killing. When additional crimes take place, it becomes clear the detectives are looking for a serial killer, one who targets criminals that have fallen through the cracks of the judicial system. His mission is to do what the cops cant do on their owntake the culprits off the streets for good. The similarities between the recent killings and their earlier case raise a nagging question: Did they put the wrong man behind bars?
Michael Phelps不幸的童年以及他如何成长为游泳世界记录保持者
环境的艰苦并不会摧毁一个人,虽然外界环境很重要,但是更重要的是持之以恒的毅力和克服困难的决心。没有什么事情是不可能实现的,面对困难的时候,问问自己你能像Phelps一样坚持每周七天游10万米吗?格罗夫说偏执狂才能生存,从某种角度说,这句话的确很对,有人瞧不起丛林法则,是的,但是有时候设想自己正在丛林中也不见得是个坏事!
The FREE online text encrypter is live now!
I release the free online text encrypter just now, it's powered by henrit's excellent As3 Crypto Library, click the link to use it ;-)
As3 Crypto is a cryptography library written in Actionscript 3
As3 Crypto is a cryptography library written in Actionscript 3 that provides several common algorithms. This version also introduces a TLS engine (TLS is commonly known as SSL.) The library is offered under the BSD license, and include several derivative works from Java, C and javascript sources. Check the LICENSE.txt file for a list of contributors. You can look at a demo of the functionality of the library. It's built with Flex 2. It includes a unit test tab, and a benchmark tab.
这个简陋的站点将在一到两个月以内全面更新,首页将不再是blog内容,所有的文章将被移入blog页面。
最近一个星期以来,经常出现appcfg无法正常update,也就是说,无法正常连接到我的GAE站点,来上传资讯,为什么?why?我不知道,以下有几种可能的解释:
Use FlashDevelop Instead of FlexBuilder
上一个基于Flex3的Flash播放器是用FlexBuilder3实作的,虽然不是很好看,但是FlexeBuilder的GUI建设效率却让人印象蛮深刻,真的可以拖拖组件边可以搭建Flash UI,以前都不敢想,其实话说回来,用mxml写的方式倒也不算艰苦,毕竟对曾经用过Win32 SDK写过GUI的人来说,这样已经算蛮好了。 FlexBuilder最头疼就是速度了,在我的笔记本上运行虽然不算慢,但是习惯了快速运行的IDE的人来说,真是会有点受不了,也不像是Pydev之类,写写代码,感觉不出什么速度问题,但是涉及到GUI设计的时候,用eclipse到真是有点不习惯,现在又回归到FlashDevelop,C#的速度表现在Win下面的确还是更胜一筹,而且还有haxe的plugin可以使用,知足了! 可以点击这里下载FlashDevelop,点击这里下载Flex SDK, 点击这里下载haxe,(说实话,这个blog的UI部分也从haxe官网捞了不少东西喔!)
速度,速度,新的Eclipse 3.4版本进步很多,不光速度加快,以前很让我诟病的update功能现在真的变得蛮好用!而且能改变大部分UI Dialog的字体,这样就可以用我比较喜欢的Trebuchet MS做UI呢,当然涉及到Editor部分还是Monaco!
网站管理员指南
遵循这些指南有助于 Google 查找您的网站并将其编入索引和进行排名。 即使您选择不采纳这些建议,我们也强烈建议您对"质量 指南"多加留意,其中简要说明了一些可能造成网站从 Google 索引中彻底删除或受到其他处罚的违禁行为。 如果网站受到处罚,则可能不会再出现在 Google.cn 或任何 Google 合作伙伴网站的搜索结果中。
网站准备就绪后:
设计与内容指南
技术指南
质量指南
这些质量指南涵盖了最常见的作弊形式或操纵行为,对于此处未列出的其他误导行为(例如,通过注册知名网站的错拼形式来欺骗用户),Google 仍可予以拒绝。 不要抱有侥幸心理,认为某种欺骗手段未在本页中列出,Google 就会认可该手段。作为网站管理员,与其花费大量时间寻找漏洞加以利用,不如尽其所能维护基本原则,以便为用户带来更好的体验,从而使网站获得更高的排名。
如果您认为其他网站正在滥用 Google 质量指南,请通过 https://www.google.com/webmasters/tools/spamreport?hl=zh-CN 举报该网站。 Google 希望能开发出灵活的自动解决方案来解决上述问题,因而尽量避免一一处理违禁行为。 我们收到的滥用行为报告将用于创建灵活的规则系统,以便于识别并阻止以后的滥用企图。
质量指南 - 基本原则
质量指南 - 具体指南
如果您断定您的网站不符合这些指南,可进行修改使其满足要求,然后提交网站以便重新审核。
« prev
