Archive for June, 2008
Google Map API Example
Actually this API has been released for a long time, but I just start to play with it. really cool, demo page: http://charry.org/m/map. if you like, you can create more interesting pages with Google Map API. for the detailed references, just Google ‘Google Map API’. thanks to Google’s map servcies, we don’t need the commercial GIS apps anymore, at least, for me, it’s awesome.
i went thru the reference page, but didn’t find any article about how to add customed maps, i do believe there’s a feature like this, ‘cause my co-worker showed me a website in which the map is an office layout.
我们生活在一个不幸的国度
souceforge又被封[]掉了,不知道这次和北京奥谁的运有什么关系。真的让人心寒,从小我们就被这样教育:我们是这个国家的“主人”。而那些为“主人”的服务的仆人为了不让“主人”学坏,真是煞费苦心:
封 blogger
封 flickr
封 wordpress
封 wikipedia
封 sourceforge
封 … …
在中国,你不能搜索带有敏感的大腿字眼的词汇,否则你的浏览器就暂时性,因为撞墙而昏死过去。你的网站不能谈论政治(歌功颂德的除外),否则你会被仆人请去喝茶。你不能行使你当‘主人’的权利,因为仆人会为我们做好一切。我们的媒体,比如娱乐节目CCTV新闻联播告诉我们:我国人民是当家作主的,我国的人民很有权是比美国好5倍的,我国人民的幸福指数是很高的… …, 即使在这个多灾多难的2008年,面对飞奔的物价、四川的灾难,人民的情绪还是很稳定(尤其是死者),大家纷纷表示,对生活影响不大… …
P.S:
刚刚Google一下,此次sourceforge被封,很可能是因为开源软件Notepad++公开抵制北京奥谁的运,支持西边的藏金鸡独立,而导致的。
The current blocking may be related to the recent an×××ti-China protests of Beijing Olympic Games, which began on 8 August in Beijing. Some days before, the author of a very popular free source code editor in SourceForge named Notepad++ start to boycott Beijing 2008, he said that the action is not against Chinese people, but against Chinese government’s repre×××ssion in 2008 Tib×××-etan unr==est. The boyc-otting is surely a politic issue, but refers to human rights problems in China.
Is that the reason of this blocking? Chinese authorities regularly blocks access to websites that it finds objectionable, including those dealing with politically sensitive subjects. That’s what we have been. Blocked.
注:为了防止我的仆人把这个网站也封了,上面的文字做了特殊处理。
A powerful timeline utility
推荐一款强大的时间轴工具:http://simile.mit.edu/timeline/。这是一个用起来简单,但是功能强大的类,由MIT开发,基于AJAX。如果你的应用在Internet上,你可以简单的把如下代码加入,然后再编写你的页面和数据源即可:
<script src="http://simile.mit.edu/timeline/api/timeline-api.js" type="text/javascript"></script>
但如果你的应用在Intranet,你可以去 http://simile-widgets.googlecode.com/svn/timeline/tags/2.0-on-static-simile/ 下载它的源码。下载后,把src\webapp\api\timeline-api的204行修改为:
“src/ajax/api/simile-ajax-api.js”;
然后把你的代码,比如:foo.html 和 foo.xml 放在和src同级的目录下即可。SVN上的最新版本和MIT在线提供的Timeline有些区别,比如:用在线版本的timeline,如果加入:
showEventText: false,
trackHeight: 0.5,
trackGap: 0.2,
eventSource: eventSource,
时间轴上的文字就消失,只会显示图,但是如果你用的是从SVN下载的版本,上面的代码就不起作用,文字还是会显示在轴上。是他们忘记了更新?也许是MIT有意为之。