云在天边看世界

3.14-谷歌的“圆周率日”

三月 14th, 2010 32 次阅读 0 条评论

刚才打开google, 发现google的logo变了,一眼看去应该是讲圆周率的,鼠标移到logo上去,alt显示是“圆周率日”,点击打开的网页显示的是 google.cn搜索“圆周率日”的结果页。

圆周率日

 

(..More)

分类: Google相关 标签: Google  logo 

IE报“缺少标识符 字符串或数字”错误的原因及解决办法

三月 12th, 2010 24 次阅读 0 条评论

    今天我在修改网页代码时,遇到了一个问题,IE报告JS“缺少标识符 字符串或数字”错误 ,通过在网上搜索,现在终于解决了问题

      问题是出现在我的一个页面在Firefox中运行正常,而在IE中老是报“缺少标识符 字符串或数字”的错误,不知道是什么问题,只好先在Firefox中调试啦。但是页面做完后还是要去面对这个毫无头绪的问题。

      网上搜了一把,果然不少人遇到过这个问题,原因就是:JSON最后的一项末尾多了一个逗号。在IE中,JSON最后一项的末尾是不允许有逗号的,在FF等浏览器下则可有可无。这个问题果然够典型,虽然很简单,还是记录一下,以防以后遇到这种错误再次无从下手。

解决方法其实不用说了,最后的那个逗号干掉即可。

分类: 生活点滴 网页优化 标签: web  js 

App Engine joins the Google over IPv6 Program

三月 11th, 2010 29 次阅读 0 条评论

The Google over IPv6 program allows ISPs with good connectivity to request IPv6 access for most Google services. In about a week, we'll be adding Google App Engine and the appspot.com domain to this program. This means that all App Engine apps will become accessible over IPv6 to anyone participating in the program!

For most people, this won't require any changes to your code at all. If your App Engine code reads os.environ["REMOTE_ADDR"] in Python, or HttpServletRequest.getRemoteAddr() in Java, be aware that this value may be an IPv4 address, like "192.0.2.1", or an IPv6 address, like "2001:db8::1". Now is the time to verify that your code doesn't make any IPv4-specific assumptions, so that your IPv6-ready users will have a seamless transition.

Some libraries for manipulating IP addresses, should your app require one, include ipaddr and java.net.InetAddress.

Q: My app doesn't handle IP addresses at all. Can I ignore this announcement?
A: Yes.

Q: I have a third-party domain hosted through Google Apps and the ghs.google.com CNAME. Will this affect me?
A: This particular change only affects appspot.com domains, but you should still make sure your code is IPv6-safe, as we're always working to add IPv6 to more services.

Q: Will everyone see an IPv6 AAAA record for my app?
A: No, the AAAA record is visible to less than 1% of users, whose ISPs are participating in the Google over IPv6 program.

Q: Does this mean each app will get its own unique IPv6 address?
A: No, we try to keep our IPv4 and IPv6 services as similar as possible.

Q: My ISP isn't a Google over IPv6 participant. How can I verify that that my code doesn't choke on IPv6 addresses?
A: You should include IPv6 addresses in your unit tests. After the launch, you'll be able to use the IPv4-IPv6 Website Gateway provided by the SixXS project. It's accessed by appending .ipv4.sixxs.org to any IPv6-enabled hostname. For example, the "Shoutout" sample app will be visible at http://shoutout.appspot.com.ipv4.sixxs.org/.

Q: Why does the previous link report a "does not have an IPv6 address" error?
A: That means we haven't launched yet. The delay is meant to give developers time to review their address-handling code.

分类: 资源分享 Google相关 标签: ipv6  Google 

普通话VS陕西话,陕西话就是霸气!

三月 8th, 2010 38 次阅读 0 条评论

普通话:你不要和我再提那些旧事,过去的就让它过去吧。
陕西话:你再包跟额提窝写破四,赶紧叫窝马力滚。     
      
      
                 
普 通话:这里没有人关心我。
陕西话:这儿就压根么人鸟呃。                 

(..More)

分类: 生活点滴 标签: Language 

桌对面的女孩

三月 4th, 2010 73 次阅读 0 条评论

    咫尺的距离,千里的遥望

    嗅得到你的气息,却无法逾越陌生的墙

    怯生生的目光不能洞悉你的面庞

    视线突然的相遇惊得心慌慌

    悄悄地抬起头,再望一眼你,姑娘

(..More)

分类: 生活点滴 标签: life