2006年5月17日星期三

美公布911事件77航班撞击五角大楼录象

Judicial Watch报道:在美国时间16日1:00 p.m,美国防部公布了911事件中联合航空公司77号航班撞击五角大楼的录象。可以在此或者youtube观看。
(from here)

2006年5月11日星期四

Google Gapminder - 可视化的世界各国发展

    Gapminder是瑞士Gapminder 基金会开发的一个统计软件,你可以形象地看见用世界银行提供数据绘制的的世界各国各项发展指数。它用一种新的方法动态地展示了各个国家的历年的各项发展指数,包括了二氧化碳排放量、儿童死亡率、经济增长率、每1000人网民数量、军事预算、每1000人电话用户、城市人口等等。它用一系列分散的点代表不同的国家,点的位置由轴线对应的指数决定,点的大小代表这个国家的人口(最大的哪个红点就是中国了)。例如在这里(横坐标设置为指数log你会看得清楚点)你可以看见GNP和经济增长率指数变化过程,从动画过程我们可以看见美国、中国、日本在过去的40年中经济都曾经大起大落若干次。
    为什么叫Google Gapminder?因为这个软件是放在google的服务器上的。

(from here)

鱼有鱼路,虾有虾路



    上图据说是Paul Allen超级豪华游轮之一,图示为正在开曼群岛的海面上练习直升机降落呢。有钱人的日子就是爽,billgates可以化上亿美圆造一幢房子,paul也不比他差,反正这兄弟俩的钞票估计这辈子是化不玩了。
    不过没钱这日子不也得过是吗,我看下面这件情侣T-SHIRT就不错,哈哈,镜像对称。没钱咱玩创意!

2006年4月28日星期五

Body.onload 关于页面加载完毕的问题

由于上午的Gmap没有调试成功,一直比较郁闷。
1、下午的时候收到K_Reverter的邮件他告诉我可以用window.onload=func的方法来代替Body.onload使用。
2、上网找了点资料,在360doc看到了一个老外关于window.onload的代码,也拿过来用下。
修改代码如下:


<script type="text/javascript" src="http://maps.google.com/maps?file=api&amp;v=2&key=ABQIAAAA43IALmfadaZgVb1L-IEizRRKyzQqj4F9myd02mWX0DutlkqY_BQi03TATJA59RMvJYUa4fN7lK7X5g">
</script>

<div id="map" style="width: 600px; height: 400px;"></div>

<script type="text/javascript">
function init() {
if (GBrowserIsCompatible()) {
var map=new GMap(document.getElementById("map"));
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
map.setMapType(G_HYBRID_TYPE);
map.centerAndZoom(new GPoint(121.5581,29.8394), 8);
// Create a base icon for all of our markers that specifies the
// shadow, icon dimensions, etc.
var baseIcon = new GIcon();
baseIcon.shadow = "http://www.google.com/mapfiles/shadow50.png";
baseIcon.iconSize = new GSize(20, 34);
baseIcon.shadowSize = new GSize(37, 34);
baseIcon.iconAnchor = new GPoint(9, 34);
baseIcon.infoWindowAnchor = new GPoint(9, 2);
baseIcon.infoShadowAnchor = new GPoint(18, 25);

// Create a lettered icon for this point using our icon class
var letter = String.fromCharCode("A".charCodeAt(0) + 25);
var icon = new GIcon(baseIcon);
icon.image = "http://www.google.com/mapfiles/marker" + letter + ".png";
var ningbo = new GMarker(new GPoint(121.5581,29.83941),icon);
GEvent.addListener(ningbo, "click", function(){
ningbo.openInfoWindowHtml("过几天出去溜达下!"); });
map.addOverlay(ningbo);

// Create a lettered icon for this point using our icon class
var letter = String.fromCharCode("A".charCodeAt(0) + 24);
var icon = new GIcon(baseIcon);
icon.image = "http://www.google.com/mapfiles/marker" + letter + ".png";
var zhoushan = new GMarker(new GPoint(122.1018,30.0207),icon);
GEvent.addListener(zhoushan, "click", function(){
zhoushan.openInfoWindowHtml("你说什么啊?我听不见呀!");
});
map.addOverlay(zhoushan);
}
};

/* for Mozilla */
if (document.addEventListener) {
document.addEventListener("DOMContentLoaded", init, null);
}

/* for Internet Explorer */
/*@cc_on @*/
/*@if (@_win32)
init
/*@end @*/

/* for other browsers */
window.onload = init;
</script>




update:
1、加载比较慢,请耐心等待片刻,页面里有太多的脚本了,嘿嘿。看来玩Gmap还得有个自己的空间才是!
2、在2个GMarker之间点击的时候先打开的openInfoWindow不能自由关闭,看来还要继续除虫。

Gmap

用Gmap api做了张地图,可是发现一个问题,在firefox下显示正常,在ie下浏览器会重置,调试了半天,也没搞定,先发了再说。代码如下:
代码开始


  <script type="text/javascript" src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAA43IALmfadaZgVb1L-IEizRT2DsZWTaQwEcLbsDtQz1jnLAblVRRx2_bEwFhsxfHsq9k-5A0PT7xjxw">
  </script>

  <div id="map" style="width: 600px; height: 400px;"></div>

  <script type="text/javascript">
  //<![CDATA[
if (GBrowserIsCompatible()) {

  var map=new GMap(document.getElementById("map"));
  map.addControl(new GSmallMapControl());
  map.addControl(new GMapTypeControl());
  map.setMapType(G_HYBRID_TYPE);
  map.centerAndZoom(new GPoint(121.5581,29.8394), 8);

  // Create a base icon for all of our markers that specifies the
  // shadow, icon dimensions, etc.
  var baseIcon = new GIcon();
  baseIcon.shadow = "http://www.google.com/mapfiles/shadow50.png";
  baseIcon.iconSize = new GSize(20, 34);
  baseIcon.shadowSize = new GSize(37, 34);
  baseIcon.iconAnchor = new GPoint(9, 34);
  baseIcon.infoWindowAnchor = new GPoint(9, 2);
  baseIcon.infoShadowAnchor = new GPoint(18, 25);

  // Create a lettered icon for this point using our icon class
  var letter = String.fromCharCode("A".charCodeAt(0) + 25);
  var icon0 = new GIcon(baseIcon);
  icon0.image = "http://www.google.com/mapfiles/marker" + letter + ".png";

  var ningbo = new GMarker(new GPoint(121.5581,29.83941),icon0);
  GEvent.addListener(ningbo, "click", function(){
    ningbo.openInfoWindowHtml("美女啊,我爱你啦!");
  });
  map.addOverlay(ningbo);

  // Create a lettered icon for this point using our icon class
  var letter = String.fromCharCode("A".charCodeAt(0) + 24);
  var icon = new GIcon(baseIcon);
  icon.image = "http://www.google.com/mapfiles/marker" + letter + ".png";
 
  var zhoushan = new GMarker(new GPoint(122.1018,30.0207),icon);
  GEvent.addListener(zhoushan, "click", function(){
    zhoushan.openInfoWindowHtml("你说什么啊?我饭吃过啦!");
  });
  map.addOverlay(zhoushan);


}
  //]]>
</script>



代码结束

    google的api文挡里面的实例使用了


  <body onload="load()" onunload="GUnload()">
<div id="map" style="width: 500px; height: 300px"></div>
</body>


我估计错误就出现在这个地方,donews的模板我好象设置不了body onload。



2006年4月27日星期四

微软建新社会网络技术公司:Wallop

微软宣布一项有微软Research开发的新社会网络技术,并由硅谷拥有30年丰富经验的企业家和CEO——Karl Jacob带领。

计划发布时间:2006年
新公司网页:http://www.wallop.com/
不知道和微软自己的http://mywallop.com有没有关系?看来“我老婆”(网友爱称)要发扬光大了!不过说实话,我也试用过wallop一段时间,觉得他的flash界面挺眩。有要wallop邀请的朋友记得给我来信哦。

2006年4月25日星期二

Linus Torvalds为新概念病毒打“补丁”

旧闻:上周国内很多媒体都对这种实验性概念病毒做了报道,但是Linus Torvalds说由于一个缺陷,该病毒实际上在linux 2.6.16下不能运行,因此他为这个病毒写了一个"补丁"。
Newsforge is reporting that Linus Torvalds took a few minutes to review the cross-platform proof of concept virus covered yesterday and has proven that the virus does indeed not work with latest kernel version 2.6.16 and even released a patch in order to fix this "problem." From the article: "The
reason that the virus is not propagating itself in the latest kernel
versions is due to a bug in how GCC handles specific registers in a
particular system call. [...] So the virus did a number of strange
things to make this show up, but on the other hand the kernel does try
to avoid touching user registers, even if we've never really
_guaranteed_ that. So the 2.6.16 effect is a mis-feature, even if a
_normal_ app would never care. It just happened to bite the infection
logic of your virus thing."
瑞星反病毒反木马一周播报(2006.04.24-04.30)将该病毒命名为:“Bi病毒(Parasite.Bi)”。